Getting data (FHIR)
Search conditions
Find conditions with search parameters; returns a FHIR Bundle (searchset).
GET
/api/fhir/ConditionScope fhir.readReturns conditions of your practice as a Bundle of type searchset. Records of restricted (VIP) patients and confidential notes are never returned.
Diagnoses recorded in consultations, coded with ICD-10.
GET /api/fhir/Condition
curl "https://system.clinicview.co.za/api/fhir/Condition?patient=8f2c6a1e-4b7d-4c1a-9e3f-2d5b7a9c0e11&code=I10" \
-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/Condition?patient=8f2c6a1e-4b7d-4c1a-9e3f-2d5b7a9c0e11&code=I10"
}
],
"entry": [
{
"fullUrl": "https://system.clinicview.co.za/api/fhir/Condition/a7c9e1b3-5d7f-4a2c-9e4b-6d8f0a2c4e55",
"resource": {
"resourceType": "Condition",
"id": "a7c9e1b3-5d7f-4a2c-9e4b-6d8f0a2c4e55",
"clinicalStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
"code": "active"
}
]
},
"verificationStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
"code": "confirmed"
}
]
},
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/condition-category",
"code": "encounter-diagnosis"
}
]
}
],
"code": {
"coding": [
{
"system": "http://hl7.org/fhir/sid/icd-10",
"code": "I10",
"display": "Essential (primary) hypertension"
}
],
"text": "Essential (primary) hypertension"
},
"subject": {
"reference": "Patient/8f2c6a1e-4b7d-4c1a-9e3f-2d5b7a9c0e11"
},
"encounter": {
"reference": "Encounter/e1b3d5f7-2a4c-4e6b-8d0f-1a3c5e7b9d44"
},
"recordedDate": "2026-11-24T09:51:02+02:00",
"recorder": {
"reference": "Practitioner/3a9d2f4b-6c1e-4f8a-b2d7-5e0c9a1b3d22"
}
},
"search": {
"mode": "match"
}
}
]
}Parameters
patientid · queryThe Patient id (or Patient/<id>).
subjectis accepted as an alias.Example:
8f2c6a1e-4b7d-4c1a-9e3f-2d5b7a9c0e11codetoken · queryICD-10 code, optionally
system|code.Example:
I10_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