Is there a way to clear whole or parts of an outbound message in the translate function itself? Essentially we have lab results that are sending multiple results over a single message, and the receiving system can’t parse them, and are expecting us to split the message in a specific way (Lab, discrete microbiologies, and pathologies). So for example, a message will have a Lab, a Micro, and a Micro. They want the lab as one message and the micro as another message. I’d like to clear the ‘results’ group itself, or if there is a clean way to just nuke the whole outbound message and rebuild it. I cannot find a way to easily do this.
The problem is, like above, if we have Lab, Micro, Micro, we create the lab, then iterate over the results, it will create multiple extra OBR segments (since they’re required by structure). I can give some more examples, but clearing the outbound data between messages would be easiest way.