I could really use some help on this if possible, as I have burned myself trying to figure this out.
I need to create an OBX segment for each OBR message in an incoming ORM message. I could do this in tcl, but we are trying to implement a standard here to use xlates whenever possible.
I am ABLE to get the first occurence of the OBR to generate an OBX, but I can not do this for the repeating occurences (second or third). Here is what I have got so far, and help or advice would be much appreciated (the inbound message is coming from a meditech system without an OBX).
ITERATE BASIS: group: 2(0).1 %g1
–>IF 2(%g1).1(0).0(0).OBR(0).00249.[0] ne @null
=> 2(0).1(0).1(0).0(%g1).OBX(0).00573.[0]
OBX (output) basis looks like this:
2.1.1.0 or 2(0).1(0).1(0).0(0)
ANY HELP or feedback would be so much appreciated. Thanks.
Mina