Skip to content

Commit

Permalink
ensure overdose conditions are ended
Browse files Browse the repository at this point in the history
  • Loading branch information
dehall committed Nov 28, 2023
1 parent e8bfda7 commit b1288d3
Showing 1 changed file with 30 additions and 15 deletions.
45 changes: 30 additions & 15 deletions src/main/resources/modules/opioid_addiction.json
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@
"distributed_transition": [
{
"distribution": 0.98747,
"transition": "End_Directed_Use_Overdose_Encounter"
"transition": "End_Directed_Use_Overdose"
},
{
"distribution": 0.01253,
Expand Down Expand Up @@ -683,7 +683,7 @@
"distributed_transition": [
{
"distribution": 0.98747,
"transition": "End_Misuse_Overdose_Encounter"
"transition": "End_Misuse_Overdose"
},
{
"distribution": 0.01253,
Expand Down Expand Up @@ -738,19 +738,7 @@
}
},
"unit": "hours",
"conditional_transition": [
{
"condition": {
"condition_type": "Attribute",
"attribute": "opioid_addiction_careplan",
"operator": "is nil"
},
"transition": "Opioid_Addiction_CarePlan"
},
{
"transition": "End_Addiction_Overdose_Encounter"
}
]
"direct_transition": "End_Addiction_Overdose"
},
"Opioid_Addiction_CarePlan": {
"type": "CarePlanStart",
Expand Down Expand Up @@ -928,6 +916,33 @@
],
"direct_transition": "Recovery_Management",
"assign_to_attribute": "opioid_drug_addiction"
},
"End_Addiction_Overdose": {
"type": "ConditionEnd",
"conditional_transition": [
{
"condition": {
"condition_type": "Attribute",
"attribute": "opioid_addiction_careplan",
"operator": "is nil"
},
"transition": "Opioid_Addiction_CarePlan"
},
{
"transition": "End_Addiction_Overdose_Encounter"
}
],
"condition_onset": "Addiction_Overdose"
},
"End_Misuse_Overdose": {
"type": "ConditionEnd",
"direct_transition": "End_Misuse_Overdose_Encounter",
"condition_onset": "Misuse_Overdose"
},
"End_Directed_Use_Overdose": {
"type": "ConditionEnd",
"direct_transition": "End_Directed_Use_Overdose_Encounter",
"condition_onset": "Directed_Use_Overdose"
}
},
"gmf_version": 1
Expand Down

0 comments on commit b1288d3

Please sign in to comment.