A fully managed C# library that translates, validates, acknowledges and rebuilds EDI

Ships as a NuGet package for .NET Core and .NET Framework. Covers all ten EDI standards plus custom flat files, and it is included in every plan.
EDI to typed objects

Translates between EDI and typed .NET objects that are compatible with the structured JSON. Read a purchase order as a C# class, then serialize it with System.Text.Json — or write the object back out as valid EDI.

Stream-based parser

Read large files, split by loops or transactions, de-batch multiple transmissions, and extract data from broken files. Every reader is stream-based and async, with automatic delimiter detection.

Configurable templates

Every message type is specified by a C# class annotated with EDI attributes. Rename properties, share segments across versions, and modify any template to a partner-specific format.

EDI generator

Write typed objects out to files or streams. Configurable delimiters, automatic trailers and line suffixes, and batches that span multiple interchanges.

Validation and acks

Attribute-based rules, CAQH-compliant HIPAA SNIP levels, and generated TA1, 997, 999 or CONTRL acknowledgments. Async validation also works on split messages.

Database and flat files

Entity Framework DbContexts for X12, EDIFACT and HIPAA 5010. Reads and writes CSV, VDA and flat files, a capability unique to ediFabric .NET.

Translate EDI to typed .NET objects in a few lines

Typed C# objects for every message. They match the structured JSON Native and Cloud produce, and serialize with the JSON library you already use.
dotnet add package EdiFabric
dotnet add package EdiFabric.Templates.Hipaa
Templates for other standards ship as EdiFabric.Templates.X12, .Edifact, .Hl7, .Ncpdp, .Vda, .Padis and .Edigas. Get the serial from your free Community plan.
License.SetSerial("YOUR_SERIAL_KEY");
var edi = File.OpenRead(@"C:\ClaimPayment_837P.txt");
using (var reader = new X12Reader(edi, "EdiFabric.Templates.Hipaa"))
{
     var msg837P = (await reader.ReadToEndAsync()).OfType<TS837P>();
}
See examples X12 EDIFACT HL7 NCPDP
var claims837P = ediItems.OfType<TS837P>();
foreach (var claim837P in claims837P)
{
     var json = System.Text.Json.JsonSerializer.Serialize(claim837P);
}
See examples X12 EDIFACT HL7 NCPDP
foreach (var claim837P in claims837P)
{
    MessageErrorContext errorContext;
    if (!claim837P.IsValid(out errorContext))
    {
        var errors = errorContext.Flatten();
    }
}
See examples X12 EDIFACT HL7 NCPDP

Official examples by standard

Clone a repository, open it in Visual Studio, and run the same parse / generate / validate samples against your own files.
X12 and HIPAA

The full X12 suite, including HIPAA 5010 claims and benefits.

View on GitHub
EDIFACT

UN/EDIFACT messages, plus EANCOM where the same models apply.

View on GitHub
HL7

HL7 v2 messages parsed and written with the same C# templates.

View on GitHub
NCPDP

NCPDP Telco claims and transactions for pharmacy EDI.

View on GitHub
VDA

Automotive VDA files using the same reader and writer as EDI.

View on GitHub
Flat files

CSV, positional and mixed-mode files, unique to ediFabric .NET.

View on GitHub
SCRIPT

NCPDP SCRIPT examples for e-prescribing workflows.

View on GitHub

ediFabric .NET comes with every plan

Every plan includes ediFabric .NET, ediFabric Native and ediFabric Cloud. Choose .NET when you build on .NET; the price is the same whichever product you use.
Included in every plan
Free forever to start

Community costs nothing and never expires, giving you 250 operations a day and three leased seats for non-production work. Developer and Enterprise lift the quota, Enterprise lifts the seat count, and all three include the same library.

The main EDI standards
All ten, plus flat files

X12, HIPAA, EDIFACT, EANCOM, HL7, NCPDP, VDA, IAIABC, EDIGAS and IATA, and it is the only one of the three that also reads and writes custom flat files. Every plan includes every standard.

Your EDI data is safe
Data stays with you

Every operation runs inside your own application, on your own hardware. EDI data and PHI stay on your systems, so ediFabric .NET sits entirely within the controls you already have in place for HIPAA or SOC 2.

Start translating EDI today

Install the NuGet package, authorize it with your serial key, and translate your first interchange in minutes. The free Community plan needs no credit card and never expires.