web stats
Determining the Loop for Repeated Segments in an X12 271 - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 08-04-2012, 10:13 AM
MPrecup MPrecup is offline
OBX.1 Kenobi
Join Date: Jun 2012
Posts: 30
MPrecup is on a distinguished road
Default Determining the Loop for Repeated Segments in an X12 271

I'm getting a 271 message, and I need to be able to access the different fields within it. However, when it converts it to an XML object, the XML for, say, an NM1 is simply <NM1>, regardless of what loop it is in. That NM1 could belong to different loops depending on its position (2120C, 2100C). Is there a way in Mirth for it to automatically determine the loop, so that we can access the fields of the NM1 of a specific loop, or do we need to determine the loop ourselves?
Reply With Quote
Old 08-06-2012, 04:56 AM
cory_cole cory_cole is offline
Mirth Guru
Join Date: Mar 2012
Posts: 1,242
cory_cole is on a distinguished road

for each (segment in msg...2120C)
for each (NM1 in segment...NM1)
Reply With Quote

271, loop, position, x12

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 12:39 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation