Envelope Segments (Used in Every EDI File)
| Segment | Meaning | Example |
| ISA |
Interchange header – file-level envelope |
ISA*00* *00* *ZZ*SENDERID*ZZ*RECEIVERID*... |
| GS |
Functional group header |
GS*HP*SENDER*RECEIVER*20250131*1234*1*X*005010X221A1 |
| ST |
Transaction set header (identifies 835, 837, etc.) |
ST*835*0001 |
| SE |
Transaction set trailer |
SE*45*0001 |
| GE |
Functional group trailer |
GE*1*1 |
| IEA |
Interchange trailer – closes the ISA envelope |
IEA*1*000000001 |
Claim Payment Segments (835 ERA Files)
| Segment | Purpose | Explanation |
| BPR |
Payment information |
Total payment amount, method (ACH, CHK), payment date. |
| TRN |
Trace number |
EFT/check trace ID used for bank reconciliation. |
| N1 |
Payer/payee info |
Payer (PR) and Payee (PE) names/IDs. |
| CLP |
Claim payment details |
Claim ID, status, charge amount, paid amount, patient responsibility. |
| CAS |
Adjustments |
CO, PR, OA, PI adjustments with reason codes. |
| SVC |
Service line |
CPT/HCPCS, billed amount, allowed/paid amounts. |
| PLB |
Provider-level adjustments |
Offsets, recoupments, interest. |
Claim Submission Segments (837 Files)
| Segment | Purpose | Explanation |
| NM1 |
Name segment |
Patient, subscriber, provider, payer identifiers. |
| HI |
Diagnosis codes |
ICD-10 codes for the claim. |
| SV1 |
Professional service line |
CPT/HCPCS, charges, units. |
| SV2 |
Institutional service line |
Revenue code, charges, units. |
| DTM |
Date segment |
Service dates, admission/discharge dates. |
| REF |
Reference IDs |
Authorization numbers, claim numbers, internal tracking IDs. |
Common Segments Across All Transactions
| Segment | Purpose |
| N3 | Address line 1 |
| N4 | City, state, ZIP |
| PER | Contact information |
| AMT | Amounts (e.g., allowed amount) |
| QTY | Quantities (units, visits) |
Full Segment Reference Table
This table contains the most frequently used healthcare X12 segments.
| Segment | Description |
| ISA | Interchange Control Header |
| IEA | Interchange Control Trailer |
| GS | Functional Group Header |
| GE | Functional Group Trailer |
| ST | Transaction Set Header |
| SE | Transaction Set Trailer |
| BPR | Financial Information |
| TRN | Reassociation Trace Number |
| CLP | Claim Payment Information |
| CAS | Claim Adjustment |
| SVC | Service Payment Information |
| NM1 | Individual or Organization Name |
| HI | Health Information (Diagnosis) |
| REF | Reference Identifications |
| DTM | Date/Time References |
| PLB | Provider-Level Balance |
Want to explore these segments in your own EDI file?
Use the in-browser viewer to inspect ISA loops, CLP segments, SVC lines, and more — all without uploading PHI.
Open the EDI Viewer
Compare all EDI tools for viewing, parsing, conversion, or validation.