
Package ca.uhn.fhir.context.support
Class DefaultProfileValidationSupport
java.lang.Object
ca.uhn.fhir.context.support.DefaultProfileValidationSupport
- All Implemented Interfaces:
IValidationSupport
This class returns the vocabulary that is shipped with the base FHIR
specification.
Note that this class is version aware. For example, a request for
http://foo-codesystem|123
will only return a value if
the built in resource if the version matches. Unversioned URLs
should generally be used, and will return whatever version is
present.-
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.TranslateCodeRequest, IValidationSupport.ValueSetExpansionOutcome
-
Field Summary
Fields inherited from interface ca.uhn.fhir.context.support.IValidationSupport
URL_PREFIX_VALUE_SET
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLoad and return all conformance resources associated with this validation support module.<T extends IBaseResource>
List<T>Load and return all possible structure definitions aside from resource definitions themselves<T extends IBaseResource>
List<T>Load and return all possible structure definitionsfetchCodeSystem
(String theSystem) Fetch a code system by IDfetchStructureDefinition
(String theUrl) fetchValueSet
(String theUrl) Fetch the given ValueSet by URL, or returns null if one can't be found for the given URLvoid
flush()
static String
getConformanceResourceUrl
(FhirContext theFhirContext, IBaseResource theResource) Returns the FHIR Context associated with this moduleMethods 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, expandValueSet, fetchResource, generateSnapshot, invalidateCaches, isCodeSystemSupported, isRemoteTerminologyServiceConfigured, isValueSetSupported, lookupCode, lookupCode, translateConcept, validateCode, validateCodeInValueSet
-
Constructor Details
-
DefaultProfileValidationSupport
Constructor- Parameters:
theFhirContext
- The context to use
-
-
Method Details
-
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
Description copied from interface:IValidationSupport
Load and return all possible structure definitions- Specified by:
fetchAllStructureDefinitions
in interfaceIValidationSupport
-
fetchAllNonBaseStructureDefinitions
Description copied from interface:IValidationSupport
Load and return all possible structure definitions aside from resource definitions themselves- Specified by:
fetchAllNonBaseStructureDefinitions
in interfaceIValidationSupport
-
fetchCodeSystem
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
- Specified by:
fetchStructureDefinition
in interfaceIValidationSupport
-
fetchValueSet
Description copied from interface:IValidationSupport
Fetch the given ValueSet by URL, or returns null if one can't be found for the given URL- Specified by:
fetchValueSet
in interfaceIValidationSupport
-
flush
-
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)
-