Skip to content
Reference

Adapter: X12 EDI

Parse, generate, and query X12 EDI healthcare documents (837, 835, 270/271, etc.).

On this page

Purpose

Parse X12 EDI (837, 835, 270, 271 and others) into JSON, generate interchanges from JSON, and query parsed data.

Auth

  • None: the adapter works on the message it is given.

Settings

Auth is none. Dotted names are fields inside an object setting. Secret settings are encrypted at rest, never returned by a read, and shown masked in the console and in exports; their defaults are not shown.

SettingTypeRequiredDefaultSecretDescription
defaultDelimitersobjectNoDelimiters for generating X12 (the codec and envelope shapes). Parsing always reads them from the ISA, as the standard says.
defaultDelimiters.segmentstringNoNoSegment terminator (default: ~).
defaultDelimiters.elementstringNoNoElement separator (default: *).
defaultDelimiters.substringNoNoSub-element separator (default: :).

Actions

A trailing ? marks an optional step parameter. A message can supply only the keys in the last column; everything else comes from the step.

ActionWhat it doesStep parametersKeys a message may supply
parseParse an X12 EDI document into structured JSON.documentdocument, data, transactionSet, query
generateGenerate an X12 EDI document from structured data.data, transactionSetdocument, data, transactionSet, query
queryQuery a parsed X12 document using HL7-like path syntax.document, querydocument, data, transactionSet, query

Minimal example

The smallest profile the engine accepts: the required settings only, with synthetic values. Create it with POST /api/adapter-profiles, then test it with POST /api/adapter-profiles/{id}/test.

json
{
  "name": "X12 EDI (example)",
  "adapterType": "x12",
  "config": {}
}

Limits

  • Parsing always reads the delimiters from the ISA segment; defaultDelimiters apply only when generating.
  • generate with { envelope, transactions } builds a whole interchange whose control numbers stay the same when the step retries. See Transforms.
  • Real-time eligibility over a payer's SOAP connection goes through the SOAP adapter, with the X12 as the body.

Reference