NZ Shared Digital Health Record API
1.0.2 - release
NZ Shared Digital Health Record API - Local Development build (v1.0.2) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
| Official URL: https://fhir-ig.digital.health.nz/sdhr/OperationDefinition/SDHRHNZParticipateOperation | Version: 1.0.2 | |||
| Active as of 2026-06-30 | Computable Name: HNZParticipate | |||
This operation allows a patient to choose to participate in the Shared Digital Health Record service via HNZ assisted channels. This operation should only be used by HNZ channels.
Scenarios where this operation might be used include:
For example payloads that might be used with this operation see:
To make a request to this operation the API Consumer must POST a Parameters payload to the operation URL (e.g. POST https://api.sdhr.digital.health.nz/s2s/$hnz-participate).
The operation is idempotent, meaning that multiple requests with the same parameters will have the same effect as a single request.
The operation is expected to be called by a Health NZ channel system on behalf of the patient, and the patient must be identified by their NHI. For a global opt-in request, one or more patient parameters may be supplied. Multiple patient parameters are only supported when all supplied NHIs are already linked in the same NHI group and the request supplies the complete linked group. Multiple patient parameters are not supported for global opt-out requests.
For a global opt-in request where the patient is enrolled with a provider, the request may include the enrolled provider facilityId and must include pmsIdentifier. If facilityId is not provided, pmsIdentifier must not be provided and the operation updates consent without triggering a historic load.
The operation will return an OperationOutcome resource indicating the result of the operation.
URL: [base]/$hnz-participate
| Use | Name | Scope | Cardinality | Type | Binding | Documentation |
| IN | patient | 1..* | Reference | Reference must be an NHI Patient URL with format https://api.hip.digital.health.nz/fhir/nhi/v1/Patient/ZZZ1111 or ZZZ11AA. For global opt-in, repeat this parameter to opt in the complete linked NHI group. For global opt-out, exactly one patient parameter is supported. | ||
| IN | hnzParticipationIndicator | 1..1 | boolean | Indicates global participation in the Shared Digital Health Record service (true/false) If false, the patient does not wish to participate in the service and their resources will not be shared. | ||
| IN | facilityId | 0..1 | Reference | Optional for global opt-in. Reference must be an HPI Location URL for the enrolled provider, with format https://api.hip.digital.health.nz/fhir/hpi/v1/Location/FZZ999-B. If provided, pmsIdentifier is required. Not supported for global opt-out. | ||
| IN | pmsIdentifier | 0..1 | string | Required when facilityId is provided, otherwise omitted. Must identify the PMS historic load method. Supported values are Medtech, Indici, and MyPractice. Not supported for global opt-out. | ||
| OUT | return | 1..1 | OperationOutcome | The result of the operation. This parameter will contain an OperationOutcome resource indicating the success or failure of the operation. If the operation is successful, the OperationOutcome will contain a success message. If the operation fails, the OperationOutcome will contain an error message indicating the reason for the failure. The OperationOutcome resource will be returned in the response body of the operation request. See the following examples for possible OperationOutcome responses: - OperationOutcome for invalid patient reference - OperationOutcome for successful participation |