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.CodeValidationIssue, IValidationSupport.CodeValidationIssueCode, IValidationSupport.CodeValidationIssueCoding, IValidationSupport.CodeValidationIssueDetails, IValidationSupport.CodeValidationResult, IValidationSupport.CodingConceptProperty, IValidationSupport.ConceptDesignation, IValidationSupport.GroupConceptProperty, IValidationSupport.IssueSeverity, IValidationSupport.LookupCodeResult, IValidationSupport.StringConceptProperty, IValidationSupport.TranslateCodeRequest, IValidationSupport.ValueSetExpansionOutcome
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Userdata key indicating the source package ID for this packageFields inherited from interface ca.uhn.fhir.context.support.IValidationSupport
TYPE_CODING, TYPE_GROUP, TYPE_STRING, URL_PREFIX_VALUE_SET
-
Constructor Summary
-
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 modulegetName()
This field is used by the Terminology Troubleshooting Log to log which validation support module was used for the operation being logged.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, expandValueSet, fetchAllSearchParameters, fetchBinary, fetchResource, generateSnapshot, invalidateCaches, isCodeableConceptValidationSuccessfulIfNotAllCodingsAreValid, isCodeSystemSupported, isRemoteTerminologyServiceConfigured, isValueSetSupported, lookupCode, lookupCode, lookupCode, translateConcept, validateCode, validateCodeInValueSet
-
Field Details
-
SOURCE_PACKAGE_ID
Userdata key indicating the source package ID for this package
-
-
Constructor Details
-
DefaultProfileValidationSupport
Constructor- Parameters:
theFhirContext
- The context to use
-
-
Method Details
-
getName
Description copied from interface:IValidationSupport
This field is used by the Terminology Troubleshooting Log to log which validation support module was used for the operation being logged.- Specified by:
getName
in interfaceIValidationSupport
-
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)
-