Guide
Introduction
What the API does, the base address and your first call in five minutes.
What you can build
The ClinicView API connects your practice to laboratories, hospitals, medical schemes and your own software. It speaks the two standards healthcare already uses:
| Standard | Use it for | Base path |
|---|---|---|
| FHIR R4 (JSON) | Reading the patient record; registering patients | /api/fhir |
| HL7 v2 | Laboratory results in, lab orders out, patient registrations | /api/hl7 |
Every request is made on behalf of one practice, with an API key that practice created. All traffic is HTTPS.
Quick start
1. In ClinicView, open Settings → API & interoperability → Create key, choose the scopes and copy the key (it is shown once).
2. Store it as an environment variable:
export CLINICVIEW_API_KEY=cvk_…3. Check the connection (no key needed) and make your first authenticated call:
curl https://system.clinicview.co.za/api/fhir/metadata
curl "https://system.clinicview.co.za/api/fhir/Patient?family=Mokoena" \
-H "Authorization: Bearer $CLINICVIEW_API_KEY" \
-H "Accept: application/fhir+json"Code for every endpoint is available in cURL, JavaScript, Python, PHP, C#, Java, Go and Ruby, and the whole API is described in an OpenAPI file you can import into Postman, Insomnia or a code generator.
Conventions
| Base address | https://system.clinicview.co.za |
| Formats | application/fhir+json (UTF-8); HL7 v2 ER7 with \r segment separators |
| Dates | ISO 8601 with a time zone offset (e.g. 2026-11-24T09:30:00+02:00); dates without a time are South African days |
| Ids | UUIDs; observation and allergy ids add a prefix or suffix (see Identifiers) |
| Versioning | The path is stable; changes are additive (see Changelog) |