Package ca.uhn.fhir.jpa.provider
Class ReplaceReferencesSvcImpl
java.lang.Object
ca.uhn.fhir.jpa.provider.ReplaceReferencesSvcImpl
- All Implemented Interfaces:
IReplaceReferencesSvc
-
Field Summary
-
Constructor Summary
ConstructorDescriptionReplaceReferencesSvcImpl
(DaoRegistry theDaoRegistry, HapiTransactionService theHapiTransactionService, IResourceLinkDao theResourceLinkDao, IJobCoordinator theJobCoordinator, ReplaceReferencesPatchBundleSvc theReplaceReferencesPatchBundleSvc, Batch2TaskHelper theBatch2TaskHelper, JpaStorageSettings theStorageSettings) -
Method Summary
Modifier and TypeMethodDescriptioncountResourcesReferencingResource
(org.hl7.fhir.instance.model.api.IIdType theResourceId, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) To support $merge preview mode, provide a count of how many references would be updated if replaceReferences was calledorg.hl7.fhir.instance.model.api.IBaseParameters
replaceReferences
(ReplaceReferencesRequest theReplaceReferencesRequest, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Find all references to a source resource and replace them with references to the provided target
-
Field Details
-
RESOURCE_TYPES_SYSTEM
- See Also:
-
-
Constructor Details
-
ReplaceReferencesSvcImpl
public ReplaceReferencesSvcImpl(DaoRegistry theDaoRegistry, HapiTransactionService theHapiTransactionService, IResourceLinkDao theResourceLinkDao, IJobCoordinator theJobCoordinator, ReplaceReferencesPatchBundleSvc theReplaceReferencesPatchBundleSvc, Batch2TaskHelper theBatch2TaskHelper, JpaStorageSettings theStorageSettings)
-
-
Method Details
-
replaceReferences
public org.hl7.fhir.instance.model.api.IBaseParameters replaceReferences(ReplaceReferencesRequest theReplaceReferencesRequest, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Description copied from interface:IReplaceReferencesSvc
Find all references to a source resource and replace them with references to the provided target- Specified by:
replaceReferences
in interfaceIReplaceReferencesSvc
-
countResourcesReferencingResource
public Integer countResourcesReferencingResource(org.hl7.fhir.instance.model.api.IIdType theResourceId, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Description copied from interface:IReplaceReferencesSvc
To support $merge preview mode, provide a count of how many references would be updated if replaceReferences was called- Specified by:
countResourcesReferencingResource
in interfaceIReplaceReferencesSvc
-