Query related to schema message structure
Hi All,
I have below schema structure:
base:MSH~{~[~base:PID~[~{~base:NK1~}~]~[~base:PV1~[~base:PV2~]~]~]~{~[~base:ORC~]~base:OBR~[~{~base:NTE~}~]~base:TQS~[~{~[~{~OBX~}~]~[~{~base:NTE~}~]~}~]~}~}
Now there are few cases where source application is sending NTE segment after TQS segment
Is there any way of updating the schema to use the same NTE from OBXgrp, cause we dont want to update the code logic as its happening for few messages only.
Example:
ORC
OBR
NTE ---Main NTE
TQS
OBX
NTE ---OBXgrp NTE
ORC
OBR
NTE ---Main NTE
SFT
NTE ---want it to be OBXgrp NTE, however it is unrecognized as when we are entering OBXgrp we are expecting OBX segment before NTE.
Is there any way to update schema to consider that last NTE in above message is from OBXgrp or I need to add optional NTE outside OBXgrp and change DTL code as well?