Resource History
History & Versioning
Resource History
Get history of a specific resource instance
GET
Resource History
Resource History
Retrieve the complete history of a specific resource instance, showing all versions and changes.The FHIR resource type (e.g.,
Patient, Observation, Encounter)The logical ID of the resource
Endpoint
Query Parameters
_count- Maximum number of results (default: 10)_since- Only return versions created since this date/time_at- Return the version that existed at a specific point in time
Example Request
Response
Success (200 OK)
Returns aBundle containing all versions of the resource:
History Entry Structure
Each entry in the history bundle includes:fullUrl- The versioned URL of the resourceresource- The resource at that versionrequest- Information about the request that created this versionmethod- HTTP method (POST, PUT, PATCH, DELETE)url- Resource URL
Filtering by Date
Since Parameter
Get versions created since a specific date/time:At Parameter
Get the version that existed at a specific point in time:Deleted Resources
If a resource was deleted, the history includes the deletion:Pagination
Use_count and _offset for pagination:
next and previous links when available.
Notes
- Resource history shows all versions of a specific resource
- History entries are ordered by version ID (most recent first)
- Deleted resources remain in history
- Use
_sinceto get incremental updates for a resource - The first entry is the original creation (version 1)
Authorizations
Bearer token authentication
Path Parameters
The FHIR resource type (e.g., Patient, Observation, Encounter)
The logical ID of the resource
Query Parameters
Maximum number of results to return
Required range:
x >= 0Only return resources modified since this date/time
Return resources as they were at a specific point in time
Response
200 - application/fhir+json
History bundle
A container for a collection of resources
Resource type
Available options:
Bundle Indicates the purpose of this bundle
Available options:
document, message, transaction, transaction-response, batch, batch-response, history, searchset, collection If search, the total number of matches
Links related to this Bundle
Entry in the bundle