TEST: OHIE-CR-12-HL7v2
Patent Demographics Query – Query by name
This test ensures that the recipient of the query can perform an exact match on a patient’s name as provided in an admit message. The test will additionally test partial matching using phonetics and patterns. The recipient must pass one of the phonetic or pattern matching cases.
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 name which is known to the receiver:
Expected Behaviour
Receiver Accepts Message with an AA
QAK segment contains OK
Response contains a PID segment containing:
Response contains a PID segment containing:
PID-5=JONES^JENNIFER
PID-6=19840125
Test Step 2:
Test harness sends a PDQ message containing a patient name 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 containing a name which is known to the receiver, and indicates a domains to be returned of TEST in QPD-8.
Expected Behaviour
Receiver Accepts Message with an AA
QAK segment contains OK
Response contains exactly one PID segment containing:
PID-3 (Exactly one)=439^^^TEST
PID-5=JONES^JENNIFER
PID-6=19840125
Test Step 4:
Test harness sends a PDQ message containing a patient name which is known to the receiver and indicates a domains to be returned which is invalid in QPD-8:
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
Test Step 5:
Expected Behaviour
Receiver accepts the message with an AA
Receiver indicates query success of OK in QAK
Receiver returns at least one PID segment containing the match for Jennifer Jones
Receiver sends a QRI segment with a QRI-3 indicating pattern match and strength of the match
Test Step 6:
Test harness sends a PDQ message containing a phonetically equivalent name of a known patient to the receiver:Test harness sends a PDQ message containing a wildcard match which is known to the receiver:
Expected Behaviour
Receiver accepts the message with an AA
Receiver indicates query success of OK in QAK
Receiver returns at least one PID segment containing the match for Jennifer Jones
Receiver sends a QRI segment with a QRI-3 indicating phonetic match and strength of the match
Test Step 7:
Test harness sends a PDQ message containing a name variant match which is known to the receiver:
Expected Behaviour
Receiver accepts the message with an AA
Receiver indicates query success of OK in QAK
Receiver returns at least one PID segment containing the match for Jennifer Jones
Receiver sends a QRI segment with a QRI-3 indicating variant match and strength of the match
Last updated