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

Getting data (FHIR)

Search encounters

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

GET/api/fhir/EncounterScope fhir.read

Returns encounters of your practice as a Bundle of type searchset. Records of restricted (VIP) patients and confidential notes are never returned.

Consultations. Signed consultations are finished; telemedicine is class VR, in person AMB. Confidential (psychotherapy) notes are never exposed.

curl "https://system.clinicview.co.za/api/fhir/Encounter?patient=8f2c6a1e-4b7d-4c1a-9e3f-2d5b7a9c0e11&date=2026-11-24" \
  -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/Encounter?patient=8f2c6a1e-4b7d-4c1a-9e3f-2d5b7a9c0e11&date=2026-11-24"
    }
  ],
  "entry": [
    {
      "fullUrl": "https://system.clinicview.co.za/api/fhir/Encounter/e1b3d5f7-2a4c-4e6b-8d0f-1a3c5e7b9d44",
      "resource": {
        "resourceType": "Encounter",
        "id": "e1b3d5f7-2a4c-4e6b-8d0f-1a3c5e7b9d44",
        "meta": {
          "lastUpdated": "2026-11-24T09:58:41+02:00"
        },
        "status": "finished",
        "class": {
          "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
          "code": "AMB",
          "display": "ambulatory"
        },
        "serviceType": {
          "text": "general_practice"
        },
        "subject": {
          "reference": "Patient/8f2c6a1e-4b7d-4c1a-9e3f-2d5b7a9c0e11"
        },
        "participant": [
          {
            "individual": {
              "reference": "Practitioner/3a9d2f4b-6c1e-4f8a-b2d7-5e0c9a1b3d22"
            }
          }
        ],
        "period": {
          "start": "2026-11-24T09:34:00+02:00",
          "end": "2026-11-24T09:58:41+02:00"
        },
        "reasonCode": [
          {
            "text": "Headaches for a week"
          }
        ],
        "appointment": [
          {
            "reference": "Appointment/c4e8b2a6-1d3f-4a5c-8e7b-9f0d2c4a6b33"
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

Parameters

  • patientid · query

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

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

  • datedate · query

    Filter on the start of the consultation. Prefix with eq (that whole day, the default), ge, gt, le or lt. Repeat to make a range.

    Example: ge2026-11-01

  • _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