I am having an issue getting some functionality I thought would work, to work correctly. I have a message coming inbound that is structured like this:
MSH
PID
PV1
{
{group 2}
{ORC}
{OBR}
}
It is for an order coming inbound and when they send the order, group one that contains MSH, PID, etc. comes over just once but the ORC and OBR come over once for each test ordered. So in a RIS example if they orders an ankle, chest, and foot xray I would get one group 1, and 3 repeating ORC, OBR segments.
The downstream system needs a separate message for each test, so I thought I could iterate through the group that repeats (orc and obr) and just put a send command at the end. It does send the MSH and PID over again, but never as a separate message, and always with multiple orc and obr segments repeating.
I know I am missing something simple here or making a mistake in my assumption, or possibly I need to add another iterate. Please let me know what you think.
Attached is a screenshot of a basic Xlate.
Thank you,
Jon