Getting data (FHIR)
Search appointments
Find appointments with search parameters; returns a FHIR Bundle (searchset).
GET
/api/fhir/AppointmentScope fhir.readReturns appointments of your practice as a Bundle of type searchset. Records of restricted (VIP) patients and confidential notes are never returned.
Newest first. ClinicView statuses map to FHIR: booked/confirmed → booked, checked in/in progress → arrived, completed → fulfilled, no-show → noshow.
GET /api/fhir/Appointment
curl "https://system.clinicview.co.za/api/fhir/Appointment?patient=8f2c6a1e-4b7d-4c1a-9e3f-2d5b7a9c0e11&date=ge2026-11-01" \
-H "Authorization: Bearer $CLINICVIEW_API_KEY" \
-H "Accept: application/fhir+json"{
"resourceType": "Bundle",
"type": "searchset",
"total": 1,
"link": [
{
"relation": "self",
"url": "https://system.clinicview.co.za/api/fhir/Appointment?patient=8f2c6a1e-4b7d-4c1a-9e3f-2d5b7a9c0e11&date=ge2026-11-01"
}
],
"entry": [
{
"fullUrl": "https://system.clinicview.co.za/api/fhir/Appointment/c4e8b2a6-1d3f-4a5c-8e7b-9f0d2c4a6b33",
"resource": {
"resourceType": "Appointment",
"id": "c4e8b2a6-1d3f-4a5c-8e7b-9f0d2c4a6b33",
"meta": {
"lastUpdated": "2026-11-18T15:02:11+02:00"
},
"status": "booked",
"appointmentType": {
"text": "in_person"
},
"serviceType": [
{
"text": "Follow-up consultation"
}
],
"description": "Follow-up: blood pressure",
"start": "2026-11-24T09:30:00+02:00",
"end": "2026-11-24T09:45:00+02:00",
"created": "2026-11-18T15:02:11+02:00",
"participant": [
{
"actor": {
"reference": "Patient/8f2c6a1e-4b7d-4c1a-9e3f-2d5b7a9c0e11"
},
"status": "accepted"
},
{
"actor": {
"reference": "Practitioner/3a9d2f4b-6c1e-4f8a-b2d7-5e0c9a1b3d22"
},
"status": "accepted"
}
]
},
"search": {
"mode": "match"
}
}
]
}Parameters
patientid · queryThe Patient id (or Patient/<id>).
subjectis accepted as an alias.Example:
8f2c6a1e-4b7d-4c1a-9e3f-2d5b7a9c0e11datedate · queryFilter on the start time. Prefix with eq (that whole day, the default), ge, gt, le or lt. Repeat to make a range.
Example:
ge2026-11-01_countinteger · queryResults to return: 1–200, default 50.
Example:
20
Responses
- 200A Bundle of matching resources.Headers:
X-RateLimit-LimitX-RateLimit-RemainingX-RateLimit-Reset - 400Invalid date parameter "2026/11/01"
- 401Missing or malformed API key
- 403API key lacks the fhir.read scope
- 404Patient not found
- 429Rate limit exceeded: 300 requests per minute per keyHeaders:
Retry-AfterX-RateLimit-LimitX-RateLimit-RemainingX-RateLimit-Reset