
Package ca.uhn.fhir.jpa.dao
Class JpaPersistedResourceValidationSupport
java.lang.Object
ca.uhn.fhir.jpa.dao.JpaPersistedResourceValidationSupport
- All Implemented Interfaces:
ca.uhn.fhir.context.support.IValidationSupport
public class JpaPersistedResourceValidationSupport
extends Object
implements ca.uhn.fhir.context.support.IValidationSupport
This class is a
Validation support
module that loads
validation resources (StructureDefinition, ValueSet, CodeSystem, etc.) from the resources
persisted in the JPA server.
Note that this class is aware of the resource business version (not to be confused with the FHIR version or
meta.versionId) for CodeSystem, ValueSet, and StructureDefinition resources.
For example, a request for http://example.com/StructureDefinition/ABC|1.2.3
will
return the resource that matches the URL http://example.com/StructureDefinition/ABC and version 1.2.3.
Unversioned URLs will match the most recently updated resource by using the meta.lastUpdated field.-
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.BooleanConceptProperty, ca.uhn.fhir.context.support.IValidationSupport.CodeValidationIssue, ca.uhn.fhir.context.support.IValidationSupport.CodeValidationIssueCode, ca.uhn.fhir.context.support.IValidationSupport.CodeValidationIssueCoding, ca.uhn.fhir.context.support.IValidationSupport.CodeValidationIssueDetails, 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.GroupConceptProperty, 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.TranslateCodeRequest, ca.uhn.fhir.context.support.IValidationSupport.ValueSetExpansionOutcome
-
Field Summary
Fields inherited from interface ca.uhn.fhir.context.support.IValidationSupport
TYPE_BOOLEAN, TYPE_CODING, TYPE_GROUP, TYPE_STRING, URL_PREFIX_STRUCTURE_DEFINITION, URL_PREFIX_VALUE_SET
-
Constructor Summary
ConstructorsConstructorDescriptionJpaPersistedResourceValidationSupport
(ca.uhn.fhir.context.FhirContext theFhirContext, DaoRegistry theDaoRegistry) Constructor -
Method Summary
Modifier and TypeMethodDescription<T extends org.hl7.fhir.instance.model.api.IBaseResource>
List<T> org.hl7.fhir.instance.model.api.IBaseResource
fetchCodeSystem
(String theSystem) <T extends org.hl7.fhir.instance.model.api.IBaseResource>
TfetchResource
(Class<T> theClass, String theUri) org.hl7.fhir.instance.model.api.IBaseResource
fetchStructureDefinition
(String theUrl) org.hl7.fhir.instance.model.api.IBaseResource
fetchValueSet
(String theSystem) ca.uhn.fhir.context.FhirContext
getName()
void
start()
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, fetchAllConformanceResources, fetchAllNonBaseStructureDefinitions, fetchAllSearchParameters, fetchBinary, generateSnapshot, invalidateCaches, isCodeableConceptValidationSuccessfulIfNotAllCodingsAreValid, isCodeSystemSupported, isRemoteTerminologyServiceConfigured, isValueSetSupported, lookupCode, lookupCode, lookupCode, translateConcept, validateCode, validateCodeInValueSet
-
Constructor Details
-
JpaPersistedResourceValidationSupport
public JpaPersistedResourceValidationSupport(ca.uhn.fhir.context.FhirContext theFhirContext, DaoRegistry theDaoRegistry) Constructor
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceca.uhn.fhir.context.support.IValidationSupport
-
fetchCodeSystem
- Specified by:
fetchCodeSystem
in interfaceca.uhn.fhir.context.support.IValidationSupport
-
fetchValueSet
- Specified by:
fetchValueSet
in interfaceca.uhn.fhir.context.support.IValidationSupport
-
fetchStructureDefinition
- Specified by:
fetchStructureDefinition
in interfaceca.uhn.fhir.context.support.IValidationSupport
-
fetchAllStructureDefinitions
@Nullable public <T extends org.hl7.fhir.instance.model.api.IBaseResource> List<T> fetchAllStructureDefinitions()- Specified by:
fetchAllStructureDefinitions
in interfaceca.uhn.fhir.context.support.IValidationSupport
-
fetchResource
public <T extends org.hl7.fhir.instance.model.api.IBaseResource> T fetchResource(@Nullable Class<T> theClass, String theUri) - Specified by:
fetchResource
in interfaceca.uhn.fhir.context.support.IValidationSupport
-
getFhirContext
- Specified by:
getFhirContext
in interfaceca.uhn.fhir.context.support.IValidationSupport
-
start
-