New Zealand NES IG
1.4.7-snapshot - Release

New Zealand NES IG - Local Development build (v1.4.7-snapshot) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Entitlment Compliance Testing

Get and Search Entitlement testing

NES GET Entitlement tests

Reference Purpose – Demonstrate that the Input values Expected outcome Mandatory
Entitlement-GET-1
CSC
application displays csc entitlement information correctly:
  • Identifier (card number)
  • Type
  • NHI number
  • Period
20018179 Output: CSC entitlement information is displayed for the patient Mandatory if applicable
Entitlement-GET-2
CSCDEP
application displays csc-dep entitlement information correctly:
  • Identifier (card number)
  • Type
  • Relationship
  • NHI number
  • Period
20018181 Output:
  • CSC entitlement information is displayed for the patient
  • Clearly shows card as CSC dependent
Mandatory if applicable
Entitlement-GET-3
HUHC
application displays HUHC entitlement information correctly:
  • Identifier (card number)
  • Type
  • NHI number
  • Period
305454455 Output: HUHC entitlement information is displayed for the patient Mandatory if applicable
Entitlement-GET-4
PSC
application displays PSC entitlement information correctly:
  • Identifier (card number)
  • Type
  • NHI number
  • Period
XXXXXX Output: PSC entitlement information is displayed for the patient Mandatory if applicable

NES Search Entitlement tests

Reference Purpose – Demonstrate that the Input values Expected outcome Mandatory
Entitlement-Search-1
CSC
application displays entitlement information correctly:
  • Entitlement id
  • Identifier (card number)
  • Type
  • NHI number
  • Period
ZKZ6088 Output:
  • All entitlement information is displayed for the patient
  • Patient should have an active CSC entitlement
  • Expiry: 2025-11-02
Mandatory if applicable
Entitlement-Search-2
CSC-Dep
application displays entitlement information correctly:
  • Entitlement id
  • Identifier (card number)
  • Type
  • NHI number
  • Period
ZKZ6096 Output:
  • All entitlement information is displayed for the patient
  • Patient should have an active CSC dependent entitlement
  • Expiry: 2025-11-02
Mandatory if applicable
Entitlement-Search-3
HUHC
application displays entitlement information correctly:
  • Entitlement id
  • Identifier (card number)
  • Type
  • NHI number
  • Period
ZGE7630 Output:
  • All entitlement information is displayed for the patient
  • Patient should have an active HUHC entitlement
  • Expiry: 2024-12-30
Mandatory if applicable
Entitlement-Search-4
HUHC + CSC
application displays entitlement information correctly:
  • Entitlement id
  • Identifier (card number)
  • Type
  • NHI number
  • Period
ZJV2957 Output:
  • All entitlement information is displayed for the patient
  • Patient should have active CSC and HUHC entitlements
  • Expiry: HUHC 2024-12-30
  • Expiry: CSC 2025-11-02
Mandatory if applicable
Entitlement-Search-5
HUHC + CSC + PSC
application displays entitlement information correctly:
  • Entitlement id
  • Identifier (card number)
  • Type
  • NHI number
  • Period
ZJV2965 Output:
  • All entitlement information is displayed for the patient
  • Patient should have active CSC and HUHC and PSC entitlements
  • Expiry: HUHC 2024-12-30
  • Expiry: CSC 2025-11-02
  • Expiry: PSC 2025-02-01
Mandatory if applicable
Entitlement-Search-6
PSC
application displays entitlement information correctly:
  • Entitlement id
  • Identifier (card number)
  • Type
  • NHI number
  • Period
ZLW0398 Output:
  • All entitlement information is displayed for the patient
  • Patient should have an active PSC entitlement
  • Expiry: PSC 2025-02-01
Mandatory if applicable
Entitlement-Search-7
PSC
application displays entitlement information correctly:
  • Entitlement id
  • Identifier (card number)
  • Type
  • NHI number
  • Period
XXXXXXX Output:
  • All entitlement information is displayed for the patient
  • Patient should have multiple active PSC entitlements
  • All expire: PSC 2025-02-01
Mandatory if applicable

CSC Create and Update Testing

NES Create CSC Entitlement tests

