Interface IResourceValidator
public interface IResourceValidator
-
Method Summary
Modifier and TypeMethodDescriptionhow much to check displays for coded elementswhether the resource must have an id or not (depends on context)void
void
setCheckDisplay
(CheckDisplayOption checkDisplay) how much to check displays for coded elementsvoid
setResourceIdRule
(IdStatus resourceIdRule) List
<org.hl7.fhir.utilities.validation.ValidationMessage> validate
(com.google.gson.JsonObject object) Given a DOM element, return a list of errors in the resource @- if the underlying infrastructure fails (not if the resource is invalid)List
<org.hl7.fhir.utilities.validation.ValidationMessage> Given a DOM element, return a list of errors in the resource with regard to the specified profile (by logical identifier) @- if the underlying infrastructure fails, or the profile can't be found (not if the resource is invalid)List
<org.hl7.fhir.utilities.validation.ValidationMessage> validate
(com.google.gson.JsonObject object, StructureDefinition profile) Given a DOM element, return a list of errors in the resource with regard to the specified profile (by logical identifier) @- if the underlying infrastructure fails, or the profile can't be found (not if the resource is invalid)void
validate
(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, com.google.gson.JsonObject object) Given a JSON Object, return a list of errors in the resource @- if the underlying infrastructure fails (not if the resource is invalid)void
validate
(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, com.google.gson.JsonObject object, String profile) Given a DOM element, return a list of errors in the resource with regard to the specified profile @- if the underlying infrastructure fails (not if the resource is invalid)void
validate
(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, com.google.gson.JsonObject object, StructureDefinition profile) Given a DOM element, return a list of errors in the resource with regard to the specified profile @- if the underlying infrastructure fails (not if the resource is invalid)void
Given a DOM document, return a list of errors in the resource @- if the underlying infrastructure fails (not if the resource is invalid)void
validate
(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Document document, String profile) Given a DOM document, return a list of errors in the resource with regard to the specified profile (by logical identifier) @- if the underlying infrastructure fails, or the profile can't be found (not if the resource is invalid)void
validate
(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Document document, StructureDefinition profile) Given a DOM document, return a list of errors in the resource with regard to the specified profile @- if the underlying infrastructure fails (not if the resource is invalid)void
Given a DOM element, return a list of errors in the resource @- if the underlying infrastructure fails (not if the resource is invalid)void
validate
(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, String profile) Given a DOM element, return a list of errors in the resource with regard to the specified profile (by logical identifier) @- if the underlying infrastructure fails, or the profile can't be found (not if the resource is invalid)void
validate
(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, StructureDefinition profile) Given a DOM element, return a list of errors in the resource with regard to the specified profile @- if the underlying infrastructure fails (not if the resource is invalid)List
<org.hl7.fhir.utilities.validation.ValidationMessage> Given a DOM document, return a list of errors in the resource @- if the underlying infrastructure fails (not if the resource is invalid)List
<org.hl7.fhir.utilities.validation.ValidationMessage> Given a DOM document, return a list of errors in the resource with regard to the specified profile (by logical identifier) @- if the underlying infrastructure fails, or the profile can't be found (not if the resource is invalid)List
<org.hl7.fhir.utilities.validation.ValidationMessage> validate
(Document document, StructureDefinition profile) Given a DOM document, return a list of errors in the resource with regard to the specified profile @- if the underlying infrastructure fails (not if the resource is invalid)List
<org.hl7.fhir.utilities.validation.ValidationMessage> Given a DOM element, return a list of errors in the resource @- if the underlying infrastructure fails (not if the resource is invalid)List
<org.hl7.fhir.utilities.validation.ValidationMessage> Given a DOM element, return a list of errors in the resource with regard to the specified profile (by logical identifier) @- if the underlying infrastructure fails, or the profile can't be found (not if the resource is invalid)List
<org.hl7.fhir.utilities.validation.ValidationMessage> validate
(Element element, StructureDefinition profile) Given a DOM element, return a list of errors in the resource with regard to the specified profile @- if the underlying infrastructure fails (not if the resource is invalid)
-
Method Details
-
getCheckDisplay
how much to check displays for coded elements- Returns:
-
setCheckDisplay
how much to check displays for coded elements -
getResourceIdRule
whether the resource must have an id or not (depends on context)- Returns:
-
setResourceIdRule
-
getBasePracticeWarningLevel
-
setBestPracticeWarningLevel
-
validate
void validate(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element) throws Exception Given a DOM element, return a list of errors in the resource @- if the underlying infrastructure fails (not if the resource is invalid)- Throws:
Exception
-
validate
void validate(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, com.google.gson.JsonObject object) throws Exception Given a JSON Object, return a list of errors in the resource @- if the underlying infrastructure fails (not if the resource is invalid)- Throws:
Exception
-
validate
List<org.hl7.fhir.utilities.validation.ValidationMessage> validate(Element element) throws Exception Given a DOM element, return a list of errors in the resource @- if the underlying infrastructure fails (not if the resource is invalid)- Throws:
Exception
-
validate
List<org.hl7.fhir.utilities.validation.ValidationMessage> validate(com.google.gson.JsonObject object) throws Exception Given a DOM element, return a list of errors in the resource @- if the underlying infrastructure fails (not if the resource is invalid)- Throws:
Exception
-
validate
void validate(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, String profile) throws Exception Given a DOM element, return a list of errors in the resource with regard to the specified profile (by logical identifier) @- if the underlying infrastructure fails, or the profile can't be found (not if the resource is invalid)- Throws:
Exception
-
validate
List<org.hl7.fhir.utilities.validation.ValidationMessage> validate(Element element, String profile) throws Exception Given a DOM element, return a list of errors in the resource with regard to the specified profile (by logical identifier) @- if the underlying infrastructure fails, or the profile can't be found (not if the resource is invalid)- Throws:
Exception
-
validate
List<org.hl7.fhir.utilities.validation.ValidationMessage> validate(com.google.gson.JsonObject object, StructureDefinition profile) throws Exception Given a DOM element, return a list of errors in the resource with regard to the specified profile (by logical identifier) @- if the underlying infrastructure fails, or the profile can't be found (not if the resource is invalid)- Throws:
Exception
-
validate
List<org.hl7.fhir.utilities.validation.ValidationMessage> validate(com.google.gson.JsonObject object, String profile) throws Exception Given a DOM element, return a list of errors in the resource with regard to the specified profile (by logical identifier) @- if the underlying infrastructure fails, or the profile can't be found (not if the resource is invalid)- Throws:
Exception
-
validate
void validate(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, StructureDefinition profile) throws Exception Given a DOM element, return a list of errors in the resource with regard to the specified profile @- if the underlying infrastructure fails (not if the resource is invalid)- Throws:
Exception
-
validate
void validate(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, com.google.gson.JsonObject object, StructureDefinition profile) throws Exception Given a DOM element, return a list of errors in the resource with regard to the specified profile @- if the underlying infrastructure fails (not if the resource is invalid)- Throws:
Exception
-
validate
void validate(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, com.google.gson.JsonObject object, String profile) throws Exception Given a DOM element, return a list of errors in the resource with regard to the specified profile @- if the underlying infrastructure fails (not if the resource is invalid)- Throws:
Exception
-
validate
List<org.hl7.fhir.utilities.validation.ValidationMessage> validate(Element element, StructureDefinition profile) throws Exception Given a DOM element, return a list of errors in the resource with regard to the specified profile @- if the underlying infrastructure fails (not if the resource is invalid)- Throws:
Exception
-
validate
void validate(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Document document) throws Exception Given a DOM document, return a list of errors in the resource @- if the underlying infrastructure fails (not if the resource is invalid)- Throws:
Exception
-
validate
List<org.hl7.fhir.utilities.validation.ValidationMessage> validate(Document document) throws Exception Given a DOM document, return a list of errors in the resource @- if the underlying infrastructure fails (not if the resource is invalid)- Throws:
Exception
-
validate
void validate(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Document document, String profile) throws Exception Given a DOM document, return a list of errors in the resource with regard to the specified profile (by logical identifier) @- if the underlying infrastructure fails, or the profile can't be found (not if the resource is invalid)- Throws:
Exception
-
validate
List<org.hl7.fhir.utilities.validation.ValidationMessage> validate(Document document, String profile) throws Exception Given a DOM document, return a list of errors in the resource with regard to the specified profile (by logical identifier) @- if the underlying infrastructure fails, or the profile can't be found (not if the resource is invalid)- Throws:
Exception
-
validate
void validate(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Document document, StructureDefinition profile) throws Exception Given a DOM document, return a list of errors in the resource with regard to the specified profile @- if the underlying infrastructure fails (not if the resource is invalid)- Throws:
Exception
-
validate
List<org.hl7.fhir.utilities.validation.ValidationMessage> validate(Document document, StructureDefinition profile) throws Exception Given a DOM document, return a list of errors in the resource with regard to the specified profile @- if the underlying infrastructure fails (not if the resource is invalid)- Throws:
Exception
-