diabetic-utils / getGlucoseLabel
getGlucoseLabel(
val,unit,thresholds?):"normal"|"low"|"high"
Defined in: glucose.ts:62
Returns a clinical glucose status label (‘low’, ‘normal’, or ‘high’) based on thresholds for the given unit. Used for clinical charting, alerts, and reporting.
number
Glucose value (number)
GlucoseUnit = MG_DL
Glucose unit (‘mg/dL’ or ‘mmol/L’), default: ‘mg/dL’
Optional custom thresholds for hypo/hyper ({ hypo?: { mgdl?: number; mmoll?: number }, hyper?: { mgdl?: number; mmoll?: number } })
{ mgdl?: number; mmoll?: number; }
number
number
{ mgdl?: number; mmoll?: number; }
number
number
"normal" | "low" | "high"
‘low’, ‘normal’, or ‘high’ based on clinical thresholds
https://www.diabetes.co.uk/diabetes_care/blood-sugar-level-ranges.html