Reference Purpose – Demonstrate that the Input values Expected outcome Mandatory
Entitlement-Create-CSC-1 application can create a CSC entitlement when no CSC entitlement is returned from the entitlement service, however a person presents with a CSC card Use NHI (greater than 18) as provided Use a CSC card number provided Output: CSC entitlement is created and returned via the Entitlement service Mandatory if applicable
Entitlement-Create-CSC-2 application can create a CSC dependent entitlement when no CSC dependent entitlement is returned from the entitlement service, however a person presents as a dependent child of an adult with a CSC card Use NHI (less than 18) as provided Use same CSC card number as Entitlement Create 1 Output: CSC dependent entitlement is created and returned via the Entitlement service Mandatory if applicable
Entitlement-Create-CSC-error-1
Duplicate
application can display the correct error when attempting to create a CSC entitlement that already exists Use NHI (less than 18) as provided Use same CSC card number as Entitlement-Create-1 Output: EM12002 - The patient cannot have more than one CSC Entitlement active at the same time Mandatory if applicable
Entitlement-Create-CSC-error-2
More than one type
application can display the correct error when attempting to create:
  • a CSC entitlement for a person with a CSC dependent entitlement
  • a CSC dependent entitlement for a person with a CSC entitlement
  • Try to create a 'CSC dependent entitlenment' for the NHI used in Entitlement-Create-1
  • Try to create a CSC entitlementfor the NHI used in Entitlement-Create-2
Output: EM12001 - The patient cannot have both CSC and CSC Dependent Entitlements active at the same time Mandatory if applicable
Entitlement-Create-CSC-error-3
Invalid NHI
application can display the correct error when attempting to create a CSC entitlement for an invalid NHI Use NHI ZZZ000 and a CSC number provided Output: EM02002 - NHI number supplied cannot be found Mandatory if applicable
Entitlement-Create-CSC-error-4
Invalid NHI
application can display the correct error when attempting to create a CSC entitlement with a card number that is already is use Use an NHI provided, Reuse card number from Entitlement-Create-1 Output: EM12003 - The CSC Entitlement is already assigned to another patient Mandatory if applicable
Entitlement-Create-CSC-error-5
Card does not exist
application can display the correct error when attempting to create a CSC entitlement with a card number that does not exist Use an NHI provided and, CSC number: 0123 Output: EM12006 - The CSC Card Number must be known to MoH Mandatory if applicable
Entitlement-Create-CSC-error-6
Card not active
application can display the correct error when attempting to create a CSC entitlement with a card number that is not active Use an NHI provided and CSC number 0000000349650267 Output: EM12011 - CSC Card number is not Active Mandatory if applicable
Entitlement-Create-CSC-error-7
CSC dependent to old
application can display the correct error when attempting to create a CSC dep entitlement with a person who is older than 18. Use an NHI provided, CSC number as provided Output: Output: EM12016 - The patient is not a valid age to be a CSC Dependent Mandatory if applicable

NES Update CSC Entitlement tests

Reference Purpose – Demonstrate that the Input values Expected outcome Mandatory
Entitlement-Update-CSC-1
Update CSC
application can update a CSC entitlement when the CSC entitlement returned from the entitlement service is different from that provided by a person presenting with a CSC card Use NHI from Entitlement-Create-1, CSC card number as provided Output: CSC entitlement is created and returned via the Entitlement service Mandatory if applicable
Entitlement-Update-CSC-2
Update CSC dependent
application can update a CSC dep entitlement when the CSC dep entitlement returned from the entitlement service is different from that provided by a person presenting with a CSC card Use NHI from Entitlement-Create-2, Same CSC card number as Entitlement-Update-1 Output: CSC dependent entitlement is created and returned via the Entitlement service Mandatory if applicable
Entitlement-Update-error-1
Duplicate
application can display the correct error when attempting to update a CSC entitlement with details that already exist Try to update a CSC entitlement with the same details in Entitlement-Update-1 and Entitlement-Update-2 (Duplicate the above to force the error). Output: EM12002 - The patient cannot have more than one CSC Entitlement active at the same time Mandatory if applicable
Entitlement-Update-error-2
Card already used
application can display the correct error when attempting to update a CSC entitlement with a card number that is already in used. Use new NHI number and card number from Entitlement-Update-1 Output: EM12003 - The CSC Entitlement is already assigned to another patient Mandatory if applicable
Entitlement-Update-3
CSC End
application can update a CSC entitlement to end it when it has been created/updated in error. Use NHI from Entitlement-Update-1 Output: CSC entitlement is ended with end reason 'entered in error' Mandatory if applicable
Entitlement-Update-4
CSC-dep End
application can update a CSC dep entitlement to end it when it has been created/updated in error. Use NHI from Entitlement-Update-2 Output: CSC entitlement is ended with end reason 'entered in error' Mandatory if applicable

PSC Create and Update Testing

TBC