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

Getting data (FHIR)

Search patients

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

GET/api/fhir/PatientScope fhir.read

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

    Patient number or ID/passport number, optionally system|value with a ClinicView identifier system.

    Example: https://fhir.clinicview.co.za/identifier/za-id-number|9004120123081

  • familystring · query

    Surname starts with (case-insensitive).

    Example: Mokoena

  • givenstring · query

    First name starts with.

    Example: Thandi

  • namestring · query

    Any part of the name, patient number or phone.

    Example: thandi

  • birthdatedate · query

    Date of birth, with optional prefix eq, ge, gt, le, lt.

    Example: 1990-04-12

  • gendertoken · query

    male, female, other or unknown.

    Example: female

  • _idid · query

    A Patient id.

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

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