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

Testing X12 837P HI01-2: What Diagnosis Code Actually Needs to Handle

Jul 27, 2026 · 4 min read
← HI01-1 HI*ABK →

HI01-2 holds the actual ICD-10-CM code, and the single most common way test data gets this wrong isn't picking an invalid code — it's formatting a valid one incorrectly, because the decimal point that appears in every printed coding reference doesn't belong in the transmitted value.

Quick answer

HI01-2 is the second component of the composite element inside HI — it carries the ICD-10-CM diagnosis code itself, paired with the qualifier in HI01-1 that states what role that diagnosis plays on the claim.

What this element contains

Format
No decimal point — ICD-10-CM codes are transmitted without the decimal — E11.9 is sent as E119
Length
3 to 7 characters — ranges from a broad category code up to a fully specified code with extension characters
E119
Type 2 diabetes without complications — example value paired with an ABK or ABF qualifier
J45909
Unspecified asthma, uncomplicated — another example value showing the longer, more specific code format

Example

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

E119 and I10 are the two HI01-2 values in this claim — both transmitted without decimal points. Synthetic claim data.

Where this trips people up

Test data pulled from a coding reference or spreadsheet often still has the decimal point baked in, since that's how ICD-10-CM is printed and displayed everywhere except on the wire. A code like E11.9 sent as-is with the decimal isn't a plausible-but-wrong diagnosis — it's simply not a valid HI01-2 value, and most validation layers will reject the whole claim rather than just flagging the field, which makes it look like a bigger problem than a one-character formatting slip.

X12 837P HI Segment Guide: Fields, Format, and Testing Gotchas
EDI Rejection Codes: Complete List and How to Fix Them
How to Validate X12 EDI Files Before Payer Submission
Generate correctly formatted diagnosis codes automatically
Synthibase generates synthetic 837P claims with properly formatted ICD-10-CM codes in HI01-2 — no decimals, no invalid values, ready for payer submission testing.
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.