New Zealand HPI Implementation Guide, published by Te Whatu Ora. This guide is not an authorized publication; it is the continuous build for version 1.5.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7NZ/hpi/ and changes regularly. See the Directory of published versions
If a practitioner resource is found, then an update of that practitioner resource is required (Update method TBC)
If not found, the user provides the details to be added to the HPI:
Name, birthdate, gender and ethnicity (mandatory)
An RA must include an RA identifier
Language and educational qualification (optional)
Death date and registration details (Practitioner.qualification) provided subsequently with an update operation
The integrating application adds a practitioner to the HPI Add practitioner
The HPI confirms a successful Add and returns the hpi-person-id and a version-id to be stored by the local system for future use
If the user wants to provide registration details (qualification) or a death date, the integrating application does an update to the practitioner record created (Update method TBC)
Steps involved for a Health Provider adding a new employee (NR) record to the HPI:
Note: When adding an NR record to the HPI, best practice requires a PractitionerRole to be created for that record
The HPI returns the updated version-id to be saved locally
Multi-resource Use cases
Lookup EDI for an enrolled patient’s General Practice - using NHI FHIR API
This use case requires permission to access the NHI, NES enrollment's and HPI facility information.
Steps involved:
The user initiates searching for an EDI number for a patient’s General Practitioner
The integrating application sends a read request for the Patient Resource using the nhi-id to the NHI FHIR API E.g. GET<Endpoint>/Patient/ZZZ0008
The requested is validated - ALT: Validation failure. OperationOutcome resource returned
The Patient resource (containing the Patients enrolled General Practice details) is returned from the HPI
The integrating application sends a read request for the Facility details (Location resource) using the hpi-facility-id to the HPI FHIR API E.g. GET<Endpoint>/Location/F99999B
The requested is validated - ALT: Validation failure. OperationOutcome resource returned
The Location resource is returned from the HPI
The integrating application extracts the messaging address containing the EDI number for the GP clinic
Lookup EDI for an enrolled patient’s General Practice - using NES SOAP
This use case requires permission to access the NHI, NES enrollment's and HPI facility information.
Steps involved:
The user initiates searching for an EDI number for a patient’s General Practitioner
The integrating application calls the SOAP Enrolment service with the patient’s NHI number.
The SOAP Enrolment web service returns the enrolment for a patient containing the OrgID, FacID, and GP’s CPN.
The integrating application sends a read request for the Facility (location resource) using the FacID to the HPI FHIR API.
E.g. GET https://hpi.api.health.govt.nz/location/\F99999B
The requested is validated - ALT: Validation failure. OperationOutcome resource returned
The location resource is returned from the HPI.
The integrating application extracts the messaging address containing the EDI number