Skip to content

Commit

Permalink
fix IG-based FHIR validation
Browse files Browse the repository at this point in the history
  • Loading branch information
unixoid committed Mar 16, 2024
1 parent 7e7002f commit 5f8edc3
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)));

Expand Down

0 comments on commit 5f8edc3

Please sign in to comment.