Hi
I am working on transformation from ordering system A to pathology system B. Transformation/DTL A-ORM^O01 to B-ORM^O01 consists of following subtransformations:-
Sub-transform MSH
Sub-transform PID
Sub-transform PV1
Sub-transform ORC
Sub-transform OBR
Sub-transform OBX
System A has following message structure for ORM^O01
<MessageStructure name='ORM_O01' definition='base:MSH~[~base:PID~base:PD1~base:PV1~[~base:PV2~]~[~{~base:AL1~ZAL~{~base:NTE~}~}~]~]~{~base:ORC~[~base:OBR~[~{~base:NTE~}~]~[~{~base:DG1~}~]~[~{~base:OBX~[~{~base:NTE~}~]~}~]~[~{~ZCT~}~]~}~]'/>
System B has following structure for ORM^O01
<MessageStructure name='ORM_O01' definition='MSH~[~PID~PV1~{~ORC~{~OBR~[~{~OBX~}~]~[~{~base:NTE~}~]~}~}~]'/>
Although I am successfully able to test individual sub-transformation, I am getting following error in main message transformation A-ORM^O01 to B-ORM^O01
Error BuildMapStatus = ERROR <EnsEDI>ErrMapRequired: Missing required PIDgrp.ORCgrp(1)OBRgrp(1) element
at segment 5’
The HL7 message I am testing has following segments:-
MSH
PID
PD1
PV1
PV2
ORC
OBR
OBX|1|
OBX|2|
OBX|3|
Please point out what could be a possible reason for the error message.
Hi James
The error is indicating that the resulting target is missing the required OBR segment. Note that although a group segment may be optional, if it exists the segments within it may be required.
In this case it looks like the required OBR is missing. It would be impossible to pinpoint the cause without all of your code. If you would like to open a WRC issue and attach the relevant schemas and DTL I’ll be happy to take a look.
Regards
Dave
--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to
Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to
Ensemble-in-Healt...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
--
To post to this group, send email to Ensemble-in-Healthcare@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healthcare-unsub...@googlegroups.com