NZ Shared Digital Health Record API
1.1.0 - release
NZ Shared Digital Health Record API - Local Development build (v1.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
Contents:
This page provides a list of the FHIR artifacts defined as part of this implementation guide.
The following artifacts define the specific capabilities that different types of systems are expected to have in order to comply with this implementation guide. Systems conforming to this implementation guide are expected to declare conformance to one or more of the following capability statements.
| NZ Shared Digital Health Record API |
NZ Shared Digital Health Record API Capability Statement |
These are custom operations that can be supported by and/or invoked by systems conforming to this implementation guide.
| SDHRHNZParticipateOperation |
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 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 |
| SDHRHNZParticipationStatusOperation |
This operation retrieves a patient's Shared Digital Health Record participation status. This operation should be used by data providers in the Shared Digital Health Record ecosystem such as Patient Management Systems (PMS) or Electronic Health Record (EHR) systems. It returns whether the patient is participating in the service, whether enrolment information was found, and whether the patient has active, archived, or any records available in the service. The scope of the status returned is the API consumer, for example an HPI Facility where patient data is held. For an example response payload for this operation see:
To make a request to this operation the API Consumer must POST a 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 healthcare provider on behalf of the patient, and the patient must be identified by their NHI.
The operation will return a |
| SDHRParticipateOperation |
This operation allows a patient to choose to participate in the Shared Digital Health Record service. This operation should be used by data providers in the Shared Digital Health Record ecosystem such as Patient Management Systems (PMS) or Electronic Health Record (EHR) systems. It can be used to indicate whether the patient wishes to participate, whether any resources are withheld, and the reason for participation. The scope of this operation is the API consumer - e.g. an HPI Facility where patient data is held. 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 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 healthcare provider on behalf of the patient, and the patient must be identified by their NHI.
For an opt-in request, a Medtech PMS may set |
| SDHRVerificationSamplesOperation |
DRAFT OPERATION: This operation returns The operation is invoked on the The response is a
The operation supports optional paging parameters:
|
| SDHRVerificationSubmissionsOperation |
DRAFT OPERATION: This operation allows the data viewer application to submit one or more verification decisions for previously issued The operation is invoked on the Each repeating |
These define the properties by which a RESTful server can be searched. They can also be used for sorting and including related resources.
| allergyintolerance-clientlastupdated |
Search by the ClientLastUpdated extension on SDHR AllergyIntolerance resources |
| condition-clientlastupdated |
Search by the ClientLastUpdated extension on SDHR Condition resources |
| condition-highlighted |
Search for conditions flagged as highlighted in the SDHRCondition profile |
| condition-long-term-condition |
Search for conditions marked as long term in the SDHRCondition profile |
| observation-clientlastupdated |
Search by the ClientLastUpdated extension on SDHR Observation resources |
These define constraints on FHIR resources for systems conforming to this implementation guide.
| AIR Immunization |
This is the AIR Immunization Profile, to be used for immunisation records inbound to ImmSoT. It includes a number of constraints designed to enforce ImmSoT's lean data model approach. |
| Batch Bundle with a Single Patient |
SDHR allows Bundle posts with the following restrictions:
|
| Medication Dispense resource for use in NZ e-Prescription Service MDR |
Medication Dispense resource for use in NZ e-Prescription Service Medicines Data Repository |
| Medication Request resource for use in the NZ e-Prescription Service MDR |
Medication Request resource for use in NZ e-Prescription Service Medications Data Repository |
| SDHRAllergyIntolerance |
AllergyIntolerance FHIR resource for Shared Digital Health Record |
| SDHRAuditEvent |
AuditEvent resource used for SDHR data access verification workflows. |
| SDHRCondition |
Condition resource to record problems and conditions affecting a person |
| SDHRConsent |
Consent resource created to reflect a patient's preferences with regard to sharing their information with authorised health workers via the shared digital health record service. Note that this is a protected resource and scopes required to manage this resource are not provisioned to most API consumers. A patient's participation preferences should be managed by the Participate Operation. For more details on the participate operation see SDHR Custom Operations. |
| SDHRImmunization |
DRAFT PROFILE: Immunization resource for Shared Digital Health Record. This profile constrains Immunization to the SDHR subset of AIR immunization content. AIR reference: https://healthnz-prm.gitlab.io/air/air-api-fhir-ig/StructureDefinition-air-immunization.html |
| SDHRMedicationDispense |
DRAFT PROFILE: MedicationDispense resource for Shared Digital Health Record. This profile constrains MedicationDispense to the SDHR subset of MDR medication dispense content. |
| SDHRMedicationRequest |
DRAFT PROFILE: MedicationRequest resource for Shared Digital Health Record. This profile constrains MedicationRequest to the SDHR subset of MDR medication request content. |
| SDHRObservation |
A Shared Digital Health Record Observation. |
| SDHRVerificationSubmissionParameters |
Parameters profile for AuditEvent verification submission payloads. |
| SDHRVerificationSubmissionResponseParameters |
Parameters profile for AuditEvent verification submission response payloads. |
These define constraints on FHIR data types for systems conforming to this implementation guide.
| AIR Administered Product Extension |
This extension to the AIR Immunization profile pre-adopts the FHIR R5 construct of the same name. In AIR, the (mandatory) vaccineCode element should be used to transmit a CVX or NZVX code for the vaccine, while the (optional) administeredProduct element should be used to transmit an NZMT TPUU code fot he vaccine. |
| AIR Age Given Extension |
This extension calculates the patient age when a vaccination was administered. Although this could be calculated by the client based on patient date of birth, it is provided as a convenience. |
| AIR Created By User |
This extension is used in AIR to record the user who created the immunisation event record. |
| AIR Created Source System |
This extension is used in AIR to record the system or software used to create the immunisation event record. Example values are ISM, PMS, and so on. |
| AIR Modified By User |
This extension is used in AIR to record the user who modified the immunisation event or patient record. |
| AIR Modified Source System |
This extension is used in AIR to record the system or software used to update the immunisation event or patient record. Example values are ISM, PMS, and so on. |
| AIR Related Person |
This extension is to be used for communicating related person info in an AIR Immunisation Event. It holds the information transmitted in the HL7v2 NK1 segment. |
| AIR Reschedule Date Extension |
This extension is used on an AIR Immunization resource that is sent to AIR as part of a $bulk-update operation. It holds the date to which the Immunisation Event has been rescheduled. |
| AIR Serology Report Extension |
This extension allows an AIR Immunization instance to contain information from a serology report that describes a patient's expected level of immune protection from Hepatitis B infection. Note that this extension could be updated to cover additional diseases in the future. |
| Client Last Updated |
Extension to record the last time a resource was updated by the source system. When consuming applications are writing data to the SDHR API they can use this extension to record the |
| Data Quality Assessment |
The data quality assessment of this immunization record as calculated by AIR rules. |
| Facility Participation |
Indicates whether the patient has opted out or opted in to participation at the facility. If opted out, no records will be shared from that facility. |
| HNZ SDHR Highlighted |
Extension to indicate that a resource should be highlighted in the user interface. This is used to indicate that the resource is important and should be highlighted in a user interface. |
| Immunization Diluent |
Immunization Diluent |
| Immunization Facility Mobile Site |
Immunization Facility Mobile Site |
| NZePS Local Script Number |
NZ Pharmacy Claim Number. |
| NZePS Patient Instructions Modification Indicator |
NZePS Patients Instructions modification indicator |
| NZePS Patient Medication Modification Indicator |
NZePS medication modification indicator |
| NZePS Status Type |
Status Type of a NZ ePrescription (NZePS) |
| Planned Event Match |
The match of a planned event to an immunisation event as calculated by AIR rules. |
| Planned Event Match Quality |
The match quality of a planned event to an immunisation event as calculated by AIR rules. |
These define sets of codes used by systems conforming to this implementation guide.
| ValueSet for AllergyIntolerance Code |
A ValueSet containing all codes from the AllergyIntolerance Code system. |
| ValueSet for AllergyIntolerance Manifestation |
A ValueSet containing all codes from the AllergyIntolerance Manifestation system. |
| ValueSet for AllergyIntolerance Severity |
A ValueSet containing all codes from the AllergyIntolerance Severity system. |
| ValueSet for SDHR Participation Reason |
A ValueSet containing all codes from the SDHR Participation Reason system. |
| ValueSet for SDHR Resource Tags |
A ValueSet containing all codes from the SDHR Resource Tags system. |
| ValueSet for SDHR Verification Result |
A ValueSet containing all codes from the SDHR Verification Result system. |
These define new code systems used by systems conforming to this implementation guide.
| NZ-specific terminology for Shared Digital Health Records |
This system defines standard codes used throughout this Implementation Guide for New Zealand Shared Digital Health Records |
| SDHR Codes where the appropriate code is not known or can not be determined. |
This code system is used when the appropriate code is not known or can not be determined. |
| SDHR Participation Reason Codes |
This code system defines the reasons for a patient to participate in the Shared Digital Health Record service. |
| SDHR Specific Outcome Codes |
This code system defines standard OperationOucome codes used throughout this Implementation Guide for New Zealand Shared Digital Health Records |
| SDHR Verification Result Codes |
This code system defines the result codes used when a data viewer application submits verification decisions for sampled AuditEvent resources. |
These are example instances that show what data produced and consumed by systems conforming with this implementation guide might look like.
| APIError-Confidential |
Example OperationOutcome API response, returned when a resource has been flagged as confidential, and so cannot be accessed. |
| APIError-Unauthorised |
Access to Shared Digital Health Records is restricted.<br>
This API validates information that is provided by the API Consumer in their |
| AllergyIntoleranceExample |
An example payload for a Primary Care AllergyIntolerance resource indicating an allergy to Penicillin, with a confidentiality of restricted. |
| AllergyIntoleranceExample2 |
An example payload for a Primary Care AllergyIntolerance resource indicating an allergy to Cashew nuts |
| AuditEventVerificationSampleOne |
DRAFT EXAMPLE ONLY: sampled AuditEvent returned for verification. |
| AuditEventVerificationSampleTwo |
DRAFT EXAMPLE ONLY: sampled AuditEvent returned for verification. |
| Batch-example | |
| BundleVerificationSamplesPageOneResponseExample |
DRAFT EXAMPLE ONLY: first page Bundle returned from the verification samples operation using _count and _offset. |
| BundleVerificationSamplesPageTwoResponseExample |
DRAFT EXAMPLE ONLY: second page Bundle returned from the verification samples operation using _count and _offset. |
| BundleVerificationSamplesResponseExample |
DRAFT EXAMPLE ONLY: Bundle returned from the verification samples operation. |
| ConditionHypertensionExample |
Example Hypertension Condition |
| ConditionRespiratoryExample |
Example Respiratory Condition |
| ConsentExample |
Consent example submitted to allow a patient to opt in to sharing their information, originating from a practice management system |
| ConsentExampleRecordsWithheld |
Consent example to allow a patient to opt in to sharing their information, while withholding some records from the service |
| ConsentFacilityDenyExample |
Consent example submitted to allow a patient to opt out of sharing their information. This example shows a Consent resource created as the result of an HNZ opt out. |
| ConsentHNZDenyExample |
Consent example submitted to allow a patient to opt out of sharing their information. This example shows a Consent resource created as the result of an HNZ opt out. |
| ConsentMultiFacilityExample |
Consent example illustrating a patient stating participation preferences forsharing their information with SDHR at multiple facilities. |
| ObservationVitalSignsExample |
An example SDHR Vital Signs Observation |
| OperationOutcomeFacilityDenyExample |
Example OperationOutcome for a request where the patient has opted out of participating in the shared digital health record service for a specific facility. |
| OperationOutcomeFacilityLocked |
This outcome message will be returned in a special case where a facility has been |
| OperationOutcomeFacilityUnknown |
This outcome message will be returned where a facility is not yet onboarded to SDHR. |
| OperationOutcomeGlobalDenyExample |
Example OperationOutcome for a request where the patient has opted out of participating in the shared digital health record service. |
| OperationOutcomeParticipateInvalidPatient |
Example OperationOutcome for an invalid patient participation operation indicating that the patient parameter is invalid. |
| OperationOutcomeParticipateMissingReason |
Example OperationOutcome for a missing reason code in the Participate operation indicating that the reason for participation status is required. |
| OperationOutcomeParticipatePreferencesNotKnown |
Example OperationOutcome where a patient has not indicated their participation preferences for the Shared Digital Health Record service. |
| OperationOutcomeParticipateSuccess |
Example OperationOutcome for a successful participation operation indicating that the patient's participation status was successfully recorded. |
| OperationOutcomePatientLocked |
This outcome message will be returned in a special case where a patient record has been |
| OperationOutcomeRateLimitExceeded |
This outcome message will be returned where an API Consumer has exceeded the allocated rate limit. |
| OperationOutcomeRecordsWithheldAtSource |
Example OperationOutcome when a patient has withheld records at source. |
| ParametersDoNotParticipate |
Example parameters content to POST to the Participate operation where a patient does not wish to participate in the Shared Digital Health Record service. |
| ParametersHNZParticipateLinkedGroupOptIn |
Example parameters content to POST to the HNZ Participate ( |
| ParametersHNZParticipateOptIn |
Example parameters content to POST to the HNZ Participate ( |
| ParametersHNZParticipateOptOut |
Example parameters content to POST to the HNZ Participate ( |
| ParametersParticipate |
Example parameters content to POST to the Participate operation where a patient wishes to participate in the Shared Digital Health Record service. |
| ParametersParticipateRecordReleased |
Example parameters content to POST to the Participate operation where a patient has individual records that are no longer withheld. |
| ParametersParticipateRecordWithheld |
Example parameters content to POST to the Participate operation where a patient has individual records that are withheld - e.g. records marked as |
| ParametersParticipationStatusActiveResponse |
Example parameters content returned by the Participation Status operation when a patient is actively participating in the Shared Digital Health Record service with active records at a specific facility. |
| ParametersParticipationStatusEnrolmentActiveResponse |
Example parameters content returned by the Participation Status operation when a patient is actively participating with enrolment information, including facility-level participation details for both their enrolled facility and all other facilities where they have an explicit participation record. |
| ParametersParticipationStatusEnrolmentResponse |
Example parameters content returned by the Participation Status operation when enrolment details are found for a patient who is not currently participating. |
| ParametersParticipationStatusResponse |
Example parameters content returned by the Participation Status operation when no participation enrolment or records are found for a patient. |
| ParametersVerificationSubmissionRequestExample |
DRAFT EXAMPLE ONLY: Parameters payload posted to the verification submissions operation. |
| ParametersVerificationSubmissionResponseExample |
DRAFT EXAMPLE ONLY: Parameters response returned from the verification submissions operation. |
| SearchConditionResponseExample |
Example of a search response for a condition search. In this case the search response returns one result using the search parameters |
| SearchConfidentialRecordsResponseExample |
Example of a searchset API response for an AllergyIntolerance resource search. In this case, the search response returns one entry item, with a total count of 2. This is because the API will not return the confidential record. The redacted security label is applied to the Bundle response, to indicate that confidential records have been removed from the result set. See the API documentation for more information. |
| SearchExactMatchRecordWithheldExample |
Example of a searchset API response for an Condition resource search where the patient has withheld records at their PMS.
In this case, the server does not have the record but the parameters supplied in the search mean we are able to uniquely match to a single record that has been withheld using the $participate operation.
The search response returns zero entries |
| SearchWithRecordsWithheldExample |
Example of a searchset API response for an Condition resource search where the patient has withheld records at their PMS.
In this case, the search response returns one entry |