Interface ValidationService


public interface ValidationService
  • Method Summary

    Modifier and Type
    Method
    Description
    ca.uhn.fhir.validation.ValidationResult
    validate(org.hl7.fhir.r4.model.Resource resource)
    Validates against profiles self reported by the given resource.
    ca.uhn.fhir.validation.ValidationResult
    validate(org.hl7.fhir.r4.model.Resource resource, String profileUrl)
    Validates the given resource against the given profileUrl.
    org.hl7.fhir.r4.model.Bundle
    validateEntries(org.hl7.fhir.r4.model.Bundle bundle)
    Validates all bundle entries with a entry.resource against self reported profiles.
  • Method Details

    • validate

      ca.uhn.fhir.validation.ValidationResult validate(org.hl7.fhir.r4.model.Resource resource)
      Validates against profiles self reported by the given resource.
      Parameters:
      resource - not null
      Returns:
      validation results
    • validate

      ca.uhn.fhir.validation.ValidationResult validate(org.hl7.fhir.r4.model.Resource resource, String profileUrl)
      Validates the given resource against the given profileUrl.
      Parameters:
      resource - not null
      profileUrl - not null, not blank
      Returns:
      validation results
    • validateEntries

      org.hl7.fhir.r4.model.Bundle validateEntries(org.hl7.fhir.r4.model.Bundle bundle)
      Validates all bundle entries with a entry.resource against self reported profiles. Validation result is added as a OperationOutcome resource to the corresponding entry.response.outcome property.
      Parameters:
      bundle - not null
      Returns:
      given bundle with added entry.response.outcome properties