pyx12 icon indicating copy to clipboard operation
pyx12 copied to clipboard

Cannot distinguish repeated SEGMENT outside LS loop

Open mbartz opened this issue 9 years ago • 2 comments

We are not able to construct a map that pyX12 can recognize where there is a repeated segment inside an LS loop and the optional segment is absent.

For example, consider:

LoopID 300 --> LX MAN

LoopID 310 --> W01 G69 LS LoopID 330 --> LX etc. LoopID 330 <-- LE LoopID 310 <-- LoopID 300 <--

In our sample data, we have multiple LX's that are attached to the 300 loop and no LX's for the 330 loop. The parser thinks the second LX belongs to the 330 loop. We have not been able to construct a map that forces the parser to pop up the tree when it recognizes a missing LS. Trying to make it required fails.

mbartz avatar Apr 07 '15 21:04 mbartz

The concrete example is the EDI 940 standard. I can share our map.

mbartz avatar Apr 08 '15 02:04 mbartz

See Issue #42 -- this change to the map for 834 5010 A1 should address this...

ddw360 avatar Oct 22 '15 06:10 ddw360