Skip to content
EDI 837 — EDI TransactionPublished Nov 5, 2026

EDI 837 Health Care Claim: 837P, 837I, 837D

EDI 837 explained: 837P, 837I and 837D claims, the 2000A/2000B/2300/2400 loops, CLM, HI, SV1, SV2 and SV3 segments, validation and matching to the 835.

The EDI 837 is how almost every US health care claim reaches a payer. A physician's office visit, a hospital emergency department stay and a dental cleaning all travel as 837s, usually through a clearinghouse. The three variants share one loop structure and differ in the claim and service line detail, which is why one guide can cover all three and why a validator has to know which variant it is reading.

This guide covers what the 837 carries, the HL loop structure (2000A, 2000B, 2000C, 2300, 2400), the segments billing and health IT teams map, live examples of an 837P, an 837I and an 837D, how 837s are validated and acknowledged, and how each claim is matched to its 835 payment. It explains the file format only. It is not coding, billing or legal advice; code sets, payer companion guides and your compliance team govern what goes on a claim.

What Is an EDI 837?

An EDI 837 is the Health Care Claim transaction set defined by ASC X12, used by health care providers (or billing services and clearinghouses acting for them) to submit claims and encounter information to health plans. It is the HIPAA standard for health care claims. 45 CFR 162.1102 names three X12 technical reports, one per variant:

VariantUsed forTechnical report named by HIPAAVersion commonly sent in GS08 / ST03
837P ProfessionalPhysicians, therapists, labs, ambulance, other non-facility services (the electronic counterpart of the CMS-1500 form)005010X222005010X222A1
837I InstitutionalHospitals, skilled nursing, home health, hospice and other facilities (the counterpart of the UB-04)005010X223, with errata 005010X223A1005010X223A2
837D DentalDental services (the counterpart of the ADA dental claim form)005010X224, with errata 005010X224A1005010X224A2

Authoritative references for 837 work:

  • 45 CFR Part 162, administered by CMS, lists the adopted HIPAA claim standards and the National Provider Identifier (NPI) requirement
  • The X12 005010X222A1, X223A2 and X224A2 technical reports (TR3s) define every loop, segment and code for each variant
  • Payer and state companion guides, such as the Indiana Department of Health 837I and 837D companion guides, say which situational segments a receiver requires

Who sends it? The provider's practice management or hospital billing system, usually through a clearinghouse.

Who receives it? The health plan, either directly or through the clearinghouse. Coordination-of-benefits claims also go from one payer or provider to a secondary payer.

When is it sent? After the service, once the claim is coded and checked. Most systems batch claims and send files daily.

Why does it matter? A claim the payer cannot accept is a claim that is not paid. Rejections at the 999 or 277CA stage cost days; claims that never arrive cost timely filing.

How the 837 Claim Cycle Works

  1. Eligibility. Before or at the visit, the provider checks coverage with a 270 eligibility inquiry and gets a 271 response.
  2. Coding and charge entry. Diagnoses (ICD-10-CM), procedures (CPT/HCPCS, CDT for dental, revenue codes for facilities) and charges are entered.
  3. Claim build and scrub. The billing system builds the 837 and the clearinghouse runs edits against the TR3 and payer rules.
  4. Submission. The 837 file goes to the payer.
  5. Acknowledgments. A 999 reports whether the file passed X12 and TR3 validation. A 277CA (claim acknowledgment, 005010X214) reports which claims were accepted into adjudication and which were rejected.
  6. Status. While a claim is pending, a 276 claim status request returns a 277 status response.
  7. Payment. The payer pays and explains with an 835 remittance advice. CLP01 on the 835 echoes CLM01 from the 837.
  8. Correction. Denied or incorrect claims go back as replacement (7) or void (8) claims referencing the payer's claim number.

The 837 Loop Structure

Every 837 variant uses the same HL (hierarchical level) tree. Understanding it is most of the work in reading one.

ST / BHT                       Transaction header
  1000A  NM1*41                Submitter (with PER contact)
  1000B  NM1*40                Receiver
  2000A  HL*n**20*1            Billing provider level
    2010AA NM1*85              Billing provider name, address, tax ID
    2010AB NM1*87              Pay-to address (when different)
    2000B  HL*n*p*22*0|1       Subscriber level, SBR
      2010BA NM1*IL            Subscriber
      2010BB NM1*PR            Payer
      2000C  HL*n*p*23*0       Patient level, PAT (only when the patient is not the subscriber)
        2010CA NM1*QC          Patient
      2300   CLM               Claim (under 2000B, or under 2000C when present)
        2310x NM1              Claim-level providers (referring, rendering, attending, facility)
        2320  SBR              Other payers (coordination of benefits)
        2400  LX + SV1|SV2|SV3 Service lines
          2410 LIN             Drug identification
          2420x NM1            Line-level providers
          2430 SVD + CAS       Prior payer's line adjudication (secondary claims)
SE
LoopLevel code (HL03)What it holds
2000A20The billing provider: who is billing, with NPI and tax ID. One 2000A can hold many subscribers and claims
2000B22The subscriber: the person who holds the coverage, the payer, and the group number in SBR
2000C23The patient, when different from the subscriber and the payer does not identify the patient with their own member ID
2300(not an HL)One claim: CLM, dates, diagnoses, claim-level providers and notes
2400(not an HL)One service line: procedure, charge, units and date

HL04 (hierarchical child code) is 1 when the level has children and 0 when it does not. A subscriber who is also the patient has HL04 = 0 on the 2000B, and the claim sits directly under it.

