Convert HIPAA 837P Claims to CMS-1500 Form

The CMS-1500 is the standard paper claim form for professional healthcare services. The HIPAA 837P is its electronic equivalent. If you work in healthcare IT, you have almost certainly needed to convert between the two — for auditing, provider review, or archival. This article is a guide to selected CMS-1500 fields and the 837P segments they come from. It is not a complete field-by-field specification; many form items 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 837P claim file, as your billing system writes it. Three of the 76 segments in the sample file:

(1) NM1*QC*1*SAMPLE*RILEY~
(2) HI*ABK:M25512*ABF:M6281*ABF:M25521*ABF:R29898~
(3) SV1*HC:97110:GP*72.00*UN*2***1:2:3:4~

After: the same claim on the CMS-1500 form.

Box 2 of the CMS-1500 form, Patient's Name, reading SAMPLE, RILEY.

1. The patient's name, printed in Box 2: SAMPLE, RILEY

Box 21 of the CMS-1500 form with four diagnosis codes: A M25512, B M6281, C M25521, D R29898. ICD indicator 0.

2. The diagnosis codes, printed in Box 21: M25512, M6281, M25521, R29898

Service line 1 in Box 24 of the CMS-1500 form: dates 11 03 26, place of service 11, procedure 97110 GP, diagnosis pointer ABCD, charges 72 00, units 2, rendering provider NPI 1234567893.

3. The first service line, printed in Box 24: 97110 GP, $72.00, 2 units

Request a 15-minute demo

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.

Understanding the Two Formats

The mapping examples in this article show how 837P data corresponds to the CMS-1500 under the NUCC 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 short synthetic fragments for illustration, not complete or validated claims.

The CMS-1500 form has 33 numbered boxes (with many sub-boxes), organized into three sections:

  • Boxes 1–13: Patient and insured information
  • Boxes 14–23: Condition and authorization details
  • Boxes 24a–24j: Service line details (up to 6 lines per page)
  • Boxes 25–33: Provider and billing information

The 837P transaction organizes the same data into hierarchical loops:

  • 2000A (Billing Provider)
  • 2000B (Subscriber) — the insured person
  • 2000C (Patient) — if different from subscriber
  • 2300 (Claim) — one per claim
  • 2400 (Service Line) — one per procedure/service

The challenge is that the 837P spreads data across multiple loops and segments, while the CMS-1500 presents everything on a single page. A conversion engine must gather data from different levels of the hierarchy and place it in the correct box.

Patient and Insured Information (Boxes 1–13)

Box 1: Insurance Type

Box 1 shows the type of health insurance coverage for the claim. The 837P has no element that copies these checkboxes one to one. The usual source is the claim filing indicator code in SBR09 of the Subscriber loop (2000B), and a map applies a rule to choose the checkbox. The X12 codes and the Box 1 checkboxes are separate lists, so payer instructions decide the cases that do not line up:

SBR09 Value X12 Meaning CMS-1500 Box 1 Checkbox (typical rule)
MBMedicare Part BMedicare
MCMedicaidMedicaid
CHCHAMPUS (TRICARE)TRICARE
VAVeterans Affairs PlanCHAMPVA
HM, BL, CI and other commercial or managed-care codesHMO, Blue Cross/Blue Shield, commercial insurance and similar plansGroup Health Plan or Other, depending on the plan and payer instructions
OFOther Federal ProgramDepends on the program (for example, FECA Black Lung), per payer instructions

The CMS-1500 map installed on the Redix demo server, for example, marks Medicare for MB, Medicaid for MC, TRICARE for CH, CHAMPVA for VA, Group Health Plan for HM, and Other for any other code.

Box 1a: Insured’s ID Number

Extracted from the subscriber’s NM1 segment (entity code “IL”):

NM1*IL*1*LASTNAME*FIRSTNAME*MI***MI*MEMBER_ID~
                                      ^^^^^^^^
                                    Box 1a = NM109

Box 2: Patient’s Name

If the patient is the subscriber (relationship Self: SBR02 = 18 in the Subscriber loop 2000B, with no Patient loop 2000C), the patient name is copied from the subscriber’s NM1 (loop 2010BA, entity code “IL”). If the patient is a dependent, it comes from the Patient Name loop (2010CA), NM1 entity code “QC”:

