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

EligibilIty 271 #29

Open
scriptsure opened this issue Mar 10, 2017 · 3 comments
Open

EligibilIty 271 #29

scriptsure opened this issue Mar 10, 2017 · 3 comments
Labels

Comments

@scriptsure
Copy link

What is the best way to put together the segments and elements file for an edifact 271 message. How do I get the info to create the files for parser. All the docs I have don't really present it like the parser requires it

@tdecaluwe
Copy link
Owner

The 271 message is an X12 standard, not EDIFACT. To answer your question however, the parser doesn't need a segment table file. This is used for validation only.

@scriptsure
Copy link
Author

Docs on it are really not explaining how the segment and element files are used or setup. Is there something more comprehensive. Sorry I meant to write x12 not edifact.

@RovoMe
Copy link

RovoMe commented Aug 11, 2020

IMO the segments and elements entries are rather self-explanatory. Basically they just map the data outlined in the Edifact spec, ie. such as the BGM segment segment. The segments entry for BGM will define the respective element part, such as C002 or C106 which are further defined in the elements array, which defines what data type and length the respective components have. Note, however, that the definition seems to use the most common definitions of the segments, probably a separation into own specs, such as EANCOM D96A or D01B or the like would be beneficial as there might be slight differences between the respective specs. #4 further suggests to refactor these two array definitions to JSON files, which would further simplify that separation into respective Edifact versions and the like, at least on a typescript port I'm currently working on, this seems to work quite well, though I'm quite new to the whole JavaScript/TypeScript ecosystem.

I am more surprised however, that the node-edifact library does not help to build a tree-like structure of the Edifact interchange parsed at all. While the Tracker class makes use of a message structure table (i.e. INVOIC) to validate whether mandatory segments are missing or whether the maximum repetition count is exceeded, there is no support yet available to help on generating an interchange object that allows to list the number of messages contained in that particular exchange and further drill down to the message internals, such as line items or MOAs for these line items to simplify further validation calculation on the processed interchange/messages. While I saw a PR for adding envelop support, I'm not yet sure if this is what I actually need.

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

No branches or pull requests

3 participants