Patient or subscriber? In 5010, a dependent who can be uniquely identified by the payer, usually through their own member ID, is treated as the subscriber. X12's published interpretation on subscriber versus dependent states this for eligibility and says "the same logic exists in the 837 Claims". So that dependent is reported in 2000B, and the 2000C patient loop is used only when the payer identifies the patient through the subscriber. Payer companion guides can tighten this further.

Interactive Example: 837P Professional Claim

A fictional family practice bills an office visit and a rapid strep test for a patient who is also the subscriber. CLM05 = 11:B:1 is place of service 11 (office), qualifier B, frequency 1 (original claim). The principal diagnosis is in HI with qualifier ABK, and each line is an SV1. The total in CLM02 ($160.00) equals the sum of the lines. This claim's CLM01 is the CLP01 in the 835 guide's sample remittance. All people, providers and IDs are fictional; NPI 1999999992 is a check-digit-valid test value.

Live exampleEDI 837

837P Professional Claim (Office Visit)

A 5010 837P from a fictional family practice: one claim for an office visit and rapid strep test (99213 and 87880, $160.00 total) with an ICD-10-CM principal diagnosis, showing the 2000A billing provider, 2000B subscriber, 2300 claim and 2400 service line loops. Fictional parties; NPI 1999999992 is a check-digit-valid test value.

Document
837 Health Care Claim
From / to
EXAMPLEFP → SAMPLECLRHSE
Segments
30
Interchange date
Nov 3, 2026

Raw EDI (X12)

1
ISA*00* *00* *ZZ*EXAMPLEFP *ZZ*SAMPLECLRHSE *261103*1015*^*00501*000000101*0*T*:~
2
GS*HC*EXAMPLEFP*SAMPLECLRHSE*20261103*1015*101*X*005010X222A1~
3
ST*837*0001*005010X222A1~
4
BHT*0019*00*EFP20261103A*20261103*1015*CH~
5
NM1*41*2*EXAMPLE FAMILY PRACTICE*****46*EFPSUB01~
6
PER*IC*BILLING OFFICE*TE*5555550100~
7
NM1*40*2*SAMPLE CLEARINGHOUSE*****46*SAMPLECH~
8
HL*1**20*1~
9
NM1*85*2*EXAMPLE FAMILY PRACTICE*****XX*1999999992~
10
N3*200 SAMPLE STREET~
11
N4*SPRINGFIELD*IL*627011234~
12
REF*EI*990000002~
13
HL*2*1*22*0~
14
SBR*P*18*GRP778899******CI~
15
NM1*IL*1*SAMPLE*JORDAN****MI*ZZM000111222~
16
N3*300 EXAMPLE ROAD~
17
N4*SPRINGFIELD*IL*62702~
18
DMG*D8*19850214*M~
19
NM1*PR*2*SAMPLEVILLE HEALTH PLAN*****PI*99999~
20
CLM*EFP26110301*160***11:B:1*Y*A*Y*Y~
21
HI*ABK:J029~
22
LX*1~
23
SV1*HC:99213*125*UN*1***1~
24
DTP*472*D8*20261103~
25
LX*2~
26
SV1*HC:87880*35*UN*1***1~
27
DTP*472*D8*20261103~
28
SE*26*0001~
29
GE*1*101~
30
IEA*1*000000101~

Human-Readable

Interchange

Sender ID(ZZ)EXAMPLEFP
Receiver ID(ZZ)SAMPLECLRHSE
Date261103
Time1015
Standards ID^
Version00501
Control Number000000101
Acknowledgment RequestedNo
UsageTest
Included Groups (IEA01)1

Functional Group

Functional IDHCHC
SenderEXAMPLEFP
ReceiverSAMPLECLRHSE
Date20261103
Time1015
Control Number101
Agency CodeX
Version005010X222A1
Transactions1
Reported Transaction Count (GE01)1

Transaction 837

Health Care Claim
Transaction Type837
Control Number0001
Segments, ST to SE26
Count in SE0126 (matches)

Segment Detail

