- This topic has 2 replies, 3 voices, and was last updated 14 years, 7 months ago by .
We have a client that does not send mulitple orders in the same message. They send each OBR segment in a separate message. Several messages may have the same order code in OBR.4
Our Lab system will not accept multiple messages with the same order code. I need to extract and append to the original order message any OBR segments from subsequent messages that have the same order code in OBR.4 for the same patient.
Orders will be sent twice a day in batches, but it is not guaranteed that the messages will be back to back – that is, sending all orders for a single patient before sending an order for a different patient.
I have considered turning each batch of messages into a list of messages and then looping over those messages to find the ones to combine. But I am not sure how to set up a variable to hold the original message and maintain it if I encounter a new patient before I get the last message for the original patient (Does that make sense? 🙂
Has anyone out there dealt with a similar issue and if so, would you mind sharing?
Thank you for your time.
- The forum ‘Cloverleaf’ is closed to new topics and replies.