web stats
X12 EDI Segment Loop Handling Question - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-08-2014, 01:37 PM
hlynch hlynch is offline
What's HL7?
 
Join Date: Jul 2014
Posts: 1
hlynch is on a distinguished road
Default X12 EDI Segment Loop Handling Question

I'm trying to use Mirth to process on incoming X12 832 document.

I have searched the community and have found some posting that are kinda similar but not quite.

How do you handle nested loops (x12 loops, i.e repeating groups of segments, that may have segments in them that are used in other "loops")?

an example:
Loop 1 - A header for a catalog
ST|832|1234~
BCT|PC~
REF|X9|1234~
DTM|007|1234
N1|VN|abcde~
N1|BY|xyz|99|1234~

loop 2 - Line items for the catalog
LIN||XX|00000|AA~
DTM|11|1234~
DTM|22|9999~
N1|SS|22|4444~
LIN||YY|11111|BB~
DTM|11|8765~
DTM|22|8888~
N1|SS|33|5555~

SE|1234|0000~

As seen above the ST,BCT,REF,DTM,N1,N1 is a loop, it is "grouped" together.

The LIN,DTM,DTM,N1 is a loop or group that is repeated.

Is there anyway (maybe in the inbound message template?) that such groupings can be specified?
Or how can the "repeated" segments be associated with the appropriate enclosing X12 loop.
Everything I have tried so far seem to dump all the repeated N1, etc into an array in order encountered.

Thank you
Reply With Quote
 

Tags
832, edi, loop, segment ft1 loop, 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 02:23 AM.


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