When create OBX segments if the order of the XML children is out of order fields are being added that shouldn't exist and order is being rearranged in HL7 v2 representation.
In this specific case if in the XML version of the HL7 message has OBX.2.1 come before OBX.3.1 additional fields are created in the HL7 v2 version of the message. In our case the value in OBX.14.1 in the XML was being moved to OBX.16.1 in the v2 message.
Thanks pacmano1! Hope you're doing well! I already created a code template to do the same thing but why isn't fixHL7NodeOrder embedded in the solution?
When create OBX segments if the order of the XML children is out of order fields are being added that shouldn't exist and order is being rearranged in HL7 v2 representation.
In this specific case if in the XML version of the HL7 message has OBX.2.1 come before OBX.3.1 additional fields are created in the HL7 v2 version of the message. In our case the value in OBX.14.1 in the XML was being moved to OBX.16.1 in the v2 message.
XML order should not matter.