Getting data (FHIR)
Search observations
Find observations with search parameters; returns a FHIR Bundle (searchset).
GET
/api/fhir/ObservationScope fhir.readReturns observations of your practice as a Bundle of type searchset. Records of restricted (VIP) patients and confidential notes are never returned.
Vital signs (LOINC-coded, UCUM units; blood pressure as one panel with systolic and diastolic components) and released laboratory results. Pending results are not returned.
GET /api/fhir/Observation
curl "https://system.clinicview.co.za/api/fhir/Observation?patient=8f2c6a1e-4b7d-4c1a-9e3f-2d5b7a9c0e11&category=laboratory" \
-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/Observation?patient=8f2c6a1e-4b7d-4c1a-9e3f-2d5b7a9c0e11&category=laboratory"
}
],
"entry": [
{
"fullUrl": "https://system.clinicview.co.za/api/fhir/Observation/lab-d3f5b7c9-1e3a-4c5e-9b7d-0f2a4c6e8a77",
"resource": {
"resourceType": "Observation",
"id": "lab-d3f5b7c9-1e3a-4c5e-9b7d-0f2a4c6e8a77",
"status": "final",
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/observation-category",
"code": "laboratory",
"display": "Laboratory"
}
]
}
],
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "4548-4",
"display": "Hemoglobin A1c"
}
],
"text": "Hemoglobin A1c"
},
"subject": {
"reference": "Patient/8f2c6a1e-4b7d-4c1a-9e3f-2d5b7a9c0e11"
},
"effectiveDateTime": "2026-11-22T07:10:00+02:00",
"issued": "2026-11-22T11:42:00+02:00",
"valueQuantity": {
"value": 6.9,
"unit": "%"
},
"interpretation": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
"code": "H"
}
]
}
],
"referenceRange": [
{
"text": "4.0-6.0"
}
],
"note": [
{
"text": "Repeat in 3 months"
}
]
},
"search": {
"mode": "match"
}
}
]
}Parameters
patientid · queryrequiredThe Patient id (or Patient/<id>).
subjectis accepted as an alias.Example:
8f2c6a1e-4b7d-4c1a-9e3f-2d5b7a9c0e11categorytoken · queryvital-signsorlaboratory; both when omitted.Example:
laboratory_countinteger · queryResults to return: 1–200, default 50.
Example:
20
Responses
- 200A Bundle of matching resources.Headers:
X-RateLimit-LimitX-RateLimit-RemainingX-RateLimit-Reset - 400Observation search requires the patient parameter
- 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