diabetic-utils / getA1CCategory
getA1CCategory(
a1c,thresholds?):"normal"|"prediabetes"|"diabetes"|"invalid"
Defined in: a1c.ts:41
Returns the clinical category for an A1C value (normal, prediabetes, diabetes, or invalid). Uses ADA thresholds by default, but allows custom cutoffs for research or population-specific use.
number
A1C value (percentage)
Optional custom thresholds: { normalMax?: number; prediabetesMax?: number }
number
number
"normal" | "prediabetes" | "diabetes" | "invalid"
| ‘normal’ | ‘prediabetes’ | ‘diabetes’ | ‘invalid’ |