BHTBeginning of Hierarchical Transaction
BHT01Hierarchical Structure Code0019
BHT02Transaction Set Purpose Code00
BHT03Reference IdentificationEFP20261103A
BHT04Date20261103
BHT05Time1015
BHT06Transaction Type CodeCH
NM1Individual or Organizational Name
NM101Entity Identifier Code41
NM102Entity Type Qualifier2
NM103Name (Last or Organization)EXAMPLE FAMILY PRACTICE
NM108ID Code Qualifier46
NM109ID CodeEFPSUB01
PERAdministrative Communications Contact
PER01Contact FunctionIC
PER02NameBILLING OFFICE
PER03Comm QualifierTE
PER04Comm Number5555550100
NM1Individual or Organizational Name
NM101Entity Identifier Code40
NM102Entity Type Qualifier2
NM103Name (Last or Organization)SAMPLE CLEARINGHOUSE
NM108ID Code Qualifier46
NM109ID CodeSAMPLECH
HLHierarchical Level
HL01Hierarchical ID1
HL03Level Code20
HL04Child Code1
NM1Individual or Organizational Name
NM101Entity Identifier Code85
NM102Entity Type Qualifier2
NM103Name (Last or Organization)EXAMPLE FAMILY PRACTICE
NM108ID Code QualifierXX
NM109ID Code1999999992
N3Party Location
N301Address200 SAMPLE STREET
N4Geographic Location
N401CitySPRINGFIELD
N402State/ProvinceIL
N403Postal Code627011234
REFReference Identification
REF01QualifierEI
REF02Reference ID990000002
HLHierarchical Level
HL01Hierarchical ID2
HL02Parent ID1
HL03Level Code22
HL04Child Code0
SBRSubscriber Information
SBR01Payer Responsibility Sequence CodeP
SBR02Individual Relationship Code18
SBR03Group or Policy NumberGRP778899
SBR09Claim Filing Indicator CodeCI
NM1Individual or Organizational Name
NM101Entity Identifier CodeIL
NM102Entity Type Qualifier1
NM103Name (Last or Organization)SAMPLE
NM104First NameJORDAN
NM108ID Code QualifierMI
NM109ID CodeZZM000111222
N3Party Location
N301Address300 EXAMPLE ROAD
N4Geographic Location
N401CitySPRINGFIELD
N402State/ProvinceIL
N403Postal Code62702
DMGDemographic Information
DMG01Date Time Period Format QualifierD8
DMG02Date of Birth19850214
DMG03Gender CodeM
NM1Individual or Organizational Name
NM101Entity Identifier CodePR
NM102Entity Type Qualifier2
NM103Name (Last or Organization)SAMPLEVILLE HEALTH PLAN
NM108ID Code QualifierPI
NM109ID Code99999
CLMHealth Claim
CLM01Patient Control NumberEFP26110301
CLM02Total Claim Charge160
CLM05Health Care Service Location (Place of Service or Bill Type : Qualifier : Frequency)11:B:1
CLM06Provider Signature IndicatorY
CLM07Assignment or Plan Participation CodeA
CLM08Benefits Assignment CertificationY
CLM09Release of Information CodeY
HIHealth Care Information Codes
HI01Health Care Code 1ABK:J029
LXAssigned Number
LX01Assigned Number1
SV1Professional Service
SV101Composite Procedure CodeHC:99213
SV102Line Item Charge125
SV103Unit of MeasureUN
SV104Service Unit Count1
SV107Diagnosis Code Pointer1
DTPDate or Time or Period
DTP01Date/Time Qualifier472
DTP02Date Time Period Format QualifierD8
DTP03Date Time Period20261103
LXAssigned Number
LX01Assigned Number2
SV1Professional Service
SV101Composite Procedure CodeHC:87880
SV102Line Item Charge35
SV103Unit of MeasureUN
SV104Service Unit Count1
SV107Diagnosis Code Pointer1
DTPDate or Time or Period
DTP01Date/Time Qualifier472
DTP02Date Time Period Format QualifierD8
DTP03Date Time Period20261103
1 functional group1 transactionControl #000000101Valid

Interactive Example: 837I Institutional Claim

A fictional hospital bills an outpatient emergency department visit. CLM05 = 13:A:1 gives the type of bill as facility type 13 with frequency 1 (bill type 131). The claim adds statement dates (DTP*434), institutional codes in CL1, a principal diagnosis and a patient's reason for visit (HI with ABK and APR), an attending provider (NM1*71) and three SV2 lines, each with a revenue code and a procedure code. NPIs 1999999976 and 1999999984 are check-digit-valid test values.

Live exampleEDI 837

837I Institutional Claim (Emergency Department)

A 5010 837I for a fictional hospital outpatient emergency visit: type of bill 131 in CLM05, statement dates, CL1 codes, principal diagnosis and reason for visit, an attending provider, and three SV2 revenue-code lines totalling $1,210.00. Fictional parties; NPIs 1999999976 and 1999999984 are check-digit-valid test values.

Document
837 Health Care Claim
From / to
SAMPLEGENHOSP → SAMPLECLRHSE
Segments
37
Interchange date
Nov 4, 2026

Raw EDI (X12)

1
ISA*00* *00* *ZZ*SAMPLEGENHOSP *ZZ*SAMPLECLRHSE *261104*2210*^*00501*000000205*0*T*:~
2
GS*HC*SAMPLEGENHOSP*SAMPLECLRHSE*20261104*2210*205*X*005010X223A2~
3
ST*837*0001*005010X223A2~
4
BHT*0019*00*SGH20261104B*20261104*2210*CH~
5
NM1*41*2*SAMPLEVILLE GENERAL HOSPITAL*****46*SGHSUB01~
6
PER*IC*PATIENT ACCOUNTS*TE*5555550177~
7
NM1*40*2*SAMPLE CLEARINGHOUSE*****46*SAMPLECH~
8
HL*1**20*1~
9
NM1*85*2*SAMPLEVILLE GENERAL HOSPITAL*****XX*1999999976~
10
N3*1 HOSPITAL PLAZA~
11
N4*SPRINGFIELD*IL*627035000~
12
REF*EI*990000003~
13
HL*2*1*22*0~
14
SBR*P*18*GRP778899******CI~
15
NM1*IL*1*SAMPLE*TAYLOR****MI*ZZM000555666~
16
N3*100 EXAMPLE AVENUE~
17
N4*SPRINGFIELD*IL*62701~
18
DMG*D8*19880412*F~
19
NM1*PR*2*SAMPLEVILLE HEALTH PLAN*****PI*99999~
20
CLM*SGH2611020047*1210***13:A:1**A*Y*Y~
21
DTP*434*RD8*20261102-20261102~
22
CL1*1*1*01~
23
HI*ABK:R1031~
24
HI*APR:R1031~
25
NM1*71*1*EXAMPLE*RILEY****XX*1999999984~
26
LX*1~
27
SV2*0450*HC:99284*950*UN*1~
28
DTP*472*D8*20261102~
29
LX*2~
30
SV2*0300*HC:85025*60*UN*1~
31
DTP*472*D8*20261102~
32
LX*3~
33
SV2*0350*HC:74176*200*UN*1~
34
DTP*472*D8*20261102~
35
SE*33*0001~
36
GE*1*205~
37
IEA*1*000000205~

