
Package ca.uhn.fhir.merge
Class MergeProvenanceSvc
java.lang.Object
ca.uhn.fhir.replacereferences.ReplaceReferencesProvenanceSvc
ca.uhn.fhir.merge.MergeProvenanceSvc
Handles Provenance resources for the $merge operation.
-
Field Summary
Fields inherited from class ca.uhn.fhir.replacereferences.ReplaceReferencesProvenanceSvc
ACTIVITY_CODE_SYSTEM
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
createProvenance
(org.hl7.fhir.instance.model.api.IIdType theTargetId, org.hl7.fhir.instance.model.api.IIdType theSourceId, List<org.hl7.fhir.r4.model.Bundle> thePatchResultBundles, Date theStartTime, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, List<ca.uhn.fhir.model.api.IProvenanceAgent> theProvenanceAgents, List<org.hl7.fhir.instance.model.api.IBaseResource> theContainedResources) Creates a Provenance resource for the $replace-references and $merge operations.org.hl7.fhir.r4.model.Provenance
findProvenanceByTargetIdAndSourceIdentifiers
(org.hl7.fhir.instance.model.api.IIdType theTargetId, List<CanonicalIdentifier> theSourceIdentifiers, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Finds a Provenance with the activity code "merge" that has the given target id and source identifiers.protected org.hl7.fhir.r4.model.CodeableConcept
Methods inherited from class ca.uhn.fhir.replacereferences.ReplaceReferencesProvenanceSvc
createProvenance, createProvenanceObject, extractUpdatedResourceReferences, findProvenance, getProvenancesOfTargetsFilteredByActivity, isTargetAndSourceInCorrectOrder
-
Constructor Details
-
MergeProvenanceSvc
-
-
Method Details
-
getActivityCodeableConcept
- Overrides:
getActivityCodeableConcept
in classReplaceReferencesProvenanceSvc
-
createProvenance
public void createProvenance(org.hl7.fhir.instance.model.api.IIdType theTargetId, org.hl7.fhir.instance.model.api.IIdType theSourceId, List<org.hl7.fhir.r4.model.Bundle> thePatchResultBundles, Date theStartTime, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, List<ca.uhn.fhir.model.api.IProvenanceAgent> theProvenanceAgents, List<org.hl7.fhir.instance.model.api.IBaseResource> theContainedResources) Description copied from class:ReplaceReferencesProvenanceSvc
Creates a Provenance resource for the $replace-references and $merge operations.- Overrides:
createProvenance
in classReplaceReferencesProvenanceSvc
- Parameters:
theTargetId
- the versioned id of the target resource of the operation.theSourceId
- the versioned id of the source resource of the operation.thePatchResultBundles
- the list of patch result bundles that contain the updated resources.theStartTime
- the start time of the operation.theRequestDetails
- the request detailstheProvenanceAgents
- the list of agents to be included in the Provenance resource.
-
findProvenanceByTargetIdAndSourceIdentifiers
@Nullable public org.hl7.fhir.r4.model.Provenance findProvenanceByTargetIdAndSourceIdentifiers(org.hl7.fhir.instance.model.api.IIdType theTargetId, List<CanonicalIdentifier> theSourceIdentifiers, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Finds a Provenance with the activity code "merge" that has the given target id and source identifiers.- Returns:
- the Provenance resource if matching one is found, or null if not found.
-