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

Check that X12 implementations conform to X12 standard #165

Open
kputnam opened this issue Jan 13, 2019 · 0 comments
Open

Check that X12 implementations conform to X12 standard #165

kputnam opened this issue Jan 13, 2019 · 0 comments
Labels

Comments

@kputnam
Copy link
Owner

kputnam commented Jan 13, 2019

Because X12 standards are much easier to understand at a glance (because they omit the element-level details given in an X12 implementation), they could be a good tool to spot-check the definition of an X12 implementation.

There are X12 publications floating around that explain how to define an implementation guide for a given X12 standard. There are some rules like:

  • You cannot increase the number of repeats of a loop or segment, but you can lower it
  • You cannot add new segments or loops, but you can omit them
  • You cannot add new elements to a segment, but you can mark them X: NotUsed
  • You cannot change a R: Required element to S: Situational or X: NotUsed
  • You can change a O: Optional element to S: Situational or X: NotUsed
  • You cannot change the position or ordering of loops or segments
  • You cannot add to the set of allowed values in an element, but you can choose a subset

I suspect, even if it's not written explicitly, that any input which can be parsed by an X12 implementation should also be parseable by it's corresponding standard.

Ideally we would implement something similar to Stupidedi::TransactionSets::Validation::Ambiguity to check for conformance in an automated spec. There's no real need to do it at "definition time", since transaction set definitions are static and only change when a new version of stupidedi is released.

@kputnam kputnam changed the title Check X12 implementations conform to X12 standard Check that X12 implementations conform to X12 standard Jan 13, 2019
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

1 participant