Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot distinguish repeated SEGMENT outside LS loop #37

Open
mbartz opened this issue Apr 7, 2015 · 2 comments
Open

Cannot distinguish repeated SEGMENT outside LS loop #37

mbartz opened this issue Apr 7, 2015 · 2 comments

Comments

@mbartz
Copy link

mbartz commented Apr 7, 2015

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
Copy link
Author

mbartz commented Apr 8, 2015

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

@ddw360
Copy link

ddw360 commented Oct 22, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants