Originally posted by Kathy Young
I have lab results that are coming in as:
{
OBX
[{NTE}]
}
I need to add a segment, ZL1. For each OBX, I need one ZL1, followed by whatever NTE segments are present.
Inbound ---> Desired outbound --- > Actual outbound
OBX|2| OBX|2| OBX|2|
ZL1|1| ZL1|1|
NTE|1| NTE|1| NTE|1|
NTE|2| NTE|2| ZL1|2|
NTE|2|
My HL7 variant looks like this:
{
OBX
ZL1
[{NTE}]
}
My translate is a nested iteration - for the OBX/ZL1/NTE group repeat, with a nested iteration for the NTE segment repeat.
What did I do wrong?