title: Mirth: Custom ack edge case
body: <p>I think this would be an extreme edge case that I need to accomplish:</p>
  
  <ol>
  <li>An ORU comes in from a 3rd party application. </li>
  <li>An AA ack gets returned to the 3rd party application on the same connection. </li>
  <li>The ORU gets forwarded on to a 3rd party destination system. </li>
  <li>The destination system will return a positive or a negative ack to Mirth. </li>
  <li><p>I need to return a secondary CA acknowledgement to the original sending 3rd party app on a seperate connection.</p>
  
  <p>5a) Could be a positive (AA) or negative (AE) ACK.</p>
  
  <p>5b) The acks are custom, so they must be generated through javascript</p>
  
  <p>5c) If I am sending a positive (AA) ack back to the original sending system I need to populate one of the MSA fields with a value that was in the original ORU message.</p></li>
  </ol>
  
  <p>Point 5c makes this difficult because I'm not sure of any way to maintain state between original ORU message and the acknowledgement.  Is there any way to do this in Mirth, or do I need to build something by storing ORU information in a database, and looking it up when generating the ACK?</p>