QTY02 in X12 835: A Field Guide to Quantity
QTY02 looks like the simplest field in the segment — it is just a number. That simplicity is exactly why it gets tested carelessly: no label, no units, nothing to validate against except whatever QTY01 said it counts.
QTY02 is the numeric quantity value paired with the qualifier in QTY01. It can be a whole number or a decimal, and it carries no unit label of its own — its meaning is entirely dependent on the qualifier code that precedes it, whether that is a day count, a unit count, or another quantity type the payer is reporting.
What this element contains
Example
A synthetic QTY02 value of 5, meaning five covered days given the CA qualifier in QTY01.
Where this trips people up
Because QTY02 has no unit suffix in the raw segment, test data generators sometimes populate it with values that do not make sense for the paired qualifier — a covered-day count of 400 on a short inpatient stay, for instance — and a parser that only checks numeric formatting will accept it without complaint. Synthetic test files should keep QTY02 plausible relative to the claim's actual length of stay or service context, or the downstream validation rules that are supposed to catch unrealistic counts never get a chance to fire.