use of org.hl7.fhir.dstu3.model.Encounter.EncounterStatus.FINISHED in project org.hl7.fhir.core by hapifhir.
the class BatchLoader method LoadDirectory.
private static void LoadDirectory(String server, String folder, int size) throws IOException, Exception {
System.out.print("Connecting to " + server + ".. ");
FHIRToolingClient client = new FHIRToolingClient(server, "fhir/batch-loader");
System.out.println("Done");
IniFile ini = new IniFile(Utilities.path(folder, "batch-load-progress.ini"));
for (File f : new File(folder).listFiles()) {
if (f.getName().endsWith(".json") || f.getName().endsWith(".xml")) {
if (!ini.getBooleanProperty("finished", f.getName())) {
sendFile(client, f, size, ini);
}
}
}
}
Aggregations