Patients now rate their visit and your team, and happy patients review you on Google.
✚ClinicView

Getting data (FHIR)

Search conditions

Find conditions with search parameters; returns a FHIR Bundle (searchset).

GET/api/fhir/ConditionScope fhir.read

Returns 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.

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"
Response
{
  "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 · query

    The Patient id (or Patient/<id>). subject is accepted as an alias.

    Example: 8f2c6a1e-4b7d-4c1a-9e3f-2d5b7a9c0e11

  • codetoken · query

    ICD-10 code, optionally system|code.

    Example: I10

  • _countinteger · query

    Results 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