public class FhirInstanceValidator extends Object implements IValidatorModule
| Modifier and Type | Class and Description |
|---|---|
class |
FhirInstanceValidator.NullEvaluationContext |
| Constructor and Description |
|---|
FhirInstanceValidator()
Constructor
Uses
DefaultProfileValidationSupport for validation support |
FhirInstanceValidator(IValidationSupport theValidationSupport)
Constructor which uses the given validation support
|
| Modifier and Type | Method and Description |
|---|---|
IResourceValidator.BestPracticeWarningLevel |
getBestPracticeWarningLevel()
Returns the "best practice" warning level (default is
IResourceValidator.BestPracticeWarningLevel.Hint). |
IValidationSupport |
getValidationSupport()
Returns the
validation support in use by this validator. |
boolean |
isAnyExtensionsAllowed()
If set to true (default is true) extensions which are not known to the
validator (e.g.
|
void |
setAnyExtensionsAllowed(boolean theAnyExtensionsAllowed)
If set to true (default is true) extensions which are not known to the
validator (e.g.
|
void |
setBestPracticeWarningLevel(IResourceValidator.BestPracticeWarningLevel theBestPracticeWarningLevel)
Sets the "best practice warning level".
|
void |
setStructureDefintion(StructureDefinition theStructureDefintion) |
void |
setValidationSupport(IValidationSupport theValidationSupport)
Sets the
validation support in use by this validator. |
protected List<ValidationMessage> |
validate(FhirContext theCtx,
String theInput,
EncodingEnum theEncoding) |
protected List<ValidationMessage> |
validate(IValidationContext<?> theCtx) |
void |
validateBundle(IValidationContext<Bundle> theCtx) |
void |
validateResource(IValidationContext<IBaseResource> theCtx) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidateBundle, validateResourcepublic FhirInstanceValidator()
DefaultProfileValidationSupport for validation supportpublic FhirInstanceValidator(IValidationSupport theValidationSupport)
theValidationSupport - The validation supportpublic IResourceValidator.BestPracticeWarningLevel getBestPracticeWarningLevel()
IResourceValidator.BestPracticeWarningLevel.Hint).
The FHIR Instance Validator has a number of checks for best practices in terms of FHIR usage. If this setting is
set to IResourceValidator.BestPracticeWarningLevel.Error, any resource data which does not meet these best practices will be
reported at the ERROR level. If this setting is set to IResourceValidator.BestPracticeWarningLevel.Ignore, best practice
guielines will be ignored.
#setBestPracticeWarningLevel(BestPracticeWarningLevel)}public IValidationSupport getValidationSupport()
validation support in use by this validator. Default is an instance of
DefaultProfileValidationSupport if the no-arguments constructor for this object was used.public boolean isAnyExtensionsAllowed()
public void setAnyExtensionsAllowed(boolean theAnyExtensionsAllowed)
public void setBestPracticeWarningLevel(IResourceValidator.BestPracticeWarningLevel theBestPracticeWarningLevel)
The FHIR Instance Validator has a number of checks for best practices in terms of FHIR usage. If this setting is
set to IResourceValidator.BestPracticeWarningLevel.Error, any resource data which does not meet these best practices will be
reported at the ERROR level. If this setting is set to IResourceValidator.BestPracticeWarningLevel.Ignore, best practice
guielines will be ignored.
theBestPracticeWarningLevel - The level, must not be nullpublic void setStructureDefintion(StructureDefinition theStructureDefintion)
public void setValidationSupport(IValidationSupport theValidationSupport)
validation support in use by this validator. Default is an instance of
DefaultProfileValidationSupport if the no-arguments constructor for this object was used.protected List<ValidationMessage> validate(FhirContext theCtx, String theInput, EncodingEnum theEncoding)
protected List<ValidationMessage> validate(IValidationContext<?> theCtx)
public void validateBundle(IValidationContext<Bundle> theCtx)
validateBundle in interface IValidatorModulepublic void validateResource(IValidationContext<IBaseResource> theCtx)
validateResource in interface IValidatorModuleCopyright © 2014–2017 University Health Network. All rights reserved.