Skip to content

Commit

Permalink
Added support for R4B
Browse files Browse the repository at this point in the history
  • Loading branch information
jkiddo committed Nov 13, 2022
1 parent a319c71 commit 9464189
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<hapi_version>6.2.0-PRE15-SNAPSHOT</hapi_version>
<hapi_version>6.2.0</hapi_version>
</properties>

<dependencies>
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/dk/jkiddo/EmberApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ private List<IBaseResource> loadExampleResources(NpmPackage npmPackage) {
if (org.hl7.fhir.r4.model.Bundle.class.isInstance(resource)) {
return ((org.hl7.fhir.r4.model.Bundle) resource).getTypeElement().getValue() == org.hl7.fhir.r4.model.Bundle.BundleType.SEARCHSET;
}
if (org.hl7.fhir.r4b.model.Bundle.class.isInstance(resource)) {
return ((org.hl7.fhir.r4b.model.Bundle) resource).getTypeElement().getValue() == org.hl7.fhir.r4b.model.Bundle.BundleType.SEARCHSET;
}
if (org.hl7.fhir.r5.model.Bundle.class.isInstance(resource)) {
return ((org.hl7.fhir.r5.model.Bundle) resource).getTypeElement().getValue() == org.hl7.fhir.r5.model.Bundle.BundleType.SEARCHSET;
}
Expand Down

0 comments on commit 9464189

Please sign in to comment.