Package ca.uhn.fhir.jpa.term
Class TermCodeSystemStorageSvcImpl
java.lang.Object
ca.uhn.fhir.jpa.term.TermCodeSystemStorageSvcImpl
- All Implemented Interfaces:
ITermCodeSystemStorageSvc
-
Field Summary
Modifier and TypeFieldDescriptionprotected ITermCodeSystemDao
protected ITermCodeSystemVersionDao
protected ITermConceptDao
protected ITermConceptDesignationDao
protected ITermConceptPropertyDao
protected jakarta.persistence.EntityManager
protected IIdHelperService
<JpaPid> Fields inherited from interface ca.uhn.fhir.jpa.term.api.ITermCodeSystemStorageSvc
MAKE_LOADING_VERSION_CURRENT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplyDeltaCodeSystemsAdd
(String theSystem, CustomTerminologySet theAdditions) applyDeltaCodeSystemsRemove
(String theSystem, CustomTerminologySet theValue) int
saveConcept
(TermConcept theConcept) Returns the number of saved conceptsvoid
storeNewCodeSystemVersion
(ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId theCodeSystemResourcePid, String theSystemUri, String theSystemName, String theCodeSystemVersionId, TermCodeSystemVersion theCodeSystemVersion, ResourceTable theCodeSystemResourceTable, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) org.hl7.fhir.instance.model.api.IIdType
storeNewCodeSystemVersion
(org.hl7.fhir.r4.model.CodeSystem theCodeSystemResource, TermCodeSystemVersion theCodeSystemVersion, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, List<org.hl7.fhir.r4.model.ValueSet> theValueSets, List<org.hl7.fhir.r4.model.ConceptMap> theConceptMaps) void
storeNewCodeSystemVersionIfNeeded
(org.hl7.fhir.r4.model.CodeSystem theCodeSystem, ResourceTable theResourceEntity, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) 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.term.api.ITermCodeSystemStorageSvc
storeNewCodeSystemVersion, storeNewCodeSystemVersionIfNeeded
-
Field Details
-
myEntityManager
-
myCodeSystemDao
-
myCodeSystemVersionDao
-
myConceptDao
-
myConceptPropertyDao
-
myConceptDesignationDao
-
myIdHelperService
-
-
Constructor Details
-
TermCodeSystemStorageSvcImpl
public TermCodeSystemStorageSvcImpl()
-
-
Method Details
-
applyDeltaCodeSystemsAdd
@Transactional public UploadStatistics applyDeltaCodeSystemsAdd(String theSystem, CustomTerminologySet theAdditions) - Specified by:
applyDeltaCodeSystemsAdd
in interfaceITermCodeSystemStorageSvc
-
applyDeltaCodeSystemsRemove
@Transactional public UploadStatistics applyDeltaCodeSystemsRemove(String theSystem, CustomTerminologySet theValue) - Specified by:
applyDeltaCodeSystemsRemove
in interfaceITermCodeSystemStorageSvc
-
saveConcept
Returns the number of saved concepts- Specified by:
saveConcept
in interfaceITermCodeSystemStorageSvc
-
storeNewCodeSystemVersionIfNeeded
@Transactional(propagation=MANDATORY) public void storeNewCodeSystemVersionIfNeeded(org.hl7.fhir.r4.model.CodeSystem theCodeSystem, ResourceTable theResourceEntity, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
storeNewCodeSystemVersionIfNeeded
in interfaceITermCodeSystemStorageSvc
-
storeNewCodeSystemVersion
@Transactional public org.hl7.fhir.instance.model.api.IIdType storeNewCodeSystemVersion(org.hl7.fhir.r4.model.CodeSystem theCodeSystemResource, TermCodeSystemVersion theCodeSystemVersion, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, List<org.hl7.fhir.r4.model.ValueSet> theValueSets, List<org.hl7.fhir.r4.model.ConceptMap> theConceptMaps) - Specified by:
storeNewCodeSystemVersion
in interfaceITermCodeSystemStorageSvc
- Returns:
- Returns the ID of the created/updated code system
-
storeNewCodeSystemVersion
@Transactional public void storeNewCodeSystemVersion(ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId theCodeSystemResourcePid, String theSystemUri, String theSystemName, String theCodeSystemVersionId, TermCodeSystemVersion theCodeSystemVersion, ResourceTable theCodeSystemResourceTable, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
storeNewCodeSystemVersion
in interfaceITermCodeSystemStorageSvc
-