So I’m working with the following structure (modified ORU_RO1 2.5.1):
MSH
PID
[{NTE}]
[{NK1}]
[PV1]
{
[ORC]
OBR
[{NTE}]
[TQ1]
[{
OBX
[{NTE}]
}]
[{
SPM
[{OBX}]
}]
}
The issue I’m having is when I hit the first OBX subgroup. For some reason I cannot get it to copy to the output during testing. The basic translate I have here is:
Iterate (Group 1 basis, %g1)
Pathcopy 1(%g1).0(0).ORC > ORC (same basis)
Pathcopy 1(%g1).0(0).OBR > OBR (same basis)
Iterate (Segment 1(%g1).0(0)NTE, %s2)
Pathcopy 1(%g1).0(0).NTE(%s2)
Iterate ( Group 1(%g1).1, %g2 )
Pathcopy 1(%g1).1(%g2).OBX(0)
That OBX copy does not work, and yes there is valid data in the OBX segment. Am I just completely missing something here?
This may be unrelated (then again it may not be), but I am hard copying some data into some OBX segments prior to that, to add a header to the data. Essentially it’s:
Copy =Preformatted Facility name > 1(%g1).1(0).OBX(0).#5(0)
Copy =Preformatted Secondary Name > 1(%g1).1(1).OBX(0).#5(0)
Copy =Address > 1(%g1).1(2).OBX(0).#5(0)
Copy =City, State, Zip > 1(%g1).1(3).OBX(0).#5(0)
And it outputs to the following:
1(0).1(0).OBX(0) : >|1|||| Facility Name<
1(0).2(0).OBX(0) : >|2||||Secondary<
1(0).2(0).OBX(1) : >|3||||Address<
1(0).2(0).OBX(2) : >|4||||
Shouldn’t those be outputting to 1(0).2(0) and 2(1), and 2(2) etc, not in the OBX repetition? It looks like it’s trying to put them in the OBX segments following the SPM, not in the 1.1 group of OBX and NTE.