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

Enrolment Nomination Compliance Testing

Enrolment Nomination Request

Reference Purpose Input values Expected outcome Mandatory
EnrolmentNominationRequest-1 application can create an enrolment nomination request with the minimum set of enrolment nomination information Send a nomination request for:
  • Baby
    • NHI: ZKS3307
    • Gender: Female
    • DOB: 2023-10-11
  • GP
    • Facility ID: FZZ932-C
  • PG1
    • Relationship Code: MTH
      • Given name: Priya
      • Family name: Testing NBES One
  1. Input:Minimum set of nomination information can be provided
  2. Output: Nomination request can be successfully posted to the NES $process-message endpoint
  3. Get a success response of 200()
mandatory
EnrolmentNominationRequest-2 application can create an enrolment nomination request with all possible nomination information Send a nomination request for:
  • Baby
    • NHI ZKS3340
    • Name
      • Given name: Baby of Trentham
      • Family name: Testing NBES Four
    • Gender: unknown
    • DOB: 2023-10-08
  • GP
    • Facility ID: FZZ932-C
    • Facility name: Facility for Private Hospital
  • PG1
    • Relationship Code: MTH
    • Given name: Maria
    • Family name: Murtle
    • NHI Number: ZKU8202
    • Contact Number: 1234567
    • Work number: 121234567
    • Email: NBES@NBES.com
    • Address: 31 King Street, Ebdentown, Upper Hutt, 5018
  1. Input: All possible nomination information can be provided
  2. Output: Nomination request can be successfully posted to the NES $process-message endpoint
mandatory

Enrolment Nomination Errors

Note: Some of these tests may not be able to be performed by the application or service. If so, please leave a comment in the test as to why it was not able to be demonstrated e.g. application cannot send message without NHI so error not required to be handled
Reference Purpose Input values Expected outcome Mandatory
EnrolmentNomination-Error-1 application will manage the error when attempting to send an enrolment nomination message that does not have the Baby’s NHI number Send a nomination request for:
  • Baby
    • NHI: 'leave blank'
    • Gender: Female
    • DOB: 2023-10-11
  • GP
    • Facility ID: FZZ932-C
  • PG1
    • Relationship Code: MTH
      • Given name: Priya
      • Family name: Testing NBES One
  1. Input:Input: enrolment nomination information can be provided
  2. Output:Output: Error 422 Unprocessable entity
mandatory
EnrolmentNomination-Error-2 application will manage the error when attempting to send an enrolment nomination with an NHI number that cannot be found Send a nomination request for:
  • Baby
    • NHI: ZKS330
    • Gender: Female
    • DOB: 2023-10-11
  • GP
    • Facility ID: FZZ932-C
  • PG1
    • Relationship Code: MTH
      • Given name: Priya
      • Family name: Testing NBES One
  1. Input:Input: enrolment nomination information can be provided
  2. Output:Output: Error EM13001 'Baby's NHI not found'
mandatory
EnrolmentNomination-Error-3 application will manage the error when attempting to send an enrolment nomination message that does not have the Baby’s date of birth Send a nomination request for:
  • Baby
    • NHI: ZKS3307
    • Gender: Female
    • DOB: 'leave blank'
  • GP
    • Facility ID: FZZ932-C
  • PG1
    • Relationship Code: MTH
      • Given name: Priya
      • Family name: Testing NBES One
  1. Input:Input: enrolment nomination information can be provided
  2. Output:Output: Error EM13009 The baby's date of birth is missing or invalid.
mandatory
EnrolmentNomination-Error-4 application will manage the error when attempting to send an enrolment nomination message that has a Baby’s date of birth as a future date Send a nomination request for:
  • Baby
    • NHI: ZKS3307
    • Gender: Female
    • DOB: 2025-10-11
  • GP
    • Facility ID: FZZ932-C
  • PG1
    • Relationship Code: MTH
      • Given name: Priya
      • Family name: Testing NBES One
  1. Input:Minimum set of nomination information can be provided
  2. Output: Error EM13009 The baby's date of birth is missing or invalid.
mandatory
EnrolmentNomination-Error-5 application will manage the error when attempting to send an enrolment nomination message that does not have the Baby’s gender Send a nomination request for:
  • Baby
    • NHI: ZKS3307
    • Gender: 'leave blank'
    • DOB: 2023-10-11
  • GP
    • Facility ID: FZZ932-C
  • PG1
    • Relationship Code: MTH
      • Given name: Priya
      • Family name: Testing NBES One
  1. Input: Enrolment nomination information can be provided
  2. Output: Error EM13008 The baby's gender is missing or invalid.
