Version Read
The version read operation retrieves the version of a resource at a specific point in time specified by the version id.
API
R4
- CLI
- Curl
- Typescript
yarn iguhealth api vread r4 $ResourceType $ResourceId $ResourceVersionId
curl --request GET --header "Authorization: Header" --header "Content-Type: application/fhir+json" --data '$MY_BATCH_BUNDLE' ${domain}/w/${tenant}/api/v1/fhir/r4/${ResourceType}/${ResourceId}/${ResourceVersionId}
await client.vread({}, R4, resourceType, id, versionId);
R4B
- CLI
- Curl
- Typescript
yarn iguhealth api vread r4b $ResourceType $ResourceId $ResourceVersionId
curl --request GET --header "Authorization: Header" --header "Content-Type: application/fhir+json" --data '$MY_BATCH_BUNDLE' ${domain}/w/${tenant}/api/v1/fhir/r4b/${ResourceType}/${ResourceId}/${ResourceVersionId}
await client.vread({}, R4B, resourceType, id, versionId);
Example
- Request
- Response
yarn iguhealth api vread r4 Patient gfH47MJRa8wG9eH5XZwibo 2551
{
"id": "gfH47MJRa8wG9eH5XZwibo",
"meta": {
"extension": [
{
"url": "https://iguhealth.app/version-sequence",
"valueInteger": 2551
},
{
"url": "https://iguhealth.app/author",
"valueReference": {
"reference": "ClientApplication/5K89P9NcTjtw4wjy-POJsD"
}
}
],
"versionId": "2551",
"lastUpdated": "2024-06-23T23:01:15.346+00:00"
},
"resourceType": "Patient"
}