NZ Shared Digital Health Record API - Local Development build (v1.1.3) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
Draft: This page is subject to change and will be updated as the access workflow and associated assurance requirements are confirmed.
Purpose and scope
To allow SEHR systems and other clinical portal applications to retrieve patient health information from SDHR and make it available to healthcare professionals involved in providing care.
Actors
Actor
Role
Healthcare professional
Uses information in the context of providing care to a specific patient.
SEHR system
Identifies the patient, supplies the required access context, requests information, and presents the response.
SDHR
Applies applicable controls, audits access, and returns information the requester is authorised to access.
Source systems
Originate information made available through SDHR.
Scope
This use case currently or progressively applies to:
Accessing systems must not imply that absence of information in SDHR means absence of a clinical condition, medication, allergy, observation, immunisation, or other relevant health information.
SDHR does not manage end-user accounts for accessing systems. Accessing systems are responsible for authenticating users and applying role-based access controls that are appropriate for their local environment and permitted use of SDHR information.
Required request context
All requests for SDHR information must include sufficient context to support audit, monitoring, privacy investigation, appropriate-use review, and assurance activities.
At a minimum, requests are expected to provide:
user identifier
user name
user role
organisation identifier
facility identifier
purpose of use
patient context
Requests that do not include valid request context may be rejected and no information may be returned.
If hnzParticipationIndicator is true, the SEHR uses a supported search or read interaction to request relevant information from SDHR. If it is false, the SEHR stops the information workflow and does not present SDHR clinical information.
SDHR authorises and audits the request and applies applicable participation, privacy, confidentiality, security, and access controls.
SDHR retrieves permitted information from the SDHR Primary Care Collection or an applicable national health information source.
SDHR returns authorised FHIR resources, an empty or filtered result, or an error outcome as applicable.
The SEHR retains required local audit and traceability information.
The SEHR presents source, date, status, and relevant limitations in a clinically safe and usable way.
Key behaviour
The healthcare professional uses an SEHR.
The SEHR identifies the patient and requests relevant information from SDHR.
The SEHR can check global participation before requesting information and uses hnzParticipationIndicator to determine whether to continue.
SDHR applies applicable privacy, participation, confidentiality, security, and access controls.
SDHR returns information the requester is authorised to access.
The SEHR presents the information to the healthcare professional in a clinically safe and usable way.
Response and error handling
A successful search returns a FHIR Bundle; a successful read or vread returns the requested resource.
A successful $participation-status request returns a FHIR Parameters resource containing the patient reference and hnzParticipationIndicator.
If hnzParticipationIndicator is false, the SEHR must treat the patient as globally opted out and indicate this to the end user.
An empty result may mean that SDHR has no matching information available to the requester. It must not be presented as proof that the clinical information does not exist.
Patient identity should be established using local or authoritative identity services. Patient names returned with SDHR information should not be treated as the authoritative source of patient identity.
A filtered result may contain metadata indicating that confidentiality controls, participation settings, source-system restrictions, or other information-sharing controls have removed information from the response.
Accessing systems must not assume that all relevant information has been returned when filtering controls have been applied.
Invalid, unauthorised, or prohibited requests return an error outcome that the SEHR must handle explicitly.
Detailed response behaviour, status codes, payloads, and errors are documented in the API documentation.
Important SDHR access outcomes
In some circumstances SDHR may return responses indicating that information cannot be returned or that information has been intentionally omitted due to participation, privacy, confidentiality, or operational controls.
Accessing systems should identify these responses and communicate them clearly to users in a clinically safe manner.
Examples include:
Scenario
Meaning
Patient does not participate in SDHR
The patient has chosen not to participate in the Shared Digital Health Record service.
Information withheld at source
Information may have been withheld by the source system according to patient preferences or source-system rules.
Information type not shared
The patient has chosen not to share a particular type of information.
Deceased patient
The patient record is unavailable because the patient is deceased.
Temporary record lock
Information is temporarily unavailable while background processing is occurring.
Technical access limits
The request could not be completed because a technical usage limit was reached.
Implementers should use the coded response supplied by SDHR when determining how to handle these situations rather than relying solely on displayed message text.
The detailed response structures and operation outcomes are described in the API documentation.
Audit and user context
Access to SDHR information must be attributable to an authenticated healthcare professional or other authorised user and an authorised organisation or facility. Access must occur in the context of a specific patient. Accessing systems must provide sufficient user and request context to support audit, monitoring, privacy investigation, appropriate-use review, and assurance activities.
Audit access records workflow
The access-verification workflow is draft and subject to change.
Audit processing steps
The SEHR records the user action and the context associated with each request to access SDHR information.
The SEHR sends the request to SDHR with the required access context.
SDHR authorises and audits the request and records the resulting access event.
The SEHR correlates the response with its local audit record.
Periodically, the SEHR retrieves sampled SDHR access events that require verification.
The SEHR reviews each sampled AuditEvent using an automated or manual process to determine whether the access was valid.
The SEHR submits the verification decisions to SDHR and receives the processing results.
The SEHR repeats the verification workflow so newly sampled access events continue to be reviewed.
Access verification is a required assurance activity for systems accessing SDHR information. Accessing systems are expected to periodically retrieve sampled access events, assess whether the access was appropriate, and submit verification outcomes back to SDHR.
This process supports ongoing monitoring, auditing, and assurance activities.
The SEHR is also responsible for maintaining appropriate local audit and traceability where required.