mandatory
EnrolmentNomination-Error-6 application will manage the error when attempting to send an enrolment nomination message that has an incorrect baby gender Send a nomination request for:
  • Baby
    • NHI: ZKS3307
    • Gender: 'Mixed'
    • DOB: 2023-10-11
  • GP
    • Facility ID: FZZ932-C
  • PG1
    • Relationship Code: MTH
      • Given name: Priya
      • Family name: Testing NBES One
  1. Input: Enrolment nomination information can be provided
  2. Output: Error 422 Unprocessable entity.
mandatory
EnrolmentNomination-Error-7 application will manage the error when attempting to send an enrolment nomination message with a gender that does not match the NHI Send a nomination request for:
  • Baby
    • NHI: ZKS3307
    • Gender: male
    • DOB: 2023-10-11
  • GP
    • Facility ID: FZZ932-C
  • PG1
    • Relationship Code: MTH
      • Given name: Priya
      • Family name: Testing NBES One
  1. Input: Enrolment nomination information can be provided
  2. Output: Error EM13006 The provided gender does not match the NHI record for the baby.
mandatory
EnrolmentNomination-Error-8 application will manage the error when attempting to send an enrolment nomination message that does not have the Nominated GP facility ID Send a nomination request for:
  • Baby
    • NHI: ZKS3307
    • Gender: female
    • DOB: 2023-10-11
  • GP
    • Facility ID: 'leave empty'
  • PG1
    • Relationship Code: MTH
      • Given name: Priya
      • Family name: Testing NBES One
  1. Input: Enrolment nomination information can be provided
  2. Output: Error EM13004 No nominated clinic has been provided.
mandatory
EnrolmentNomination-Error-9 application will manage the error when attempting to send an enrolment nomination message with an incorrect Nominated GP facility ID Send a nomination request for:
  • Baby
    • NHI: ZKS3307
    • Gender: female
    • DOB: 2023-10-11
  • GP
    • Facility ID: FZZ932-A
  • PG1
    • Relationship Code: MTH
      • Given name: Priya
      • Family name: Testing NBES One
  1. Input: Enrolment nomination information can be provided
  2. Output: Error EM13005 The nominated clinic provided cannot be found in HPI.
mandatory
EnrolmentNomination-Error-10 application will manage the error when attempting to send an enrolment nomination message with a date of birth that does not match the NHI Send a nomination request for:
  • Baby
    • NHI: ZKS3307
    • Gender: female
    • DOB: 2023-11-11
  • GP
    • Facility ID: FZZ932-C
  • PG1
    • Relationship Code: MTH
      • Given name: Priya
      • Family name: Testing NBES One
  1. Input: Enrolment nomination information can be provided
  2. Output: EM13007 The provided date of birth does not match the NHI record for the baby.
mandatory
EnrolmentNomination-Error-11 application will manage the error when attempting to send an enrolment nomination message without a mandatory resource Send a nomination request without a:
  • Baby
  • GP
  • Next of kin
  1. Input: Enrolment nomination information can be provided
  2. Output: Error 422 Unprocessable entity.
mandatory
EnrolmentNomination-Error-12 application will manage the error when attempting to send an enrolment nomination with an incorrect next of kin relationship code Send a nomination request for:
  • Baby
    • NHI: ZKS3307
    • Gender: female
    • DOB: 2023-10-11
  • GP
    • Facility ID: FZZ932-C
  • PG1
    • Relationship Code: MOTH
      • Given name: Priya
      • Family name: Testing NBES One
  1. Input: Enrolment nomination information can be provided
  2. Output: Error 422 Unprocessable entity.
mandatory
EnrolmentNomination-Error-13 application will manage the error when attempting to send an enrolment nomination for a baby that already has an active unexpired enrolment in the Natentiona Enrolment service Send a nomination request for:
  • Baby
    • NHI: ZDS3946
    • Gender: other
    • DOB: 1998-07-07
  • GP
    • Facility ID: FZZ932-C
  • PG1
    • Relationship Code: MTH
      • Given name: Priya
      • Family name: Testing NBES One
  1. Input: Enrolment nomination information can be provided
  2. Output: EEM13002 The baby is already enrolled or pre-enrolled in NES.
mandatory
EnrolmentNomination-Error-14 application will manage the error when attempting to send an enrolment nomination for a baby that has a deceased date Send a nomination request for:
  • Baby
    • NHI: ZBQ2770
    • Gender: female
    • DOB: 1979-01-01
  • GP
    • Facility ID: FZZ932-C
  • PG1
    • Relationship Code: MTH
      • Given name: Priya
      • Family name: Testing NBES One
  1. Input: Enrolment nomination information can be provided
  2. Output: EM13003 The baby has been marked as deceased in NHI.
mandatory