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
void
setCheckDisplay
(CheckDisplayOption checkDisplay) void
setErrorForUnknownProfiles
(boolean errorForUnknownProfiles) setNoBindingMsgSuppressed
(boolean noBindingMsgSuppressed) setNoInvariantChecks
(boolean value) setNoTerminologyChecks
(boolean noTerminologyChecks) setPolicyAdvisor
(IValidationPolicyAdvisor advisor) void
setResourceIdRule
(IdStatus resourceIdRule) 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) Deprecated.validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, com.google.gson.JsonObject object, StructureDefinition profile) Deprecated.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) Deprecated.validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, InputStream stream, Manager.FhirFormat format, StructureDefinition profile) Deprecated.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) Deprecated.void
validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, StructureDefinition profile) Deprecated.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) Deprecated.validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Resource resource, StructureDefinition profile) Deprecated.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) Deprecated.validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Document document, StructureDefinition profile) Deprecated.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) Deprecated.validate
(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, StructureDefinition profile) Deprecated.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- Returns:
-
setCheckDisplay
-
getResourceIdRule
whether the resource must have an id or not (depends on context)- Returns:
-
setResourceIdRule
-
getBasePracticeWarningLevel
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
-
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- Returns:
-
setErrorForUnknownProfiles
-
validate
void validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element) throws org.hl7.fhir.exceptions.FHIRException, IOException 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, IOException - Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
validate
@Deprecated void validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, String profile) throws org.hl7.fhir.exceptions.FHIRException, IOException Deprecated.- Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
validate
@Deprecated void validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, StructureDefinition profile) throws org.hl7.fhir.exceptions.FHIRException, IOException Deprecated.- Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, InputStream stream, Manager.FhirFormat format) throws org.hl7.fhir.exceptions.FHIRException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
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, IOException - Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
validate
@Deprecated 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, IOException Deprecated.- Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
validate
@Deprecated 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, IOException Deprecated.- Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Resource resource) throws org.hl7.fhir.exceptions.FHIRException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Resource resource, ValidationProfileSet profiles) throws org.hl7.fhir.exceptions.FHIRException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
validate
@Deprecated Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Resource resource, String profile) throws org.hl7.fhir.exceptions.FHIRException, IOException Deprecated.- Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
validate
@Deprecated Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Resource resource, StructureDefinition profile) throws org.hl7.fhir.exceptions.FHIRException, IOException Deprecated.- Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element) throws org.hl7.fhir.exceptions.FHIRException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, ValidationProfileSet profiles) throws org.hl7.fhir.exceptions.FHIRException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
validate
@Deprecated Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, String profile) throws org.hl7.fhir.exceptions.FHIRException, IOException Deprecated.- Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
validate
@Deprecated Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, StructureDefinition profile) throws org.hl7.fhir.exceptions.FHIRException, IOException Deprecated.- Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Document document) throws org.hl7.fhir.exceptions.FHIRException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Document document, ValidationProfileSet profiles) throws org.hl7.fhir.exceptions.FHIRException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
validate
@Deprecated Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Document document, String profile) throws org.hl7.fhir.exceptions.FHIRException, IOException Deprecated.- Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
validate
@Deprecated Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Document document, StructureDefinition profile) throws org.hl7.fhir.exceptions.FHIRException, IOException Deprecated.- Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
validate
Element validate(Object Context, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, com.google.gson.JsonObject object) throws org.hl7.fhir.exceptions.FHIRException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
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, IOException - Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
validate
@Deprecated 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, IOException Deprecated.- Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
validate
@Deprecated 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, IOException Deprecated.- Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-