TEST: OHIE-CR-09-HL7v2
Patient Identity Query – Identifier query
In this test, the test harness will register a patient with a local identifier (TEST domain) and will subsequently query the receiver to retrieve the identifiers linked to the newly registered patient.
References
Pre-Conditions / Setup
Setup the receiver so that OID 2.16.840.1.113883.3.72.5.9.1 has assigning authority of TEST
Setup the receiver so that OID 2.16.840.1.113883.3.72.5.9.9 has assigning authority of NID
Test Step 1:
Test harness sends PIX query for identifier RJ-443 (an un-registered patient) and validates the receiver behaves appropriately.
Expected Behaviour
Receiver accepts the message with AE
Receiver conveys no data found with AE in QAK
Receiver indicates error by sending an ERR segment with QPD^1^3^1^1
Test Step 2:
Test harness sends PIX query for identifier RJ-443 (an un-registered patient) in domain RANDOM (an un-registered) domain
Expected Behaviour
Receiver rejects the message with AE
Receiver conveys query error with AE in QAK
Receiver indicates error by sending an ERR segment with QPD^1^3^4^1
Test Step 3:
Test harness sends ADT^A01 message registering a patient.
Expected Behaviour
Receiver Accepts Message with an AA
MSH-5 and MSH-6 matches “TEST_HARNESS|TEST”
Test Step 4:
Test harness ensures that patient was registered by executing:
Expected Behaviour
Receiver Accepts message with an AA
Response message contains exactly one PID segment
QAK of OK
PID-3 of PID segment contains an identifier having:
PID.3.1.1 = RJ-443
PID.3.4.1 = TEST
PID.3.4.2 = 2.16.840.1.113883.3.72.5.9.1
PID.3.4.3 = ISO
Last updated