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
    Modifier and Type
    Field
    Description
    protected static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
    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
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • getActivityCodeableConcept

      @Nullable protected org.hl7.fhir.r4.model.CodeableConcept 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 details
      theProvenanceAgents - 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)