Reference·HI Segment·HI*ABK
X12 837P Reference

X12 837P HI*ABK Field Guide: Principal Diagnosis Codes and Common Mistakes

Jul 27, 2026 · 4 min read
← HI01-2 HI*ABF →

A claim with two composites both qualified ABK doesn't get rejected for being malformed — it gets accepted, and then a payer's adjudication system has to guess which diagnosis was actually the primary reason for the visit, which usually doesn't go the provider's way.

Quick answer

HI*ABK is the first diagnosis composite in an 837P claim carrying qualifier ABK, used to state the ICD-10-CM code for the principal diagnosis — the condition that is the main reason for the patient encounter.

What this element contains

HI01-1
ABK — the fixed qualifier value that marks this composite as the principal diagnosis
HI01-2
The ICD-10-CM code — the specific diagnosis code, transmitted without a decimal point
Cardinality
Exactly one per claim — a claim should have one and only one ABK composite, and it should be the first one in the HI segment

Example

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

ABK:E119 states that type 2 diabetes without complications is the principal reason for this synthetic encounter, with I10 (essential hypertension) added as a secondary finding.

Where this trips people up

Synthetic or templated test data that assembles diagnosis lists by randomly sampling qualifiers rather than fixing ABK to the first composite can end up with zero ABK composites on some claims and two or more on others. Both cases parse cleanly, so the failure only becomes visible when medical necessity or risk-adjustment logic — which specifically keys off the single principal diagnosis — either finds nothing to key off of or has to arbitrarily pick between competing ABK composites.

X12 837P HI Segment Guide: Fields, Format, and Testing Gotchas
How to Reduce Claim Denials Through Better Pre-Submission Testing
What is X12 837P? Complete Format and Field Guide
Test principal-diagnosis logic with realistic claims
Synthibase generates synthetic 837P claims with exactly one correctly positioned HI*ABK composite per claim, so principal-diagnosis logic gets tested the way it actually needs to be.
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.