Package org.hl7.fhir.r4.utils.validation
Interface IResourceValidator
public interface IResourceValidator
Interface to the instance validator. This takes a resource, in one of many
forms, and checks whether it is valid
- Author:
- Grahame Grieve
-
Method Summary
Modifier and TypeMethodDescriptionwhether the validator should enforce best practice guidelines as defined by various HL7 committeeshow much to check displays for coded elementswhether the resource must have an id or not (depends on context)boolean
Whether being unable to resolve a profile in found in Resource.meta.profile or ElementDefinition.type.profile or targetProfile is an error or just a warningboolean
boolean
boolean
boolean
void
setCheckDisplay
(CheckDisplayOption checkDisplay) void
setErrorForUnknownProfiles
(boolean errorForUnknownProfiles) setNoBindingMsgSuppressed
(boolean noBindingMsgSuppressed) setNoExtensibleWarnings
(boolean noExtensibleWarnings) setNoInvariantChecks
(boolean value) setNoTerminologyChecks
(boolean noTerminologyChecks) setPolicyAdvisor
(IValidationPolicyAdvisor advisor) void
setResourceIdRule
(IdStatus resourceIdRule) void
setValidationLanguage
(String value) validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, com.google.gson.JsonObject object) validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, com.google.gson.JsonObject object, String profile) validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, com.google.gson.JsonObject object, StructureDefinition profile) validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, com.google.gson.JsonObject object, ValidationProfileSet profiles) validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, InputStream stream, Manager.FhirFormat format) validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, InputStream stream, Manager.FhirFormat format, String profile) validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, InputStream stream, Manager.FhirFormat format, StructureDefinition profile) validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, InputStream stream, Manager.FhirFormat format, ValidationProfileSet profiles) void
validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element) Validate suite you can validate one of the following representations of resources: stream - provide a format - this is the preferred choice Use one of these two if the content is known to be valid XML/JSON, and already parsed - a DOM element or Document - a Json Object In order to use these, the content must already be parsed - e.g.void
validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, String profile) void
validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, StructureDefinition profile) void
validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, ValidationProfileSet profiles) validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Resource resource) validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Resource resource, String profile) validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Resource resource, StructureDefinition profile) validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Resource resource, ValidationProfileSet profiles) validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Document document) validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Document document, String profile) validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Document document, StructureDefinition profile) validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Document document, ValidationProfileSet profiles) validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element) validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, String profile) validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, StructureDefinition profile) validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, ValidationProfileSet profiles)
-
Method Details
-
getCheckDisplay
how much to check displays for coded elements -
setCheckDisplay
-
getResourceIdRule
whether the resource must have an id or not (depends on context) -
setResourceIdRule
-
getBestPracticeWarningLevel
whether the validator should enforce best practice guidelines as defined by various HL7 committees -
setBestPracticeWarningLevel
-
getFetcher
-
setFetcher
-
getPolicyAdvisor
-
setPolicyAdvisor
-
isNoBindingMsgSuppressed
boolean isNoBindingMsgSuppressed() -
setNoBindingMsgSuppressed
-
isNoInvariantChecks
boolean isNoInvariantChecks() -
setNoInvariantChecks
-
isNoTerminologyChecks
boolean isNoTerminologyChecks() -
setNoTerminologyChecks
-
isNoExtensibleWarnings
boolean isNoExtensibleWarnings() -
setNoExtensibleWarnings
-
isErrorForUnknownProfiles
boolean isErrorForUnknownProfiles()Whether being unable to resolve a profile in found in Resource.meta.profile or ElementDefinition.type.profile or targetProfile is an error or just a warning -
setErrorForUnknownProfiles
-
getValidationLanguage
-
setValidationLanguage
-
validate
void validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element) throws org.hl7.fhir.exceptions.FHIRException Validate suite you can validate one of the following representations of resources: stream - provide a format - this is the preferred choice Use one of these two if the content is known to be valid XML/JSON, and already parsed - a DOM element or Document - a Json Object In order to use these, the content must already be parsed - e.g. it must syntactically valid - a native resource - a elementmodel resource in addition, you can pass one or more profiles ti validate beyond the base standard - as structure definitions or canonical URLs- Throws:
IOException
org.hl7.fhir.exceptions.FHIRException
-
validate
void validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, ValidationProfileSet profiles) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
void validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, String profile) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
void validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, StructureDefinition profile) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, InputStream stream, Manager.FhirFormat format) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, InputStream stream, Manager.FhirFormat format, ValidationProfileSet profiles) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, InputStream stream, Manager.FhirFormat format, String profile) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, InputStream stream, Manager.FhirFormat format, StructureDefinition profile) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Resource resource) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Resource resource, ValidationProfileSet profiles) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Resource resource, String profile) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Resource resource, StructureDefinition profile) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, ValidationProfileSet profiles) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, String profile) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, StructureDefinition profile) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Document document) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Document document, ValidationProfileSet profiles) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Document document, String profile) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Document document, StructureDefinition profile) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, com.google.gson.JsonObject object) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, com.google.gson.JsonObject object, ValidationProfileSet profiles) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, com.google.gson.JsonObject object, String profile) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, com.google.gson.JsonObject object, StructureDefinition profile) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-