Human-Readable

Interchange

Sender ID(ZZ)SAMPLEGENHOSP
Receiver ID(ZZ)SAMPLECLRHSE
Date261104
Time2210
Standards ID^
Version00501
Control Number000000205
Acknowledgment RequestedNo
UsageTest
Included Groups (IEA01)1

Functional Group

Functional IDHCHC
SenderSAMPLEGENHOSP
ReceiverSAMPLECLRHSE
Date20261104
Time2210
Control Number205
Agency CodeX
Version005010X223A2
Transactions1
Reported Transaction Count (GE01)1

Transaction 837

Health Care Claim
Transaction Type837
Control Number0001
Segments, ST to SE33
Count in SE0133 (matches)

Segment Detail

BHTBeginning of Hierarchical Transaction
BHT01Hierarchical Structure Code0019
BHT02Transaction Set Purpose Code00
BHT03Reference IdentificationSGH20261104B
BHT04Date20261104
BHT05Time2210
BHT06Transaction Type CodeCH
NM1Individual or Organizational Name
NM101Entity Identifier Code41
NM102Entity Type Qualifier2
NM103Name (Last or Organization)SAMPLEVILLE GENERAL HOSPITAL
NM108ID Code Qualifier46
NM109ID CodeSGHSUB01
PERAdministrative Communications Contact
PER01Contact FunctionIC
PER02NamePATIENT ACCOUNTS
PER03Comm QualifierTE
PER04Comm Number5555550177
NM1Individual or Organizational Name
NM101Entity Identifier Code40
NM102Entity Type Qualifier2
NM103Name (Last or Organization)SAMPLE CLEARINGHOUSE
NM108ID Code Qualifier46
NM109ID CodeSAMPLECH
HLHierarchical Level
HL01Hierarchical ID1
HL03Level Code20
HL04Child Code1
NM1Individual or Organizational Name
NM101Entity Identifier Code85
NM102Entity Type Qualifier2
NM103Name (Last or Organization)SAMPLEVILLE GENERAL HOSPITAL
NM108ID Code QualifierXX
NM109ID Code1999999976
N3Party Location
N301Address1 HOSPITAL PLAZA
N4Geographic Location
N401CitySPRINGFIELD
N402State/ProvinceIL
N403Postal Code627035000
REFReference Identification
REF01QualifierEI
REF02Reference ID990000003
HLHierarchical Level
HL01Hierarchical ID2
HL02Parent ID1
HL03Level Code22
HL04Child Code0
SBRSubscriber Information
SBR01Payer Responsibility Sequence CodeP
SBR02Individual Relationship Code18
SBR03Group or Policy NumberGRP778899
SBR09Claim Filing Indicator CodeCI
NM1Individual or Organizational Name
NM101Entity Identifier CodeIL
NM102Entity Type Qualifier1
NM103Name (Last or Organization)SAMPLE
NM104First NameTAYLOR
NM108ID Code QualifierMI
NM109ID CodeZZM000555666
N3Party Location
N301Address100 EXAMPLE AVENUE
N4Geographic Location
N401CitySPRINGFIELD
N402State/ProvinceIL
N403Postal Code62701
DMGDemographic Information
DMG01Date Time Period Format QualifierD8
DMG02Date of Birth19880412
DMG03Gender CodeF
NM1Individual or Organizational Name
NM101Entity Identifier CodePR
NM102Entity Type Qualifier2
NM103Name (Last or Organization)SAMPLEVILLE HEALTH PLAN
NM108ID Code QualifierPI
NM109ID Code99999
CLMHealth Claim
CLM01Patient Control NumberSGH2611020047
CLM02Total Claim Charge1210
CLM05Health Care Service Location (Place of Service or Bill Type : Qualifier : Frequency)13:A:1
CLM07Assignment or Plan Participation CodeA
CLM08Benefits Assignment CertificationY
CLM09Release of Information CodeY
DTPDate or Time or Period
DTP01Date/Time Qualifier434
DTP02Date Time Period Format QualifierRD8
DTP03Date Time Period20261102-20261102
CL1Claim Codes (Institutional)
CL101Admission Type Code1
CL102Admission Source (Point of Origin) Code1
CL103Patient Status Code01
HIHealth Care Information Codes
HI01Health Care Code 1ABK:R1031
HIHealth Care Information Codes
HI01Health Care Code 1APR:R1031
NM1Individual or Organizational Name
NM101Entity Identifier Code71
NM102Entity Type Qualifier1
NM103Name (Last or Organization)EXAMPLE
NM104First NameRILEY
NM108ID Code QualifierXX
NM109ID Code1999999984
LXAssigned Number
LX01Assigned Number1
SV2Institutional Service
SV201Revenue Code0450
SV202Composite Procedure CodeHC:99284
SV203Line Item Charge950
SV204Unit of MeasureUN
SV205Service Unit Count1
DTPDate or Time or Period
DTP01Date/Time Qualifier472
DTP02Date Time Period Format QualifierD8
DTP03Date Time Period20261102
LXAssigned Number
LX01Assigned Number2
SV2Institutional Service
SV201Revenue Code0300
SV202Composite Procedure CodeHC:85025
SV203Line Item Charge60
SV204Unit of MeasureUN
SV205Service Unit Count1
DTPDate or Time or Period
DTP01Date/Time Qualifier472
DTP02Date Time Period Format QualifierD8
DTP03Date Time Period20261102
LXAssigned Number
LX01Assigned Number3
SV2Institutional Service
SV201Revenue Code0350
SV202Composite Procedure CodeHC:74176
SV203Line Item Charge200
SV204Unit of MeasureUN
SV205Service Unit Count1
DTPDate or Time or Period
DTP01Date/Time Qualifier472
DTP02Date Time Period Format QualifierD8
DTP03Date Time Period20261102
1 functional group1 transactionControl #000000205Valid

