Skip to content

Commit

Permalink
Fix careplan code conflict and inpatient length of stay.'
Browse files Browse the repository at this point in the history
  • Loading branch information
jawalonoski authored and hadleynet committed Jan 20, 2023
1 parent dfa3d65 commit 8f363ad
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/modules/gallstones.json
Original file line number Diff line number Diff line change
Expand Up @@ -739,8 +739,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": 133899007,
"display": "Postoperative care"
"code": 736372004,
"display": "Discharge care plan (record artifact)"
}
],
"direct_transition": "Prescribe_Opioids",
Expand Down
28 changes: 20 additions & 8 deletions src/main/resources/modules/lung_cancer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2604,13 +2604,12 @@
"Set SCLC LOS": {
"type": "SetAttribute",
"attribute": "lung_cancer_los",
"direct_transition": "Begin SCLC Day",
"direct_transition": "Minimum of 3 days",
"distribution": {
"kind": "GAUSSIAN",
"kind": "EXPONENTIAL",
"round": true,
"parameters": {
"mean": 5,
"standardDeviation": 1
"mean": 3
}
}
},
Expand Down Expand Up @@ -2642,14 +2641,13 @@
"type": "SetAttribute",
"attribute": "lung_cancer_los",
"distribution": {
"kind": "GAUSSIAN",
"kind": "EXPONENTIAL",
"round": true,
"parameters": {
"mean": 5,
"standardDeviation": 1
"mean": 3
}
},
"direct_transition": "Begin_NSCLC_Day"
"direct_transition": "Minimum_of_3_days"
},
"Delay_2": {
"type": "Delay",
Expand Down Expand Up @@ -2680,6 +2678,20 @@
"attribute": "lung_cancer_los",
"action": "decrement",
"direct_transition": "Hearing Test"
},
"Minimum of 3 days": {
"type": "Counter",
"attribute": "lung_cancer_los",
"action": "increment",
"direct_transition": "Begin SCLC Day",
"amount": 2
},
"Minimum_of_3_days": {
"type": "Counter",
"attribute": "lung_cancer_los",
"action": "increment",
"amount": 2,
"direct_transition": "Begin_NSCLC_Day"
}
},
"gmf_version": 1
Expand Down
28 changes: 20 additions & 8 deletions src/main/resources/modules/veteran_lung_cancer.json
Original file line number Diff line number Diff line change
Expand Up @@ -965,14 +965,13 @@
"type": "SetAttribute",
"attribute": "lung_cancer_los",
"distribution": {
"kind": "GAUSSIAN",
"kind": "EXPONENTIAL",
"round": true,
"parameters": {
"mean": 5,
"standardDeviation": 1
"mean": 3
}
},
"direct_transition": "Begin_SCLC_Day"
"direct_transition": "Minimum_of_3_days"
},
"Begin_SCLC_Day": {
"type": "Counter",
Expand Down Expand Up @@ -1008,14 +1007,13 @@
"type": "SetAttribute",
"attribute": "lung_cancer_los",
"distribution": {
"kind": "GAUSSIAN",
"kind": "EXPONENTIAL",
"round": true,
"parameters": {
"mean": 5,
"standardDeviation": 1
"mean": 3
}
},
"direct_transition": "Begin_NSCLC_Day"
"direct_transition": "Minimum_of_3_days_2"
},
"Begin_NSCLC_Day": {
"type": "Counter",
Expand Down Expand Up @@ -1046,6 +1044,20 @@
"transition": "End_NSCLC_Treatment_Encounter"
}
]
},
"Minimum_of_3_days": {
"type": "Counter",
"attribute": "lung_cancer_los",
"action": "increment",
"amount": 2,
"direct_transition": "Begin_SCLC_Day"
},
"Minimum_of_3_days_2": {
"type": "Counter",
"attribute": "lung_cancer_los",
"action": "increment",
"amount": 2,
"direct_transition": "Begin_NSCLC_Day"
}
},
"gmf_version": 1
Expand Down

0 comments on commit 8f363ad

Please sign in to comment.