forked from synthetichealth/synthea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
must_have_cabg.json
54 lines (54 loc) · 1.76 KB
/
must_have_cabg.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"name": "must_have_cabg",
"remarks": [
"A blank module"
],
"states": {
"Initial": {
"type": "Initial",
"conditional_transition": [
{
"transition": "Keep",
"condition": {
"condition_type": "Or",
"conditions": [
{
"condition_type": "Active Condition",
"codes": [
{
"system": "SNOMED-CT",
"code": 232717009,
"display": "Coronary artery bypass grafting (procedure)"
}
]
},
{
"condition_type": "Active Condition",
"codes": [
{
"system": "SNOMED-CT",
"code": 418824004,
"display": "Off-pump coronary artery bypass (procedure)"
}
]
}
]
}
},
{
"transition": "Terminal"
}
],
"remarks": [
"This approach uses a trick of how Synthea health records and logic work. When a patient has an active condition, the code and HealthRecord.entry are added to a map called \"present\". When the condition ends, they are removed from the map. The \"Active Condition\" logic checks for the existence of the given code in that map. The trick here is that procedures are also added to that \"present\" map, and are never removed, so we can use an \"Active Condition\" to check if the procedure code is in that map, and get around the fact that there's no \"Procedure Performed\" logic."
]
},
"Terminal": {
"type": "Terminal"
},
"Keep": {
"type": "Terminal"
}
},
"gmf_version": 2
}