capabilities.work

Amend Resource With History

A 4-step recipe with Medplum. We can help you get access.

Recipe · 4 steps

Amend Resource With History

with Medplum · Healthcare Interoperability Operations

Update a resource and walk its version history.

  1. Read the current version of the target resource to confirm it exists before amending it.
  2. Perform a full FHIR update on the resource with the supplied body. This creates a new version in the resource history.
  3. Read the resource history Bundle to capture the full version timeline after the amendment.
  4. Read the immediately prior version of the resource by versionId to confirm the pre-amendment state is still retrievable.
What you'll need to have ready
  • resourceType: The FHIR resource type (e.g. Patient, Observation, Encounter).
  • resourceId: The id of the existing resource to amend.
  • resourceBody: The full FHIR resource payload to write on update. Must include resourceType and id matching the target resource.
For your developer

Arazzo workflow medplum:amend-resource-with-history, 4 operations: readResource → updateResource → readResourceHistory → readVersion. Specs on APIs.io.