Package ca.uhn.fhir.jpa.dao.dstu3
Class FhirResourceDaoCodeSystemDstu3
java.lang.Object
ca.uhn.fhir.jpa.dao.BaseStorageDao
ca.uhn.fhir.jpa.dao.BaseHapiFhirDao<T>
ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao<org.hl7.fhir.dstu3.model.CodeSystem>
ca.uhn.fhir.jpa.dao.dstu3.FhirResourceDaoCodeSystemDstu3
- All Implemented Interfaces:
ca.uhn.fhir.jpa.api.dao.IDao
,ca.uhn.fhir.jpa.api.dao.IFhirResourceDao<org.hl7.fhir.dstu3.model.CodeSystem>
,ca.uhn.fhir.jpa.api.dao.IFhirResourceDaoCodeSystem<org.hl7.fhir.dstu3.model.CodeSystem,
,org.hl7.fhir.dstu3.model.Coding, org.hl7.fhir.dstu3.model.CodeableConcept> ca.uhn.fhir.jpa.api.dao.IJpaDao<org.hl7.fhir.dstu3.model.CodeSystem>
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
public class FhirResourceDaoCodeSystemDstu3
extends BaseHapiFhirResourceDao<org.hl7.fhir.dstu3.model.CodeSystem>
implements ca.uhn.fhir.jpa.api.dao.IFhirResourceDaoCodeSystem<org.hl7.fhir.dstu3.model.CodeSystem,org.hl7.fhir.dstu3.model.Coding,org.hl7.fhir.dstu3.model.CodeableConcept>
-
Nested Class Summary
Nested classes/interfaces inherited from interface ca.uhn.fhir.jpa.api.dao.IFhirResourceDaoCodeSystem
ca.uhn.fhir.jpa.api.dao.IFhirResourceDaoCodeSystem.SubsumesResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ITermDeferredStorageSvc
protected ITermCodeSystemStorageSvc
Fields inherited from class ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao
myPlatformTransactionManager, mySearchDao, myTransactionService
Fields inherited from class ca.uhn.fhir.jpa.dao.BaseHapiFhirDao
INDEX_STATUS_INDEXED, INDEX_STATUS_INDEXING_FAILED, myDeleteConflictService, myEntityManager, myForcedIdDao, myIdHelperService, myInMemoryResourceMatcher, myInterceptorBroadcaster, myResourceHistoryTableDao, myResourceProvenanceDao, myResourceTableDao, myResourceTagDao, mySearchCoordinatorSvc, myTerminologySvc, NS_JPA_PROFILE
Fields inherited from class ca.uhn.fhir.jpa.dao.BaseStorageDao
myDaoConfig, myModelConfig, myResourceVersionSvc, mySearchParamRegistry, OO_SEVERITY_ERROR, OO_SEVERITY_INFO, OO_SEVERITY_WARN
Fields inherited from interface ca.uhn.fhir.jpa.api.dao.IDao
CURRENTLY_REINDEXING, RESOURCE_PID, RESOURCE_PID_KEY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.hl7.fhir.instance.model.api.IIdType>
findCodeSystemIdsContainingSystemAndCode
(String theCode, String theSystem, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) ca.uhn.fhir.context.support.IValidationSupport.LookupCodeResult
lookupCode
(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theCode, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theSystem, org.hl7.fhir.dstu3.model.Coding theCoding, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) ca.uhn.fhir.context.support.IValidationSupport.LookupCodeResult
lookupCode
(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theCode, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theSystem, org.hl7.fhir.dstu3.model.Coding theCoding, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theDisplayLanguage, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) protected void
preDelete
(org.hl7.fhir.dstu3.model.CodeSystem theResourceToDelete, ResourceTable theEntityToDelete) Subclasses may override to provide behaviour.ca.uhn.fhir.jpa.api.dao.IFhirResourceDaoCodeSystem.SubsumesResult
subsumes
(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theCodeA, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theCodeB, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theSystem, org.hl7.fhir.dstu3.model.Coding theCodingA, org.hl7.fhir.dstu3.model.Coding theCodingB, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) updateEntity
(ca.uhn.fhir.rest.api.server.RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource, IBasePersistedResource theEntity, Date theDeletedTimestampOrNull, boolean thePerformIndexing, boolean theUpdateVersion, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails, boolean theForceUpdate, boolean theCreateNewHistoryEntry) ca.uhn.fhir.context.support.IValidationSupport.CodeValidationResult
validateCode
(org.hl7.fhir.instance.model.api.IIdType theCodeSystemId, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theCodeSystemUrl, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theVersion, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theCode, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theDisplay, org.hl7.fhir.dstu3.model.Coding theCoding, org.hl7.fhir.dstu3.model.CodeableConcept theCodeableConcept, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Methods inherited from class ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao
create, create, create, create, create, delete, delete, delete, deleteByUrl, deleteByUrl, deletePidList, detectSearchDaoDisabled, doCreateForPost, doRead, expunge, expunge, forceExpungeInExistingTransaction, getCurrentVersionId, getMessageSanitized, getResourceName, getResourceType, history, history, isPagingProviderDatabaseBacked, markResourcesMatchingExpressionAsNeedingReindexing, metaAddOperation, metaDeleteOperation, metaGetOperation, metaGetOperation, patch, postConstruct, read, read, read, readByPid, readByPid, readEntity, readEntity, readEntityLatestVersion, reindex, removeTag, removeTag, search, search, search, searchForIds, setIdHelperSvcForUnitTest, setRequestPartitionHelperService, setResourceType, setTransactionService, start, toMetaDt, update, update, update, update, update, update, validate, validateCriteriaAndReturnResourceDefinition
Methods inherited from class ca.uhn.fhir.jpa.dao.BaseHapiFhirDao
addPidToResource, decodeResource, encodeResource, getApplicationContext, getConfig, getContext, getContext, getInterceptorBroadcaster, getTagOrNull, history, isLogicalReference, parseContentTextIntoWords, populateFullTextFields, populateResourceIntoEntity, postDelete, postPersist, postUpdate, setApplicationContext, setContext, setDaoConfigForUnitTest, setDaoSearchParamSynchronizer, setDisableIncrementOnUpdateForUnitTest, setEntityManager, setPartitionSettingsForUnitTest, setResourceHistoryTableDao, setSearchParamPresenceSvc, setSearchParamWithInlineReferencesExtractor, setValidationDisabledForUnitTest, shouldDroppedTagBeRemovedOnUpdate, toResource, toResource, toResourceName, toTagDefinitionMemoryCacheKey, updateEntityForDelete, updateInternal, updateResourceMetadata, validateMetaCount, validateResourceForStorage, validateResourceType
Methods inherited from class ca.uhn.fhir.jpa.dao.BaseStorageDao
clearRequestAsProcessingSubRequest, createErrorOperationOutcome, createInfoOperationOutcome, createResourceGoneException, doCallHooks, extractReferencesToAutoVersion, markRequestAsProcessingSubRequest, notifyInterceptors, preProcessResourceForStorage, preProcessResourceForStorage, setSearchParamRegistry, toMethodOutcome, toMethodOutcomeLazy, translateRawParameters
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.jpa.api.dao.IDao
getContext, toResource, toResource
Methods inherited from interface ca.uhn.fhir.jpa.api.dao.IFhirResourceDao
create, create, create, create, create, delete, delete, delete, deleteByUrl, deleteByUrl, deletePidList, expunge, expunge, forceExpungeInExistingTransaction, getCurrentVersionId, getResourceType, history, history, metaAddOperation, metaDeleteOperation, metaGetOperation, metaGetOperation, patch, read, read, read, readByPid, readByPid, readEntity, readEntity, reindex, removeTag, removeTag, search, search, search, searchForIds, searchForIds, translateRawParameters, update, update, update, update, update, update, validate, validateCriteriaAndReturnResourceDefinition
-
Field Details
-
myTerminologyCodeSystemStorageSvc
-
myTermDeferredStorageSvc
-
-
Constructor Details
-
FhirResourceDaoCodeSystemDstu3
public FhirResourceDaoCodeSystemDstu3()
-
-
Method Details
-
findCodeSystemIdsContainingSystemAndCode
public List<org.hl7.fhir.instance.model.api.IIdType> findCodeSystemIdsContainingSystemAndCode(String theCode, String theSystem, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) - Specified by:
findCodeSystemIdsContainingSystemAndCode
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDaoCodeSystem<org.hl7.fhir.dstu3.model.CodeSystem,
org.hl7.fhir.dstu3.model.Coding, org.hl7.fhir.dstu3.model.CodeableConcept>
-
lookupCode
@Nonnull public ca.uhn.fhir.context.support.IValidationSupport.LookupCodeResult lookupCode(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theCode, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theSystem, org.hl7.fhir.dstu3.model.Coding theCoding, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
lookupCode
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDaoCodeSystem<org.hl7.fhir.dstu3.model.CodeSystem,
org.hl7.fhir.dstu3.model.Coding, org.hl7.fhir.dstu3.model.CodeableConcept>
-
lookupCode
@Nonnull public ca.uhn.fhir.context.support.IValidationSupport.LookupCodeResult lookupCode(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theCode, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theSystem, org.hl7.fhir.dstu3.model.Coding theCoding, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theDisplayLanguage, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
lookupCode
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDaoCodeSystem<org.hl7.fhir.dstu3.model.CodeSystem,
org.hl7.fhir.dstu3.model.Coding, org.hl7.fhir.dstu3.model.CodeableConcept>
-
subsumes
public ca.uhn.fhir.jpa.api.dao.IFhirResourceDaoCodeSystem.SubsumesResult subsumes(org.hl7.fhir.instance.model.api.IPrimitiveType<String> theCodeA, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theCodeB, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theSystem, org.hl7.fhir.dstu3.model.Coding theCodingA, org.hl7.fhir.dstu3.model.Coding theCodingB, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
subsumes
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDaoCodeSystem<org.hl7.fhir.dstu3.model.CodeSystem,
org.hl7.fhir.dstu3.model.Coding, org.hl7.fhir.dstu3.model.CodeableConcept>
-
preDelete
protected void preDelete(org.hl7.fhir.dstu3.model.CodeSystem theResourceToDelete, ResourceTable theEntityToDelete) Description copied from class:BaseHapiFhirResourceDao
Subclasses may override to provide behaviour. Invoked within a delete transaction with the resource that is about to be deleted.- Overrides:
preDelete
in classBaseHapiFhirResourceDao<org.hl7.fhir.dstu3.model.CodeSystem>
-
updateEntity
public ResourceTable updateEntity(ca.uhn.fhir.rest.api.server.RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource, IBasePersistedResource theEntity, Date theDeletedTimestampOrNull, boolean thePerformIndexing, boolean theUpdateVersion, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails, boolean theForceUpdate, boolean theCreateNewHistoryEntry) - Specified by:
updateEntity
in interfaceca.uhn.fhir.jpa.api.dao.IJpaDao<org.hl7.fhir.dstu3.model.CodeSystem>
- Overrides:
updateEntity
in classBaseHapiFhirDao<org.hl7.fhir.dstu3.model.CodeSystem>
-
validateCode
public ca.uhn.fhir.context.support.IValidationSupport.CodeValidationResult validateCode(org.hl7.fhir.instance.model.api.IIdType theCodeSystemId, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theCodeSystemUrl, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theVersion, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theCode, org.hl7.fhir.instance.model.api.IPrimitiveType<String> theDisplay, org.hl7.fhir.dstu3.model.Coding theCoding, org.hl7.fhir.dstu3.model.CodeableConcept theCodeableConcept, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
validateCode
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDaoCodeSystem<org.hl7.fhir.dstu3.model.CodeSystem,
org.hl7.fhir.dstu3.model.Coding, org.hl7.fhir.dstu3.model.CodeableConcept>
-