Skip to content

Commit

Permalink
do not add Binary resources which are not really Binary HL7#910
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveregger committed Jun 18, 2024
1 parent 0de3005 commit 7376280
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ private List<String> fixedFileTypes() {
}

private void addFile(List<FetchedFile> res, File f, org.hl7.fhir.r5.elementmodel.Element e, String cnt) throws IOException {
if (!e.fhirType().equals("ImplementationGuide")) {
if (!e.fhirType().equals("ImplementationGuide") && !(f.getName().startsWith("Binary") && !"Binary".equals(e.fhirType()))) {
addFile(res, f, cnt);
}
}
Expand Down

0 comments on commit 7376280

Please sign in to comment.