Getting data (FHIR)
Read an encounter
One Encounter by id.
GET
/api/fhir/Encounter/{id}Scope fhir.readReturns a single Encounter resource.
GET /api/fhir/Encounter/{id}
curl "https://system.clinicview.co.za/api/fhir/Encounter/e1b3d5f7-2a4c-4e6b-8d0f-1a3c5e7b9d44" \
-H "Authorization: Bearer $CLINICVIEW_API_KEY" \
-H "Accept: application/fhir+json"{
"resourceType": "Encounter",
"id": "e1b3d5f7-2a4c-4e6b-8d0f-1a3c5e7b9d44",
"meta": {
"lastUpdated": "2026-11-24T09:58:41+02:00"
},
"status": "finished",
"class": {
"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"code": "AMB",
"display": "ambulatory"
},
"serviceType": {
"text": "general_practice"
},
"subject": {
"reference": "Patient/8f2c6a1e-4b7d-4c1a-9e3f-2d5b7a9c0e11"
},
"participant": [
{
"individual": {
"reference": "Practitioner/3a9d2f4b-6c1e-4f8a-b2d7-5e0c9a1b3d22"
}
}
],
"period": {
"start": "2026-11-24T09:34:00+02:00",
"end": "2026-11-24T09:58:41+02:00"
},
"reasonCode": [
{
"text": "Headaches for a week"
}
],
"appointment": [
{
"reference": "Appointment/c4e8b2a6-1d3f-4a5c-8e7b-9f0d2c4a6b33"
}
]
}Parameters
idid · pathrequiredThe Encounter id.
Example:
e1b3d5f7-2a4c-4e6b-8d0f-1a3c5e7b9d44
Responses
- 200The Encounter.
- 401Missing or malformed API key
- 403API key lacks the fhir.read scope
- 404Encounter/e1b3d5f7-2a4c-4e6b-8d0f-1a3c5e7b9d44 not found
- 429Rate limit exceeded: 300 requests per minute per keyHeaders:
Retry-AfterX-RateLimit-LimitX-RateLimit-RemainingX-RateLimit-Reset