Class PrePopulatedValidationSupport
- java.lang.Object
-
- org.hl7.fhir.common.hapi.validation.support.BaseValidationSupport
-
- org.hl7.fhir.common.hapi.validation.support.BaseStaticResourceValidationSupport
-
- org.hl7.fhir.common.hapi.validation.support.PrePopulatedValidationSupport
-
- All Implemented Interfaces:
ca.uhn.fhir.context.support.IValidationSupport
public class PrePopulatedValidationSupport extends BaseStaticResourceValidationSupport implements ca.uhn.fhir.context.support.IValidationSupport
This class is an implementation ofIValidationSupportwhich may be pre-populated with a collection of validation resources to be used by the validator.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ca.uhn.fhir.context.support.IValidationSupport
ca.uhn.fhir.context.support.IValidationSupport.BaseConceptProperty, ca.uhn.fhir.context.support.IValidationSupport.CodeValidationResult, ca.uhn.fhir.context.support.IValidationSupport.CodingConceptProperty, ca.uhn.fhir.context.support.IValidationSupport.ConceptDesignation, ca.uhn.fhir.context.support.IValidationSupport.IssueSeverity, ca.uhn.fhir.context.support.IValidationSupport.LookupCodeResult, ca.uhn.fhir.context.support.IValidationSupport.StringConceptProperty, ca.uhn.fhir.context.support.IValidationSupport.ValueSetExpansionOutcome
-
-
Field Summary
-
Fields inherited from class org.hl7.fhir.common.hapi.validation.support.BaseValidationSupport
myCtx
-
-
Constructor Summary
Constructors Constructor Description PrePopulatedValidationSupport(ca.uhn.fhir.context.FhirContext theContext)ConstructorPrePopulatedValidationSupport(ca.uhn.fhir.context.FhirContext theFhirContext, Map<String,org.hl7.fhir.instance.model.api.IBaseResource> theStructureDefinitions, Map<String,org.hl7.fhir.instance.model.api.IBaseResource> theValueSets, Map<String,org.hl7.fhir.instance.model.api.IBaseResource> theCodeSystems)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCodeSystem(org.hl7.fhir.instance.model.api.IBaseResource theCodeSystem)Add a new CodeSystem resource which will be available to the validator.voidaddStructureDefinition(org.hl7.fhir.instance.model.api.IBaseResource theStructureDefinition)Add a new StructureDefinition resource which will be available to the validator.voidaddValueSet(org.hl7.fhir.r4.model.ValueSet theValueSet)Add a new ValueSet resource which will be available to the validator.List<org.hl7.fhir.instance.model.api.IBaseResource>fetchAllConformanceResources()List<org.hl7.fhir.instance.model.api.IBaseResource>fetchAllStructureDefinitions()org.hl7.fhir.instance.model.api.IBaseResourcefetchCodeSystem(String theSystem)org.hl7.fhir.instance.model.api.IBaseResourcefetchStructureDefinition(String theUrl)org.hl7.fhir.instance.model.api.IBaseResourcefetchValueSet(String theUri)booleanisCodeSystemSupported(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, String theSystem)booleanisValueSetSupported(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, String theValueSetUrl)-
Methods inherited from class org.hl7.fhir.common.hapi.validation.support.BaseValidationSupport
getFhirContext
-
-
-
-
Constructor Detail
-
PrePopulatedValidationSupport
public PrePopulatedValidationSupport(ca.uhn.fhir.context.FhirContext theContext)
Constructor
-
PrePopulatedValidationSupport
public PrePopulatedValidationSupport(ca.uhn.fhir.context.FhirContext theFhirContext, Map<String,org.hl7.fhir.instance.model.api.IBaseResource> theStructureDefinitions, Map<String,org.hl7.fhir.instance.model.api.IBaseResource> theValueSets, Map<String,org.hl7.fhir.instance.model.api.IBaseResource> theCodeSystems)
Constructor- Parameters:
theStructureDefinitions- The StructureDefinitions to be returned by this module. Keys are the logical URL for the resource, and values are the resource itself.theValueSets- The ValueSets to be returned by this module. Keys are the logical URL for the resource, and values are the resource itself.theCodeSystems- The CodeSystems to be returned by this module. Keys are the logical URL for the resource, and values are the resource itself.
-
-
Method Detail
-
addCodeSystem
public void addCodeSystem(org.hl7.fhir.instance.model.api.IBaseResource theCodeSystem)
Add a new CodeSystem resource which will be available to the validator. Note thatthe URL field) in this resource must contain a value as this value will be used as the logical URL.Note that if the URL is a canonical FHIR URL (e.g. http://hl7.org/StructureDefinition/Extension), it will be stored in three ways:
- Extension
- StructureDefinition/Extension
- http://hl7.org/StructureDefinition/Extension
-
addStructureDefinition
public void addStructureDefinition(org.hl7.fhir.instance.model.api.IBaseResource theStructureDefinition)
Add a new StructureDefinition resource which will be available to the validator. Note thatthe URL field) in this resource must contain a value as this value will be used as the logical URL.Note that if the URL is a canonical FHIR URL (e.g. http://hl7.org/StructureDefinition/Extension), it will be stored in three ways:
- Extension
- StructureDefinition/Extension
- http://hl7.org/StructureDefinition/Extension
-
addValueSet
public void addValueSet(org.hl7.fhir.r4.model.ValueSet theValueSet)
Add a new ValueSet resource which will be available to the validator. Note thatthe URL field) in this resource must contain a value as this value will be used as the logical URL.Note that if the URL is a canonical FHIR URL (e.g. http://hl7.org/StructureDefinition/Extension), it will be stored in three ways:
- Extension
- StructureDefinition/Extension
- http://hl7.org/StructureDefinition/Extension
-
fetchAllConformanceResources
public List<org.hl7.fhir.instance.model.api.IBaseResource> fetchAllConformanceResources()
- Specified by:
fetchAllConformanceResourcesin interfaceca.uhn.fhir.context.support.IValidationSupport
-
fetchAllStructureDefinitions
public List<org.hl7.fhir.instance.model.api.IBaseResource> fetchAllStructureDefinitions()
- Specified by:
fetchAllStructureDefinitionsin interfaceca.uhn.fhir.context.support.IValidationSupport
-
fetchCodeSystem
public org.hl7.fhir.instance.model.api.IBaseResource fetchCodeSystem(String theSystem)
- Specified by:
fetchCodeSystemin interfaceca.uhn.fhir.context.support.IValidationSupport
-
fetchValueSet
public org.hl7.fhir.instance.model.api.IBaseResource fetchValueSet(String theUri)
- Specified by:
fetchValueSetin interfaceca.uhn.fhir.context.support.IValidationSupport
-
fetchStructureDefinition
public org.hl7.fhir.instance.model.api.IBaseResource fetchStructureDefinition(String theUrl)
- Specified by:
fetchStructureDefinitionin interfaceca.uhn.fhir.context.support.IValidationSupport
-
isCodeSystemSupported
public boolean isCodeSystemSupported(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, String theSystem)
- Specified by:
isCodeSystemSupportedin interfaceca.uhn.fhir.context.support.IValidationSupport
-
isValueSetSupported
public boolean isValueSetSupported(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, String theValueSetUrl)
- Specified by:
isValueSetSupportedin interfaceca.uhn.fhir.context.support.IValidationSupport
-
-