SNIP Levels

Oct 4, 2012 at 12:08 AM

Can you tell me if the parser supports the different snip level edits.  if not, how would recommend implementing them?

Coordinator
Oct 4, 2012 at 4:13 PM

The parser is not specifically targeting snip level edits, but can support them in the following way:

There is a new assembly called OopFactory.X12.Validation and a new console app called OopFactory.X12.AcknowledgeX12 which does type 1 and type 2 SNIP validation.  It is intended for creating 999 acknowledgement files, but can be used without needing to create these files.  (This is not in the current release, but is in the source code and will be in the next release)

The OopFactory.X12.Validation.X12AcknowledgmentService class has a method called AcknowledgeTransactions which will take a stream of the EDI to be validated.

To do additional types of validation you can extend this class and override the ValidateContainerAgainstSpec or the ValidateSegmentAgainstSpec.

The class will also take another implementation of ISpecificationFinder if you need to roll your own specification that is not already supported, or you have more details you need then the ones provided.  See this https://x12parser.codeplex.com/wikipage?title=Injecting%20your%20own%20X12%20Specification, for details on how to do this.

The return value from AcknowledgeTransactions method is a List<FunctionGroupResponse> which you can format however you like, the code in the AcknowledgeX12 app will show you how to spit it out as a 999 response file.