rahul1
02/29/2024, 12:36 AM/_history
api: https://www.medplum.com/docs/fhir-datastore/resource-history
We also have two helper methods in our SDK:
- `medplum.readHistory`: read the full version history for a resource
- `medplum.readVersion`: read a specific version of a resource, given the resourceId + versionId
The workflow for reverting is similar to a git revert:
- Read the historical version you would like to revert to
- call medplum.updateResource()
This will create a new entry in the history, but with the same content as the historical version