Replies: 4 comments 8 replies
-
No. Generally, that is not how Synthea works. It is a simulation of events, not a declarative shopping cart. That being said, you could theoretically do what you are asking for using a Keep Patients Module, but the logic would be twisted and I'm not sure how to write it... because you can't currently directly reference encounters or prior states in other modules using the built-in conditional logic. A work around is to generate more patients than you need, and then post-process the data and filter the list of patients down to those that have the specific encounter type to the specific year of interest. |
Beta Was this translation helpful? Give feedback.
-
Mostly, try these two command line switches: |
Beta Was this translation helpful? Give feedback.
-
Another idea: {
"name": "example",
"remarks": [
"Example of a module with an encounter that can only occur in 2022."
],
"states": {
"Initial": {
"type": "Initial",
"direct_transition": "Only 2022"
},
"Terminal": {
"type": "Terminal"
},
"Only 2022": {
"type": "Guard",
"allow": {
"condition_type": "Date",
"operator": "==",
"year": 2022,
"value": 0
},
"direct_transition": "Specific Year Encounter"
},
"Specific Year Encounter": {
"type": "Encounter",
"encounter_class": "ambulatory",
"reason": "",
"telemedicine_possibility": "none",
"codes": [
{
"system": "SNOMED-CT",
"code": "1234",
"display": "SNOMED Code"
}
],
"direct_transition": "End Encounter"
},
"End Encounter": {
"type": "EncounterEnd",
"direct_transition": "Terminal"
}
},
"gmf_version": 2
} |
Beta Was this translation helpful? Give feedback.
-
i am not able to generate encounter specific to a year through the json file mentioend above. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions