After two patients are merged, a PDQ query that matches the subsumed patient still returns the subsumed patient. The subsumed patient is considered no longer valid in the EMPI, so it should not be return upon a PDQ request.
Example:
based on the test case PixMesa10515TestCase, just add the following PDQ query at the last step:
MSH|^~\&|MESA_PD_CONSUMER|MESA_DEPARTMENT|EHR_MISYS|MISYS|||QBP^Q22|11350110|P|2.5||||||||
QPD|IHE PDQ Query|QRY11350110|@PID.5.2^MARY|||||
RCP|I|10^RD|||||
The return result is (Where the first PID is the subsumed patient):
PID|1||PIX10515W^^HIMSS2005&1.3.6.1.4.1.21367.2005.1.1&ISO^PI||WASHINGTON^MARY||19220224|F|||1 RIDGE TOP^WEBSTER^MO^63119|||||||10515-101
PID|2||PIX10515L^^HIMSS2005&1.3.6.1.4.1.21367.2005.1.1&ISO^PI~XYZ10515W^XREF2005&1.3.6.1.4.1.21367.2005.1.2&ISO^PI||WASHINGTON^MARY||19220224|F|||1 RIDGE TOP^WEBSTER^MO^63119|||||||10515-401
This was resolved in the 2.1.3 release