Class FhirDefaultPolicyAdvisor

java.lang.Object
org.hl7.fhir.common.hapi.validation.validator.FhirDefaultPolicyAdvisor
All Implemented Interfaces:
org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor

public class FhirDefaultPolicyAdvisor extends Object implements org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor
Implementation of the base IValidationPolicyAdvisor. This is used as the default for all validation operations done within the core libraries, as without a default, it will ignore some validation operations.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor

    org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor.AdditionalBindingPurpose, org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor.CodedContentValidationAction, org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor.ElementValidationAction, org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor.ResourceValidationAction
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.hl7.fhir.r5.model.StructureDefinition>
    getImpliedProfilesForResource(org.hl7.fhir.r5.utils.validation.IResourceValidator validator, Object appContext, String stackPath, org.hl7.fhir.r5.model.ElementDefinition definition, org.hl7.fhir.r5.model.StructureDefinition structure, org.hl7.fhir.r5.elementmodel.Element resource, boolean valid, org.hl7.fhir.r5.utils.validation.IMessagingServices msgServices, List<org.hl7.fhir.utilities.validation.ValidationMessage> messages)
     
    org.hl7.fhir.r5.utils.validation.constants.ReferenceValidationPolicy
     
    boolean
    isSuppressMessageId(String path, String messageId)
     
    EnumSet<org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor.CodedContentValidationAction>
    policyForCodedContent(org.hl7.fhir.r5.utils.validation.IResourceValidator validator, Object appContext, String stackPath, org.hl7.fhir.r5.model.ElementDefinition definition, org.hl7.fhir.r5.model.StructureDefinition structure, org.hl7.fhir.r5.utils.validation.constants.BindingKind kind, org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor.AdditionalBindingPurpose purpose, org.hl7.fhir.r5.model.ValueSet valueSet, List<String> systems)
     
    org.hl7.fhir.r5.utils.validation.constants.ContainedReferenceValidationPolicy
    policyForContained(org.hl7.fhir.r5.utils.validation.IResourceValidator validator, Object appContext, org.hl7.fhir.r5.model.StructureDefinition structure, org.hl7.fhir.r5.model.ElementDefinition element, String containerType, String containerId, org.hl7.fhir.r5.elementmodel.Element.SpecialElement containingResourceType, String path, String url)
     
    EnumSet<org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor.ElementValidationAction>
    policyForElement(org.hl7.fhir.r5.utils.validation.IResourceValidator validator, Object appContext, org.hl7.fhir.r5.model.StructureDefinition structure, org.hl7.fhir.r5.model.ElementDefinition element, String path)
     
    org.hl7.fhir.r5.utils.validation.constants.ReferenceValidationPolicy
    policyForReference(org.hl7.fhir.r5.utils.validation.IResourceValidator validator, Object appContext, String path, String url)
     
    EnumSet<org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor.ResourceValidationAction>
    policyForResource(org.hl7.fhir.r5.utils.validation.IResourceValidator validator, Object appContext, org.hl7.fhir.r5.model.StructureDefinition type, String path)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • policyForReference

      public org.hl7.fhir.r5.utils.validation.constants.ReferenceValidationPolicy policyForReference(org.hl7.fhir.r5.utils.validation.IResourceValidator validator, Object appContext, String path, String url)
      Specified by:
      policyForReference in interface org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor
    • policyForResource

      public EnumSet<org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor.ResourceValidationAction> policyForResource(org.hl7.fhir.r5.utils.validation.IResourceValidator validator, Object appContext, org.hl7.fhir.r5.model.StructureDefinition type, String path)
      Specified by:
      policyForResource in interface org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor
    • policyForElement

      public EnumSet<org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor.ElementValidationAction> policyForElement(org.hl7.fhir.r5.utils.validation.IResourceValidator validator, Object appContext, org.hl7.fhir.r5.model.StructureDefinition structure, org.hl7.fhir.r5.model.ElementDefinition element, String path)
      Specified by:
      policyForElement in interface org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor
    • policyForContained

      public org.hl7.fhir.r5.utils.validation.constants.ContainedReferenceValidationPolicy policyForContained(org.hl7.fhir.r5.utils.validation.IResourceValidator validator, Object appContext, org.hl7.fhir.r5.model.StructureDefinition structure, org.hl7.fhir.r5.model.ElementDefinition element, String containerType, String containerId, org.hl7.fhir.r5.elementmodel.Element.SpecialElement containingResourceType, String path, String url)
      Specified by:
      policyForContained in interface org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor
    • policyForCodedContent

      public EnumSet<org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor.CodedContentValidationAction> policyForCodedContent(org.hl7.fhir.r5.utils.validation.IResourceValidator validator, Object appContext, String stackPath, org.hl7.fhir.r5.model.ElementDefinition definition, org.hl7.fhir.r5.model.StructureDefinition structure, org.hl7.fhir.r5.utils.validation.constants.BindingKind kind, org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor.AdditionalBindingPurpose purpose, org.hl7.fhir.r5.model.ValueSet valueSet, List<String> systems)
      Specified by:
      policyForCodedContent in interface org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor
    • getImpliedProfilesForResource

      public List<org.hl7.fhir.r5.model.StructureDefinition> getImpliedProfilesForResource(org.hl7.fhir.r5.utils.validation.IResourceValidator validator, Object appContext, String stackPath, org.hl7.fhir.r5.model.ElementDefinition definition, org.hl7.fhir.r5.model.StructureDefinition structure, org.hl7.fhir.r5.elementmodel.Element resource, boolean valid, org.hl7.fhir.r5.utils.validation.IMessagingServices msgServices, List<org.hl7.fhir.utilities.validation.ValidationMessage> messages)
      Specified by:
      getImpliedProfilesForResource in interface org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor
    • isSuppressMessageId

      public boolean isSuppressMessageId(String path, String messageId)
      Specified by:
      isSuppressMessageId in interface org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor
    • getReferencePolicy

      public org.hl7.fhir.r5.utils.validation.constants.ReferenceValidationPolicy getReferencePolicy()
      Specified by:
      getReferencePolicy in interface org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor