100% Offline Reference 837P (005010X222A1)

ASC X12 837P Professional Claim Loop Hierarchy & Segment Reference

The electronic counterpart to the paper CMS-1500 form, 837P (005010X222A1) encodes outpatient physician, clinic, and supplier claims inside a strict HL tree.

Core 837P Loop Hierarchy (CMS 5010 Clean-Room Summary)

Loop IDTrigger SegmentEntity / RoleKey Child Segments & Rules
1000A / 1000BNM1*41 / NM1*40Submitter & ReceiverPER*IC contact required in 1000A.
2000A → 2010AAHL*..*20 / NM1*85Billing ProviderN3/N4 physical street address (PO Box goes in 2010AB Pay-To); REF*EI TIN.
2000B → 2010BA/BBHL*..*22 / SBRSubscriber & PayerIf patient is subscriber (SBR-02=18), HL-04=0 and 2000C is omitted.
2000C → 2010CAHL*..*23 / PATDependent PatientPresent only when patient differs from subscriber; carries NM1*QC, N3, N4, DMG.
2300CLMClaim LevelCLM-02 total charge, CLM-05 place/frequency composite, DTP, HI*ABK ICD-10-CM pointers.
2320 / 2330SBROther Subscriber (COB)Secondary/tertiary coordination of benefits with prior payer AMT*D paid amounts.
2400LX + SV1Professional Service LineSV1*HC:CPT procedure, SV1-02 charge, SV1-07 1-based diagnosis pointer(s), DTP*472 service date.

Minimal Valid Synthetic 837P Payload

ST*837*0001*005010X222A1~
BHT*0019*00*BATCH20261112*20261112*1430*CH~
NM1*41*2*NORTHSTAR CLEARING*****46*SUB9901~
PER*IC*EDI OPS*TE*8005550199~
NM1*40*2*APEX HEALTH PLAN*****46*PAY7710~
HL*1**20*1~
NM1*85*2*NORTHSTAR MEDICAL GROUP*****XX*1234567893~
N3*400 CLINICAL WAY~
N4*CHICAGO*IL*606010000~
REF*EI*361234567~
HL*2*1*22*0~
SBR*P*18*******CI~
NM1*IL*1*CARTER*MORGAN****MI*MEM449102~
N3*12 LAKEVIEW AVE~
N4*CHICAGO*IL*60611~
DMG*D8*19840615*F~
NM1*PR*2*APEX HEALTH PLAN*****PI*88412~
CLM*CLM9001*245.00***11:B:1*Y*A*Y*Y~
HI*ABK:J029*ABF:R509~
LX*1~
SV1*HC:99214:25*185.00*UN*1***1:2~
DTP*472*D8*20261110~
LX*2~
SV1*HC:87880*60.00*UN*1***1~
DTP*472*D8*20261110~
SE*26*0001~
EdiPrism Offline Inspector — Zero Network Calls
ASC X12 837P Professional Claim Loop Structure & Segment Guide (005010X222A1) — EdiPrism inside JetBrains IDE with EdiPrism

Frequently Asked Engineering Questions

Why do payers reject 837P when a PO Box is placed in Loop 2010AA?

Under 005010X222A1 rules, Loop 2010AA N3/N4 must contain the Billing Provider's physical street address and 9-digit ZIP code. Lockbox or PO Box remittance addresses belong exclusively in Loop 2010AB (NM1*87 Pay-To Address).

How do SV1-07 diagnosis pointers reference the HI segment?

SV1-07 contains 1-based ordinal positions (1 through 12, delimited by :) pointing to the diagnosis composites declared in Loop 2300 HI (where HI-01 is pointer 1, HI-02 is pointer 2, etc.).

Inspect, Diff, Validate & Scrub This Payload Offline in Your JetBrains IDE

Never paste regulated healthcare PHI (837/835/271) or supply-chain payloads (850/ORDERS) into browser parsers. EdiPrism X12 EDIFACT runs 100% air-gapped inside IntelliJ IDEA, PyCharm, DataGrip, Rider, GoLand, and WebStorm with a free core tier and a 14-day [Pro] trial.

Install Free from JetBrains Marketplace → Read Air-Gap Security Architecture