Patient demographics queries are processed as follows. This can be seen in the figure Figure 1.
A request is sent by an HL7 messaging domain for patients whose demographic information closely matches the demographic data sent in.
The message is received by the HL7 Binding Component if it is HL7 v2, or by the HTTP Binding Component if it is HL7 v3.
The message processed through the Normalized Message Router (NMR) to one of the following BPEL processes, depending on which version of HL7 is being processed: IHEPixPdqV2BpelProcess (v2) or bpelPDQManager (v3).
The BPEL process maps the data and routes it to the MDM Facade EJB, which then sends it to the Master Index for processing.
The Master Index compares the input data against existing records in the database. Any matches are returned to the BPEL process.
The BPEL process then sends the patient information back through the NMR and Binding Components to the originating domain, and generates an ACK or NACK response, which is also sent back out to the originating domain.
The BPEL process generates the audit record of the transaction, which is stored in the ATNA repository.