Read
The Read operation is used to retrieve a resource from the server using the resource type and id. The server will return the resource with the id and meta information.
API
R4
- CLI
 - Curl
 - Typescript
 
iguhealth api read r4 $ResourceType $ResourceId
 curl --request GET --header "Authorization: Header" --header "Content-Type: application/json" ${domain}/w/${tenant}/api/v1/fhir/r4/${ResourceType}/${ResourceId}
await client.read({}, R4, resourceType, id);
R4B
- CLI
 - Curl
 - Typescript
 
iguhealth api read r4b $ResourceType $ResourceId
 curl --request GET --header "Authorization: Header" --header "Content-Type: application/json" ${domain}/w/${tenant}/api/v1/fhir/r4b/${ResourceType}/${ResourceId}
await client.read({}, R4B, resourceType, id);
Example
- Request
 - Response
 
iguhealth api read r4 Patient FsHg1Z14IE1D3up03EBqDQ   
{
  "id": "FsHg1Z14IE1D3up03EBqDQ",
  "meta": {
    "extension": [
      {
        "url": "https://iguhealth.app/version-sequence",
        "valueInteger": 4120
      },
      {
        "url": "https://iguhealth.app/author",
        "valueReference": {
          "reference": "ClientApplication/5K89P9NcTjtw4wjy-POJsD"
        }
      }
    ],
    "versionId": "4120",
    "lastUpdated": "2024-06-24T20:45:20.965+00:00"
  },
  "name": [
    {
      "family": "Smith"
    }
  ],
  "resourceType": "Patient"
}