From ed0c388bbf274908a6970daa3fac55eed1cc5152 Mon Sep 17 00:00:00 2001 From: "dotasek.dev" Date: Fri, 2 Feb 2024 10:39:51 -0500 Subject: [PATCH] Add missing methods --- .../fhir/r5/hapi/ctx/HapiWorkerContext.java | 19 +++++++++++++++++ .../VersionSpecificWorkerContextWrapper.java | 21 +++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/hapi-fhir-structures-r5/src/main/java/org/hl7/fhir/r5/hapi/ctx/HapiWorkerContext.java b/hapi-fhir-structures-r5/src/main/java/org/hl7/fhir/r5/hapi/ctx/HapiWorkerContext.java index 4c5f01cfab0..e9062acd09d 100644 --- a/hapi-fhir-structures-r5/src/main/java/org/hl7/fhir/r5/hapi/ctx/HapiWorkerContext.java +++ b/hapi-fhir-structures-r5/src/main/java/org/hl7/fhir/r5/hapi/ctx/HapiWorkerContext.java @@ -284,6 +284,10 @@ public final class HapiWorkerContext extends I18nBase implements IWorkerContext } @Override + public void setExpansionParameters(Parameters expParameters) { + setExpansionProfile(expParameters); + } + public void setExpansionProfile(Parameters theExpParameters) { myExpansionProfile = theExpParameters; } @@ -616,4 +620,19 @@ public final class HapiWorkerContext extends I18nBase implements IWorkerContext public Set urlsForOid(boolean codeSystem, String oid) { throw new UnsupportedOperationException(Msg.code(2473)); } + + @Override + public T findTxResource(Class class_, String canonical, Resource sourceOfReference) { + throw new UnsupportedOperationException(Msg.code(2461)); + } + + @Override + public T findTxResource(Class class_, String canonical) { + throw new UnsupportedOperationException(Msg.code(2461)); + } + + @Override + public T findTxResource(Class class_, String canonical, String version) { + throw new UnsupportedOperationException(Msg.code(2461)); + } } diff --git a/hapi-fhir-validation/src/main/java/org/hl7/fhir/common/hapi/validation/validator/VersionSpecificWorkerContextWrapper.java b/hapi-fhir-validation/src/main/java/org/hl7/fhir/common/hapi/validation/validator/VersionSpecificWorkerContextWrapper.java index 969412418bc..0998e86abf8 100644 --- a/hapi-fhir-validation/src/main/java/org/hl7/fhir/common/hapi/validation/validator/VersionSpecificWorkerContextWrapper.java +++ b/hapi-fhir-validation/src/main/java/org/hl7/fhir/common/hapi/validation/validator/VersionSpecificWorkerContextWrapper.java @@ -26,6 +26,7 @@ import org.hl7.fhir.r5.model.CodeSystem; import org.hl7.fhir.r5.model.Coding; import org.hl7.fhir.r5.model.NamingSystem; import org.hl7.fhir.r5.model.PackageInformation; +import org.hl7.fhir.r5.model.Parameters; import org.hl7.fhir.r5.model.Resource; import org.hl7.fhir.r5.model.StructureDefinition; import org.hl7.fhir.r5.model.ValueSet; @@ -218,6 +219,11 @@ public class VersionSpecificWorkerContextWrapper extends I18nBase implements IWo } @Override + public void setExpansionParameters(Parameters expParameters) { + setExpansionProfile(expParameters); + } + + public void setExpansionProfile(org.hl7.fhir.r5.model.Parameters expParameters) { myExpansionProfile = expParameters; } @@ -806,6 +812,21 @@ public class VersionSpecificWorkerContextWrapper extends I18nBase implements IWo return null; } + @Override + public T findTxResource(Class class_, String canonical, Resource sourceOfReference) { + throw new UnsupportedOperationException(Msg.code(650)); + } + + @Override + public T findTxResource(Class class_, String canonical) { + throw new UnsupportedOperationException(Msg.code(650)); + } + + @Override + public T findTxResource(Class class_, String canonical, String version) { + throw new UnsupportedOperationException(Msg.code(650)); + } + public static ConceptValidationOptions convertConceptValidationOptions(ValidationOptions theOptions) { ConceptValidationOptions retVal = new ConceptValidationOptions(); if (theOptions.isGuessSystem()) {