Interface HuskyFhirValidator

All Known Subinterfaces:
ChEmedEprValidator
All Known Implementing Classes:
ChEmedEprHapiValidator, ChVacdValidator, HuskyFhirValidatorImpl

public interface HuskyFhirValidator
  • Method Summary

    Modifier and Type
    Method
    Description
    org.slf4j.Logger
    Gets the class logger.
    mapIssue(org.hl7.fhir.r4.model.OperationOutcome.OperationOutcomeIssueComponent component)
    Maps an OperationOutcome issue to Husky's own model of a validation issue.
    toHuskyValidationResult(org.hl7.fhir.r4.model.OperationOutcome operationOutcome)
    Translates a FHIR operation outcome to a Husky validation result.
    validateDocumentBundle(org.hl7.fhir.r4.model.Bundle bundle, String profile)
    Validates a document Bundle.
    validateResource(org.hl7.fhir.instance.model.api.IBaseResource resource, String profile)
     
  • Method Details

    • validateDocumentBundle

      ValidationResult validateDocumentBundle(org.hl7.fhir.r4.model.Bundle bundle, String profile) throws IOException
      Validates a document Bundle. No logic validation is performed on the content.
      Parameters:
      bundle - The document Bundle to be validated.
      profile - The profile to match the bundle against.
      Returns:
      the validation result.
      Throws:
      IOException
    • validateResource

      ValidationResult validateResource(org.hl7.fhir.instance.model.api.IBaseResource resource, String profile) throws IOException
      Throws:
      IOException
    • getLog

      org.slf4j.Logger getLog()
      Gets the class logger.
    • mapIssue

      static ValidationIssue mapIssue(org.hl7.fhir.r4.model.OperationOutcome.OperationOutcomeIssueComponent component)
      Maps an OperationOutcome issue to Husky's own model of a validation issue.
      Parameters:
      component - The FHIR operation outcome issue.
      Returns:
      The translated Husky validation issue.
    • toHuskyValidationResult

      static ValidationResult toHuskyValidationResult(org.hl7.fhir.r4.model.OperationOutcome operationOutcome)
      Translates a FHIR operation outcome to a Husky validation result.