diabetic-utils

diabetic-utils


diabetic-utils / isHypo

Function: isHypo()

isHypo(val, unit, thresholds?): boolean

Defined in: glucose.ts:24

Checks if a glucose value is clinically hypoglycemic for the given unit. Used for detecting low glucose events in clinical analytics and reporting.

Parameters

val

number

Glucose value (number)

unit

GlucoseUnit = MG_DL

Glucose unit (‘mg/dL’ or ‘mmol/L’), default: ‘mg/dL’

thresholds?

Optional custom thresholds ({ mgdl?: number; mmoll?: number })

mgdl?

number

mmoll?

number

Returns

boolean

True if value is below clinical hypoglycemia threshold

See

https://www.diabetes.co.uk/diabetes_care/blood-sugar-level-ranges.html