I am running into an issue and was wondering what people’s thoughts were on it.
We are receiving an OMG^O19 HL7 2.4 variant message.
The BLG segment is defined as optional.
It has multiple ORC/OBRs as follows, with two of the ORC/OBR pairs being followed by an empty BLG segment.
2(1).0(0).ORC(0) : >|NW|ABC70135|||||^^^201610061420^^1||201610061420|C4365952||C4365952|ABCLPWD1||||420||||^^ABCLP<
2(1).0(0).OBR(0) : >|||ABC70135|CVCOY|1|201610061420|||||||||||||||||||||^^^201610061420^^1|||B<
2(1).2(0).BLG(0) : >|<
2(2).0(0).ORC(0) : >|NW|ABC70135|||||^^^201610061420^^1||201610061420|C4365952||C4365952|ABCLPWD1||||420||||^^ABCLP<
2(2).0(0).OBR(0) : >|||ABC70135|CNEPLD|1|201610061420|||||||||||||||||||||^^^201610061420^^1|||B<
2(2).2(0).BLG(0) : >|<
2(3).0(0).ORC(0) : >|NW|ABC70135|||||^^^201610061420^^1||201610061420|C4365952||C4365952|ABCLPWD1||||420||||^^ABCLP<
2(3).0(0).OBR(0) : >|||ABC70135|CHIPR|1|201610061420|||||||||||||||||||||^^^201610061420^^1|||B<
The xlate has a BulkCopy, but it does not copy the empty BLG segments:
2(1).0(0).ORC(0) : >|NW|ABC70135|||||^^^201610061420^^1||201610061420|C4365952||C4365952|ABCLPWD1||||420||||^^ABCLP<
2(1).0(0).OBR(0) : >|||ABC70135|CVCOY|1|201610061420|||||||||||||||||||||^^^201610061420^^1|||B<
2(2).0(0).ORC(0) : >|NW|ABC70135|||||^^^201610061420^^1||201610061420|C4365952||C4365952|ABCLPWD1||||420||||^^ABCLP<
2(2).0(0).OBR(0) : >|||ABC70135|CNEPLD|1|201610061420|||||||||||||||||||||^^^201610061420^^1|||B<
2(3).0(0).ORC(0) : >|NW|ABC70135|||||^^^201610061420^^1||201610061420|C4365952||C4365952|ABCLPWD1||||420||||^^ABCLP<
2(3).0(0).OBR(0) : >|||ABC70135|CHIPR|1|201610061420|||||||||||||||||||||^^^201610061420^^1|||B<
I can get the BulkCopy to copy the BLG segment if I do either of the following:
1. Populate the BLG segment
2. Make the BLG segment mandatory
Does anybody else think this is a bug? Shouldn’t BulkCopy, copy over empty segments even if they are optional?
Should I be able to do an iterate on group 2 and PathCopy the empty BLG segments? I did try but was unable to. Any advice would be appreciated.
Thanks,
Erik