EDIParser

EDIParser is an open-source .NET 8 library for parsing and generating X12, HL7, and EDIFACT messages.

The library exposes a hierarchical message model:

Message
└── Segment
    └── Field
        └── Repetition
            └── Component
                └── SubComponent

Start here

Supported formats

Format Status
X12 Supported
HL7 v2 delimiter-based messages Supported
UN/EDIFACT Supported
NCPDP SCRIPT Not included in the verified .NET 8 Core

Indexing convention

The public parser API preserves the original one-based EDI indexing convention. For example, field 3 is addressed as field 3, even though internal CLR collections are zero-based.