Here is what has been asked of us:
We are sending ADT messages to a system, however for some reason they specifically want ADT_A03 messages to be formatted differently.
Our normal ADT messages will follow the MSH – EVN – PID – PV1 – PV2 -OBX – DG1 – PR1 – IN1
They want our ADT_A03 to follow as: MSH – EVN – PID – PV1 – PV2 – DG1 – PR1 – OBX – IN1
So essentially they want the OBX segment dropped behind PR1.
Since the A03 will only make up a small minority of the total amount of messages we have our default input record set to the “normal” standard on the receiving and sending. However we have an HL7 variant where the ADT_A03 message is defined in the order they want. We assumed that our HL7 variants could handle this on the fly but we keep getting an error. So our thought process was – we receive ADT from epic ( as the “normal” standard), goes through a translate and if the message is an ADT_A03 the custom variant kicks in, sending the custom format.
segment encountered ‘DG1’ is out of order when parsing hl7 for message type ‘ADT_A03’. Segment ignored.
If anyone has any experience handling situations like this, any input would be greatly appreciated. Also apologies if my explanation is a bit murky.