public class FhirInstanceValidator extends Object implements ca.uhn.fhir.validation.IValidatorModule
| 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. |
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<org.hl7.fhir.utilities.validation.ValidationMessage> |
validate(ca.uhn.fhir.context.FhirContext theCtx,
String theInput,
ca.uhn.fhir.rest.api.EncodingEnum theEncoding) |
protected List<org.hl7.fhir.utilities.validation.ValidationMessage> |
validate(ca.uhn.fhir.validation.IValidationContext<?> theCtx) |
void |
validateResource(ca.uhn.fhir.validation.IValidationContext<org.hl7.fhir.instance.model.api.IBaseResource> theCtx) |
public 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 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<org.hl7.fhir.utilities.validation.ValidationMessage> validate(ca.uhn.fhir.context.FhirContext theCtx, String theInput, ca.uhn.fhir.rest.api.EncodingEnum theEncoding)
protected List<org.hl7.fhir.utilities.validation.ValidationMessage> validate(ca.uhn.fhir.validation.IValidationContext<?> theCtx)
public void validateResource(ca.uhn.fhir.validation.IValidationContext<org.hl7.fhir.instance.model.api.IBaseResource> theCtx)
validateResource in interface ca.uhn.fhir.validation.IValidatorModuleCopyright © 2014–2018 University Health Network. All rights reserved.