I know I can do it with an outbound tcl proc, but I thought I would see if anyone has a xlate’y solution.
For those interested, here is what I am trying to accomplish. The inbound lab order contains IN1, IN2, and GT1 segments. We send the order to our LIS, but the LIS can’t send out these segments in the outbound charge message, but our downstream system prefer this payer info in the DFT.
The plan is to grab the order number, MRN, and necessary segments (or the entire message) from the source order message and dump them into an Sqlite DB. When the charge comes out of the LIS, we query the DB for the order record, paste the segments into the right places in the outbound message and send it out.