EDI Segment Cheat Sheet (Healthcare X12)

A quick-reference guide for the most important EDI X12 segments used in 835, 837, and other healthcare files.

Table of Contents

Envelope Segments (Used in Every EDI File)

SegmentMeaningExample
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)

SegmentPurposeExplanation
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)

SegmentPurposeExplanation
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

SegmentPurpose
N3Address line 1
N4City, state, ZIP
PERContact information
AMTAmounts (e.g., allowed amount)
QTYQuantities (units, visits)

Full Segment Reference Table

This table contains the most frequently used healthcare X12 segments.

SegmentDescription
ISAInterchange Control Header
IEAInterchange Control Trailer
GSFunctional Group Header
GEFunctional Group Trailer
STTransaction Set Header
SETransaction Set Trailer
BPRFinancial Information
TRNReassociation Trace Number
CLPClaim Payment Information
CASClaim Adjustment
SVCService Payment Information
NM1Individual or Organization Name
HIHealth Information (Diagnosis)
REFReference Identifications
DTMDate/Time References
PLBProvider-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.