Package ca.uhn.fhir.jpa.mdm.svc
Class MdmSurvivorshipSvcImpl
java.lang.Object
ca.uhn.fhir.jpa.mdm.svc.MdmSurvivorshipSvcImpl
- All Implemented Interfaces:
ca.uhn.fhir.mdm.api.IMdmSurvivorshipService
public class MdmSurvivorshipSvcImpl
extends Object
implements ca.uhn.fhir.mdm.api.IMdmSurvivorshipService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends org.hl7.fhir.instance.model.api.IBase>
voidapplySurvivorshipRulesToGoldenResource(T theTargetResource, T theGoldenResource, ca.uhn.fhir.mdm.model.MdmTransactionContext theMdmTransactionContext) Merges two golden resources by overwriting all field values on theGoldenResource param for CREATE_RESOURCE, UPDATE_RESOURCE, SUBMIT_RESOURCE_TO_MDM, UPDATE_LINK (when setting to MATCH) and MANUAL_MERGE_GOLDEN_RESOURCES.
-
Constructor Details
-
MdmSurvivorshipSvcImpl
public MdmSurvivorshipSvcImpl()
-
-
Method Details
-
applySurvivorshipRulesToGoldenResource
public <T extends org.hl7.fhir.instance.model.api.IBase> void applySurvivorshipRulesToGoldenResource(T theTargetResource, T theGoldenResource, ca.uhn.fhir.mdm.model.MdmTransactionContext theMdmTransactionContext) Merges two golden resources by overwriting all field values on theGoldenResource param for CREATE_RESOURCE, UPDATE_RESOURCE, SUBMIT_RESOURCE_TO_MDM, UPDATE_LINK (when setting to MATCH) and MANUAL_MERGE_GOLDEN_RESOURCES. PID, identifiers and meta values are not affected by this operation.- Specified by:
applySurvivorshipRulesToGoldenResourcein interfaceca.uhn.fhir.mdm.api.IMdmSurvivorshipService- Type Parameters:
T-- Parameters:
theTargetResource- Target resource to retrieve fields fromtheGoldenResource- Golden resource to merge fields intotheMdmTransactionContext- Current transaction context
-