Reference
Adapter: X12 EDI
Parse, generate, and query X12 EDI healthcare documents (837, 835, 270/271, etc.).
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.
| Setting | Type | Required | Default | Secret | Description |
|---|---|---|---|---|---|
defaultDelimiters | object | No | Delimiters for generating X12 (the codec and envelope shapes). Parsing always reads them from the ISA, as the standard says. | ||
defaultDelimiters.segment | string | No | No | Segment terminator (default: ~). | |
defaultDelimiters.element | string | No | No | Element separator (default: *). | |
defaultDelimiters.sub | string | No | No | Sub-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.
| Action | What it does | Step parameters | Keys a message may supply |
|---|---|---|---|
parse | Parse an X12 EDI document into structured JSON. | document | document, data, transactionSet, query |
generate | Generate an X12 EDI document from structured data. | data, transactionSet | document, data, transactionSet, query |
query | Query a parsed X12 document using HL7-like path syntax. | document, query | document, 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;
defaultDelimitersapply only when generating. generatewith{ 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.