TEST: OHIE-CR-17-HL7v2
Patient Identity Merge No Assigning Authority
This test will ensure that the client registry appropriately handles a merge condition whereby the local authority has not assigning authority to perform or merge the identifiers provided. This test will also ensure that merges across assigning authorities cannot be performed
References
Pre-Conditions / Setup
Setup the receiver so that OID 2.16.840.1.113883.3.72.5.9.2 has assigning authority of TEST_A which can be assigned from TEST_HARNESS_A
Setup the receiver so that OID 2.16.840.1.113883.3.72.5.9.3 has assigning authority of TEST_B which can be assigned from TEST_HARNESS_B
Ensure that the following patient is registered in the receiver (can be done with the ADT message provided). Name: Sam Smith, id: RJ-203^^^TEST_A, gender: F, dob: 1989-02-25
Ensure that the following patient is registered in the receiver (can be done with the ADT message provided). Name: Samantha Smith, id: RJ-292^^^TEST_A, gender: F, dob: 1989-02
Ensure that the following patient is registered in the receiver (can be done with the ADT message provided). Name: Samantha Smith, id: SJ-204^^^TEST_B, gender: F, dob: 1989-02
Test Step 1:
Test harness (as TEST_HARNESS_B) sends ADT^A40 message attempting to merge identities from TEST_A domain.
Expected Behaviour
Receiver rejects message with an AE
MSH-5 and MSH-6 matches “TEST_HARNESS_B|TEST”
An ERR segment exists identifying the error
Test Step 2:
Test harness (as TEST_HARNESS_B) sends ADT^A40 message attempting to merge across domains by instructing the receiver to merge an identifier from TEST_A into TEST_B.
Expected Behaviour
Receiver rejects message with an AE or AR
MSH-5 and MSH-6 matches “TEST_HARNESS_B|TEST”
An ERR segment exists identifying the error
Test Step 3:
Test harness (as TEST_HARNESS_B) sends ADT^A40 message attempting to merge a patient identifier which does not exist.
Expected Behaviour
Receiver rejects message with an AE or AR
MSH-5 and MSH-6 matches “TEST_HARNESS_B|TEST”
An ERR segment exists identifying the error with HL7 code of 204 (key does not exist)
Last updated