Skip to content

Commit 055bdcf

Browse files
authored
Merge pull request #1314 from synthetichealth/esrd
Resolve weirdness of ESRD diagnosis and transplant interaction
2 parents 65c0808 + f55e1ca commit 055bdcf

File tree

2 files changed

+28
-40
lines changed

2 files changed

+28
-40
lines changed

src/main/resources/modules/kidney_transplant.json

+28-6
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,7 @@
139139
"display": "Chronic kidney disease stage 3 (disorder)"
140140
}
141141
],
142-
"direct_transition": "End_CKD_4_or_5"
143-
},
144-
"End_CKD_4_or_5": {
145-
"type": "ConditionEnd",
146-
"direct_transition": "Begin Post Surgical Stay",
147-
"referenced_by_attribute": "dialysis_reason"
142+
"direct_transition": "End_CKD_4"
148143
},
149144
"Medication Review": {
150145
"type": "Procedure",
@@ -2129,6 +2124,33 @@
21292124
"display": "Renal dysplasia (disorder)"
21302125
}
21312126
]
2127+
},
2128+
"End_CKD_4": {
2129+
"type": "ConditionEnd",
2130+
"codes": [
2131+
{
2132+
"system": "SNOMED-CT",
2133+
"code": 431857002,
2134+
"display": "Chronic kidney disease stage 4 (disorder)"
2135+
}
2136+
],
2137+
"direct_transition": "End_End_Stage_Renal_Disease"
2138+
},
2139+
"End_End_Stage_Renal_Disease": {
2140+
"type": "ConditionEnd",
2141+
"codes": [
2142+
{
2143+
"system": "SNOMED-CT",
2144+
"code": "46177005",
2145+
"display": "End-stage renal disease (disorder)"
2146+
}
2147+
],
2148+
"direct_transition": "End any other dialysis reason"
2149+
},
2150+
"End any other dialysis reason": {
2151+
"type": "ConditionEnd",
2152+
"direct_transition": "Begin Post Surgical Stay",
2153+
"referenced_by_attribute": "dialysis_reason"
21322154
}
21332155
},
21342156
"gmf_version": 2

src/main/resources/modules/metabolic_syndrome/kidney_conditions.json

-34
Original file line numberDiff line numberDiff line change
@@ -2113,29 +2113,6 @@
21132113
},
21142114
"transition": "Diagnose_End_Stage_Renal_Disease"
21152115
},
2116-
{
2117-
"condition": {
2118-
"condition_type": "And",
2119-
"conditions": [
2120-
{
2121-
"condition_type": "Attribute",
2122-
"attribute": "kidney_transplant",
2123-
"operator": "is not nil"
2124-
},
2125-
{
2126-
"condition_type": "Active Condition",
2127-
"codes": [
2128-
{
2129-
"system": "SNOMED-CT",
2130-
"code": "46177005",
2131-
"display": "End-stage renal disease (disorder)"
2132-
}
2133-
]
2134-
}
2135-
]
2136-
},
2137-
"transition": "End_End_Stage_Renal_Disease"
2138-
},
21392116
{
21402117
"transition": "Terminal"
21412118
}
@@ -2153,17 +2130,6 @@
21532130
"direct_transition": "Record_MetabolicPanel_5",
21542131
"assign_to_attribute": "dialysis_reason"
21552132
},
2156-
"End_End_Stage_Renal_Disease": {
2157-
"type": "ConditionEnd",
2158-
"codes": [
2159-
{
2160-
"system": "SNOMED-CT",
2161-
"code": "46177005",
2162-
"display": "End-stage renal disease (disorder)"
2163-
}
2164-
],
2165-
"direct_transition": "Terminal"
2166-
},
21672133
"Terminal": {
21682134
"type": "Terminal"
21692135
}

0 commit comments

Comments
 (0)