The UB-04 (CMS-1450) is the standard claim form for hospitals and institutional providers. The HIPAA 837I is its electronic equivalent. With 81 form locators, 22 revenue lines per page, and support for three payers on a single form, the UB-04 is significantly more complex than the CMS-1500. This article is a guide to selected UB-04 form locators and the 837I segments they come from. It is not a complete field-by-field specification; many form locators (for example, present-on-admission indicators) are not covered.
Before and After
The file as it arrives, and what Redix makes of it. The numbers mark the same three facts on both sides.
Before: the 837I claim file, as your billing system writes it. Three of the 104 segments in the sample file:
(1) NM1*IL*1*SAMPLE*CAMERON****MI*DEMO837I002~ (2) HI*ABK:J189~ (3) SV2*0450*HC:99284*580.00*UN*1~
After: the same claim on the UB-04 form.
1. The patient's name, printed in Box 8: SAMPLE, CAMERON
2. The principal diagnosis, printed in Box 67: J189
3. The second service line, printed on line 2 of the form: 0450, 99284, 1 unit, $580.00
An online demo of the Redix Workbench on sample claims, with time for your questions. You send us no file. See the whole form on the Redix demo.
Redix synthetic sample data. No patient information. Please keep patient information out of the request.
In this article:
Understanding the Two Formats
The mapping examples in this article show how 837I data corresponds to the UB-04 under the CMS and NUBC instructions. They are reference mappings for readers, not a record of any one map’s output, and they cover selected fields only. The segment examples are independent synthetic fragments for illustration (codes, names and dates are placeholders), not one complete or validated claim.
The UB-04 form uses numbered Form Locators (FLs) organized into sections:
- FL 1–11: Provider and patient identification
- FL 12–17: Admission and discharge information
- FL 18–28: Condition codes
- FL 29: Accident state
- FL 31–34: Occurrence codes and dates
- FL 35–36: Occurrence span codes and dates
- FL 38: Responsible party name and address
- FL 39–41: Value codes and amounts
- FL 42–49: Revenue code lines (up to 22 lines per page): revenue codes, descriptions, HCPCS/rates, service dates, units, and charges
- FL 50–65: Payer information (primary, secondary, tertiary)
- FL 66–81: Diagnosis, procedure, and provider information
FL 30 and FL 37 are not used.
The 837I organizes data into hierarchical loops:
- 2000A (Billing Provider) — the hospital or facility
- 2000B (Subscriber) — the insured person
- 2000C (Patient) — if different from subscriber
- 2300 (Claim) — institutional claim data
- 2400 (Service Line) — revenue code lines
Provider Information (FL 1–7)
FL 1: Billing Provider Name, Address, Phone
From the Billing Provider loop (2010AA), NM1 entity code “85”:
NM1*85*2*GENERAL HOSPITAL*****XX*1234567890~ N3*100 HOSPITAL DR*WING B~ N4*ANYTOWN*NV*89101~ PER*IC**TE*5551234567~
- FL 1 line 1: Provider name (NM103)
- FL 1 line 2: Street address (N301 + N302)
- FL 1 line 3: City, State ZIP (N401 + N402 + N403)
- FL 1 phone: From PER segment (qualifier “TE”)
FL 3a: Patient Control Number
CLM*PATIENT_ACCT_123*15000***11:A:1~
^^^^^^^^^^^^^^^^
FL 3a = CLM01FL 4: Type of Bill
A 4-digit code built from CLM05: a leading zero, then the two digits in CLM05-1 (type of facility and bill classification), then the claim frequency code in CLM05-3. CLM05-2 is a qualifier, not a Type of Bill digit:
CLM*ACCT123*15000***11:A:1~
^^ ^ ^
| | +-- CLM05-3: Claim frequency (1 = admit through discharge claim)
| +---- CLM05-2: Qualifier A (Uniform Billing Claim Form Bill Type), not a bill digit
+------- CLM05-1: Type of facility + bill classification (11)
FL 4 = "0" + "11" + "1" = 0111Common type of bill codes: 0111 (Hospital Inpatient), 0131 (Hospital Outpatient), 0321 (Home Health).
FL 5: Federal Tax ID
REF*EI*123456789~
^^^^^^^^^
FL 5 = REF02FL 6: Statement Covers Period
DTP*434*RD8*20250115-20250117~
^^^^^^^^ ^^^^^^^^
From ThroughPatient Information (FL 8–11)
When the patient is the subscriber (SBR02 = 18 in the Subscriber loop 2000B), patient data comes from the subscriber name loop (2010BA, NM1 entity code “IL”). When the patient is a dependent, it comes from the Patient loop (2000C) and its name loop (2010CA, NM1 entity code “QC”), with that loop’s own DMG segment.
FL 8a: Patient Identifier
The insured’s ID from the subscriber NM1 belongs in FL 60 (Insured’s Unique ID). FL 8a is for the patient’s own identifier, reported when it differs from the insured’s ID:
NM1*IL*1*DOE*JOHN****MI*MEMBER_ID~
^^^^^^^^^
FL 60 = NM109 (insured's ID)FL 8b: Patient Name
FL 8b = NM103 + ", " + NM104 + " " + NM105 (2010BA or 2010CA, as above)
FL 10: Patient Birth Date
DMG*D8*19550315*M~
^^^^^^^^
FL 10 = reformatted to MMDDYYYYFL 11: Patient Sex
DMG*D8*19550315*M~
^
FL 11 = M or FAdmission and Discharge (FL 12–17)
FL 12–13: Admission Date and Hour
DTP*435*DT*202501151430~
^^^^^^^^^^^^
CCYYMMDDHHMM: FL 12 = date, FL 13 = hour (14)FL 14: Admission Type
CL1*3*1*01~
^
FL 14 = CL101 (1=Emergency, 2=Urgent, 3=Elective, 4=Newborn)FL 15: Point of Origin for Admission or Visit
CL1*3*1*01~
^
FL 15 = CL102 (1=Non-health care facility point of origin,
2=Clinic or physician's office,
4=Transfer from a hospital, etc.;
newborn admissions use their own codes)FL 17: Patient Discharge Status
CL1*3*1*01~
^^
FL 17 = CL103 (01=Home, 02=Short-term hospital, 03=SNF, etc.)Revenue Lines (FL 42–49)
The UB-04 holds up to 22 revenue code lines per page (compared to 6 service lines on the CMS-1500). Each line maps to one 2400 loop in the 837I.
FL 42: Revenue Code
SV2*0450*HC:99283~
^^^^
FL 42 = SV201 (Revenue Code)Common revenue codes: 0120 (Room & Board Semi-Private), 0250 (Pharmacy), 0260 (IV Therapy), 0301 (Lab Chemistry), 0450 (Emergency Room).
FL 44: HCPCS/Rates
SV2*0450*HC:99283~
^^ ^^^^^
| HCPCS code
QualifierFL 45: Service Date
DTP*472*D8*20250115~
^^^^^^^^
FL 45 = Date of service for this revenue lineFL 46: Units of Service
SV2*0450*HC:99283*150.00*UN*1~
^
FL 46 = SV205 (units)FL 47: Total Charges
SV2*0450*HC:99283*150.00~
^^^^^^
FL 47 = SV203 (charges per revenue line)Line 23 carries the total charges (revenue code 0001); see Multi-Page Institutional Claims below for how the Redix layout handles more than 22 lines.
Payer Information (FL 50–65)
The UB-04 has three payer rows, A, B and C, in payment order (primary, secondary, tertiary). In the 837I, the destination payer (loop 2010BB, NM1 entity code “PR”) is the payer the claim is sent to, and SBR01 in the Subscriber loop (2000B) gives that payer’s sequence (P, S or T). Other payers come from the Other Subscriber loops (2320, with the payer name in 2330B), each with its own SBR01. A map places each payer in row A, B or C by its sequence, so the destination payer is not always row A.
FL 50A/B/C: Payer Name
NM1*PR*2*BLUE CROSS*****PI*12345~
^^^^^^^^^^
FL 50 = NM103, in row A, B or C by the payer's sequenceFL 56: Billing Provider NPI
NM1*85*2*GENERAL HOSPITAL*****XX*1234567890~
^^^^^^^^^^
FL 56 = NM109FL 58A/B/C: Insured’s Name
NM1*IL*1*DOE*JOHN****MI*MEMBER_ID~
^^^ ^^^^
FL 58 = "DOE, JOHN"FL 59A/B/C: Patient’s Relationship to Insured
| Source and Value | FL 59 |
|---|---|
| SBR02 = 18, no Patient loop 2000C | Self |
| PAT01 = 01 | Spouse |
| PAT01 = 19 | Child |
| PAT01 = other values | Other |
For the destination payer’s row, the relationship is Self when SBR02 = 18 in the Subscriber loop; for a dependent patient it comes from PAT01 in the Patient loop (2000C). The rows for other payers use the relationship in their own Other Subscriber loop (2320, SBR02).
Diagnosis and Procedure (FL 66–74)
FL 67: Principal Diagnosis Code
HI*ABK:S7290XA~
^^^^^^^
FL 67 = Principal diagnosisFL 67A–Q: Other Diagnosis Codes
Up to 17 additional diagnosis codes, in their own HI segment with qualifier ABF:
HI*ABK:S7290XA~
HI*ABF:M7981*ABF:Z87891~
^^^^^^^^^ ^^^^^^^^^^
FL 67A FL 67BFL 69: Admitting Diagnosis Code
HI*ABJ:R0789~
^^^^^
FL 69 = Admitting diagnosisFL 74: Principal and Other Procedure Codes
From HI segment with qualifiers BBR (principal) and BBQ (other):
HI*BBR:0SG00ZZ:D8:20250116~
^^^^^^^ ^^^^^^^^
ICD-10-PCS DateProvider Identification (FL 76–81)
FL 76: Attending Provider
From the Attending Provider loop (NM1 entity code “71”):
NM1*71*1*SMITH*ROBERT*J***XX*1234567890~
^^^^^ ^^^^^^ ^ ^^^^^^^^^^
Name NPIFL 77: Operating Provider
From NM1 entity code “72” — the surgeon for surgical claims.
Multi-Page Institutional Claims
Unlike the CMS-1500’s 6 lines, the UB-04 holds 22 revenue code lines per page. However, complex hospital stays can easily exceed this:
- A 5-day inpatient stay might have 50+ revenue lines (room, pharmacy, lab, radiology, supplies, etc.)
- The conversion engine handles pagination automatically
- Header information (FL 1–11, FL 38, FL 50–65) repeats on every page
- In the installed Redix UB-04 layout, line 23 shows the page number and the total number of pages on every page, and the charges total is printed on the last page only
That describes the layout’s output. Payer paper-claim instructions for multi-page claims differ, so check the payer’s instructions before submitting multi-page paper claims.
Key Differences from CMS-1500 Mapping
| Aspect | CMS-1500 (837P) | UB-04 (837I) |
|---|---|---|
| Form fields | 33 boxes | 81 form locators |
| Lines per page | 6 service lines | 22 revenue lines |
| Line procedure codes | CPT/HCPCS | Revenue codes + HCPCS |
| Provider types | Rendering + Referring | Attending + Operating + Other |
| Payer information | The insured’s plan, plus other insurance in Item 9 | 3 payer rows (A, B, C) in payment order |
| Diagnosis codes on the form | 12 (Item 21, A–L, 02/12 form); up to 4 pointers per service line | 18 (FL 67 and 67A–Q) |
| Inpatient procedure codes (ICD-10-PCS) | Not on form | Up to 6 (FL 74) |
Two PDF output methods. Redix supports two PDF output methods through the corresponding map packages; in the API, the method field selects method1 or method2 (the default). Method 2 produces a claim-data-only PDF without the form artwork, designed for use with preprinted UB-04 forms. Method 1 includes the form artwork and claim data together for review, sharing and archiving. Contact Redix to discuss the map package and printing setup for your workflow. For converting and archiving claim files locally, see the Redix Claims-to-PDF Workbench.
Conclusion
The 837I-to-UB-04 mapping is significantly more complex than its professional (837P/CMS-1500) counterpart. The UB-04 carries more diagnosis codes, supports three payers on a single form, includes surgical procedure codes, and has 22 revenue lines per page instead of 6.
Redix International has built data conversion software since 1994. The Redix PDF module has been used in production by large healthcare organizations, including Fortune 500 companies, for more than a decade. The mappings in this article show selected 837I-to-UB-04 correspondences under the CMS and NUBC instructions, as a reference; they are not a complete specification.
Frequently Asked Questions
How do you convert an 837I to a UB-04 form?
An 837I-to-UB-04 conversion maps data from X12 hierarchical loops and segments to the 81 form locators on the UB-04 (CMS-1450) form. Provider information comes from the 2010AA loop, patient data from NM1/DMG segments, revenue lines from SV2 segments in the 2400 loop, and diagnosis/procedure codes from HI segments. The mapped data is rendered onto a UB-04 PDF template at precise coordinates.
What is the difference between UB-04 and CMS-1500?
The CMS-1500 handles professional claims (837P) with 33 boxes and 6 service lines per page. The UB-04 handles institutional claims (837I) with 81 form locators and 22 revenue lines per page. The UB-04 supports up to 3 payers, 18 diagnosis codes, and ICD-10-PCS procedure codes — significantly more complex than the CMS-1500.
How many revenue lines fit on a UB-04 form?
The UB-04 holds up to 22 revenue code lines per page. Complex hospital stays can easily exceed this — a 5-day inpatient stay might have 50+ revenue lines covering room, pharmacy, lab, radiology, and supplies. The conversion engine handles pagination automatically, with header information repeating on every page.