Module Builder Tutorial #1306
-
I tried the module builder tutorial and I have some questions: I tried different prevalence values, in chance of CHF state, of a person having the CHF disease, here are the results (I am checking the conditions.csv file ):
Here is the command I am using:
the folder modulesTemp has only one file chf.json with this contents:
/keepModule.json has this contents:
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
I appreciate your input on the above questions. |
Beta Was this translation helpful? Give feedback.
-
Prevalence is related to the number of patients simulated:
There are a number of options.
I haven't looked at your keep module yet, so I won't address that in this post. |
Beta Was this translation helpful? Give feedback.
-
The keep module is looking for an attribute (or variable) on the patient named Does your module create an attribute named In your CHF module, one option is to edit the "CHF Condition Start" state and click "Add Assign to Attribute" and then assign it to an attribute (in your example, You could also alternatively do something like this:
Finally, the tutorial was last updated in 2019, so it may be slightly out of date. One thing that you need to correct in your CHF module, is that you should make sure you have an
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your detailed answer.
I used 1 in the prevalence to get the complete population as patients but I am getting fewer numbers than expected. Another question, how can I get a specific ratio of male and female e.g. if I have 100 population and all of them patients, I want 90 patients male and 10 patients female? I tried the answer here but it seems to filter out from the actual population e.g. after generating a random population let's say 100 people, synthea assigns gender and race attributes to them randomly Here is the updated module:
|
Beta Was this translation helpful? Give feedback.
-
As I said in the other thread, "The modules don't define demographics of patients... the demographics are determined by census data." The module you have is doing this:
If you generated 100 patients under the age of 50, none of them will have CHF. If you generated 100 (e.g.,
Yes. As I said in the other thread, "The modules don't define demographics of patients... the demographics are determined by census data." The module just applies its logic (conditional and/or probability) of patients moving from one state to another based on their preexisting demographics. |
Beta Was this translation helpful? Give feedback.
As I said in the other thread, "The modules don't define demographics of patients... the demographics are determined by census data."
The module you have is doing this:
-p
-g
for gender and-a
for ages. T…