Skip to content

Commit

Permalink
fix IG-based FHIR validation
Browse files Browse the repository at this point in the history
unixoid committed Mar 16, 2024
1 parent 297a7aa commit 04a5728
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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;
@@ -51,6 +48,7 @@ public static FhirContext getContext(FhirContext fhirContext, String... igResour

var validationSupport = new CachingValidationSupport(new ValidationSupportChain(
npmValidationSupport,
new CommonCodeSystemsTerminologyService(fhirContext),
new DefaultProfileValidationSupport(fhirContext),
new InMemoryTerminologyServerValidationSupport(fhirContext)));

0 comments on commit 04a5728

Please sign in to comment.