NM1*QC*1*DOE*JANE*M~
         ^^^ ^^^^ ^
         Box 2 = "DOE, JANE M"

Box 3: Patient’s Birth Date and Sex

From the DMG segment in the Patient loop (2010CA) or Subscriber loop (2010BA):

DMG*D8*19850315*F~
       ^^^^^^^^  ^
       DOB        Sex (M/F)

The date requires reformatting from CCYYMMDD to MM/DD/YYYY.

Box 4: Insured’s Name

Same source as Box 1a — the NM1 segment with entity code “IL”:

Box 4 = NM103 + ", " + NM104 + " " + NM105
      = "DOE, JOHN A"

Box 5: Patient’s Address

From the N3 and N4 segments following the patient’s NM1:

N3*123 MAIN ST*APT 4~
N4*ANYTOWN*NV*89101~

Maps to: Street (Box 5 line 1), City, State, ZIP.

Box 6: Patient’s Relationship to Insured

From SBR02 when the patient is the subscriber, or from the PAT segment in the Patient loop (2000C) when the patient is a dependent:

Source and Value CMS-1500 Box 6
SBR02 = 18 (Self), no Patient loop 2000CSelf
PAT01 = 01Spouse
PAT01 = 09, 10, 17, 19Child
PAT01 = all othersOther

HL03 alone does not decide this. Every claim has a subscriber level (HL03 = “22”); a dependent’s claim adds a patient level (HL03 = “23”, loop 2000C) whose PAT01 gives the relationship. Box 6 = Self when SBR02 = 18 and there is no patient level.

Box 9: Other Insured’s Name

From the Other Subscriber Information loop (2320) and its Other Subscriber Name loop (2330A), NM1 entity code “IL”:

Box 9 = NM103 + ", " + NM104 + " " + NM105

Box 10a–c: Related Causes

These checkboxes come from the CLM segment’s related causes field (CLM11):

CLM11 Component Condition CMS-1500 Box
EMEmploymentBox 10a = Yes
AAAuto AccidentBox 10b = Yes
OAOther AccidentBox 10c = Yes

The state code for auto accidents appears in CLM11:04, mapped to Box 10b’s state field.

Box 11: Insured’s Group Number

SBR*P*18*GROUP_NUMBER******BL~
         ^^^^^^^^^^^^
         Box 11 = SBR03

Box 11d: Is There Another Health Benefit Plan?

If a secondary payer loop (2320) exists: Yes. Otherwise: No.

Condition and Clinical Details (Boxes 14–23)

Box 14: Date of Current Illness/Injury/Pregnancy

From the DTP segment in the Claim loop (2300):

DTP01 Qualifier Meaning Box 14 Qualifier
431Onset of Current Symptoms or Illness431
484Last Menstrual Period484

An accident date (DTP01 = 439) is not a Box 14 date. Under the NUCC instructions it is reported in Box 15 (Other Date) with qualifier 439.

Box 16: Dates Patient Unable to Work

Two DTP segments:

DTP*360*D8*20250101~    Disability Begin → Box 16 From
DTP*361*D8*20250115~    Disability End   → Box 16 To

Box 17: Name of Referring Provider or Other Source

Box 17 holds one provider, with a qualifier to the left of the name: DN (referring provider), DK (ordering provider) or DQ (supervising provider). The referring provider comes from the Referring Provider loop (2310A), NM1 entity code “DN”; ordering and supervising providers come from their own NM1 loops (entity codes “DK” and “DQ”). The NUCC instructions enter the name as first name, middle initial, last name:

NM1*DN*1*SMITH*ROBERT*J***XX*1234567890~
Box 17 qualifier = DN
Box 17 name      = "ROBERT J SMITH"

Box 17b: NPI of the Box 17 Provider

Box 17b = NM109 (when NM108 = "XX" for NPI)

Box 18: Hospitalization Dates

DTP*435*D8*20250101~    Admission → Box 18 From
DTP*096*D8*20250105~    Discharge → Box 18 To

Box 21: Diagnosis Codes

From the HI segment in the Claim loop:

HI*ABK:J0190*ABF:R0600*ABF:J4520*ABF:Z8739~
     ^^^^^^   ^^^^^^    ^^^^^^    ^^^^^^
     Diag 1   Diag 2    Diag 3    Diag 4

