Skip to content

Commit

Permalink
Merge pull request #1314 from synthetichealth/esrd
Browse files Browse the repository at this point in the history
Resolve weirdness of ESRD diagnosis and transplant interaction
  • Loading branch information
eedrummer authored Jun 16, 2023
2 parents 65c0808 + f55e1ca commit 055bdcf
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 40 deletions.
34 changes: 28 additions & 6 deletions src/main/resources/modules/kidney_transplant.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,7 @@
"display": "Chronic kidney disease stage 3 (disorder)"
}
],
"direct_transition": "End_CKD_4_or_5"
},
"End_CKD_4_or_5": {
"type": "ConditionEnd",
"direct_transition": "Begin Post Surgical Stay",
"referenced_by_attribute": "dialysis_reason"
"direct_transition": "End_CKD_4"
},
"Medication Review": {
"type": "Procedure",
Expand Down Expand Up @@ -2129,6 +2124,33 @@
"display": "Renal dysplasia (disorder)"
}
]
},
"End_CKD_4": {
"type": "ConditionEnd",
"codes": [
{
"system": "SNOMED-CT",
"code": 431857002,
"display": "Chronic kidney disease stage 4 (disorder)"
}
],
"direct_transition": "End_End_Stage_Renal_Disease"
},
"End_End_Stage_Renal_Disease": {
"type": "ConditionEnd",
"codes": [
{
"system": "SNOMED-CT",
"code": "46177005",
"display": "End-stage renal disease (disorder)"
}
],
"direct_transition": "End any other dialysis reason"
},
"End any other dialysis reason": {
"type": "ConditionEnd",
"direct_transition": "Begin Post Surgical Stay",
"referenced_by_attribute": "dialysis_reason"
}
},
"gmf_version": 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2113,29 +2113,6 @@
},
"transition": "Diagnose_End_Stage_Renal_Disease"
},
{
"condition": {
"condition_type": "And",
"conditions": [
{
"condition_type": "Attribute",
"attribute": "kidney_transplant",
"operator": "is not nil"
},
{
"condition_type": "Active Condition",
"codes": [
{
"system": "SNOMED-CT",
"code": "46177005",
"display": "End-stage renal disease (disorder)"
}
]
}
]
},
"transition": "End_End_Stage_Renal_Disease"
},
{
"transition": "Terminal"
}
Expand All @@ -2153,17 +2130,6 @@
"direct_transition": "Record_MetabolicPanel_5",
"assign_to_attribute": "dialysis_reason"
},
"End_End_Stage_Renal_Disease": {
"type": "ConditionEnd",
"codes": [
{
"system": "SNOMED-CT",
"code": "46177005",
"display": "End-stage renal disease (disorder)"
}
],
"direct_transition": "Terminal"
},
"Terminal": {
"type": "Terminal"
}
Expand Down

0 comments on commit 055bdcf

Please sign in to comment.