Build Map Status = 'ERROR <EnsEDI>ErrMapRequired: Missing required MFEgrp(1) element at segment 3'
So, it seems that I haven't initialized a required field of the message. But I'm not quite sure which one--what is segment 3 referring to? Is it attempting to reference a specific field?
I would appreciate any insight anyone has into the above error message as well as any guidance anyone can provide in troubleshooting this issue.
Thanks,
Cyriak
Look at the structure definition for MFN_M16 in the HL7 schema page.
If a group of segments are marked as repeating or optional we give it a group name based on the first segment in the group.
You will see that there is repeating group starting with the MFE segment so we call that group MFEgrp. Since this group is repeating and required, it expects to see that group of segments and doesn’t find it.
Segment 3 is exactly what it says – it is has got to the third segment (presumably you had MSH and MFI as the first 2) and it isn’t the start of the MFgrp. Or to be exact, it is expecting the first group so it would be called MFEgrp(1)
If it had found an MFE segment at segment 3 it would be referenced as MFEgrp(1).MFE.
As an odd twist, if a group is not marked optional, but all segments in the group are optional you still need the group. So at least one of the optional segments must be present. This occurred in several places in the earlier HL7 V2.n versions to much confusion
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
---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
Ensemble-in-Healt...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi Cyriak,
Can you send us the code behind your transformation, or at least an excerpt where you handle the MFE group? It looks like MFE and ITM are required segments – maybe there’s something funky about the syntax you’re using to create them.
Lori
From: Ensemble-in...@googlegroups.com [mailto:Ensemble-in...@googlegroups.com] On Behalf Of cjoh...@gmail.com
Sent: Friday, August 23, 2013 2:51 PM
To: Ensemble-in...@googlegroups.com
Subject: [InterSystems-EnsHlth] Error in data transformation, HL7 message is only partially generated
Hey all,
--
Hi Cyriak,
Can you send us the code behind your transformation, or at least an excerpt where you handle the MFE group? It looks like MFE and ITM are required segments – maybe there’s something funky about the syntax you’re using to create them.
Lori
From: Ensemble-in...@googlegroups.com [mailto:Ensemble-in-Healt...@googlegroups.com] On Behalf Of cjoh...@gmail.com
Sent: Friday, August 23, 2013 2:51 PM
To: Ensemble-in...@googlegroups.com
Subject: [InterSystems-EnsHlth] Error in data transformation, HL7 message is only partially generated
Hey all,
I have been working on creating MFN^M16 HL7 messages populated with some values from a CSV file. The good news is that I get the messages to generate, and all the explicit set actions in the data transformation are performed (i.e. if I set MSH-11 to "2.6", it comes out that way on the generated message).
However, none of the set actions based on the source CSV data get applied to the message. I am not sure why this is occurring, but when I look in the contents of the trace from the business process to the business operation, I see the following error:
Build Map Status = 'ERROR <EnsEDI>ErrMapRequired: Missing required MFEgrp(1) element at segment 3'
So, it seems that I haven't initialized a required field of the message. But I'm not quite sure which one--what is segment 3 referring to? Is it attempting to reference a specific field?
I would appreciate any insight anyone has into the above error message as well as any guidance anyone can provide in troubleshooting this issue.
Thanks,
Cyriak
--
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-Healthcare-unsub...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Ensemble-in-Healthcare+unsub...@googlegroups.com.
Hi Cyriak,
I just got the same exact question from someone else, and the solution was plugging 1 into the empty parentheses in all the MFEgrp() references. (In his case there wouldn’t be more than one MFEgrp(), so it was okay to hard-code it instead of putting it in a loop and using the counter instead of 1.)

Just to be safe, I also plugged 1 into some of the empty parens within repeating fields (e.g., PRA:Specialty(1)).
Let me know if that fixes your problem.
Lori
From: Ensemble-in...@googlegroups.com [mailto:Ensemble-in...@googlegroups.com] On Behalf Of cjoh...@gmail.com
Sent: Wednesday, September 04, 2013 1:05 PM
To: Ensemble-in...@googlegroups.com
--
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
---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Ensemble-in-Healt...@googlegroups.com.
To unsubscribe from this group, send email to Ensemble-in-Healthcare-unsub...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Ensemble-in-Healthcare+unsub...@googlegroups.com.