-
Notifications
You must be signed in to change notification settings - Fork 0
/
mimic-hosp-csv-to-fhir-server.json
276 lines (276 loc) · 10.9 KB
/
mimic-hosp-csv-to-fhir-server.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
{
"id" : "mimic-hosp-csv-to-fhir-server",
"name" : "mimic-hosp-csv-to-fhir-server",
"sourceSettings" : {
"source" : {
"jsonClass" : "FileSystemSourceSettings",
"name" : "MIMIC-IV v2.0",
"sourceUri" : "https://physionet.org/content/mimiciv/2.0",
"dataFolderPath" : "hdfs://master:9000/mimic-iv-data",
"asStream" : false
}
},
"sinkSettings" : {
"jsonClass" : "FileSystemSinkSettings",
"path" : "hdfs://178.251.45.193:9000/fhir.ndjson",
"numOfPartitions" : 1,
"options" : { }
},
"terminologyServiceSettings" : {
"jsonClass" : "LocalFhirTerminologyServiceSettings",
"folderPath" : "/C:/Users/srdc/IdeaProjects/dt4h/mimic/terminology-systems/terminology",
"conceptMapFiles" : [ {
"id" : "labitems-to-loinc.csv",
"name" : "labitems-to-loinc.csv",
"conceptMapUrl" : "https://github.com/srdc/mimic-iv-to-fhir/fhirmimic-hosp-csv-to-fhir-server.json/ConceptMap/labitems-to-loinc",
"sourceValueSetUrl" : "https://mimic.mit.edu/fhir/ValueSet/labitems",
"targetValueSetUrl" : "http://loinc.org/vs"
}, {
"id" : "labitem-coded-values-to-loinc.csv",
"name" : "labitem-coded-values-to-loinc.csv",
"conceptMapUrl" : "https://github.com/srdc/mimic-iv-to-fhir/fhir/ConceptMap/labitem-coded-values-to-other",
"sourceValueSetUrl" : "https://mimic.mit.edu/fhir/ValueSet/labitem-coded-values",
"targetValueSetUrl" : "https://github.com/srdc/mimic-iv-to-fhir/fhir/ValueSet/labitem-coded-values"
}, {
"id" : "admission-location-to-hl7.csv",
"name" : "admission-location-to-hl7.csv",
"conceptMapUrl" : "https://github.com/srdc/mimic-iv-to-fhir/fhir/ConceptMap/admission-location-to-hl7",
"sourceValueSetUrl" : "https://mimic.mit.edu/fhir/ValueSet/admission-locations",
"targetValueSetUrl" : "http://hl7.org/fhir/ValueSet/encounter-admit-source"
}, {
"id" : "discharge-location-to-hl7.csv",
"name" : "discharge-location-to-hl7.csv",
"conceptMapUrl" : "https://github.com/srdc/mimic-iv-to-fhir/fhir/ConceptMap/discharge-location-to-hl7",
"sourceValueSetUrl" : "https://mimic.mit.edu/fhir/ValueSet/discharge-locations",
"targetValueSetUrl" : "http://hl7.org/fhir/ValueSet/encounter-discharge-disposition"
}, {
"id" : "marital-status-to-hl7.csv",
"name" : "marital-status-to-hl7.csv",
"conceptMapUrl" : "https://github.com/srdc/mimic-iv-to-fhir/fhir/ConceptMap/marital-status-to-hl7",
"sourceValueSetUrl" : "https://mimic.mit.edu/fhir/ValueSet/marital-status",
"targetValueSetUrl" : "http://hl7.org/fhir/ValueSet/marital-status"
}, {
"id" : "race-to-hl7.csv",
"name" : "race-to-hl7.csv",
"conceptMapUrl" : "https://github.com/srdc/mimic-iv-to-fhir/fhir/ConceptMap/race-to-hl7",
"sourceValueSetUrl" : "https://mimic.mit.edu/fhir/ValueSet/race",
"targetValueSetUrl" : "http://terminology.hl7.org/ValueSet/v3-Race"
}, {
"id" : "medication-units-to-ucum-or-drugform.csv",
"name" : "medication-units-to-ucum-or-drugform.csv",
"conceptMapUrl" : "https://github.com/srdc/mimic-iv-to-fhir/fhir/ConceptMap/medication-units-to-ucum-or-drugform",
"sourceValueSetUrl" : "https://mimic.mit.edu/fhir/ValueSet/medication-form-units",
"targetValueSetUrl" : "https://github.com/srdc/mimic-iv-to-fhir/fhir/ValueSet/medication-units"
}, {
"id" : "medication-dose-to-orderable-drug-form.csv",
"name" : "medication-dose-to-orderable-drug-form.csv",
"conceptMapUrl" : "https://github.com/srdc/mimic-iv-to-fhir/fhir/ConceptMap/medication-dose-to-orderable-drug-form",
"sourceValueSetUrl" : "https://mimic.mit.edu/fhir/ValueSet/medication-dose-units",
"targetValueSetUrl" : "https://github.com/srdc/mimic-iv-to-fhir/fhir/ValueSet/medication-units"
}, {
"id" : "medication-route-codes-to-snomed.csv",
"name" : "medication-route-codes-to-snomed.csv",
"conceptMapUrl" : "https://github.com/srdc/mimic-iv-to-fhir/fhir/ConceptMap/medication-route-codes-to-snomed",
"sourceValueSetUrl" : "https://mimic.mit.edu/fhir/ValueSet/medication-route-codes",
"targetValueSetUrl" : "http://hl7.org/fhir/ValueSet/route-codes"
}, {
"id" : "careunits-to-hl7.csv",
"name" : "careunits-to-hl7.csv",
"conceptMapUrl" : "https://github.com/srdc/mimic-iv-to-fhir/fhir/ConceptMap/careunits-to-hl7",
"sourceValueSetUrl" : "https://mimic.mit.edu/fhir/ValueSet/care-units",
"targetValueSetUrl" : "https://github.com/srdc/mimic-iv-to-fhir/fhir/ValueSet/care-units"
}, {
"id" : "services-to-snomed.csv",
"name" : "services-to-snomed.csv",
"conceptMapUrl" : "https://github.com/srdc/mimic-iv-to-fhir/fhir/ConceptMap/services-to-snomed",
"sourceValueSetUrl" : "https://mimic.mit.edu/fhir/ValueSet/services",
"targetValueSetUrl" : "https://github.com/srdc/mimic-iv-to-fhir/fhir/ValueSet/services"
}, {
"id" : "order-types-to-snomed.csv",
"name" : "order-types-to-snomed.csv",
"conceptMapUrl" : "https://github.com/srdc/mimic-iv-to-fhir/fhir/ConceptMap/order-types-to-snomed",
"sourceValueSetUrl" : "https://mimic.mit.edu/fhir/ValueSet/order-types",
"targetValueSetUrl" : "https://github.com/srdc/mimic-iv-to-fhir/fhir/ValueSet/order-types"
}, {
"id" : "order-subtypes-to-snomed.csv",
"name" : "order-subtypes-to-snomed.csv",
"conceptMapUrl" : "https://github.com/srdc/mimic-iv-to-fhir/fhir/ConceptMap/order-subtypes-to-snomed",
"sourceValueSetUrl" : "https://mimic.mit.edu/fhir/ValueSet/order-subtypes",
"targetValueSetUrl" : "https://github.com/srdc/mimic-iv-to-fhir/fhir/ValueSet/order-subtypes"
} ],
"codeSystemFiles" : [ {
"id" : "labitems-code-system.csv",
"name" : "labitems-code-system.csv",
"codeSystem" : "https://mimic.mit.edu/fhir/CodeSystem/labitems"
}, {
"id" : "services.csv",
"name" : "services.csv",
"codeSystem" : "https://mimic.mit.edu/fhir/CodeSystem/services"
} ]
},
"mappings" : [ {
"mappingRef" : "https://mimic.mit.edu/fhir/mappings/admissions",
"sourceContext" : {
"services" : {
"jsonClass" : "FileSystemSource",
"path" : "hosp/services.csv",
"fileFormat" : "csv",
"options" : { }
},
"diagnoses" : {
"jsonClass" : "FileSystemSource",
"path" : "hosp/diagnoses_icd.csv",
"fileFormat" : "csv",
"options" : { }
},
"procedures" : {
"jsonClass" : "FileSystemSource",
"path" : "hosp/procedures_icd.csv",
"fileFormat" : "csv",
"options" : { }
},
"transfers" : {
"jsonClass" : "FileSystemSource",
"path" : "hosp/transfers.csv",
"fileFormat" : "csv",
"options" : { }
},
"admissions" : {
"jsonClass" : "FileSystemSource",
"path" : "hosp/admissions.csv",
"fileFormat" : "csv",
"options" : { }
}
}
}, {
"mappingRef" : "https://mimic.mit.edu/fhir/mappings/careunits",
"sourceContext" : {
"careunits" : {
"jsonClass" : "FileSystemSource",
"path" : "hosp/transfers.csv",
"fileFormat" : "csv",
"options" : { },
"preprocessSql" : "SELECT DISTINCT CU.careunit FROM careunits CU WHERE CU.careunit IS NOT NULL"
}
}
}, {
"mappingRef" : "https://mimic.mit.edu/fhir/mappings/diagnoses-icd",
"sourceContext" : {
"diagnoses" : {
"jsonClass" : "FileSystemSource",
"path" : "hosp/diagnoses_icd.csv",
"fileFormat" : "csv",
"options" : { }
},
"icdConceptMap" : {
"jsonClass" : "FileSystemSource",
"path" : "hosp/d_icd_diagnoses.csv",
"fileFormat" : "csv",
"options" : { }
}
}
}, {
"mappingRef" : "https://mimic.mit.edu/fhir/mappings/labevents",
"sourceContext" : {
"source" : {
"jsonClass" : "FileSystemSource",
"path" : "hosp/labevents.csv",
"fileFormat" : "csv",
"options" : { }
}
}
}, {
"mappingRef" : "https://mimic.mit.edu/fhir/mappings/medications",
"sourceContext" : {
"prescribed_meds" : {
"jsonClass" : "FileSystemSource",
"path" : "hosp/prescriptions.csv",
"fileFormat" : "csv",
"options" : { },
"preprocessSql" : "SELECT P.drug,P.gsn,P.ndc,P.formulary_drug_cd,first(P.prod_strength) as prod_strength,first(P.form_unit_disp) as form_unit_disp FROM prescribed_meds P GROUP BY P.drug, P.gsn, P.ndc, P.formulary_drug_cd"
}
}
}, {
"mappingRef" : "https://mimic.mit.edu/fhir/mappings/medications-without-rxn",
"sourceContext" : {
"prescribed_meds" : {
"jsonClass" : "FileSystemSource",
"path" : "hosp/prescriptions.csv",
"fileFormat" : "csv",
"options" : { },
"preprocessSql" : "SELECT P.drug,P.gsn,P.ndc,P.formulary_drug_cd,first(P.prod_strength) as prod_strength,first(P.form_unit_disp) as form_unit_disp FROM prescribed_meds P GROUP BY P.drug, P.gsn, P.ndc, P.formulary_drug_cd"
}
}
}, {
"mappingRef" : "https://mimic.mit.edu/fhir/mappings/microbiologyevents",
"sourceContext" : {
"microbiologyresults" : {
"jsonClass" : "FileSystemSource",
"path" : "hosp/microbiologyevents.csv",
"fileFormat" : "csv",
"options" : { }
}
}
}, {
"mappingRef" : "https://mimic.mit.edu/fhir/mappings/omr",
"sourceContext" : {
"source" : {
"jsonClass" : "FileSystemSource",
"path" : "hosp/omr.csv",
"fileFormat" : "csv",
"options" : { }
}
}
}, {
"mappingRef" : "https://mimic.mit.edu/fhir/mappings/patients",
"sourceContext" : {
"source" : {
"jsonClass" : "FileSystemSource",
"path" : "hosp/patients.csv",
"fileFormat" : "csv",
"options" : { }
}
}
}, {
"mappingRef" : "https://mimic.mit.edu/fhir/mappings/poe",
"sourceContext" : {
"source" : {
"jsonClass" : "FileSystemSource",
"path" : "hosp/poe.csv",
"fileFormat" : "csv",
"options" : { }
}
}
}, {
"mappingRef" : "https://mimic.mit.edu/fhir/mappings/prescriptions",
"sourceContext" : {
"source" : {
"jsonClass" : "FileSystemSource",
"path" : "hosp/prescriptions.csv",
"fileFormat" : "csv",
"options" : { }
}
}
}, {
"mappingRef" : "https://mimic.mit.edu/fhir/mappings/procedures-icd",
"sourceContext" : {
"procedures" : {
"jsonClass" : "FileSystemSource",
"path" : "hosp/procedures_icd.csv",
"fileFormat" : "csv",
"options" : { }
},
"icdConceptMap" : {
"jsonClass" : "FileSystemSource",
"path" : "hosp/d_icd_procedures.csv",
"fileFormat" : "csv",
"options" : { }
}
}
} ],
"dataProcessingSettings" : {
"saveErroneousRecords" : false,
"archiveMode" : "off"
},
"useFhirSinkAsIdentityService" : false
}