Skip to content

Commit

Permalink
fill in an obvious TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
dehall committed Nov 8, 2023
1 parent 5eb4b14 commit bea1b81
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/main/java/RunFlexporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,17 @@ private static void convertFhir(File mappingFile, File igDirectory, File sourceF

IParser parser = FhirR4.getContext().newJsonParser().setPrettyPrint(true);

Check warning on line 133 in src/main/java/RunFlexporter.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/RunFlexporter.java#L133

Added line #L133 was not covered by tests

if (sourceFhir.isDirectory()) {
handleFile(sourceFhir, mapping, parser);
}

Check warning on line 136 in src/main/java/RunFlexporter.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/RunFlexporter.java#L135-L136

Added lines #L135 - L136 were not covered by tests

// TODO
private static void handleFile(File sourceFhir, Mapping mapping, IParser parser)
throws IOException {
if (sourceFhir.isDirectory()) {
for (File subfile : sourceFhir.listFiles()) {
if (subfile.isDirectory() || subfile.getName().endsWith(".json")) {
handleFile(subfile, mapping, parser);

Check warning on line 143 in src/main/java/RunFlexporter.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/RunFlexporter.java#L143

Added line #L143 was not covered by tests
}
}

} else {
String fhirJson = new String(Files.readAllBytes(sourceFhir.toPath()));
Expand Down

0 comments on commit bea1b81

Please sign in to comment.