Skip to main content

Segment cheat-sheet

The 30-or-so segments that account for roughly 90% of what you will read on any inbound or outbound transaction. Memorize the ones in Bold; refer back here for the rest.

Envelope

SegmentPositionMeaningKey elements
ISAFirst segment of every interchangeInterchange Control HeaderISA01-04 qualifiers, ISA06/ISA08 IDs, ISA13 control #, ISA15 P/T, ISA16 sub-element separator
GSAfter ISA, before STFunctional Group HeaderGS01 functional ID code, GS02/GS03 app sender/receiver, GS06 group control #, GS08 impl convention
STFirst segment of each transactionTransaction Set HeaderST01 transaction set ID (837, 835, 270, 278…), ST02 control #, ST03 impl convention (in newer transactions)
SELast segment of each transactionTransaction Set TrailerSE01 segment count (inclusive of ST and SE)
GEAfter all STs in a groupFunctional Group TrailerGE01 # of STs, GE02 group control # (must match GS06)
IEALast segment of every interchangeInterchange Control TrailerIEA01 # of GSs, IEA02 control # (must match ISA13)

Header / metadata (mostly 837 / 270 / 278)

SegmentWhereMeaning
BHTAfter STBeginning of Hierarchical Transaction. Carries purpose code, originator ref, date/time. BHT02 is 00 (original), 08 for 277CA, etc.
REFThroughoutReference identification — many qualifiers (87 transaction-set policy, D9 claim ID, EA member ID alt, LU location).
DTPThroughoutDate/time period. DTP01 qualifier (472 service date, 434 statement period, 573 line adjustment date).
PERSubmitter / contactAdministrative contact.
HL837 onlyHierarchical Level. Establishes parent/child relationships for billing/subscriber/patient loops.

Names and parties

SegmentWhereMeaning
NM11000A/B, 2010s, 2310s, throughoutName. NM101 qualifier (41 submitter, 40 receiver, 85 billing provider, IL insured, QC patient, PR payer, PE payee, 82 rendering, DN referring).
N3Following NM1Address line 1/2.
N4Following N3City / state / ZIP / country.
DMGAfter NM1Demographics — DMG01 D8, DMG02 DOB, DMG03 gender.
PERAfter NM1Contact info.

837 claim segments

SegmentLoopMeaning
CLM2300Claim Information. CLM01 patient control #, CLM02 total amount, CLM05 POS+claim freq+claim type.
HI2300Health Care Information — diagnoses (HI*BK principal, HI*BF other), procedure codes, DRG (HI*DR), occurrence codes (HI*BH/HI*BI), value codes.
K32300Free-form file information (rare; payer-specific).
PWK2300Paperwork — attachment indicators.
SV12400 (P)Professional Service Line. CPT/HCPCS + modifiers + amount + units + diagnosis pointer.
SV22400 (I)Institutional Service Line. Revenue code + HCPCS + amount + units + non-covered.
SV3 / SV5(other types)Dental / DME service lines.
LX2400Service line counter (1-based).
AMTVariousAmount segments (AMT*F5 patient amount paid, AMT*EAF amount owed, AMT*F2 allowed amount).

Authorization (278) segments

SegmentLoopMeaning
UM2000EHealth Care Services Review. Carries request type, certification type, service type.
HSD2000EHealth Care Services Delivery. Quantity, frequency, unit-of-measure.
HCR2000E (response)Health Care Services Review. HCR01 action code (A1 certified, A2 certified partial, A3 not certified, A4 pended, CT contact payer).
HI2000EDiagnoses for the auth (same HI*BK/HI*BF shape as 837).

835 remittance segments

SegmentLoopMeaning
BPRHeaderBeginning Payment & Remittance. Carries payment method (CHK/ACH), amount, effective date, DFI info.
TRNAfter BPRTrace Number. The unique-per-payer tracking ID.
N1HeaderPayer / payee name. N1*PR payer, N1*PE payee.
CLP2100Claim Payment. CLP01 patient control # (echoes our 837 CLM01), CLP02 claim status, CLP03 total billed, CLP04 total paid, CLP07 payer claim control #.
CAS2100 / 2110Claim Adjustment. CAS01 group code (CO/PR/OA/PI), then triplets of (reason, amount, qty).
NM1*QC2100Patient.
SVC2110Service Payment Info. Procedure code (composite), billed, paid, units, etc.
AMT2110Service-line amounts (AMT*B6 allowed, AMT*KH deductible amount).
PLBTrailerProvider-Level Adjustment — provider-wide adjustments outside any single claim.

Eligibility (270 / 271) segments

SegmentWhereMeaning
BHTAfter STBegin Hierarchical — BHT06 is RU realtime / RT request.
HLThroughoutHierarchical level (info source → info receiver → subscriber → dependent).
NM1MultipleNames — 2B info source, 1P info receiver, IL subscriber, 03 dependent.
EQ270 / 2110CEligibility / Benefit Inquiry. Service type code (single, e.g. 30 health benefit plan, or R for full set).
EB271 / 2110CEligibility or Benefit Information. The response payload. EB01 benefit info code (1 active, 6 inactive, A co-insurance, C deductible, B copay).
MSG271 / 2110CFree-form text — payer notes.
AAA270 or 271Request Validation. Used both for accept / reject. AAA01 Y valid / N invalid.
DTPThroughoutDates — eligibility window, plan begin/end.

Acknowledgment segments

See 9.3 — Acknowledgment codes for the full code lists.

SegmentWhereMeaning
TA1Inside the ISAInterchange acknowledgment.
AK1999Functional Group Response Header. AK101 HC echoes GS01.
AK9999Functional Group Response Trailer. AK901 A/P/E/R.
IK3999Implementation Data Segment Note — segment-level error.
IK4999Implementation Data Element Note — element-level error.
STC277CA / 277Status Information. Carries the per-claim acknowledgment / status decision.
CTX277CA / 999Context — the location in the original transaction the status / error refers to.

See also