Class ResourceUndoMergeService

java.lang.Object
ca.uhn.fhir.jpa.provider.merge.ResourceUndoMergeService

public class ResourceUndoMergeService extends Object
This service implements the $hapi.fhir.undo-merge operation. It reverts the changes made by a previous $merge operation based on the Provenance resource that was created as part of the $merge operation. Current limitations: - It fails if any resources to be restored have been subsequently changed since the `$merge` operation was performed. - It can only run synchronously. - It fails if the number of resources to restore exceeds a specified resource limit (currently set to same size as getInternalSynchronousSearchSize in JPAStorageSettings by the operation provider).