
Package ca.uhn.fhir.replacereferences
Class ReplaceReferencesProvenanceSvc
java.lang.Object
ca.uhn.fhir.replacereferences.ReplaceReferencesProvenanceSvc
- Direct Known Subclasses:
MergeProvenanceSvc
This service is used to create a Provenance resource for the $replace-references operation
and also used as a base class for
MergeProvenanceSvc
used in $merge operations.
The two operations use different activity codes.-
Field Summary
Fields -
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) Creates a Provenance resource for the $replace-references and $merge operations.protected org.hl7.fhir.r4.model.Provenance
createProvenanceObject
(org.hl7.fhir.r4.model.Reference theTargetReference, org.hl7.fhir.r4.model.Reference theSourceReference, List<org.hl7.fhir.r4.model.Reference> theUpdatedReferencingResources, Date theStartTime, List<ca.uhn.fhir.model.api.IProvenanceAgent> theProvenanceAgents) protected List
<org.hl7.fhir.r4.model.Reference> extractUpdatedResourceReferences
(List<org.hl7.fhir.r4.model.Bundle> thePatchBundles) protected org.hl7.fhir.r4.model.CodeableConcept
-
Field Details
-
ACTIVITY_CODE_SYSTEM
- See Also:
-
-
Constructor Details
-
ReplaceReferencesProvenanceSvc
-
-
Method Details
-
getActivityCodeableConcept
-
createProvenanceObject
protected org.hl7.fhir.r4.model.Provenance createProvenanceObject(org.hl7.fhir.r4.model.Reference theTargetReference, @Nullable org.hl7.fhir.r4.model.Reference theSourceReference, List<org.hl7.fhir.r4.model.Reference> theUpdatedReferencingResources, Date theStartTime, List<ca.uhn.fhir.model.api.IProvenanceAgent> theProvenanceAgents) -
createProvenance
public void createProvenance(org.hl7.fhir.instance.model.api.IIdType theTargetId, @Nullable 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) Creates a Provenance resource for the $replace-references and $merge operations.- Parameters:
theTargetId
- the versioned id of the target resource of the operation.theSourceId
- the versioned id of the source resource of the operation. Can be null if the operation is $merge and the source resource is deleted.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.
-
extractUpdatedResourceReferences
protected List<org.hl7.fhir.r4.model.Reference> extractUpdatedResourceReferences(List<org.hl7.fhir.r4.model.Bundle> thePatchBundles)
-