Query Case 3, 4, 5, 6
Query Case 3, 4, 5, 6 Test Cases
1. Query Case 3
Pre-condition:
The PIX Manager is configured to handle these domains:
NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO
NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO
NIST2010-3&2.16.840.1.113883.3.72.5.9.3&ISO
Description:
Test case ITI-9-Query-Case3 covers the PIX Query Case 3. A PIX Query is sent to find corresponding ids in domain NIST2010-2 for the patient HARVEY CARON with ID HC-352 in domain NIST2010. The PIX Manager does not recognize the patient with ID HC-352 in domain NIST2010. The same query is sent but the requested domains are NIST2010-2 and NIST2010-3. Another one is sent but this time it is for all the domains. In all cases the PIX Manager shoud return a response with the specific error.
Test Steps Description:
Step 1: The NIST PIX Consumer sends a query message (QBP^Q23) to ask for HARVEY CARON''s ID in domain NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO using his id HC-352 in domain NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO. Your PIX Manager shall send a query response back indicating that an error occured.
Step 2: The NIST PIX Consumer sends a query message (QBP^Q23) to ask for HARVEY CARON''s ID in domain NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO and NIST2010-3&2.16.840.1.113883.3.72.5.9.3&ISO using his id HC-352 in domain NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO. Your PIX Manager shall send a query response back indicating that an error occured.
Step 3: The NIST PIX Consumer sends a query message (QBP^Q23) to ask for HARVEY CARON''s ID in all domains using his id HC-352 in domain NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO. Your PIX Manager shall send a query response back indicating that an error occured.
Â
Step 1:
Query for corresponding ids in NIST2010-2 for the patient with ID HC-352 in domain NIST2010
MSH|^~\&|NIST_SENDER^^|NIST^^|NIST_RECEIVER^^|NIST^^|20101101161236||QBP^Q23^QBP_Q21|NIST-101101161236274|P|2.5 QPD|IHE PIX Query|QRY12434188486468|HC-352^^^NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO|^^^NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO RCP|I
The response message is:
MSH|^~\&|MESA_XREF|XYZ_HOSPITAL|NIST_SENDER|NIST|20121112141759-0500||RSP^K23^RSP_K23|c0a802a213af60e8a863|P|2.5 MSA|AE|NIST-101101161236274 ERR||QPD^1^3^1^1|204^Unknown Key Identifier|E QAK|QRY12434188486468|AE QPD|IHE PIX Query|QRY12434188486468|HC-352^^^NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO|^^^NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO
Step 2:
Query for corresponding ids in NIST2010-2 and NIST2010-3 for the patient with ID HC-352 in domain NIST2010
MSH|^~\&|NIST_SENDER^^|NIST^^|NIST_RECEIVER^^|NIST^^|20101101161237||QBP^Q23^QBP_Q21|NIST-101101161237429|P|2.5 QPD|IHE PIX Query|QRY12434188864646876864|HC-352^^^NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO|^^^NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO~^^^NIST2010-3&2.16.840.1.113883.3.72.5.9.3&ISO RCP|I
The response message is:
MSH|^~\&|MESA_XREF|XYZ_HOSPITAL|NIST_SENDER|NIST|20121112141826-0500||RSP^K23^RSP_K23|c0a802a213af60ef4e73|P|2.5 MSA|AE|NIST-101101161237429 ERR||QPD^1^3^1^1|204^Unknown Key Identifier|E QAK|QRY12434188864646876864|AE QPD|IHE PIX Query|QRY12434188864646876864|HC-352^^^NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO|^^^NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO~^^^NIST2010-3&2.16.840.1.113883.3.72.5.9.3&ISO
Step 3:
Query for corresponding ids in all domains for the patient with ID HC-352 in domain NIST2010
MSH|^~\&|NIST_SENDER^^|NIST^^|NIST_RECEIVER^^|NIST^^|20101101161238||QBP^Q23^QBP_Q21|NIST-101101161238491|P|2.5 QPD|IHE PIX Query|QRY1243434596641|HC-352^^^NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO RCP|I
The response message is:
MSH|^~\&|MESA_XREF|XYZ_HOSPITAL|NIST_SENDER|NIST|20121112141901-0500||RSP^K23^RSP_K23|c0a802a213af60f7cda1|P|2.5 MSA|AE|NIST-101101161238491 ERR||QPD^1^3^1^1|204^Unknown Key Identifier|E QAK|QRY1243434596641|AE QPD|IHE PIX Query|QRY1243434596641|HC-352^^^NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO
2. Query Case 4
Pre-condition:
The PIX Manager is configured to handle these domains:
NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO
NIST2010-3&2.16.840.1.113883.3.72.5.9.3&ISO
Â
Description:
Test case ITI-9-Query-Case4 covers the PIX Query Case 4. A PIX Query is sent to find corresponding ids in domain NIST2010-2 for the patient DAMIEN WRONG with ID DWRONG-0184 in domain UNKNOWNDOMAIN. The PIX Manager does not recognize the domain UNKNOWNDOMAIN. The same query is sent but the requested domains are NIST2010-2 and NIST2010-3. Another one is sent but this time it is for all the domains. In all cases the PIX Manager shoud return a response with the specific error.
Test Steps Description:
Step 1: The NIST PIX Consumer sends a query message (QBP^Q23) to ask for DAMIEN WRONG''s ID in domain NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO using his id DWRONG-0184 in domain UNKNOWNDOMAIN&2.16.840.1.113883.3.72.5.9.99&ISO. Your PIX Manager shall send a query response back indicating that an error occured.
Step 2: The NIST PIX Consumer sends a query message (QBP^Q23) to ask for DAMIEN WRONG''s ID in domain NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO and NIST2010-3&2.16.840.1.113883.3.72.5.9.3&ISO using his id DWRONG-0184 in domain UNKNOWNDOMAIN&2.16.840.1.113883.3.72.5.9.99&ISO. Your PIX Manager shall send a query response back indicating that an error occured.
Step 3: The NIST PIX Consumer sends a query message (QBP^Q23) to ask for DAMIEN WRONG''s ID in all domains using his id DWRONG-0184 in domain UNKNOWNDOMAIN&2.16.840.1.113883.3.72.5.9.99&ISO. Your PIX Manager shall send a query response back indicating that an error occured.
Â
Step 1:
Query for corresponding ids in NIST2010-2 for the patient with ID DWRONG-0184 in domain UNKNOWNDOMAIN
MSH|^~\&|NIST_SENDER^^|NIST^^|NIST_RECEIVER^^|NIST^^|20101101161239||QBP^Q23^QBP_Q21|NIST-101101161239600|P|2.5 QPD|IHE PIX Query|QRY1243418844848646|DWRONG-0184^^^UNKNOWNDOMAIN&2.16.840.1.113883.3.72.5.9.99&ISO|^^^NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO RCP|I
The response message is:
MSH|^~\&|MESA_XREF|XYZ_HOSPITAL|NIST_SENDER|NIST|20121112145811-0500||RSP^K23^RSP_K23|c0a802a213af6335a113|P|2.5 MSA|AE|NIST-101101161239600 ERR||QPD^1^3^1^4|204^Unknown Key Identifier|E QAK|QRY1243418844848646|AE QPD|IHE PIX Query|QRY1243418844848646|DWRONG-0184^^^UNKNOWNDOMAIN&2.16.840.1.113883.3.72.5.9.99&ISO|^^^NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO
Step 2:
Query for corresponding ids in NIST2010-2 and NIST2010-3 for the patient with ID DWRONG-0184 in domain UNKNOWNDOMAIN
MSH|^~\&|NIST_SENDER^^|NIST^^|NIST_RECEIVER^^|NIST^^|20101101161240||QBP^Q23^QBP_Q21|NIST-101101161240834|P|2.5 QPD|IHE PIX Query|QRY1243448461681864|DWRONG-0184^^^UNKNOWNDOMAIN&2.16.840.1.113883.3.72.5.9.99&ISO|^^^NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO~^^^NIST2010-3&2.16.840.1.113883.3.72.5.9.3&ISO RCP|I
The response message is:
MSH|^~\&|MESA_XREF|XYZ_HOSPITAL|NIST_SENDER|NIST|20121112145840-0500||RSP^K23^RSP_K23|c0a802a213af633ca753|P|2.5 MSA|AE|NIST-101101161240834 ERR||QPD^1^3^1^4|204^Unknown Key Identifier|E QAK|QRY1243448461681864|AE QPD|IHE PIX Query|QRY1243448461681864|DWRONG-0184^^^UNKNOWNDOMAIN&2.16.840.1.113883.3.72.5.9.99&ISO|^^^NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO~^^^NIST2010-3&2.16.840.1.113883.3.72.5.9.3&ISO
Â
Step 3:
Query for corresponding ids in all domains for the patient with ID DWRONG-0184 in domain UNKNOWNDOMAIN
MSH|^~\&|NIST_SENDER^^|NIST^^|NIST_RECEIVER^^|NIST^^|20101101161242||QBP^Q23^QBP_Q21|NIST-101101161242068|P|2.5 QPD|IHE PIX Query|QRY1243484846181004|DWRONG-0184^^^UNKNOWNDOMAIN&2.16.840.1.113883.3.72.5.9.99&ISO RCP|I
The response message is:
MSH|^~\&|MESA_XREF|XYZ_HOSPITAL|NIST_SENDER|NIST|20121112145906-0500||RSP^K23^RSP_K23|c0a802a213af6342ffd1|P|2.5 MSA|AE|NIST-101101161242068 ERR||QPD^1^3^1^4|204^Unknown Key Identifier|E QAK|QRY1243484846181004|AE QPD|IHE PIX Query|QRY1243484846181004|DWRONG-0184^^^UNKNOWNDOMAIN&2.16.840.1.113883.3.72.5.9.99&ISO
Â
Â
3. Query Case 5
Pre-condition:
The PIX Manager is configured to handle these domains:
NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO
NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO
Description:
 Test case ITI-9-Query-Case5 covers the PIX Query Case 5. One patient (CRONAN) is registered in two different domains. Two registration messages are sent to a Cross Reference Manager. A PIX Query is sent to find corresponding ids in domain UNKNOWNDOMAIN for the patient KARL CRONAN with ID KC-51-958 in domain NIST2010. The PIX Manager does not recognize the requested domain UNKNOWNDOMAIN. The same query is sent but the requested domains are NIST2010-2 and UNKNOWNDOMAIN. In both cases the PIX Manager shoud return a response with the specific error.
