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

Testing X12 837P HI*ABF: What Other Diagnosis Code Actually Needs to Handle

Jul 27, 2026 · 4 min read
← HI*ABK

A claim with a dozen comorbidities behind the primary diagnosis is common in real patient populations, but a lot of test suites only ever generate one or two ABF composites — which means the code path for a claim carrying its full, near-maximum list of secondary diagnoses rarely gets exercised before go-live.

Quick answer

HI*ABF is a diagnosis composite in an 837P claim carrying qualifier ABF, used to state the ICD-10-CM code for a secondary or additional diagnosis — any relevant condition other than the single principal diagnosis.

What this element contains

HI01-1
ABF — the fixed qualifier value that marks this composite as an other/secondary diagnosis
HI01-2
The ICD-10-CM code — the specific diagnosis code, transmitted without a decimal point
Cardinality
Zero to several per claim — a claim can carry no ABF composites or several, up to the overall limit on diagnosis composites in HI

Example

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

ABF:I10 adds essential hypertension as a secondary diagnosis alongside the ABK-qualified principal diagnosis in this synthetic claim.

Where this trips people up

Because ABF composites are optional and repeatable, test data generators built around a single fixed-length template often hard-code just one or two, which means claims with a realistic comorbidity list — five, eight, or more secondary diagnoses — never show up in test coverage. When a real claim with that many diagnoses hits production, it can expose parsing or storage limits, like a system silently truncating the diagnosis list, that a thinner test set never caught.

X12 837P HI Segment Guide: Fields, Format, and Testing Gotchas
How to Test 837I Institutional Claims: A Complete Guide
How to Generate Synthetic X12 837 Test Data for EDI Go-Live Testing
Test claims with realistic comorbidity lists
Synthibase generates synthetic 837P claims with realistic numbers of HI*ABF secondary diagnoses, so comorbidity-heavy claims get tested before go-live, not after.
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.