New Zealand NES IG
1.4.6 - Release
New Zealand NES IG - Local Development build (v1.4.6) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
The Create Enrolment operation is initiated by a user who needs to create a new Enrolment with a health provider for the provision of a health service to a patient.
A Create Enrolment request may include a valid practitioner (HPI-person-id / CPN)
A request must not enrol a Patient with a Provider for a Health Service when an active enrolment for the specific Health Service exists for that patient with that Provider.
FLS Specific Rules
A Patient must not be pre-enrolled for Health Service if an active enrolment exists for that Health Service for that patient.
A request to enrol a patient for a health service must not be actioned if an enrolment (enrolled or pre-enrolled) has already been accepted on that date.
A Patient must have a maximum of one active enrolment (enrolled or pre-enrolled) with a GP / PHO for Primary Care.
A Patient must be less than three months old at the date of enrolment to pre-enrol with a GP Practice / PHO.
Error Scenario | Error Code | Error Message | HTTP Status code |
---|---|---|---|
Missing HPI-Organisation-id in request | EM07201 | HPI-Organisation-id is a required field | 422 Unprocessable entity |
Missing HPI-Facility-id in request | EM07201 | HPI-Facility-id is a required field | 422 Unprocessable entity |
Missing Enrolment status in request | EM07201 | Enrolment status is a required field | 422 Unprocessable entity |
Missing Enrolment type in request | EM07201 | Enrolment type is a required field | 422 Unprocessable entity |
Missing Patient resource in request | EM07201 | Patient resource is a required field | 422 Unprocessable entity |
NHI provied is dormant | EM02004 | The NHI Identifier provided is dormant. This record cannot be updated | 422 Unprocessable entity |
Patient identity information does not match Patient NHI supplied | EM02008 | The Patient identity information does not match Patient NHI supplied | 422 Unprocessable entity |
NHI number supplied supplied cannot be found. | EM02002 | NHI number supplied supplied cannot be found. | 422 Unprocessable entity |
HPI-Organisation-id supplied cannot be found. | EM02002 | HPI-Organisation-id supplied cannot be found. | 422 Unprocessable entity |
HPI-Facility-id supplied cannot be found. | EM02002 | HPI-Facility-id supplied cannot be found. | 422 Unprocessable entity |
hpi-person-id (CPN) supplied cannot be found. | EM02002 | hpi-person-id (CPN) supplied cannot be found. | 422 Unprocessable entity |
An enrolment for <1> already exists for this patient with the requested organisation | EM11003 | An enrolment already exists for this patient with the requested organisation | 422 Unprocessable entity |
An enrolment has already been recorded for this patient today | EM11006 | An enrolment has already been recorded for this patient today | 422 Unprocessable entity |
A patient must not have more than one active enrolment for a health service | EM11005 | A patient must not have more than one active enrolment for a health service | 422 Unprocessable entity |
This patient is older than three months, and cannot be pre-enrolled | EM11007 | This patient is older than three months, and cannot be pre-enrolled | 422 Unprocessable entity |