Class MergeProvenanceSvc


Handles Provenance resources for the $merge operation.
  • Constructor Details

  • Method Details

    • getActivityCodeableConcept

      protected org.hl7.fhir.r4.model.CodeableConcept getActivityCodeableConcept()
      Overrides:
      getActivityCodeableConcept in class ReplaceReferencesProvenanceSvc
    • 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 class ReplaceReferencesProvenanceSvc
      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 details
      theProvenanceAgents - 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.