I’m looking at sending a HL7 message between two threads and then, if the message contains a particular value, change the sending application to a new value so it can be handled differently on the ancillary system, and then send the modified message to the same destination as the original message.
My first thought was to send to a different thread that just sends the message on to the original destination thread. But I’d like to avoid adding a thread if possible and I’m guessing that the receiving system might object to two messages with the same control id.
Any ideas on this?
Thanks