Interactive Example: 837D Dental Claim

A fictional dental group bills a periodic evaluation, an adult prophylaxis and a one-surface posterior resin filling. Dental lines use SV3 with the AD (ADA) qualifier, and the filling adds a TOO segment identifying tooth 30 and the occlusal surface. NPI 1999999968 is a check-digit-valid test value.

Live exampleEDI 837

837D Dental Claim (Exam, Cleaning, Filling)

A 5010 837D from a fictional dental group: periodic evaluation, adult prophylaxis and a one-surface posterior resin on tooth 30 (TOO JP 30, surface O) in SV3 lines totalling $290.00. Fictional parties; NPI 1999999968 is a check-digit-valid test value.

Document
837 Health Care Claim
From / to
EXAMPLEDENTAL → SAMPLECLRHSE
Segments
33
Interchange date
Nov 4, 2026

Raw EDI (X12)

1
ISA*00* *00* *ZZ*EXAMPLEDENTAL *ZZ*SAMPLECLRHSE *261104*1640*^*00501*000000188*0*T*:~
2
GS*HC*EXAMPLEDENTAL*SAMPLECLRHSE*20261104*1640*188*X*005010X224A2~
3
ST*837*0001*005010X224A2~
4
BHT*0019*00*EDG20261104C*20261104*1640*CH~
5
NM1*41*2*EXAMPLE DENTAL GROUP*****46*EDGSUB01~
6
PER*IC*FRONT DESK*TE*5555550123~
7
NM1*40*2*SAMPLE CLEARINGHOUSE*****46*SAMPLECH~
8
HL*1**20*1~
9
NM1*85*2*EXAMPLE DENTAL GROUP*****XX*1999999968~
10
N3*45 EXAMPLE LANE~
11
N4*SPRINGFIELD*IL*627049876~
12
REF*EI*990000004~
13
HL*2*1*22*0~
14
SBR*P*18*GRP778899******CI~
15
NM1*IL*1*SAMPLE*MORGAN****MI*ZZD000777888~
16
N3*100 EXAMPLE AVENUE~
17
N4*SPRINGFIELD*IL*62701~
18
DMG*D8*19900923*M~
19
NM1*PR*2*SAMPLEVILLE DENTAL PLAN*****PI*99998~
20
CLM*EDG2611040012*290***11:B:1*Y*A*Y*Y~
21
LX*1~
22
SV3*AD:D0120*55****1~
23
DTP*472*D8*20261104~
24
LX*2~
25
SV3*AD:D1110*95****1~
26
DTP*472*D8*20261104~
27
LX*3~
28
SV3*AD:D2391*140****1~
29
TOO*JP*30*O~
30
DTP*472*D8*20261104~
31
SE*29*0001~
32
GE*1*188~
33
IEA*1*000000188~

Human-Readable

Interchange

Sender ID(ZZ)EXAMPLEDENTAL
Receiver ID(ZZ)SAMPLECLRHSE
Date261104
Time1640
Standards ID^
Version00501
Control Number000000188
Acknowledgment RequestedNo
UsageTest
Included Groups (IEA01)1

Functional Group

Functional IDHCHC
SenderEXAMPLEDENTAL
ReceiverSAMPLECLRHSE
Date20261104
Time1640
Control Number188
Agency CodeX
Version005010X224A2
Transactions1
Reported Transaction Count (GE01)1

Transaction 837

Health Care Claim
Transaction Type837
Control Number0001
Segments, ST to SE29
Count in SE0129 (matches)

Segment Detail

