Package org.hl7.fhir.validation.instance
Class InstanceValidator
- java.lang.Object
-
- org.hl7.fhir.validation.BaseValidator
-
- org.hl7.fhir.validation.instance.InstanceValidator
-
- All Implemented Interfaces:
org.hl7.fhir.r5.utils.validation.IResourceValidator,org.hl7.fhir.r5.utils.validation.ValidationContextCarrier.IValidationContextResourceLoader
public class InstanceValidator extends BaseValidator implements org.hl7.fhir.r5.utils.validation.IResourceValidator
Thinking of using this in a java program? Don't! You should use one of the wrappers instead. Either in HAPI, or use ValidationEngineValidation todo: - support @default slices
- Author:
- Grahame Grieve
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hl7.fhir.validation.BaseValidator
BaseValidator.TrackedLocationRelatedMessage, BaseValidator.ValidationControl
-
-
Field Summary
-
Fields inherited from class org.hl7.fhir.validation.BaseValidator
BUNDLE, context, DOCUMENT, ENTRY, FULL_URL, ID, LAST_UPDATED, LINK, MESSAGE, messagesToRemove, META, PATH_ARG, RESOURCE, SEARCHSET, source, timeTracker, trackedMessages, TYPE, xverManager
-
-
Constructor Summary
Constructors Constructor Description InstanceValidator(org.hl7.fhir.r5.context.IWorkerContext theContext, org.hl7.fhir.r5.utils.FHIRPathEngine.IEvaluationContext hostServices, org.hl7.fhir.r5.utils.XVerExtensionManager xverManager)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>assignChildren(ValidatorHostContext hostContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.r5.model.StructureDefinition profile, org.hl7.fhir.r5.elementmodel.Element resource, NodeStack stack, List<org.hl7.fhir.r5.model.ElementDefinition> childDefinitions, List<ElementInfo> children)voidcheckAllInvariants()voidcheckBindings(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, String path, org.hl7.fhir.r5.elementmodel.Element element, NodeStack stack, org.hl7.fhir.r5.model.ValueSet valueset, org.hl7.fhir.r5.model.Coding nextCoding)voidcheckCardinalities(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.r5.model.StructureDefinition profile, org.hl7.fhir.r5.elementmodel.Element element, NodeStack stack, List<org.hl7.fhir.r5.model.ElementDefinition> childDefinitions, List<ElementInfo> children, List<String> problematicPaths)voidcheckChild(ValidatorHostContext hostContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.r5.model.StructureDefinition profile, org.hl7.fhir.r5.model.ElementDefinition definition, org.hl7.fhir.r5.elementmodel.Element resource, org.hl7.fhir.r5.elementmodel.Element element, String actualType, NodeStack stack, boolean inCodeableConcept, boolean checkDisplayInContext, ElementInfo ei, String extensionUrl)voidcheckChildByDefinition(ValidatorHostContext hostContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.r5.model.StructureDefinition profile, org.hl7.fhir.r5.model.ElementDefinition definition, org.hl7.fhir.r5.elementmodel.Element resource, org.hl7.fhir.r5.elementmodel.Element element, String actualType, NodeStack stack, boolean inCodeableConcept, boolean checkDisplayInContext, ElementInfo ei, String extensionUrl, org.hl7.fhir.r5.model.ElementDefinition checkDefn, boolean isSlice)org.hl7.fhir.r5.context.IWorkerContext.ValidationResultcheckCodeOnServer(NodeStack stack, String code, String system, String version, String display, boolean checkDisplay)org.hl7.fhir.r5.context.IWorkerContext.ValidationResultcheckCodeOnServer(NodeStack stack, org.hl7.fhir.r5.model.ValueSet vs, String value, org.hl7.fhir.utilities.validation.ValidationOptions options)org.hl7.fhir.r5.context.IWorkerContext.ValidationResultcheckCodeOnServer(NodeStack stack, org.hl7.fhir.r5.model.ValueSet valueset, org.hl7.fhir.r5.model.CodeableConcept cc, boolean vsOnly)org.hl7.fhir.r5.context.IWorkerContext.ValidationResultcheckCodeOnServer(NodeStack stack, org.hl7.fhir.r5.model.ValueSet valueset, org.hl7.fhir.r5.model.Coding c, boolean checkMembership)voidcheckInvariant(ValidatorHostContext hostContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, String path, org.hl7.fhir.r5.model.StructureDefinition profile, org.hl7.fhir.r5.elementmodel.Element resource, org.hl7.fhir.r5.elementmodel.Element element, org.hl7.fhir.r5.model.ElementDefinition.ElementDefinitionConstraintComponent inv)voidcheckInvariants(ValidatorHostContext hostContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.r5.model.StructureDefinition profile, org.hl7.fhir.r5.model.ElementDefinition definition, org.hl7.fhir.r5.elementmodel.Element resource, org.hl7.fhir.r5.elementmodel.Element element, NodeStack stack, boolean onlyNonInherited)voidcheckMustSupport(org.hl7.fhir.r5.model.StructureDefinition profile, ElementInfo ei)voidcheckSpecials(ValidatorHostContext hostContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.r5.elementmodel.Element element, NodeStack stack, boolean checkSpecials)booleanevaluateSlicingExpression(ValidatorHostContext hostContext, org.hl7.fhir.r5.elementmodel.Element element, String path, org.hl7.fhir.r5.model.StructureDefinition profile, org.hl7.fhir.r5.model.ExpressionNode n)protected org.hl7.fhir.r5.model.ElementDefinitionfindElement(org.hl7.fhir.r5.model.StructureDefinition profile, String name)List<org.hl7.fhir.r5.model.ElementDefinition>getActualTypeChildren(ValidatorHostContext hostContext, org.hl7.fhir.r5.elementmodel.Element element, String actualType)org.hl7.fhir.utilities.validation.ValidationOptionsgetBaseOptions()org.hl7.fhir.r5.utils.validation.constants.BestPracticeWarningLevelgetBestPracticeWarningLevel()List<org.hl7.fhir.r5.utils.validation.BundleValidationRule>getBundleValidationRules()org.hl7.fhir.r5.utils.validation.constants.CheckDisplayOptiongetCheckDisplay()org.hl7.fhir.r5.context.IWorkerContextgetContext()List<String>getExtensionDomains()org.hl7.fhir.r5.utils.FHIRPathEngine.IEvaluationContextgetExternalHostServices()org.hl7.fhir.r5.utils.validation.IValidatorResourceFetchergetFetcher()org.hl7.fhir.r5.utils.FHIRPathEnginegetFHIRPathEngine()List<org.hl7.fhir.r5.model.ImplementationGuide>getImplementationGuides()org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisorgetPolicyAdvisor()QuestionnaireModegetQuestionnaireMode()org.hl7.fhir.r5.utils.validation.constants.IdStatusgetResourceIdRule()org.hl7.fhir.r5.utils.validation.IValidationProfileUsageTrackergetTracker()StringgetValidationLanguage()booleanisAllowExamples()booleanisAllowXsiLocation()booleanisAnyExtensionsAllowed()booleanisAssumeValidRestReferences()booleanisCrumbTrails()booleanisDebug()booleanisErrorForUnknownProfiles()booleanisHintAboutNonMustSupport()booleanisNoBindingMsgSuppressed()booleanisNoCheckAggregation()booleanisNoExtensibleWarnings()booleanisNoInvariantChecks()booleanisNoTerminologyChecks()booleanisNoUnicodeBiDiControlChars()booleanisPrimitiveType(String code)booleanisSecurityChecks()booleanisShowMessagesFromReferences()booleanisSuppressLoincSnomedMessages()booleanisValidateValueSetCodesOnTxServer()booleanisWantCheckSnapshotUnchanged()booleanisWantInvariantInMessage()List<ElementInfo>listChildren(org.hl7.fhir.r5.elementmodel.Element element, NodeStack stack)booleanmatchSlice(ValidatorHostContext hostContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, List<org.hl7.fhir.utilities.validation.ValidationMessage> sliceInfo, org.hl7.fhir.r5.model.StructureDefinition profile, NodeStack stack, org.hl7.fhir.r5.model.ElementDefinition slicer, boolean unsupportedSlicing, List<String> problematicPaths, int sliceOffset, int i, org.hl7.fhir.r5.model.ElementDefinition ed, boolean childUnsupportedSlicing, ElementInfo ei)StringreportTimes()voidsetAllowExamples(boolean value)voidsetAllowXsiLocation(boolean allowXsiLocation)voidsetAnyExtensionsAllowed(boolean anyExtensionsAllowed)voidsetAssumeValidRestReferences(boolean value)voidsetBaseOptions(org.hl7.fhir.utilities.validation.ValidationOptions baseOptions)org.hl7.fhir.r5.utils.validation.IResourceValidatorsetBestPracticeWarningLevel(org.hl7.fhir.r5.utils.validation.constants.BestPracticeWarningLevel value)voidsetCheckDisplay(org.hl7.fhir.r5.utils.validation.constants.CheckDisplayOption checkDisplay)voidsetCrumbTrails(boolean crumbTrails)voidsetDebug(boolean debug)voidsetErrorForUnknownProfiles(boolean errorForUnknownProfiles)org.hl7.fhir.r5.utils.validation.IResourceValidatorsetFetcher(org.hl7.fhir.r5.utils.validation.IValidatorResourceFetcher value)voidsetHintAboutNonMustSupport(boolean hintAboutNonMustSupport)org.hl7.fhir.r5.utils.validation.IResourceValidatorsetNoBindingMsgSuppressed(boolean noBindingMsgSuppressed)voidsetNoCheckAggregation(boolean noCheckAggregation)org.hl7.fhir.r5.utils.validation.IResourceValidatorsetNoExtensibleWarnings(boolean noExtensibleWarnings)org.hl7.fhir.r5.utils.validation.IResourceValidatorsetNoInvariantChecks(boolean value)org.hl7.fhir.r5.utils.validation.IResourceValidatorsetNoTerminologyChecks(boolean noTerminologyChecks)voidsetNoUnicodeBiDiControlChars(boolean noUnicodeBiDiControlChars)static voidsetParents(org.hl7.fhir.r5.elementmodel.Element element)static voidsetParentsInner(org.hl7.fhir.r5.elementmodel.Element element)org.hl7.fhir.r5.utils.validation.IResourceValidatorsetPolicyAdvisor(org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor advisor)voidsetQuestionnaireMode(QuestionnaireMode questionnaireMode)voidsetResourceIdRule(org.hl7.fhir.r5.utils.validation.constants.IdStatus resourceIdRule)voidsetSecurityChecks(boolean securityChecks)voidsetShowMessagesFromReferences(boolean showMessagesFromReferences)voidsetSuppressLoincSnomedMessages(boolean suppressLoincSnomedMessages)org.hl7.fhir.r5.utils.validation.IResourceValidatorsetTracker(org.hl7.fhir.r5.utils.validation.IValidationProfileUsageTracker value)voidsetValidateValueSetCodesOnTxServer(boolean value)voidsetValidationLanguage(String validationLanguage)voidsetWantCheckSnapshotUnchanged(boolean wantCheckSnapshotUnchanged)org.hl7.fhir.r5.utils.validation.IResourceValidatorsetWantInvariantInMessage(boolean wantInvariantInMessage)voidstartInner(ValidatorHostContext hostContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.r5.elementmodel.Element resource, org.hl7.fhir.r5.elementmodel.Element element, org.hl7.fhir.r5.model.StructureDefinition defn, NodeStack stack, boolean checkSpecials)org.hl7.fhir.r5.elementmodel.Elementvalidate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, com.google.gson.JsonObject object)org.hl7.fhir.r5.elementmodel.Elementvalidate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, com.google.gson.JsonObject object, String profile)org.hl7.fhir.r5.elementmodel.Elementvalidate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, com.google.gson.JsonObject object, List<org.hl7.fhir.r5.model.StructureDefinition> profiles)org.hl7.fhir.r5.elementmodel.Elementvalidate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, InputStream stream, org.hl7.fhir.r5.elementmodel.Manager.FhirFormat format)org.hl7.fhir.r5.elementmodel.Elementvalidate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, InputStream stream, org.hl7.fhir.r5.elementmodel.Manager.FhirFormat format, String profile)org.hl7.fhir.r5.elementmodel.Elementvalidate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, InputStream stream, org.hl7.fhir.r5.elementmodel.Manager.FhirFormat format, List<org.hl7.fhir.r5.model.StructureDefinition> profiles)voidvalidate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, String initialPath, org.hl7.fhir.r5.elementmodel.Element element)voidvalidate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, String initialPath, org.hl7.fhir.r5.elementmodel.Element element, String profile)voidvalidate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, String path, org.hl7.fhir.r5.elementmodel.Element element, List<org.hl7.fhir.r5.model.StructureDefinition> profiles)org.hl7.fhir.r5.elementmodel.Elementvalidate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.r5.model.Resource resource)org.hl7.fhir.r5.elementmodel.Elementvalidate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.r5.model.Resource resource, String profile)org.hl7.fhir.r5.elementmodel.Elementvalidate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.r5.model.Resource resource, List<org.hl7.fhir.r5.model.StructureDefinition> profiles)org.hl7.fhir.r5.elementmodel.Elementvalidate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Document document)org.hl7.fhir.r5.elementmodel.Elementvalidate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Document document, String profile)org.hl7.fhir.r5.elementmodel.Elementvalidate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Document document, List<org.hl7.fhir.r5.model.StructureDefinition> profiles)org.hl7.fhir.r5.elementmodel.Elementvalidate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element)org.hl7.fhir.r5.elementmodel.Elementvalidate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, String profile)org.hl7.fhir.r5.elementmodel.Elementvalidate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, List<org.hl7.fhir.r5.model.StructureDefinition> profiles)voidvalidateReference(ValidatorHostContext hostContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, String path, String type, org.hl7.fhir.r5.model.ElementDefinition context, org.hl7.fhir.r5.elementmodel.Element e, String url)-
Methods inherited from class org.hl7.fhir.validation.BaseValidator
addValidationMessage, addValidationMessage, addValidationMessage, checkMsgId, describeReference, fail, fail, fail, fail, fail, getFromBundle, getLevel, getValidationControl, getXverExt, getXverExt, grammarWord, hint, hint, hint, hint, isXverUrl, loadContainedResource, loadFoundResource, removeTrackedMessagesForLocation, resolveBindingReference, resolveInBundle, resolveInBundle, rule, rule, rule, rule, rule, ruleHtml, setLevel, signpost, slicingHint, splitByCamelCase, stripPunctuation, suppressedwarning, suppressedwarning, suppressedwarning, suppressedwarning, suppressedwarning, systemFromCanonical, txHint, txRule, txWarning, txWarningForLaterRemoval, versionFromCanonical, warning, warning, warning, warningHtml, warningHtml, warningOrError, warningOrHint, xverDefn, xverElementId, xverStatus, xverVersion
-
-
-
-
Constructor Detail
-
InstanceValidator
public InstanceValidator(org.hl7.fhir.r5.context.IWorkerContext theContext, org.hl7.fhir.r5.utils.FHIRPathEngine.IEvaluationContext hostServices, org.hl7.fhir.r5.utils.XVerExtensionManager xverManager)
-
-
Method Detail
-
getFHIRPathEngine
public org.hl7.fhir.r5.utils.FHIRPathEngine getFHIRPathEngine()
-
isNoExtensibleWarnings
public boolean isNoExtensibleWarnings()
- Specified by:
isNoExtensibleWarningsin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
setNoExtensibleWarnings
public org.hl7.fhir.r5.utils.validation.IResourceValidator setNoExtensibleWarnings(boolean noExtensibleWarnings)
- Specified by:
setNoExtensibleWarningsin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
isShowMessagesFromReferences
public boolean isShowMessagesFromReferences()
- Specified by:
isShowMessagesFromReferencesin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
setShowMessagesFromReferences
public void setShowMessagesFromReferences(boolean showMessagesFromReferences)
- Specified by:
setShowMessagesFromReferencesin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
isNoInvariantChecks
public boolean isNoInvariantChecks()
- Specified by:
isNoInvariantChecksin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
setNoInvariantChecks
public org.hl7.fhir.r5.utils.validation.IResourceValidator setNoInvariantChecks(boolean value)
- Specified by:
setNoInvariantChecksin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
isWantInvariantInMessage
public boolean isWantInvariantInMessage()
- Specified by:
isWantInvariantInMessagein interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
setWantInvariantInMessage
public org.hl7.fhir.r5.utils.validation.IResourceValidator setWantInvariantInMessage(boolean wantInvariantInMessage)
- Specified by:
setWantInvariantInMessagein interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
getFetcher
public org.hl7.fhir.r5.utils.validation.IValidatorResourceFetcher getFetcher()
- Specified by:
getFetcherin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
setFetcher
public org.hl7.fhir.r5.utils.validation.IResourceValidator setFetcher(org.hl7.fhir.r5.utils.validation.IValidatorResourceFetcher value)
- Specified by:
setFetcherin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
getPolicyAdvisor
public org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor getPolicyAdvisor()
- Specified by:
getPolicyAdvisorin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
setPolicyAdvisor
public org.hl7.fhir.r5.utils.validation.IResourceValidator setPolicyAdvisor(org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor advisor)
- Specified by:
setPolicyAdvisorin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
getTracker
public org.hl7.fhir.r5.utils.validation.IValidationProfileUsageTracker getTracker()
- Specified by:
getTrackerin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
setTracker
public org.hl7.fhir.r5.utils.validation.IResourceValidator setTracker(org.hl7.fhir.r5.utils.validation.IValidationProfileUsageTracker value)
- Specified by:
setTrackerin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
isHintAboutNonMustSupport
public boolean isHintAboutNonMustSupport()
-
setHintAboutNonMustSupport
public void setHintAboutNonMustSupport(boolean hintAboutNonMustSupport)
-
isAssumeValidRestReferences
public boolean isAssumeValidRestReferences()
- Specified by:
isAssumeValidRestReferencesin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
setAssumeValidRestReferences
public void setAssumeValidRestReferences(boolean value)
- Specified by:
setAssumeValidRestReferencesin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
isAllowExamples
public boolean isAllowExamples()
- Specified by:
isAllowExamplesin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
setAllowExamples
public void setAllowExamples(boolean value)
- Specified by:
setAllowExamplesin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
isCrumbTrails
public boolean isCrumbTrails()
- Specified by:
isCrumbTrailsin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
setCrumbTrails
public void setCrumbTrails(boolean crumbTrails)
- Specified by:
setCrumbTrailsin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
validate
public org.hl7.fhir.r5.elementmodel.Element validate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, InputStream stream, org.hl7.fhir.r5.elementmodel.Manager.FhirFormat format) throws org.hl7.fhir.exceptions.FHIRException
- Specified by:
validatein interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator- Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
public org.hl7.fhir.r5.elementmodel.Element validate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, InputStream stream, org.hl7.fhir.r5.elementmodel.Manager.FhirFormat format, String profile) throws org.hl7.fhir.exceptions.FHIRException
- Specified by:
validatein interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator- Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
public org.hl7.fhir.r5.elementmodel.Element validate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, InputStream stream, org.hl7.fhir.r5.elementmodel.Manager.FhirFormat format, List<org.hl7.fhir.r5.model.StructureDefinition> profiles) throws org.hl7.fhir.exceptions.FHIRException
- Specified by:
validatein interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator- Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
public org.hl7.fhir.r5.elementmodel.Element validate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.r5.model.Resource resource) throws org.hl7.fhir.exceptions.FHIRException
- Specified by:
validatein interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator- Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
public org.hl7.fhir.r5.elementmodel.Element validate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.r5.model.Resource resource, String profile) throws org.hl7.fhir.exceptions.FHIRException
- Specified by:
validatein interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator- Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
public org.hl7.fhir.r5.elementmodel.Element validate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.r5.model.Resource resource, List<org.hl7.fhir.r5.model.StructureDefinition> profiles) throws org.hl7.fhir.exceptions.FHIRException
- Specified by:
validatein interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator- Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
public org.hl7.fhir.r5.elementmodel.Element validate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element) throws org.hl7.fhir.exceptions.FHIRException
- Specified by:
validatein interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator- Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
public org.hl7.fhir.r5.elementmodel.Element validate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, String profile) throws org.hl7.fhir.exceptions.FHIRException
- Specified by:
validatein interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator- Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
public org.hl7.fhir.r5.elementmodel.Element validate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Element element, List<org.hl7.fhir.r5.model.StructureDefinition> profiles) throws org.hl7.fhir.exceptions.FHIRException
- Specified by:
validatein interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator- Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
public org.hl7.fhir.r5.elementmodel.Element validate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Document document) throws org.hl7.fhir.exceptions.FHIRException
- Specified by:
validatein interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator- Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
public org.hl7.fhir.r5.elementmodel.Element validate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Document document, String profile) throws org.hl7.fhir.exceptions.FHIRException
- Specified by:
validatein interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator- Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
public org.hl7.fhir.r5.elementmodel.Element validate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Document document, List<org.hl7.fhir.r5.model.StructureDefinition> profiles) throws org.hl7.fhir.exceptions.FHIRException
- Specified by:
validatein interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator- Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
public org.hl7.fhir.r5.elementmodel.Element validate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, com.google.gson.JsonObject object) throws org.hl7.fhir.exceptions.FHIRException
- Specified by:
validatein interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator- Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
public org.hl7.fhir.r5.elementmodel.Element validate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, com.google.gson.JsonObject object, String profile) throws org.hl7.fhir.exceptions.FHIRException
- Specified by:
validatein interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator- Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
public org.hl7.fhir.r5.elementmodel.Element validate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, com.google.gson.JsonObject object, List<org.hl7.fhir.r5.model.StructureDefinition> profiles) throws org.hl7.fhir.exceptions.FHIRException
- Specified by:
validatein interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator- Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
public void validate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, String initialPath, org.hl7.fhir.r5.elementmodel.Element element) throws org.hl7.fhir.exceptions.FHIRException
- Specified by:
validatein interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator- Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
public void validate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, String initialPath, org.hl7.fhir.r5.elementmodel.Element element, String profile) throws org.hl7.fhir.exceptions.FHIRException
- Specified by:
validatein interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator- Throws:
org.hl7.fhir.exceptions.FHIRException
-
validate
public void validate(Object appContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, String path, org.hl7.fhir.r5.elementmodel.Element element, List<org.hl7.fhir.r5.model.StructureDefinition> profiles) throws org.hl7.fhir.exceptions.FHIRException
- Specified by:
validatein interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator- Throws:
org.hl7.fhir.exceptions.FHIRException
-
checkBindings
public void checkBindings(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, String path, org.hl7.fhir.r5.elementmodel.Element element, NodeStack stack, org.hl7.fhir.r5.model.ValueSet valueset, org.hl7.fhir.r5.model.Coding nextCoding)
-
validateReference
public void validateReference(ValidatorHostContext hostContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, String path, String type, org.hl7.fhir.r5.model.ElementDefinition context, org.hl7.fhir.r5.elementmodel.Element e, String url)
-
findElement
protected org.hl7.fhir.r5.model.ElementDefinition findElement(org.hl7.fhir.r5.model.StructureDefinition profile, String name)
-
getBestPracticeWarningLevel
public org.hl7.fhir.r5.utils.validation.constants.BestPracticeWarningLevel getBestPracticeWarningLevel()
- Specified by:
getBestPracticeWarningLevelin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
getCheckDisplay
public org.hl7.fhir.r5.utils.validation.constants.CheckDisplayOption getCheckDisplay()
- Specified by:
getCheckDisplayin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
getContext
public org.hl7.fhir.r5.context.IWorkerContext getContext()
-
getExtensionDomains
public List<String> getExtensionDomains()
-
getImplementationGuides
public List<org.hl7.fhir.r5.model.ImplementationGuide> getImplementationGuides()
-
isAnyExtensionsAllowed
public boolean isAnyExtensionsAllowed()
-
isErrorForUnknownProfiles
public boolean isErrorForUnknownProfiles()
- Specified by:
isErrorForUnknownProfilesin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
setErrorForUnknownProfiles
public void setErrorForUnknownProfiles(boolean errorForUnknownProfiles)
- Specified by:
setErrorForUnknownProfilesin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
isPrimitiveType
public boolean isPrimitiveType(String code)
-
isSuppressLoincSnomedMessages
public boolean isSuppressLoincSnomedMessages()
-
setAnyExtensionsAllowed
public void setAnyExtensionsAllowed(boolean anyExtensionsAllowed)
-
setBestPracticeWarningLevel
public org.hl7.fhir.r5.utils.validation.IResourceValidator setBestPracticeWarningLevel(org.hl7.fhir.r5.utils.validation.constants.BestPracticeWarningLevel value)
- Specified by:
setBestPracticeWarningLevelin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
setCheckDisplay
public void setCheckDisplay(org.hl7.fhir.r5.utils.validation.constants.CheckDisplayOption checkDisplay)
- Specified by:
setCheckDisplayin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
setSuppressLoincSnomedMessages
public void setSuppressLoincSnomedMessages(boolean suppressLoincSnomedMessages)
-
getResourceIdRule
public org.hl7.fhir.r5.utils.validation.constants.IdStatus getResourceIdRule()
- Specified by:
getResourceIdRulein interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
setResourceIdRule
public void setResourceIdRule(org.hl7.fhir.r5.utils.validation.constants.IdStatus resourceIdRule)
- Specified by:
setResourceIdRulein interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
isAllowXsiLocation
public boolean isAllowXsiLocation()
-
setAllowXsiLocation
public void setAllowXsiLocation(boolean allowXsiLocation)
-
evaluateSlicingExpression
public boolean evaluateSlicingExpression(ValidatorHostContext hostContext, org.hl7.fhir.r5.elementmodel.Element element, String path, org.hl7.fhir.r5.model.StructureDefinition profile, org.hl7.fhir.r5.model.ExpressionNode n) throws org.hl7.fhir.exceptions.FHIRException
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
startInner
public void startInner(ValidatorHostContext hostContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.r5.elementmodel.Element resource, org.hl7.fhir.r5.elementmodel.Element element, org.hl7.fhir.r5.model.StructureDefinition defn, NodeStack stack, boolean checkSpecials)
-
checkSpecials
public void checkSpecials(ValidatorHostContext hostContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.r5.elementmodel.Element element, NodeStack stack, boolean checkSpecials)
-
getActualTypeChildren
public List<org.hl7.fhir.r5.model.ElementDefinition> getActualTypeChildren(ValidatorHostContext hostContext, org.hl7.fhir.r5.elementmodel.Element element, String actualType)
-
checkChild
public void checkChild(ValidatorHostContext hostContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.r5.model.StructureDefinition profile, org.hl7.fhir.r5.model.ElementDefinition definition, org.hl7.fhir.r5.elementmodel.Element resource, org.hl7.fhir.r5.elementmodel.Element element, String actualType, NodeStack stack, boolean inCodeableConcept, boolean checkDisplayInContext, ElementInfo ei, String extensionUrl) throws org.hl7.fhir.exceptions.FHIRException, org.hl7.fhir.exceptions.DefinitionException
- Throws:
org.hl7.fhir.exceptions.FHIRExceptionorg.hl7.fhir.exceptions.DefinitionException
-
checkChildByDefinition
public void checkChildByDefinition(ValidatorHostContext hostContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.r5.model.StructureDefinition profile, org.hl7.fhir.r5.model.ElementDefinition definition, org.hl7.fhir.r5.elementmodel.Element resource, org.hl7.fhir.r5.elementmodel.Element element, String actualType, NodeStack stack, boolean inCodeableConcept, boolean checkDisplayInContext, ElementInfo ei, String extensionUrl, org.hl7.fhir.r5.model.ElementDefinition checkDefn, boolean isSlice)
-
checkMustSupport
public void checkMustSupport(org.hl7.fhir.r5.model.StructureDefinition profile, ElementInfo ei)
-
checkCardinalities
public void checkCardinalities(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.r5.model.StructureDefinition profile, org.hl7.fhir.r5.elementmodel.Element element, NodeStack stack, List<org.hl7.fhir.r5.model.ElementDefinition> childDefinitions, List<ElementInfo> children, List<String> problematicPaths) throws org.hl7.fhir.exceptions.DefinitionException
- Throws:
org.hl7.fhir.exceptions.DefinitionException
-
assignChildren
public List<String> assignChildren(ValidatorHostContext hostContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.r5.model.StructureDefinition profile, org.hl7.fhir.r5.elementmodel.Element resource, NodeStack stack, List<org.hl7.fhir.r5.model.ElementDefinition> childDefinitions, List<ElementInfo> children) throws org.hl7.fhir.exceptions.DefinitionException
- Throws:
org.hl7.fhir.exceptions.DefinitionException
-
listChildren
public List<ElementInfo> listChildren(org.hl7.fhir.r5.elementmodel.Element element, NodeStack stack)
-
checkInvariants
public void checkInvariants(ValidatorHostContext hostContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.r5.model.StructureDefinition profile, org.hl7.fhir.r5.model.ElementDefinition definition, org.hl7.fhir.r5.elementmodel.Element resource, org.hl7.fhir.r5.elementmodel.Element element, NodeStack stack, boolean onlyNonInherited) throws org.hl7.fhir.exceptions.FHIRException
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
matchSlice
public boolean matchSlice(ValidatorHostContext hostContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, List<org.hl7.fhir.utilities.validation.ValidationMessage> sliceInfo, org.hl7.fhir.r5.model.StructureDefinition profile, NodeStack stack, org.hl7.fhir.r5.model.ElementDefinition slicer, boolean unsupportedSlicing, List<String> problematicPaths, int sliceOffset, int i, org.hl7.fhir.r5.model.ElementDefinition ed, boolean childUnsupportedSlicing, ElementInfo ei)
-
checkInvariant
public void checkInvariant(ValidatorHostContext hostContext, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, String path, org.hl7.fhir.r5.model.StructureDefinition profile, org.hl7.fhir.r5.elementmodel.Element resource, org.hl7.fhir.r5.elementmodel.Element element, org.hl7.fhir.r5.model.ElementDefinition.ElementDefinitionConstraintComponent inv) throws org.hl7.fhir.exceptions.FHIRException
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
reportTimes
public String reportTimes()
-
isNoBindingMsgSuppressed
public boolean isNoBindingMsgSuppressed()
- Specified by:
isNoBindingMsgSuppressedin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
setNoBindingMsgSuppressed
public org.hl7.fhir.r5.utils.validation.IResourceValidator setNoBindingMsgSuppressed(boolean noBindingMsgSuppressed)
- Specified by:
setNoBindingMsgSuppressedin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
isNoTerminologyChecks
public boolean isNoTerminologyChecks()
- Specified by:
isNoTerminologyChecksin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
setNoTerminologyChecks
public org.hl7.fhir.r5.utils.validation.IResourceValidator setNoTerminologyChecks(boolean noTerminologyChecks)
- Specified by:
setNoTerminologyChecksin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
checkAllInvariants
public void checkAllInvariants()
-
getExternalHostServices
public org.hl7.fhir.r5.utils.FHIRPathEngine.IEvaluationContext getExternalHostServices()
-
getValidationLanguage
public String getValidationLanguage()
-
setValidationLanguage
public void setValidationLanguage(String validationLanguage)
-
isDebug
public boolean isDebug()
-
setDebug
public void setDebug(boolean debug)
-
checkCodeOnServer
public org.hl7.fhir.r5.context.IWorkerContext.ValidationResult checkCodeOnServer(NodeStack stack, org.hl7.fhir.r5.model.ValueSet vs, String value, org.hl7.fhir.utilities.validation.ValidationOptions options)
-
checkCodeOnServer
public org.hl7.fhir.r5.context.IWorkerContext.ValidationResult checkCodeOnServer(NodeStack stack, String code, String system, String version, String display, boolean checkDisplay)
-
checkCodeOnServer
public org.hl7.fhir.r5.context.IWorkerContext.ValidationResult checkCodeOnServer(NodeStack stack, org.hl7.fhir.r5.model.ValueSet valueset, org.hl7.fhir.r5.model.Coding c, boolean checkMembership)
-
checkCodeOnServer
public org.hl7.fhir.r5.context.IWorkerContext.ValidationResult checkCodeOnServer(NodeStack stack, org.hl7.fhir.r5.model.ValueSet valueset, org.hl7.fhir.r5.model.CodeableConcept cc, boolean vsOnly)
-
isSecurityChecks
public boolean isSecurityChecks()
-
setSecurityChecks
public void setSecurityChecks(boolean securityChecks)
-
getBundleValidationRules
public List<org.hl7.fhir.r5.utils.validation.BundleValidationRule> getBundleValidationRules()
- Specified by:
getBundleValidationRulesin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
isValidateValueSetCodesOnTxServer
public boolean isValidateValueSetCodesOnTxServer()
- Specified by:
isValidateValueSetCodesOnTxServerin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
setValidateValueSetCodesOnTxServer
public void setValidateValueSetCodesOnTxServer(boolean value)
- Specified by:
setValidateValueSetCodesOnTxServerin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
isNoCheckAggregation
public boolean isNoCheckAggregation()
- Specified by:
isNoCheckAggregationin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
setNoCheckAggregation
public void setNoCheckAggregation(boolean noCheckAggregation)
- Specified by:
setNoCheckAggregationin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
setParents
public static void setParents(org.hl7.fhir.r5.elementmodel.Element element)
-
setParentsInner
public static void setParentsInner(org.hl7.fhir.r5.elementmodel.Element element)
-
setQuestionnaireMode
public void setQuestionnaireMode(QuestionnaireMode questionnaireMode)
-
getQuestionnaireMode
public QuestionnaireMode getQuestionnaireMode()
-
isWantCheckSnapshotUnchanged
public boolean isWantCheckSnapshotUnchanged()
- Specified by:
isWantCheckSnapshotUnchangedin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
setWantCheckSnapshotUnchanged
public void setWantCheckSnapshotUnchanged(boolean wantCheckSnapshotUnchanged)
- Specified by:
setWantCheckSnapshotUnchangedin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
getBaseOptions
public org.hl7.fhir.utilities.validation.ValidationOptions getBaseOptions()
-
setBaseOptions
public void setBaseOptions(org.hl7.fhir.utilities.validation.ValidationOptions baseOptions)
-
isNoUnicodeBiDiControlChars
public boolean isNoUnicodeBiDiControlChars()
- Specified by:
isNoUnicodeBiDiControlCharsin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
setNoUnicodeBiDiControlChars
public void setNoUnicodeBiDiControlChars(boolean noUnicodeBiDiControlChars)
- Specified by:
setNoUnicodeBiDiControlCharsin interfaceorg.hl7.fhir.r5.utils.validation.IResourceValidator
-
-