TEST: OHIE-CR-11-HL7v2
Patient Demographics Query – Identifier query
This test case ensures that the recipient of the query can perform a patient demographics query based on the PID-3 values provided in an admit message.
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
Ensure that the following patient is registered in the receiver (can be done with the ADT message provided). Name: Jennifer Jones, id: RJ-439^^^TEST, gender: F, dob: 1984-01-25
Test Step 1:
Test harness sends a PDQ message containing a patient identifier which is known to the receiver:
Expected Behaviour
Receiver Accepts Message with an AA
QAK segment contains OK
Response contains a PID segment containing:
PID-3=439^^^TEST
PID-5=JONES^JENNIFER
PID-6=19840125
Test Step 2:
Test harness sends a PDQ message containing a patient identifier which is unknown to the receiver:
Expected Behaviour
Receiver accepts the message with AA
QAK segment contains NF
Response contains no PID segments
Test Step 3:
Test harness sends a PDQ message with an invalid query parameter of @PID.3.4.99
Expected Behaviour
Receiver rejects the message with AR or AE
QAK segment contains AE
Response contains no PID segments
Test Step 4:
Test harness sends a PDQ message and specifies what domains should be returned in the QPD-8 containing a valid domain of TEST
Expected Behaviour
Receiver accepts message with an AA
QAK segment contains OK
Response contains exactly one PID segment
PID-3 (Exactly one)=439^^^TEST
PID-5=JONES^JENNIFER
PID-6=19840125
Test Step 5:
Test harness sends a PDQ message and specifies what domains should be returned in QPD-8 with a valid domain of NID which has no matching identifiers.
Expected Behaviour
Receiver accepts message with an AA
QAK segment contains NF
No PID segments are returned in the response
Test Step 6:
Test harness sends a PDQ message and specifies what domains should be returned in QPD-8 with an invalid domain of RANDOM.
Expected Behaviour
Receiver rejects the message with AE
Receiver indicates query error with QAK of AE
No PID segments are returned
Receiver indicates QPD^1^8 in the ERR segment
Last updated