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

Floating segments are not supported #157

Open
kputnam opened this issue Jan 1, 2019 · 1 comment
Open

Floating segments are not supported #157

kputnam opened this issue Jan 1, 2019 · 1 comment

Comments

@kputnam
Copy link
Owner

kputnam commented Jan 1, 2019

In X12 versions 003060 and earlier, segments can be declared mandatory, optional, or floating. Floating segments can appear anywhere in the transaction set between the ST and SE segments.

This is not supported in stupidedi. There no "floating" SegmentReq, and there is no obvious way to add support for this. It's not clear what an Instruction would look like for this situation. Also, because floating segments can occur anywhere, the find method would need to do a linear search through the segments after the current position, which it doesn't currently do.

I don't have any documentation on floating segments, nor any idea of how prevalent they are in practice. This issue is just to document the lack of support in case someone is looking for it, and to gauge if there is interest in supporting it.

@kputnam
Copy link
Owner Author

kputnam commented Sep 9, 2019

I found some documentation that indicated NTE segments usually have this designation. I guess the intention was to let people insert annotations (NTE is note) anywhere in the X12 document? I don't have the URL handy anymore, but if I find it again I'll post it.

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

No branches or pull requests

1 participant