License.SetSerial("YOUR_SERIAL_KEY"); var edi = File.OpenRead(@"C:\837P_Claim.txt"); using (var reader = new X12Reader(edi, "EdiFabric.Templates.Hipaa")) { var claims = (await reader.ReadToEndAsync()).OfType<TS837P>(); foreach (var claim in claims) { if (claim.IsValid(out MessageErrorContext errors)) Console.WriteLine(claim.ST.TransactionSetControlNumber_02); else Console.WriteLine(string.Join("\n", errors.Flatten())); } }
import json import edifabric_x12 as ef serial = "YOUR_SERIAL_KEY" ef.load_library() ef.set_serial(serial) ef.set_map(json.dumps({"default": serial, "maps": {}})) edi = open("837P_Claim.txt", "rb").read() output, offset = ef.parse(edi, ef.ParseMode.JSON_VALIDATE) report = json.loads(output[offset:]) if report["errors_count"] == 0: print(output[:offset]) else: print(report["errors"])
curl -L -X POST 'https://api.edination.com/v2/x12/read' \ -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \ -H 'Content-Type: application/octet-stream' \ --data-binary '@/C:/purchase-order.edi'
{
"ST": {
"TransactionSetIdentifierCode_01": "837",
"TransactionSetControlNumber_02": "000000001",
"ImplementationConventionPreference_03": "005010X222A1"
},
"BHT_BeginningOfHierarchicalTransaction": {
"HierarchicalStructureCode_01": "0019",
"TransactionSetPurposeCode_02": "00",
},
"AllNM1": {
"Loop1000A": {
"NM1_SubmitterName": {
"EntityIdentifierCode_01": "41",
"EntityTypeQualifier_02": "2",
},
"PER_SubmitterEDIContactInformation": [
{
"ContactFunctionCode_01": "IC",
"ResponseContactName_02": "JERRY",
}
...
Fully managed C# library for .NET Core and .NET Framework, installed as a NuGet package. Translates between EDI and typed .NET objects. Covers all ten EDI standards, custom flat files and Entity Framework mapping.
One native library per platform (Windows, Linux, macOS), callable over a C ABI from C, C++, Rust, Go, Python, Node.js, Java and .NET. Translates EDI to structured JSON. X12 and HIPAA today, more standards to follow.
REST API for all 10 EDI standards - call it from any language, with nothing to install. Translates EDI to structured JSON. Hosted by us, or self-hosted on your own infrastructure when data must stay in your network.
Safely parse, validate, format, and edit EDI files directly in your browser.
EdiNation runs on WebAssembly, so your EDI data stays on your device.
Free, with unlimited files of any size. Works with EDI and JSON. Open it and start working right away, with no account or registration.
Learn about EdiNation
TransactionSetControlNumber_02 by name. Validate whatever it produces against the same templates before it reaches a trading partner.
Working with PHI or under SOC 2? ediFabric .NET and ediFabric Native run entirely inside your own application, so your EDI data never leaves your network. Self-host the Cloud API for the same guarantee. The Cloud API we host receives your files, so it is not HIPAA or SOC compliant.