BHTBeginning of Hierarchical Transaction
BHT01Hierarchical Structure Code0019
BHT02Transaction Set Purpose Code00
BHT03Reference IdentificationEDG20261104C
BHT04Date20261104
BHT05Time1640
BHT06Transaction Type CodeCH
NM1Individual or Organizational Name
NM101Entity Identifier Code41
NM102Entity Type Qualifier2
NM103Name (Last or Organization)EXAMPLE DENTAL GROUP
NM108ID Code Qualifier46
NM109ID CodeEDGSUB01
PERAdministrative Communications Contact
PER01Contact FunctionIC
PER02NameFRONT DESK
PER03Comm QualifierTE
PER04Comm Number5555550123
NM1Individual or Organizational Name
NM101Entity Identifier Code40
NM102Entity Type Qualifier2
NM103Name (Last or Organization)SAMPLE CLEARINGHOUSE
NM108ID Code Qualifier46
NM109ID CodeSAMPLECH
HLHierarchical Level
HL01Hierarchical ID1
HL03Level Code20
HL04Child Code1
NM1Individual or Organizational Name
NM101Entity Identifier Code85
NM102Entity Type Qualifier2
NM103Name (Last or Organization)EXAMPLE DENTAL GROUP
NM108ID Code QualifierXX
NM109ID Code1999999968
N3Party Location
N301Address45 EXAMPLE LANE
N4Geographic Location
N401CitySPRINGFIELD
N402State/ProvinceIL
N403Postal Code627049876
REFReference Identification
REF01QualifierEI
REF02Reference ID990000004
HLHierarchical Level
HL01Hierarchical ID2
HL02Parent ID1
HL03Level Code22
HL04Child Code0
SBRSubscriber Information
SBR01Payer Responsibility Sequence CodeP
SBR02Individual Relationship Code18
SBR03Group or Policy NumberGRP778899
SBR09Claim Filing Indicator CodeCI
NM1Individual or Organizational Name
NM101Entity Identifier CodeIL
NM102Entity Type Qualifier1
NM103Name (Last or Organization)SAMPLE
NM104First NameMORGAN
NM108ID Code QualifierMI
NM109ID CodeZZD000777888
N3Party Location
N301Address100 EXAMPLE AVENUE
N4Geographic Location
N401CitySPRINGFIELD
N402State/ProvinceIL
N403Postal Code62701
DMGDemographic Information
DMG01Date Time Period Format QualifierD8
DMG02Date of Birth19900923
DMG03Gender CodeM
NM1Individual or Organizational Name
NM101Entity Identifier CodePR
NM102Entity Type Qualifier2
NM103Name (Last or Organization)SAMPLEVILLE DENTAL PLAN
NM108ID Code QualifierPI
NM109ID Code99998
CLMHealth Claim
CLM01Patient Control NumberEDG2611040012
CLM02Total Claim Charge290
CLM05Health Care Service Location (Place of Service or Bill Type : Qualifier : Frequency)11:B:1
CLM06Provider Signature IndicatorY
CLM07Assignment or Plan Participation CodeA
CLM08Benefits Assignment CertificationY
CLM09Release of Information CodeY
LXAssigned Number
LX01Assigned Number1
SV3Dental Service
SV301Composite Procedure CodeAD:D0120
SV302Line Item Charge55
SV306Procedure Count1
DTPDate or Time or Period
DTP01Date/Time Qualifier472
DTP02Date Time Period Format QualifierD8
DTP03Date Time Period20261104
LXAssigned Number
LX01Assigned Number2
SV3Dental Service
SV301Composite Procedure CodeAD:D1110
SV302Line Item Charge95
SV306Procedure Count1
DTPDate or Time or Period
DTP01Date/Time Qualifier472
DTP02Date Time Period Format QualifierD8
DTP03Date Time Period20261104
LXAssigned Number
LX01Assigned Number3
SV3Dental Service
SV301Composite Procedure CodeAD:D2391
SV302Line Item Charge140
SV306Procedure Count1
TOOTooth Identification
TOO01Code List QualifierJP
TOO02Tooth Number30
TOO03Tooth SurfaceO
DTPDate or Time or Period
DTP01Date/Time Qualifier472
DTP02Date Time Period Format QualifierD8
DTP03Date Time Period20261104
1 functional group1 transactionControl #000000188Valid

837P vs 837I vs 837D

837P Professional837I Institutional837D Dental
Paper equivalentCMS-1500UB-04ADA dental claim form
Implementation guide005010X222A1005010X223A2005010X224A2
CLM05 compositePlace of service : B : frequencyFacility type : A : frequency (the type of bill)Place of service : B : frequency
Service line segmentSV1SV2SV3
Procedure codesCPT/HCPCS (HC)Revenue code in SV201, plus CPT/HCPCS where requiredCDT (AD)
Diagnosis codesICD-10-CM in HI, pointed to from SV107ICD-10-CM in HI, with admitting and reason-for-visit qualifiersHI where the payer requires it
Facility detailStatement dates, CL1 admission and discharge codes, value, condition and occurrence codes in HI
Dental detailTOO tooth and surface, oral cavity area in SV304
Key provider rolesBilling, rendering, referringBilling, attending, operating, otherBilling, rendering

Key Segments Explained

BHT: Beginning of Hierarchical Transaction

BHT*0019*00*EFP20261103A*20261103*1015*CH~
ElementNameExampleWhat it means
BHT01Hierarchical Structure Code0019Information source, subscriber, dependent structure
BHT02Transaction Set Purpose Code00Original
BHT03Reference IdentificationEFP20261103AThe submitter's batch reference
BHT04 / BHT05Date and time20261103, 1015When the file was created
BHT06Claim or Encounter IdentifierCHCH chargeable (a claim for payment), RP reporting (encounters), 31 subrogation demand

NM1: Submitter, Receiver, Providers, Subscriber, Payer

The 837 uses NM1 for every party. NM101 says which one, and NM108/NM109 carry the identifier.

NM101PartyLoopTypical ID (NM108)
41Submitter1000A46 electronic transmitter ID
40Receiver1000B46
85Billing provider2010AAXX NPI
87Pay-to provider2010ABAddress only
ILSubscriber2010BAMI member ID
PRPayer2010BBPI payer ID
QCPatient2010CA
82Rendering provider2310B (837P, 837D) / 2420AXX NPI
71Attending provider (837I)2310AXX NPI
DNReferring provider2310A (837P)XX NPI

The billing provider's NPI must pass the NPI check digit, and its address in N3/N4 must be a street address with a nine-digit ZIP code in 5010. The tax ID follows in REF*EI (or REF*SY for an individual's SSN, where allowed).

SBR: Subscriber Information

