Skip to content

Commit

Permalink
Merge pull request #29 from projecttacoma/104_clinical
Browse files Browse the repository at this point in the history
104 clinical
  • Loading branch information
Matthew Gramigna authored May 14, 2021
2 parents 82e1316 + 490d32e commit acce574
Showing 1 changed file with 42 additions and 7 deletions.
49 changes: 42 additions & 7 deletions src/main/resources/modules/stroke_exm_104_r4.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "exm_104_r4",
"remarks": [
"a non clinically-accurate stroke encounter module, for use with EXM104"
"a non clinically-accurate stroke encounter module, for use with EXM104",
"If the patient has already had a second stroke, transition to terminal."
],
"states": {
"Initial": {
Expand Down Expand Up @@ -42,7 +43,7 @@
"unit": "years",
"value": 0
},
"direct_transition": "Stroke_Delay"
"direct_transition": "Measurement_Period_Guard"
},
"Stroke_Delay": {
"type": "Delay",
Expand Down Expand Up @@ -134,11 +135,11 @@
"distributed_transition": [
{
"transition": "Terminal",
"distribution": 0.01
"distribution": 0.8
},
{
"transition": "Stroke_Delay",
"distribution": 0.99
"transition": "Another_Stroke",
"distribution": 0.2
}
],
"medication_order": "Medication_discharge_antithrombotic"
Expand Down Expand Up @@ -187,6 +188,40 @@
"high": 2,
"unit": "hours"
}
},
"Second_Stroke": {
"type": "SetAttribute",
"attribute": "second_stroke",
"direct_transition": "Stroke_Delay",
"value": true
},
"Another_Stroke": {
"type": "Simple",
"conditional_transition": [
{
"transition": "Terminal",
"condition": {
"condition_type": "Attribute",
"attribute": "second_stroke",
"operator": "==",
"value": true
}
},
{
"transition": "Second_Stroke"
}
]
},
"Measurement_Period_Guard": {
"type": "Guard",
"allow": {
"condition_type": "Date",
"operator": "==",
"year": 2019,
"value": 0
},
"direct_transition": "Stroke_Delay"
}
}
}
},
"gmf_version": 2
}

0 comments on commit acce574

Please # to comment.