-
Notifications
You must be signed in to change notification settings - Fork 658
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
229 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"name": "keep_diabetes_no_dr", | ||
"remarks": [ | ||
"A blank module" | ||
], | ||
"states": { | ||
"Initial": { | ||
"type": "Initial", | ||
"conditional_transition": [ | ||
{ | ||
"transition": "Keep", | ||
"condition": { | ||
"condition_type": "And", | ||
"conditions": [ | ||
{ | ||
"condition_type": "Active Condition", | ||
"codes": [ | ||
{ | ||
"system": "SNOMED-CT", | ||
"code": 44054006, | ||
"display": "Diabetes mellitus type 2 (disorder)" | ||
} | ||
] | ||
}, | ||
{ | ||
"condition_type": "Not", | ||
"condition": { | ||
"condition_type": "Active Condition", | ||
"codes": [ | ||
{ | ||
"system": "SNOMED-CT", | ||
"code": "1551000119108", | ||
"display": "Nonproliferative diabetic retinopathy due to type 2 diabetes mellitus (disorder)" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"transition": "Terminal" | ||
} | ||
] | ||
}, | ||
"Terminal": { | ||
"type": "Terminal" | ||
}, | ||
"Keep": { | ||
"type": "Terminal" | ||
} | ||
}, | ||
"gmf_version": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"name": "Generated Keep Module", | ||
"states": { | ||
"Initial": { | ||
"type": "Initial", | ||
"name": "Initial", | ||
"conditional_transition": [ | ||
{ | ||
"transition": "Keep", | ||
"condition": { | ||
"condition_type": "Active Condition", | ||
"codes": [ | ||
{ | ||
"system": "SNOMED-CT", | ||
"code": "1551000119108", | ||
"display": "Nonproliferative diabetic retinopathy due to type 2 diabetes mellitus (disorder)" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"transition": "Terminal" | ||
} | ||
] | ||
}, | ||
"Terminal": { | ||
"type": "Terminal", | ||
"name": "Terminal" | ||
}, | ||
"Keep": { | ||
"type": "Terminal", | ||
"name": "Keep" | ||
} | ||
}, | ||
"gmf_version": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"name": "keep_npdr_no_pdr", | ||
"remarks": [ | ||
"A blank module" | ||
], | ||
"states": { | ||
"Initial": { | ||
"type": "Initial", | ||
"conditional_transition": [ | ||
{ | ||
"transition": "Keep", | ||
"condition": { | ||
"condition_type": "And", | ||
"conditions": [ | ||
{ | ||
"condition_type": "Active Condition", | ||
"codes": [ | ||
{ | ||
"system": "SNOMED-CT", | ||
"code": "1551000119108", | ||
"display": "Nonproliferative diabetic retinopathy due to type 2 diabetes mellitus (disorder)" | ||
} | ||
] | ||
}, | ||
{ | ||
"condition_type": "Not", | ||
"condition": { | ||
"condition_type": "Active Condition", | ||
"codes": [ | ||
{ | ||
"system": "SNOMED-CT", | ||
"code": "1501000119109", | ||
"display": "Proliferative diabetic retinopathy due to type II diabetes mellitus (disorder)" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"transition": "Terminal" | ||
} | ||
] | ||
}, | ||
"Terminal": { | ||
"type": "Terminal" | ||
}, | ||
"Keep": { | ||
"type": "Terminal" | ||
} | ||
}, | ||
"gmf_version": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"name": "Generated Keep Module", | ||
"states": { | ||
"Initial": { | ||
"type": "Initial", | ||
"name": "Initial", | ||
"conditional_transition": [ | ||
{ | ||
"transition": "Keep", | ||
"condition": { | ||
"condition_type": "Active Condition", | ||
"codes": [ | ||
{ | ||
"system": "SNOMED-CT", | ||
"code": "1501000119109", | ||
"display": "Proliferative diabetic retinopathy due to type II diabetes mellitus (disorder)" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"transition": "Terminal" | ||
} | ||
] | ||
}, | ||
"Terminal": { | ||
"type": "Terminal", | ||
"name": "Terminal" | ||
}, | ||
"Keep": { | ||
"type": "Terminal", | ||
"name": "Keep" | ||
} | ||
}, | ||
"gmf_version": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
|
||
basedir=`pwd` | ||
|
||
#./run_synthea -p 10 -a 55-70 -k keep_diabetes.json -fm src/test/resources/flexporter/eyes_on_fhir.yaml | ||
# pre-processed files are now in ./output | ||
|
||
cd src/main/python/coherent-data/ | ||
source ./venv/bin/activate | ||
|
||
./venv/bin/python associate_images.py ${basedir}/images/fundus_index.csv ${basedir}/images/oct_index.csv ${basedir}/output/fhir --clean --output ${basedir}/coherent_eyes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule coherent-data
added at
9dac1f