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.
- Read the current version of the target resource to confirm it exists before amending it.
- Perform a full FHIR update on the resource with the supplied body. This creates a new version in the resource history.
- Read the resource history Bundle to capture the full version timeline after the amendment.
- 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.