Class ChEmedEprHapiValidator

java.lang.Object
org.projecthusky.fhir.validation.impl.HuskyFhirValidatorImpl
org.projecthusky.fhir.emed.ch.epr.validator.ChEmedEprHapiValidator
All Implemented Interfaces:
ChEmedEprValidator, HuskyFhirValidator

public class ChEmedEprHapiValidator extends HuskyFhirValidatorImpl implements ChEmedEprValidator
A HAPI based implementation of the ChEmedEprValidator.
  • Constructor Details

    • ChEmedEprHapiValidator

      public ChEmedEprHapiValidator(ca.uhn.fhir.context.FhirContext context) throws IOException
      Creates an instance of an offline ChEmedEprValidator, that is, a validator that will not try to use external terminology services, and that uses HAPI's validation engine.
      Parameters:
      context - The FHIR context to be used.
      Throws:
      IOException - if the NPM packages can't be found in the classpath.
    • ChEmedEprHapiValidator

      public ChEmedEprHapiValidator(ca.uhn.fhir.context.FhirContext context, @Nullable String txServer) throws IOException
      Creates an instance of a HAPI based ChEmedEprValidator.
      Parameters:
      context - The FHIR context to be used.
      txServer - The URL of the terminology server to be used. If null or blank, no external terminology services will be used for validation.
      Throws:
      IOException - if the NPM packages can't be found in the classpath.
  • Method Details