Getting data (FHIR)
Search patients
Find patients with search parameters; returns a FHIR Bundle (searchset).
/api/fhir/PatientScope fhir.readReturns patients of your practice as a Bundle of type searchset. Records of restricted (VIP) patients and confidential notes are never returned.
Merged duplicates are not returned. Results are sorted by surname.
curl "https://system.clinicview.co.za/api/fhir/Patient?family=Mokoena&birthdate=1990-04-12" \
-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/Patient?family=Mokoena&birthdate=1990-04-12"
}
],
"entry": [
{
"fullUrl": "https://system.clinicview.co.za/api/fhir/Patient/8f2c6a1e-4b7d-4c1a-9e3f-2d5b7a9c0e11",
"resource": {
"resourceType": "Patient",
"id": "8f2c6a1e-4b7d-4c1a-9e3f-2d5b7a9c0e11",
"meta": {
"lastUpdated": "2026-11-20T09:14:05+02:00"
},
"identifier": [
{
"use": "usual",
"system": "https://fhir.clinicview.co.za/identifier/patient-number",
"value": "P000123"
},
{
"use": "official",
"system": "https://fhir.clinicview.co.za/identifier/za-id-number",
"value": "9004120123081"
}
],
"active": true,
"name": [
{
"use": "official",
"family": "Mokoena",
"given": [
"Thandi"
],
"prefix": [
"Ms"
]
}
],
"telecom": [
{
"system": "phone",
"value": "+27821234567",
"use": "mobile"
},
{
"system": "email",
"value": "thandi@example.com"
}
],
"gender": "female",
"birthDate": "1990-04-12",
"address": [
{
"line": [
"12 Jacaranda Street"
],
"city": "Pretoria",
"district": "Hatfield",
"state": "Gauteng",
"postalCode": "0083",
"country": "ZA"
}
],
"communication": [
{
"language": {
"text": "zu"
},
"preferred": true
}
]
},
"search": {
"mode": "match"
}
}
]
}Parameters
identifiertoken · queryPatient number or ID/passport number, optionally
system|valuewith a ClinicView identifier system.Example:
https://fhir.clinicview.co.za/identifier/za-id-number|9004120123081familystring · querySurname starts with (case-insensitive).
Example:
Mokoenagivenstring · queryFirst name starts with.
Example:
Thandinamestring · queryAny part of the name, patient number or phone.
Example:
thandibirthdatedate · queryDate of birth, with optional prefix eq, ge, gt, le, lt.
Example:
1990-04-12gendertoken · querymale, female, other or unknown.
Example:
female_idid · queryA Patient id.
Example:
8f2c6a1e-4b7d-4c1a-9e3f-2d5b7a9c0e11_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