Skip to content

Commit

Permalink
FML transform performance tuning #264
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveregger committed Oct 16, 2024
1 parent c35274e commit 7d4e4b1
Show file tree
Hide file tree
Showing 8 changed files with 1,924 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Unreleased
- Terminology: support CodeableConcept in ValueSet/$validate operation [#291](https://github.com/ahdis/matchbox/issues/291)
- Upgrade hapifhir org.hl7.fhir.core to 6.3.32
- FML: Use FMLParser in StructureMapUtilities and support for identity transform [#289](https://github.com/ahdis/matchbox/issues/289)
- FML: FML transform performance tuning #264 (via @mrunibe)

2024/10/07 Release 3.9.3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import java.util.List;

import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.conformance.profile.ProfileUtilities;
import org.hl7.fhir.r5.context.IWorkerContext;
import org.hl7.fhir.r5.elementmodel.Manager;
import org.hl7.fhir.r5.model.Base;
Expand All @@ -42,8 +43,9 @@ public TransformSupportServices(IWorkerContext worker, List<Base> outputs) {
this.outputs = outputs;
}

// matchbox patch https://github.com/ahdis/matchbox/issues/264
@Override
public Base createType(Object appInfo, String name) throws FHIRException {
public Base createType(Object appInfo, String name, ProfileUtilities profileUtilities) throws FHIRException {
StructureDefinition sd = context.fetchResource(StructureDefinition.class, name);
if (sd == null) {
if (Utilities.existsInList(name, "http://hl7.org/fhirpath/System.String")) {
Expand All @@ -53,7 +55,7 @@ public Base createType(Object appInfo, String name) throws FHIRException {
if (sd == null) {
throw new FHIRException("Unable to create type "+name);
}
return Manager.build(context, sd);
return Manager.build(context, sd, profileUtilities);
}

@Override
Expand Down
Loading

0 comments on commit 7d4e4b1

Please sign in to comment.