SBR*P*18*GRP778899******CI~
ElementNameExampleWhat it means
SBR01Payer Responsibility SequencePP primary, S secondary, T tertiary for this payer
SBR02Individual Relationship Code1818 (self) when the subscriber is the patient; empty when a 2000C patient loop follows
SBR03Group or Policy NumberGRP778899The group number from the member's card
SBR09Claim Filing Indicator CodeCIType of coverage, for example CI commercial, MB Medicare Part B, MC Medicaid, HM HMO

CLM: Claim Information

CLM*EFP26110301*160***11:B:1*Y*A*Y*Y~
ElementNameExampleWhat it means
CLM01Patient Control NumberEFP26110301Your claim ID. Returned as CLP01 on the 835 and in 277 responses, so keep it unique
CLM02Total Claim Charge160Must equal the sum of the service line charges
CLM05-1Place of service or facility type11837P/837D: place of service code. 837I: facility type code (first two digits of the type of bill)
CLM05-2Facility Code QualifierBB place of service (837P/837D), A uniform billing claim form bill type (837I)
CLM05-3Claim Frequency Type Code11 original, 7 replacement of a prior claim, 8 void of a prior claim
CLM06Provider Signature IndicatorY837P/837D only
CLM07Assignment or Plan Participation CodeAWhether the provider accepts assignment
CLM08Benefits Assignment CertificationYWhether the patient assigned benefits to the provider
CLM09Release of Information CodeYWhether the provider has the patient's authorization to release information

Replacement and void claims also carry the payer's original claim number in REF*F8 in loop 2300. That number comes from CLP07 on the 835.

HI: Health Care Diagnosis and Other Codes

HI*ABK:J029~

HI carries up to 12 codes per segment as composites: a qualifier and a code. ICD-10-CM codes are sent without the decimal point (J029 is J02.9).

QualifierMeaning
ABKPrincipal diagnosis (ICD-10-CM)
ABFOther diagnosis (ICD-10-CM)
ABJAdmitting diagnosis (837I)
APRPatient's reason for visit (837I)

837I claims use further HI qualifiers for condition, occurrence, value and procedure codes; the 837I TR3 and the payer's guide list them. In an 837P, SV107 points from each line to the diagnoses in HI by position (1 to 12).

SV1: Professional Service (837P)

SV1*HC:99213*125*UN*1***1~
DTP*472*D8*20261103~
ElementNameExampleWhat it means
SV101Composite Procedure CodeHC:99213HC (HCPCS, which includes CPT) and the code, then up to four modifiers
SV102Line Item Charge125Billed amount for the line
SV103Unit of MeasureUNUN units, MJ minutes (anesthesia)
SV104Service Unit Count1Number of units
SV105Place of Service CodeOnly when different from CLM05-1
SV107Diagnosis Code Pointer1Which HI diagnoses support this line

SV2: Institutional Service (837I)

SV2*0450*HC:99284*950*UN*1~
ElementNameExampleWhat it means
SV201Revenue Code0450The facility revenue code for the department or service
SV202Composite Procedure CodeHC:99284CPT/HCPCS, where the payer or the revenue code requires it
SV203Line Item Charge950Billed amount
SV204Unit of MeasureUNUN units or DA days
SV205Service Unit Count1Number of units or days

CL1: Institutional Claim Codes (837I)

CL1*1*1*01~

CL101 is the admission type, CL102 the point of origin (admission source) and CL103 the patient status (discharge status). The codes come from the National Uniform Billing Committee's UB-04 code sets. Inpatient claims need this segment; whether a payer also requires it on outpatient claims is set by its companion guide.

SV3 and TOO: Dental Service (837D)

SV3*AD:D2391*140****1~
TOO*JP*30*O~
ElementNameExampleWhat it means
SV301Composite Procedure CodeAD:D2391AD (American Dental Association codes, CDT) and the procedure
SV302Line Item Charge140Billed amount
SV303Place of Service CodeOnly when different from the claim
SV304Oral Cavity DesignationArea of the mouth, for procedures that apply to an area rather than a tooth
SV305Prosthesis, Crown or Inlay CodeInitial placement or replacement
SV306Procedure Count1Number of times performed
TOO01Code List QualifierJPUniversal National Tooth Designation System
TOO02Tooth Number30The tooth treated
TOO03Tooth SurfaceOSurface codes, as a composite when more than one surface

TOO can repeat (up to 32 times) when a line covers several teeth.

LX and DTP: Service Line Number and Date

Each 2400 loop starts with LX (a line counter starting at 1) and carries the service date in DTP*472, as a single date (D8) or a range (RD8). Many payers also want a line item control number in REF*6R, which the payer returns on the 835 for line-level matching.

837 Validation: What an "EDI 837 Validator" Actually Checks

Claim files are checked in layers. The industry commonly describes them as the WEDI SNIP validation types:

LayerWhat it checksExample failure
1. IntegrityX12 syntax: envelopes, segment terminators, control numbers, countsSE01 does not equal the segment count
2. RequirementTR3 rules: required segments and elements, element lengths and valuesMissing REF*EI on the billing provider
3. BalancingAmounts that must add upCLM02 does not equal the sum of line charges
4. SituationSituational rules ("required when...")Patient loop sent although the patient is the subscriber
5. External code setsCodes valid in the external lists on the date of serviceInvalid or deleted ICD-10-CM, CPT or place of service code
6. Product or service typeRules specific to 837P, 837I or 837DRevenue code missing on an institutional line
7. Trading partnerThe payer's companion guideA payer-specific REF or payer ID

Layers 1 and 2 surface on the 999; claims that pass the file but fail payer edits are rejected on the 277CA. A free X12 parser handles layer 1 and makes layers 2 to 4 readable. Code set and payer rules (layers 5 to 7) need the clearinghouse's or payer's edits, because they depend on licensed code sets, dates of service and contracts.

