NZ Shared Digital Health Record API
1.1.6 - release
NZ Shared Digital Health Record API, published by Health New Zealand. This guide is not an authorized publication; it is the continuous build for version 1.1.6 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/tewhatuora/fhir-sdhr/ and changes regularly. See the Directory of published versions
SDHR provides access to core health information from participating primary care providers through the SDHR Primary Care Collection and from supported national health information sources. Each domain has distinct clinical meaning, source characteristics, privacy considerations, and known limitations.
The domain pages explain what information is available and how it should be interpreted. FHIR representation and profile-level requirements remain in data models and the FHIR artifact catalogue.
| Domain | Description | Status | Profile |
|---|---|---|---|
| Allergies & Intolerances | Recorded allergies, intolerances, adverse reactions, and related warnings | Available | SDHR AllergyIntolerance |
| Conditions | Recorded diagnoses, problems, and other condition-like classifications | Available | SDHR Condition |
| Observations | Measurements, vital signs, and other measured or asserted findings | Available | SDHR Observation |
| Medications | Prescribing intent and medicines supplied | In development | SDHR MedicationRequest SDHR MedicationDispense |
| Immunisations | A patient's immunisation history | In development | SDHR Immunization |
The SDHR Primary Care Collection contains information contributed by participating PMS products. Its current scope includes:
In future we expect to include encounters/appointments and (subject to further design and engagement) consultation notes from certain care settings.
SDHR supports information made available from national repositories and services.
In the future we expect to include laboratory results and radiology reports, clinical documents from secondary care (e.g. discharge summaries, clinic letters, and referrals).
SDHR is not the system of record for the information it shares. Source systems remain responsible for creating, maintaining and correcting information.
Information may be unavailable because:
Medication resources retain their MDR resource id; they do not use the server-assigned UUID format described below for the Primary Care Collection.
| Resource | MDR resource id |
Business identifier |
|---|---|---|
| MedicationRequest | NZePS prescription SCID plus item sequence number | NZePS prescription SCID plus item sequence number |
| MedicationDispense | NZePS prescription SCID plus item sequence number plus dispense sequence number | NZePS prescription SCID plus item sequence number |
For example, two dispenses for the same prescription item have different resource IDs but share the prescription-item business identifier. Use the returned resource id in GET /MedicationRequest/{id} or GET /MedicationDispense/{id}. Use identifier to search for the prescription item; it does not identify one particular dispense. These identifiers exclude GTIN barcode values. Follow the returned authorizingPrescription reference to identify the linked request rather than constructing a reference from an ID.
Every resource in the SDHR Primary Care Collection is assigned an id. This identifier is guaranteed to be unique and is issued by the system when the resource is loaded. SDHR providers and consumers are expected to honour the id and use it as a unique reference when interacting with resources in SDHR.
id (UUID v4)| Name | Type | Format | Description |
|---|---|---|---|
id |
string | UUID (RFC 4122, v4) | Server-assigned, globally unique identifier. Immutable. Must be a valid UUID v4 in the canonical 8-4-4-4-12 form using lowercase hexadecimal characters. Example: 31d3b19e-760e-42df-aea6-9bddf81b4565. |
The id:
8-4-4-4-12 format;xxxxxxxx-xxxx-4xxx-[8|9|a|b]xxx-xxxxxxxxxxxx;Example
31d3b19e-760e-42df-aea6-9bddf81b4565
Regular expression
^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
The id is distinct from any resource identifier. In FHIR, an identifier holds an external business identifier, whereas the SDHR id is a server-assigned, guaranteed unique identifier.
Truncated resource example
{
"subject": {
"reference": "https://api.hip.digital.health.nz/fhir/nhi/v1/Patient/ZMW6001",
"type": "Patient"
},
"identifier": [
{
"value": "a49865c3-bba7-40e5-a476-2fd92abf3591",
"system": "https://some.local.system/ehr-key"
}
],
"id": "31d3b19e-760e-42df-aea6-9bddf81b4565"
}