The qualifier ABK indicates the principal diagnosis; ABF indicates additional diagnoses. ICD-10 codes are placed in Box 21, positions A through L (up to 12 diagnosis codes on the 02/12 form).

Box 23: Prior Authorization Number

REF*G1*AUTH_NUMBER~
       ^^^^^^^^^^^
       Box 23 = REF02

Service Lines (Box 24)

The CMS-1500 form holds up to 6 service lines per page. Each line maps to one 2400 loop (LX segment) in the 837P. Claims with more than 6 lines span multiple pages.

Box 24a: Date of Service (From/To)

DTP*472*D8*20250115~           Single date → From and To are the same
DTP*472*RD8*20250115-20250117~  Date range → From/To differ

Box 24b: Place of Service

Box 24b = SV105 (if present), otherwise CLM05:01

Standard place of service codes: 11 (Office), 21 (Inpatient Hospital), 22 (Outpatient Hospital), etc.

Box 24d: Procedures/Services/Supplies (CPT/HCPCS)

The SV1 segment carries the procedure code and up to 4 modifiers:

SV1*HC:99213:25:GT*150*UN*1***1:2~
       ^^^^^ ^^ ^^
       CPT   Mod1 Mod2
  • Box 24d column 1 = SV101:02 (CPT/HCPCS code)
  • Box 24d columns 2–5 = SV101:03 through SV101:06 (modifiers)

Box 24e: Diagnosis Pointer

Links the service line to diagnosis codes in Box 21. The 837P sends numeric pointers (1 to 12) in SV107; the paper form shows the matching Box 21 letters (A to L):

SV107 = 1:2    → Points to the 1st and 2nd codes in HI
Box 24E = AB   → The Box 21 letters of those codes

Box 24f: Charges

SV102 = 150.00  → $150.00

Box 24g: Days or Units

SV104 = 1       → 1 unit of service

Box 24j: Rendering Provider NPI

From the Rendering Provider loop (2420A) within each service line, or inherited from the claim-level rendering provider (2310B):

NM1*82*1*JONES*MARY****XX*9876543210~
                          ^^^^^^^^^^
                          Box 24j = NPI

Provider and Billing Information (Boxes 25–33)

Box 25: Federal Tax ID (SSN or EIN)

From the Billing Provider loop (2010AA):

NM1*85*2*CLINIC NAME*****XX*1234567890~
REF*EI*123456789~    → EIN (Box 25, "EIN" checkbox)
REF*SY*123456789~    → SSN (Box 25, "SSN" checkbox)

Box 26: Patient’s Account Number

