Reference·HI Segment·HI01-1
X12 837P Reference

Understanding X12 837P HI01-1: Code List Qualifier Code in Practice

Jul 27, 2026 · 4 min read
HI01-2 →

HI01-1 is two characters wide and easy to overlook, but it's the only thing telling the payer's system whether the code sitting right next to it is the principal reason for the visit or an incidental secondary finding. Get it wrong and the diagnosis code itself can be perfectly valid and still land in the wrong role.

Quick answer

HI01-1 is the first component of the composite element inside HI — a short code that states what kind of diagnosis the paired value represents, such as principal diagnosis, other diagnosis, or admitting diagnosis.

What this element contains

ABK
Principal ICD-10-CM Diagnosis — used in the first diagnosis composite to mark the primary reason for the encounter
ABF
Other ICD-10-CM Diagnosis — used in every subsequent composite that carries a secondary or additional diagnosis
ABJ
Admitting Diagnosis — records the diagnosis noted at admission, when it differs from the principal diagnosis reported later
Position matters
Only one ABK per claim — a claim should carry exactly one principal-diagnosis composite; everything else uses ABF or a more specific qualifier

Example

Synthetic example Generated by Synthibase
HI*ABK:E119*ABF:I10*

ABK and ABF are the two HI01-1 values in this claim — the first marks E119 as principal, the second marks I10 as a secondary finding. Synthetic claim data.

Where this trips people up

A test file generated by rotating through a fixed list of qualifiers without regard to composite position can easily assign ABK to something other than the first diagnosis, or repeat ABK across multiple composites. The segment still parses without complaint, so the bug only shows up once claims start failing medical necessity checks or risk-adjustment logic that specifically looks for the single principal-diagnosis composite.

X12 837P HI Segment Guide: Fields, Format, and Testing Gotchas
What is X12 837P? Complete Format and Field Guide
How to Validate X12 EDI Files Before Payer Submission
Test every diagnosis qualifier combination
Synthibase generates synthetic 837P claims with correctly assigned HI01-1 qualifiers, so principal-diagnosis logic gets exercised the same way it will be in production.
Start free trial →
This page is written independently by Synthibase for testing and informational purposes. It is not an official publication of HL7 International or X12/Washington Publishing Company, and is not a substitute for reviewing the official standard or your trading partner's companion guide. See our Terms of Service for full legal terms.