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 definitionsIBaseResourcefetchCodeSystem(String theSystem)Fetch a code system by IDIBaseResourcefetchStructureDefinition(String theUrl)IBaseResourcefetchValueSet(String theUrl)Fetch the given ValueSet by URLvoidflush()static StringgetConformanceResourceUrl(FhirContext theFhirContext, IBaseResource theResource)FhirContextgetFhirContext()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:IValidationSupportLoad 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:
fetchAllConformanceResourcesin interfaceIValidationSupport
-
fetchAllStructureDefinitions
public <T extends IBaseResource> List<T> fetchAllStructureDefinitions()
Description copied from interface:IValidationSupportLoad and return all possible structure definitions- Specified by:
fetchAllStructureDefinitionsin interfaceIValidationSupport
-
fetchCodeSystem
public IBaseResource fetchCodeSystem(String theSystem)
Description copied from interface:IValidationSupportFetch a code system by ID- Specified by:
fetchCodeSystemin 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:
fetchStructureDefinitionin interfaceIValidationSupport
-
fetchValueSet
public IBaseResource fetchValueSet(String theUrl)
Description copied from interface:IValidationSupportFetch the given ValueSet by URL- Specified by:
fetchValueSetin interfaceIValidationSupport
-
flush
public void flush()
-
getFhirContext
public FhirContext getFhirContext()
Description copied from interface:IValidationSupportReturns the FHIR Context associated with this module- Specified by:
getFhirContextin interfaceIValidationSupport
-
getConformanceResourceUrl
@Nullable public static String getConformanceResourceUrl(FhirContext theFhirContext, IBaseResource theResource)
-
-