Test Steps Description:
Step 1: The NIST PIX Source sends a registration message (ADT^A04) to register patient KARL CRONAN in domain NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO. Patient ID is KC-51-958. Your PIX Manager shall register the patient and send a correct ACK message back.
Step 2: The NIST PIX Source sends a registration message (ADT^A04) to register patient KARL CRONAN in domain NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO. Patient ID is KC0000145. Your PIX Manager shall register the patient and send a correct ACK message back.
Step 3: The NIST PIX Consumer sends a query message (QBP^Q23) to ask for KARL CRONAN''s ID in domain UNKNOWNDOMAIN&2.16.840.1.113883.3.72.5.9.99&ISO using his id KC-51-958 in domain NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO. Your PIX Manager shall send a query response back indicating that an error occured.
Step 4: The NIST PIX Consumer sends a query message (QBP^Q23) to ask for KARL CRONAN’s ID in domain NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO and UNKNOWNDOMAIN&2.16.840.1.113883.3.72.5.9.99&ISO using his id KC-51-958 in domain NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO. Your PIX Manager shall send a query response back indicating that an error occured.
Â
Step 1:
Register Patient CRONAN^KARL with ID KC-51-958 in domain NIST2010
MSH|^~\&|NIST_SENDER^^|NIST^^|NIST_RECEIVER^^|NIST^^|20101101161254||ADT^A04^ADT_A01|NIST-101101161254234|P|2.3.1 EVN||20101020 PID|||KC-51-958^^^NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO||CRONAN^KARL^^^^^L|NEW^^^^^^L|19861005|M|||443 Holly Street^^ELBERTON^GA^30653||^PRN^PH^^^706^2831110||||||259-05-1931 PV1||O
The response message is:
MSH|^~\&|MESA_XREF|XYZ_HOSPITAL|NIST_SENDER|NIST|20121113083941-0500||ACK^A04|c0a802a213af9ff2e1a3|P|2.3.1 MSA|AA|NIST-101101161254234
Step 2:
Register Patient CRONAN^KARL with ID KC0000145 in domain NIST2010-2
MSH|^~\&|NIST_SENDER^^|NIST^^|NIST_RECEIVER^^|NIST^^|20101101161308||ADT^A04^ADT_A01|NIST-101101161308603|P|2.3.1 EVN||20101020 PID|||KC0000145^^^NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO||CRONAN^KARL^^^^^L|NEW^^^^^^L|19861005|M|||443 Holly Street^^ELBERTON^GA^30653||^PRN^PH^^^706^2831110||||||259-05-1931 PV1||O
The response message is:
MSH|^~\&|MESA_XREF|XYZ_HOSPITAL|NIST_SENDER|NIST|20121113084002-0500||ACK^A04|c0a802a213af9ff82683|P|2.3.1 MSA|AA|NIST-101101161308603
Step 3:
Query for corresponding ids in UNKNOWNDOMAIN for the patient with ID KC-51-958 in domain NIST2010
MSH|^~\&|NIST_SENDER^^|NIST^^|NIST_RECEIVER^^|NIST^^|20101101161310||QBP^Q23^QBP_Q21|NIST-101101161310009|P|2.5 QPD|IHE PIX Query|QRY2186485688164|KC-51-958^^^NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO|^^^UNKNOWNDOMAIN&2.16.840.1.113883.3.72.5.9.99&ISO RCP|I
The response message is:
MSH|^~\&|MESA_XREF|XYZ_HOSPITAL|NIST_SENDER|NIST|20121113084024-0500||RSP^K23^RSP_K23|c0a802a213af9ffd9021|P|2.5 MSA|AE|NIST-101101161310009 ERR||QPD^1^4^1|204^Unknown Key Identifier|E QAK|QRY2186485688164|AE QPD|IHE PIX Query|QRY2186485688164|KC-51-958^^^NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO|^^^UNKNOWNDOMAIN&2.16.840.1.113883.3.72.5.9.99&ISO
Step 4:
Query for corresponding ids in NIST2010-2 and UNKNOWNDOMAIN for the patient with ID KC-51-958 in domain NIST2010
MSH|^~\&|NIST_SENDER^^|NIST^^|NIST_RECEIVER^^|NIST^^|20101101161311||QBP^Q23^QBP_Q21|NIST-101101161311133|P|2.5 QPD|IHE PIX Query|QRY218841999789|KC-51-958^^^NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO|^^^NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO~^^^UNKNOWNDOMAIN&2.16.840.1.113883.3.72.5.9.99&ISO RCP|I
The response message is:
Â
MSH|^~\&|MESA_XREF|XYZ_HOSPITAL|NIST_SENDER|NIST|20121113084055-0500||RSP^K23^RSP_K23|c0a802a213afa00508d1|P|2.5 MSA|AE|NIST-101101161311133 ERR||QPD^1^4^2|204^Unknown Key Identifier|E QAK|QRY218841999789|AE QPD|IHE PIX Query|QRY218841999789|KC-51-958^^^NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO|^^^NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO~^^^UNKNOWNDOMAIN&2.16.840.1.113883.3.72.5.9.99&ISO
4. Query Case 6
Pre-condition:
The PIX Manager is configured to handle these domains:
NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO
NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO
Description:
Test case ITI-9-Query-Case6 covers the PIX Query Case 6. One patient (TRIPLET) is registered twice with different ids in the same domain NIST2010. These two patients are not linked because they are in the same domain. This patient is also registered in another domain NIST2010-2. Three registration messages are sent to a Cross Reference Manager. A PIX Query is sent to find corresponding ids in domain NIST2010 for the patient MEGAN TRIPLET with ID MT-100-003 in domain NIST2010-2. Patient TRIPLET should be found in domain NIST2010. Your PIX Manager shall answer correctly to the query returning one of identifiers or both in domain NIST2010.
Test Steps Description:
Step 1: The NIST PIX Source sends a registration message (ADT^A04) to register patient MEGAN TRIPLET in domain NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO. Patient ID is MT-100-001. Your PIX Manager shall register the patient and send a correct ACK message back.
Step 2: The NIST PIX Source sends a registration message (ADT^A04) to register patient MEGAN TRIPLET in domain NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO. Patient ID is MT-100-002. Your PIX Manager shall register the patient and send a correct ACK message back.
Step 3: The NIST PIX Source sends a registration message (ADT^A04) to register patient MEGAN TRIPLET in domain NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO. Patient ID is MT-100-003. Your PIX Manager shall register the patient and send a correct ACK message back.
Step 4: The NIST PIX Consumer sends a query message (QBP^Q23) to ask for MEGAN TRIPLET''s ID in domain NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO using her id MT-100-003 in domain NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO. Your PIX Manager shall answer correctly to the query with MEGAN TRIPLET''s IDs MT-100-001 or MT-100-002 or both in domain NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO.
Step 1:
Register Patient TRIPLET^MEGAN with ID MT-100-001 in domain NIST2010
MSH|^~\&|NIST_SENDER^^|NIST^^|NIST_RECEIVER^^|NIST^^|20101101161322||ADT^A04^ADT_A01|NIST-101101161322503|P|2.3.1 EVN||20101020 PID|||MT-100-001^^^NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO||TRIPLET^MEGAN^^^^^L|RICH^^^^^^L|19321219|F|||2266 Station Street^^RICHMOND^CA^94801||^PRN^PH^^^510^9658426||||||626-21-6397 PV1||O
The response message is:
MSH|^~\&|MESA_XREF|XYZ_HOSPITAL|NIST_SENDER|NIST|20121113092704-0500||ACK^A04|c0a802a213afa2a92a23|P|2.3.1 MSA|AA|NIST-101101161322503
Step 2:
Register Patient TRIPLET^MEGAN with ID MT-100-002 in domain NIST2010
Â
MSH|^~\&|NIST_SENDER^^|NIST^^|NIST_RECEIVER^^|NIST^^|20101101161334||ADT^A04^ADT_A01|NIST-101101161334232|P|2.3.1 EVN||20101020 PID|||MT-100-002^^^NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO||TRIPLET^MEGAN^^^^^L|RICH^^^^^^L|19321219|F|||2266 Station Street^^RICHMOND^CA^94801||^PRN^PH^^^510^9658426||||||626-21-6397 PV1||O
The response message is:
MSH|^~\&|MESA_XREF|XYZ_HOSPITAL|NIST_SENDER|NIST|20121113092727-0500||ACK^A04|c0a802a213afa2aec283|P|2.3.1 MSA|AA|NIST-101101161334232
Step 3:
Register Patient TRIPLET^MEGAN with ID MT-100-003 in domain NIST2010-2
MSH|^~\&|NIST_SENDER^^|NIST^^|NIST_RECEIVER^^|NIST^^|20101101161346||ADT^A04^ADT_A01|NIST-101101161346633|P|2.3.1 EVN||20101020 PID|||MT-100-003^^^NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO||TRIPLET^MEGAN^^^^^L|RICH^^^^^^L|19321219|F|||2266 Station Street^^RICHMOND^CA^94801||^PRN^PH^^^510^9658426||||||626-21-6397 PV1||O
The response message is:
MSH|^~\&|MESA_XREF|XYZ_HOSPITAL|NIST_SENDER|NIST|20121113092754-0500||ACK^A04|c0a802a213afa2b525b1|P|2.3.1 MSA|AA|NIST-101101161346633
Step 4:
Query for corresponding ids in NIST2010 for the patient with ID MT-100-003 in domain NIST2010-2
MSH|^~\&|NIST_SENDER^^|NIST^^|NIST_RECEIVER^^|NIST^^|20101101161348||QBP^Q23^QBP_Q21|NIST-101101161348023|P|2.5 QPD|IHE PIX Query|QRY184861681|MT-100-003^^^NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO|^^^NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO RCP|I
The response message is:
MSH|^~\&|MESA_XREF|XYZ_HOSPITAL|NIST_SENDER|NIST|20121113092819-0500||RSP^K23^RSP_K23|c0a802a213afa2bb5cc1|P|2.5 MSA|AA|NIST-101101161348023 QAK|QRY184861681|OK QPD|IHE PIX Query|QRY184861681|MT-100-003^^^NIST2010-2&2.16.840.1.113883.3.72.5.9.2&ISO|^^^NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO PID|||MT-100-002^^^NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO^PI~MT-100-001^^^NIST2010&2.16.840.1.113883.3.72.5.9.1&ISO^PI||~^^^^^^S
Â