Skip to main content

Glossary

X12 and gateway terminology, in the form of definitions you can read once and refer back to. If you are new to X12, read this from top to bottom; if you came here from a chapter, jump to the term you need.

X12 envelope

TermMeaning
InterchangeOne ISA/IEA-bounded payload — the transport-level unit. Carries one or more functional groups.
ISAInterchange Control Header. Opens an interchange; carries sender/receiver qualifiers + IDs, control number, usage indicator (P production / T test).
IEAInterchange Control Trailer. Closes the ISA.
GSFunctional Group Header. Opens a functional group; identifies what kind of transaction set is inside (HC claim, HS eligibility request, HB eligibility response, HI 278, HP 835, BE 834).
GEFunctional Group Trailer. Closes the GS.
STTransaction Set Header. Opens one transaction (one 837, one 835, etc.).
SETransaction Set Trailer. Closes the ST and carries the segment count.
Implementation Convention ReferenceThe version string under HIPAA — e.g. 005010X222A1 for the standard 837P. Sits in GS08.

Loops, segments, elements

TermMeaning
SegmentOne line of an EDI file, terminated by ~. Identified by a 2–3 character ID (NM1, BHT, CLM).
ElementOne field inside a segment, separated by *. Position counts from 01. NM103 = the third element of an NM1.
Composite elementAn element that contains sub-elements separated by :.
LoopA logical group of segments (sometimes nested). Identified by 4-digit numbers like 2000A, 2300, 2400.
Hierarchical level (HL)A loop-organizing segment that establishes a parent/child structure inside an 837. The HL number cascades down (1 → 2 → 3).
QualifierA coded value in a segment that says what kind of value follows. NM101 = IL (Insured), 41 (Submitter), 40 (Receiver).

Transactions

CodeNameDirection (most common)
270Health Care Eligibility Benefit InquiryOutbound
271Health Care Eligibility Benefit ResponseInbound
276Health Care Claim Status InquiryOutbound
277Health Care Claim Status ResponseInbound
277CAClaim Acknowledgment (the BHT02 = 08 flavor of 277)Inbound
278Services Review (auth request and response)Both
820Premium Payment(Not used by RCM)
834Benefit Enrollment & MaintenanceInbound
835Health Care Claim Payment / Remittance Advice (ERA)Inbound
837PProfessional ClaimOutbound
837IInstitutional ClaimOutbound
999Implementation Acknowledgment (replaces 997)Inbound
TA1Interchange-level acknowledgmentInbound

Acknowledgment hierarchy

AckTells you
TA1The ISA envelope itself parsed (or didn't). Always optional; some partners skip.
999The 837 file's functional content was syntactically valid (AK1/AK9) — or it wasn't (IK3/IK4 carry the error detail).
277CAThe payer accepted or rejected each claim individually. The most actionable ack.

Group codes (835 / denials)

CodeMeaning
COContractual Obligation — provider write-off; cannot be billed to member.
PRPatient Responsibility — bill the member (deductible, coinsurance, copay).
PIPayer Initiated Reduction — same impact as CO.
OAOther Adjustment — usually informational.
CRCorrection and Reversal — reverses a prior adjudication.

Trading partner concepts

TermMeaning
Trading partnerAn EDI counterparty (clearinghouse, state Medicaid MMIS, commercial payer). Identified by a name + ISA08 receiver ID.
SubmitterThe entity submitting an 837 — usually our tenant. Carries NM1*41 in the 1000A loop.
ReceiverThe trading partner. Carries NM1*40 in 1000B.
Companion guideA per-state or per-payer overlay on the X12 implementation convention (see Companion Guides).
Routing ruleConfiguration that picks the correct trading partner for an outbound transaction (see 3.3 — Submission routing rules).

Gateway concepts

TermMeaning
edi-gatewayThe service that builds outbound EDI, parses inbound EDI, manages connections, and exposes the admin API.
edi-appThe web UI for EDI staff (/transactions, /partners, /companion-guides, etc.).
Transaction recordOne row in billing.edi_transaction representing a single inbound or outbound X12 transaction.
BatchA bundle of transactions packaged for transport — typically all of one cron tick's outbound 837s.
Correlation IDThe ID that ties a transaction record to its originating event (claim build, auth request, etc.).
Control numberAn ISA / GS / ST sequence number — strictly monotonic per partner per direction. Managed by the control-number-manager service.
ReplayRe-running an inbound or outbound transaction without re-generating the source event (see 8.2 — Replay & retry).

See also