Box 26 = CLM01 (Claim Submitter's Identifier)

Box 28: Total Charges

On a single-page claim, the total of the line charges in Box 24F, which normally equals the claim total in CLM02. For claims longer than one page, see Multi-Page Claims below.

Box 32: Service Facility

If a Service Facility loop (2310C) exists:

NM1*77*2*HOSPITAL NAME*****XX*NPI~
N3*456 OAK AVE~
N4*CITY*ST*ZIP~

If no service facility is present, defaults to the Billing Provider information.

Box 33: Billing Provider

From the Billing Provider loop (2010AA):

NM1*85*2*MEDICAL GROUP*****XX*1234567890~
N3*789 PINE ST*SUITE 200~
N4*CITY*ST*ZIP~
PER*IC**TE*5551234567~

Multi-Page Claims

The CMS-1500 form only holds 6 service lines per page. Claims with more than 6 procedures require multiple pages. The conversion engine handles this by:

  1. Counting total service lines (LX segments)
  2. Calculating pages needed: ceil(line_count / 6)
  3. Printing header/patient info on every page
  4. Splitting service lines across pages (lines 1–6 on page 1, 7–12 on page 2, etc.)
  5. Showing in Box 28, on each page, the total of the charges printed on that page (this is how the CMS-1500 map installed on the Redix demo server totals pages)

How a multi-page paper claim must be totalled is set by the NUCC instructions and by each payer, so check the payer’s paper-claim rules rather than assuming every page carries the claim total.

PDF Generation

The final step is rendering the mapped data onto an actual CMS-1500 form template. The Redix engine uses its built-in PDF functions to:

  1. Import a blank CMS-1500 template (red or black version)
  2. Position each mapped value at exact X,Y coordinates on the form
  3. Handle checkbox fields (insurance type, sex, yes/no) by placing “X” at the correct position
  4. Generate one PDF file per claim
  5. Create an index file tracking claim numbers, patient names, and output filenames

This produces CMS-1500 forms directly from 837P data — no manual re-entry of claim data.

Printing on paper. A PDF is not yet a printed claim. The Redix Claims-to-PDF Workbench offers two output methods for CMS-1500 printing: Method 2, a claim-data-only PDF without the form artwork, for printing onto appropriate preprinted forms; and Method 1, a full-form PDF with the form artwork and claim data together, useful for review, sharing, and archiving (whether a blank-paper printout is accepted for submission depends on the payer). For supported layouts it checks claim-data placement before printing and holds a job when a required check detects overflow or cannot complete; a held job states the reason. Physical alignment and each payer’s requirements still need to be validated.

Setting up a CMS-1500 printer. The Workbench builds a profile for each printer setup from two synthetic sample pages scanned in color at 300 dpi or higher. Compare the scan with the predicted correction, save the profile with Undo available, then verify the result on paper. Redix has checked this workflow on paper with the Brother MFC-L3760CDW, Brother HL-L3270CDW and HP LaserJet 4730. Other printers need their own setup and paper check. A PDF printed outside the Workbench keeps its converted field positions but does not receive the printer’s whole-page calibration or the Workbench’s pre-print checks.

Automating Claim Form Generation

Healthcare systems often receive claims in X12 837 format but need human-readable claim forms for auditing, review, or archival. Manual data entry from 837 files into CMS-1500 forms is error-prone and time-consuming.

Redix integration tools automatically generate CMS-1500, UB-04, and ADA J400 forms from incoming 837 transactions. The conversion runs in batch or through the REST API, with no manual re-entry of claim data. For example, an 837P file with 500 claims that convert successfully produces 500 individually rendered CMS-1500 PDFs with a companion index file.

For operators who work through whole folders, the Claims-to-PDF Workbench, a Windows add-on to the Redix V9.2 engine, runs the same conversion locally, keeps each converted claim with its original EDI in a searchable archive, and exports audit-support packages.

Conclusion

Mapping HIPAA 837P to CMS-1500 is a solved problem — but it is not a simple one. The hierarchical structure of X12, the conditional logic for subscriber vs. patient, the multi-page handling for large claims, and the precise coordinate-based PDF rendering all require careful engineering.

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 mapping examples in this article show selected 837P-to-CMS-1500 correspondences, as a reference; they are not a complete specification.

Frequently Asked Questions

How do you convert an 837P to a CMS-1500 form?

An 837P-to-CMS-1500 conversion maps data from X12 hierarchical loops and segments to the 33 numbered boxes on the CMS-1500 form. Patient demographics come from NM1/DMG segments, diagnosis codes from HI segments, service lines from SV1 segments in the 2400 loop, and provider information from the 2010AA billing provider loop. The mapped data is then rendered onto a CMS-1500 PDF template at precise coordinates.

What happens when an 837P claim has more than 6 service lines?

The CMS-1500 form holds a maximum of 6 service lines per page. Claims with more than 6 procedures span multiple pages. The conversion engine calculates the number of pages needed, prints header and patient information on every page, splits service lines across pages, and (in the installed Redix CMS-1500 map) shows the total of each page’s charges in Box 28. Payer rules for totalling multi-page paper claims vary.

Where do diagnosis codes appear on the CMS-1500 form?

Diagnosis codes appear in Box 21. They are extracted from the HI segment in the 837P claim loop (2300). The qualifier ABK indicates the principal diagnosis and ABF indicates additional diagnoses. ICD-10 codes are placed in Box 21, positions A through L (up to 12 diagnosis codes on the 02/12 form), and each service line in Box 24E references them using diagnosis pointers (A through L).

Can you automate CMS-1500 generation from 837P files?

Yes. The Redix engine converts 837P files to CMS-1500 PDFs automatically via REST API or batch processing. For example, an 837P file with 500 claims that convert successfully produces 500 individually rendered CMS-1500 PDFs with a companion index file, with no manual re-entry of claim data.

See 837 Claims as Claim Forms

The Redix demo shows sample CMS-1500 and UB-04 claim forms and an 835 payment report, each with its source file and downloads. The demo shows Redix synthetic samples only. To see your own claim types, ask Redix for a demo.

Published by Redix International, Inc. — Healthcare data conversion since 1994.