RDC Interoperability Guide
1.1.0

Fetch Observation by ID

Fetch observation by FHIR ID

The client can fetch a specific observation by its FHIR ID. This is useful when the client has the FHIR ID of the observation and wants to retrieve the observation details.

Example

curl -sS "https://${server}/fhir/r5/api/Observation/${observation_fhir_id}" \
  -H "client_id: ${client_id}" \
  -H "client_secret: ${client_secret}" \
  -H "org_id: ${org_id}" \
  -H "certificate: ${certificate}" | jq

This request retrieves the observation with the FHIR ID ${observation_fhir_id}. The Observation requested should either belong to the organization or the organization should have consent. The response for this API is a FHIR R5 Observation resource.

Search Multiple Observation by FHIR ID

The client can also do a bulk search for multiple observations by their FHIR IDs.

Example

curl -sS "https://${server}/fhir/r5/api/Observation?_id=${observation_fhir_ids}" \
  -H "client_id: ${client_id}" \
  -H "client_secret: ${client_secret}" \
  -H "org_id: ${org_id}" \
  -H "certificate: ${certificate}" | jq

Here the client can pass multiple FHIR IDs separated by a comma to retrieve multiple observations. There is a limit to the maximum number of observations that can be retrieved in a single request, which is 100.

The response for this API is a FHIR R5 Bundle resource.