Interface ChEmedEprValidator

All Superinterfaces:
HuskyFhirValidator
All Known Implementing Classes:
ChEmedEprHapiValidator

public interface ChEmedEprValidator extends HuskyFhirValidator
A CH-EMED-EPR validator. It doesn't use the Schema or Schematron validators but only the Instance one, which is built upon the CH-EMED-EPR IG.

This interface should be independent of the actual validation engine being used. Engine-specific implementations of this interface should cover their specifics.

Author:
Quentin Ligier
  • Field Details

    • packageResourceList

      static final List<String> packageResourceList
  • Method Details

    • validateDocumentBundle

      ValidationResult validateDocumentBundle(InputStream documentStream, ChEmedEprDocument document) throws IOException
      Validates a CH-EMED-EPR document Bundle AND performs a logic validation of the content as well.
      Parameters:
      documentStream - The document Bundle to validate as a stream.
      document - The parsed CH EMED EPR document, for the logic validator.
      Returns:
      the validation result.
      Throws:
      IOException
      Implementation Note:
      We need the parsed document for the logical validator and the serialized document for the instance validator, because HAPI's parser messes with resource IDs.
    • getProfileUrl

      @Deprecated(since="3.2.2", forRemoval=true) static String getProfileUrl(EmedDocumentType type)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Deprecated and marked for removal since Husky 3.2.2. Use
      invalid reference
      EmedDocumentType#getProfileEpr()
      instead.
      Returns the profile URL from the eMed type.
      Parameters:
      type - The eMed type.
      Returns:
      the profile URL.