-
Hey everyone, I want to build a module for laryngeal cancer in Synthea for my PhD thesis. I started testing Synthea with building small and easy modules to understand the functionality. But I stumbled across a problem where i am not sure if i am using Synthea wrong, its the intented way of working or a bug. When creating a linear module (only transitions of the "direct" typ), then every created Patient should get every conditon, observation and Procedure - right? But during my tests I realised that while every created patient gets the conditon, only roughly 10% get the procedure and observation. In my understanding 100% of the patients should get the procedures/ observations. What am I doing wrong? I copyed the module into the synthea modules and use the following command:
This is my module: Already thank you for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
My suggestion would be to add a Guard state to the start of your module. What I think it happening is that your module is essentially executing at birth. Then, when Synthea exports data, by default, it will truncate to the last 10 years of history. It keeps things like conditions, but you're likely losing the procedure and observation. The remaining ones where you do see the procedures and observations are likely from the default Colorectal Cancer module. I would add a guard for age to see if that helps. |
Beta Was this translation helpful? Give feedback.
My suggestion would be to add a Guard state to the start of your module.
What I think it happening is that your module is essentially executing at birth. Then, when Synthea exports data, by default, it will truncate to the last 10 years of history. It keeps things like conditions, but you're likely losing the procedure and observation.
The remaining ones where you do see the procedures and observations are likely from the default Colorectal Cancer module.
I would add a guard for age to see if that helps.