I am trying to set up kill_msg to block all ORU messages with the OBR-25 value of P from going out, here is the argumnent I have
{PASSCOND ~F} {SEGNAME OBR} {FIELDNUM 25} {SUBFIELDNUM 0}, but it doesn’t seem to be working. I have the proc applied to the inbound thread, Route Prop., Xlate Route Prop., Pre Proc. Any ideas?
Well, I just realised that I need to iterate through the OBR’s. I am guessing that kill_msg is designed to evaluate a unique, rather than repeating segment. Can anyone verify this?
Yes. I believe that this is correct. If you want to evaluate another condition, you would have to stack another instance of kill_msg with the new condition. Rather than doing this however, it may be better to write a single script that will take care of both conditions.
In your particular case, I am not sure why you need to iterate through all the OBR segments. Generally, results are either P or F. Do you expect a combination of P and F in a single HL7 message?
This particular ORU interface is configured on our host to send out cumulative results. In other words, if there are three results, an ORU goes out when the first one is released, its OBR has an F in field 25, the last two would have a P.
This proc asks for arguments at the segment level, not the message level. Are we sure it won’t work with repeating segments? If it finds the condition in any segment, as defined in the arguments, it will kill the whole message, however…
Author
Replies
Viewing 6 reply threads
The forum ‘Cloverleaf’ is closed to new topics and replies.