How the 837 Connects to the 835

837835Notes
CLM01 patient control numberCLP01The primary match
CLM02 total chargeCLP03What you billed
CLM05-1 place of service or facility typeCLP08Echoed back
CLM05-3 frequencyCLP09Echoed back
REF*6R line item control numberREF*6R in loop 2110Line-level match
SV101 / SV202 / SV301 procedureSVC01SVC06 shows the original code if the payer changed it
DTP*472 service dateDTM*472Line date
REF*F8 on a replacementCLP07 from the earlier 835Ties a corrected claim to the original

See the 835 guide for how the payer reports each adjustment with CAS group codes (CO, PR, OA, PI), CARCs and RARCs.

Common 837 Errors and How to Prevent Them

ErrorWhere it surfacesPrevention
Invalid NPI check digit or NPI not matching the payer's enrollment999 or 277CAValidate the Luhn check digit and keep the NPI on file with each payer
Billing provider address is a PO box, or ZIP is five digits277CAUse a street address and nine-digit ZIP in 2010AA; put a PO box in the pay-to loop
CLM02 does not equal the sum of line charges999 or 277CACompute the total from the lines when the file is built
Patient loop used for a dependent with their own member ID277CAReport that member as the subscriber in 2000B
Wrong GS08/ST03 for the variant999005010X222A1 for 837P, X223A2 for 837I, X224A2 for 837D, unless the payer's guide says otherwise
Diagnosis sent with a decimal point999Strip the decimal: J02.9 is sent as J029
Replacement claim without REF*F8277CA or 835 denialSend the payer claim control number from the 835's CLP07
Duplicate CLM01 across claims835 postingGenerate unique patient control numbers per claim
Missing diagnosis pointer in SV107999Point every 837P line at one or more HI codes
Unchecked 999 and 277CASilentClaims rejected at either stage never reach adjudication. Work both every day

837 Implementation Checklist

  • Get the clearinghouse and payer companion guides for each variant you send
  • Confirm GS08/ST03 values for 837P, 837I and 837D
  • Confirm payer IDs (NM1*PR) and submitter and receiver IDs with the clearinghouse
  • Validate NPIs, tax IDs and the billing provider's street address and nine-digit ZIP
  • Decide subscriber versus patient loops using the payer's member ID rules
  • Keep CLM01 unique and send REF*6R on lines if you want line-level 835 matching
  • Build replacement and void claim workflows using CLM05-3 and REF*F8
  • Set up daily review of 999s, 277CAs and 277 status responses
  • Reconcile 835 payments back to claims on CLP01
  • Test each variant, including a secondary claim with 2320 and 2430 loops if you bill secondary payers

For background on X12 envelopes and acknowledgments, see our EDI document types reference, the 997 functional acknowledgment guide and the 834 enrollment guide for the plan side.

Reading 837 Files With OrderSync's Free Inspector

When a claim file is rejected, the fastest way in is to read it loop by loop. Paste any X12 file into the free EDI inspector to see the envelope, the billing provider, subscriber, claim and service line loops broken out segment by segment, with control-number and segment-count problems flagged. It runs in your browser and needs no signup. Use sample files, or files with patient data removed, when you are trying it out. The EDI to JSON converter and EDI translator work on the same files.

Frequently Asked Questions

What is an 837 file?

An 837 file is the X12 Health Care Claim transaction. Providers, billing services and clearinghouses use it to send claims and encounters to health plans. Under HIPAA it comes in three variants: 837P professional, 837I institutional and 837D dental, each with its own 5010 implementation guide.

What is the difference between 837P and 837I?

The 837P carries professional claims from physicians and other practitioners, with SV1 service lines and a place of service in CLM05. The 837I carries facility claims from hospitals and other institutions, with SV2 revenue-code lines, a type of bill in CLM05 and institutional detail such as statement dates and CL1 codes.

What are the main loops in an 837?

Loop 2000A is the billing provider, 2000B the subscriber and payer, 2000C the patient when different from the subscriber, 2300 the claim and 2400 the service lines. 1000A and 1000B before them identify the submitter and receiver.

How do I validate an 837 file?

Check it in layers: X12 syntax and envelopes, the implementation guide's required segments and values, balancing (line charges must add up to CLM02), situational rules, code sets, variant rules and the payer's companion guide. A parser covers the first layers; clearinghouse and payer edits cover the rest. The 999 and 277CA report what failed.

What is CLM01 in an 837?

CLM01 is the patient control number, the provider's own ID for the claim. The payer returns it in CLP01 on the 835 remittance and in claim status responses, so it should be unique for every claim.

What does CLM05 mean?

CLM05 is a composite. In 837P and 837D it holds the place of service code, the qualifier B and the claim frequency code. In 837I it holds the facility type code, the qualifier A and the frequency code, which together make the type of bill. Frequency 1 is an original claim, 7 a replacement and 8 a void.

What acknowledgments come back for an 837?

A 999 reports whether the file passed X12 and implementation guide validation. A 277CA reports which claims were accepted into adjudication or rejected. Later, 277 claim status responses answer 276 inquiries, and the 835 reports payment.

How is an 837 matched to an 835?

CLM01 on the 837 equals CLP01 on the 835. Line item control numbers in REF6R match at line level, and the payer's claim control number in CLP07 is what you send back in REFF8 on a replacement or void claim.

James Darby
Last updated: 11/5/2026

Related Resources