From 5f8edc3dfa5d0bb40fd67e3304749c881f643c64 Mon Sep 17 00:00:00 2001 From: Dmytro Rud Date: Sat, 16 Mar 2024 20:42:54 +0100 Subject: [PATCH] fix IG-based FHIR validation --- .../ipf/commons/ihe/fhir/IgBasedFhirContextSupplier.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/commons/ihe/fhir/core/src/main/java/org/openehealth/ipf/commons/ihe/fhir/IgBasedFhirContextSupplier.java b/commons/ihe/fhir/core/src/main/java/org/openehealth/ipf/commons/ihe/fhir/IgBasedFhirContextSupplier.java index b0cf2bfeed..a9c2f7040d 100644 --- a/commons/ihe/fhir/core/src/main/java/org/openehealth/ipf/commons/ihe/fhir/IgBasedFhirContextSupplier.java +++ b/commons/ihe/fhir/core/src/main/java/org/openehealth/ipf/commons/ihe/fhir/IgBasedFhirContextSupplier.java @@ -20,10 +20,7 @@ import ca.uhn.fhir.context.support.DefaultProfileValidationSupport; import ca.uhn.fhir.validation.FhirValidator; import lombok.experimental.UtilityClass; -import org.hl7.fhir.common.hapi.validation.support.CachingValidationSupport; -import org.hl7.fhir.common.hapi.validation.support.InMemoryTerminologyServerValidationSupport; -import org.hl7.fhir.common.hapi.validation.support.NpmPackageValidationSupport; -import org.hl7.fhir.common.hapi.validation.support.ValidationSupportChain; +import org.hl7.fhir.common.hapi.validation.support.*; import org.hl7.fhir.common.hapi.validation.validator.FhirInstanceValidator; import java.io.IOException; @@ -46,6 +43,7 @@ public static FhirContext getContext(FhirContext fhirContext, String... igResour CachingValidationSupport validationSupport = new CachingValidationSupport(new ValidationSupportChain( npmValidationSupport, + new CommonCodeSystemsTerminologyService(fhirContext), new DefaultProfileValidationSupport(fhirContext), new InMemoryTerminologyServerValidationSupport(fhirContext)));