Release new version
This commit is contained in:
parent
d520d35426
commit
7a9bdd0cfc
|
@ -808,6 +808,7 @@ public class Mimic14Importer {
|
||||||
bnd.setTimestamp(date);
|
bnd.setTimestamp(date);
|
||||||
csv.readHeaders();
|
csv.readHeaders();
|
||||||
int t = 0;
|
int t = 0;
|
||||||
|
int fc = 1;
|
||||||
while (csv.line()) {
|
while (csv.line()) {
|
||||||
t++;
|
t++;
|
||||||
Patient pat = patients.get(csv.cell("subject_id"));
|
Patient pat = patients.get(csv.cell("subject_id"));
|
||||||
|
@ -853,11 +854,19 @@ public class Mimic14Importer {
|
||||||
obs.addPerformer().setReference("PractitionerRole/"+prr.getId());
|
obs.addPerformer().setReference("PractitionerRole/"+prr.getId());
|
||||||
|
|
||||||
bnd.addEntry().setResource(obs);
|
bnd.addEntry().setResource(obs);
|
||||||
|
if (bnd.getEntry().size() > 100000) {
|
||||||
|
new JsonParser().setOutputStyle(OutputStyle.PRETTY).compose(new FileOutputStream(Utilities.changeFileExt(dest, ""+Integer.toString(fc)+".json")), bnd);
|
||||||
|
fc++;
|
||||||
|
bnd = new Bundle();
|
||||||
|
bnd.setId("chart-events");
|
||||||
|
bnd.setType(BundleType.COLLECTION);
|
||||||
|
bnd.setTimestamp(date);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
System.out.println(Integer.toString(t)+" found");
|
System.out.println(Integer.toString(t)+" found");
|
||||||
csv.close();
|
csv.close();
|
||||||
new JsonParser().setOutputStyle(OutputStyle.PRETTY).compose(new FileOutputStream(dest), bnd);
|
new JsonParser().setOutputStyle(OutputStyle.PRETTY).compose(new FileOutputStream(Utilities.changeFileExt(dest, ""+Integer.toString(fc)+".json")), bnd);
|
||||||
}
|
}
|
||||||
|
|
||||||
private Coding loincCoding(String loinc) {
|
private Coding loincCoding(String loinc) {
|
||||||
|
|
Loading…
Reference in New Issue