title: How to handle QRY^Q02 with ReceivingApplication in HAPI?
body: <p>I'm developing an application which interacts with Chemistry Analyzers and I need to work with the QRY^Q02 and DSR^Q03 messages.</p>
  
  <p>The communication schema is as follows:</p>
  
  <pre><code>Analyzer                            Soft
  
                   QRY^Q02
     |---------------------------------&gt;|
                   QCK^Q02
     |&lt;---------------------------------|
  
                   DSR^Q03
     |&lt;---------------------------------|
                   ACK^Q03
     |---------------------------------&gt;|
  </code></pre>
  
  <p>I've implemented a ReceivingApplication to handle the incoming messages and generating the responses.</p>
  
  <p>The problem I have is that I don't know how to send the DSR^Q03 message after responding the QCK^Q02.</p>
  
  <p>One alternative is to fire a separate thread from the "processMessage", which will send the response to the query. I think this isn't a good approach to handle the query for several reasons.</p>
  
  <p>Does someone know how to send the DSR^Q03 after responding the QCK^Q02 ?</p>
  
  <p>If anyone can help me, I'll really appreciate it.</p>
  
  <p>Thanks in advance.
  Best regards.</p>