ERROR <EnsEDI>ErrMapRequired: Missing required element

183 views
Skip to first unread message

JamesG

unread,
May 4, 2012, 6:34:54 AM5/4/12
to Ensemble-in...@googlegroups.com

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.

David Blake

unread,
May 4, 2012, 8:24:47 AM5/4/12
to ensemble-in...@googlegroups.com

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

Andrew Makinson

unread,
May 4, 2012, 9:10:39 AM5/4/12
to ensemble-in...@googlegroups.com, Ensemble-in...@googlegroups.com
Your source schema says that OBR group is required if ORC segment exists. If the message looks correct, Check that You do not have erroneous Carriage returns and line feeds ( message terminators) 00xC and 00xA characters by using a hexadecimal editor. This often causes problems like this.



Sent from my iPhone
--

JamesG

unread,
May 10, 2012, 8:22:32 AM5/10/12
to Ensemble-in...@googlegroups.com, ensemble-in...@googlegroups.com
Thanks for your reply. I replaced custom schema structure with default HL7 Schema and it worked fine. I have also found your tip to be very useful.

Thanks again.

Regards,
James 
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
Reply all
Reply to author
Forward
0 new messages