
Package ca.uhn.fhir.context.support
Class DefaultProfileValidationSupport
- java.lang.Object
-
- ca.uhn.fhir.context.support.DefaultProfileValidationSupport
-
- All Implemented Interfaces:
IValidationSupport
public class DefaultProfileValidationSupport extends Object implements IValidationSupport
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ca.uhn.fhir.context.support.IValidationSupport
IValidationSupport.BaseConceptProperty, IValidationSupport.CodeValidationResult, IValidationSupport.CodingConceptProperty, IValidationSupport.ConceptDesignation, IValidationSupport.IssueSeverity, IValidationSupport.LookupCodeResult, IValidationSupport.StringConceptProperty, IValidationSupport.ValueSetExpansionOutcome
-
-
Field Summary
-
Fields inherited from interface ca.uhn.fhir.context.support.IValidationSupport
URL_PREFIX_VALUE_SET
-
-
Constructor Summary
Constructors Constructor Description DefaultProfileValidationSupport(FhirContext theFhirContext)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<IBaseResource>
fetchAllConformanceResources()
Load and return all conformance resources associated with this validation support module.<T extends IBaseResource>
List<T>fetchAllStructureDefinitions()
Load and return all possible structure definitionsIBaseResource
fetchCodeSystem(String theSystem)
Fetch a code system by IDIBaseResource
fetchStructureDefinition(String theUrl)
IBaseResource
fetchValueSet(String theUrl)
Fetch the given ValueSet by URLvoid
flush()
static String
getConformanceResourceUrl(FhirContext theFhirContext, IBaseResource theResource)
FhirContext
getFhirContext()
Returns the FHIR Context associated with this module-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ca.uhn.fhir.context.support.IValidationSupport
expandValueSet, fetchResource, generateSnapshot, invalidateCaches, isCodeSystemSupported, isValueSetSupported, lookupCode, validateCode, validateCodeInValueSet
-
-
-
-
Constructor Detail
-
DefaultProfileValidationSupport
public DefaultProfileValidationSupport(FhirContext theFhirContext)
Constructor- Parameters:
theFhirContext
- The context to use
-
-
Method Detail
-
fetchAllConformanceResources
public List<IBaseResource> fetchAllConformanceResources()
Description copied from interface:IValidationSupport
Load and return all conformance resources associated with this validation support module. This method may return null if it doesn't make sense for a given module.- Specified by:
fetchAllConformanceResources
in interfaceIValidationSupport
-
fetchAllStructureDefinitions
public <T extends IBaseResource> List<T> fetchAllStructureDefinitions()
Description copied from interface:IValidationSupport
Load and return all possible structure definitions- Specified by:
fetchAllStructureDefinitions
in interfaceIValidationSupport
-
fetchCodeSystem
public IBaseResource fetchCodeSystem(String theSystem)
Description copied from interface:IValidationSupport
Fetch a code system by ID- Specified by:
fetchCodeSystem
in interfaceIValidationSupport
- Parameters:
theSystem
- The code system- Returns:
- The valueset (must not be null, but can be an empty ValueSet)
-
fetchStructureDefinition
public IBaseResource fetchStructureDefinition(String theUrl)
- Specified by:
fetchStructureDefinition
in interfaceIValidationSupport
-
fetchValueSet
public IBaseResource fetchValueSet(String theUrl)
Description copied from interface:IValidationSupport
Fetch the given ValueSet by URL- Specified by:
fetchValueSet
in interfaceIValidationSupport
-
flush
public void flush()
-
getFhirContext
public FhirContext getFhirContext()
Description copied from interface:IValidationSupport
Returns the FHIR Context associated with this module- Specified by:
getFhirContext
in interfaceIValidationSupport
-
getConformanceResourceUrl
@Nullable public static String getConformanceResourceUrl(FhirContext theFhirContext, IBaseResource theResource)
-
-