diabetic-utils

diabetic-utils


diabetic-utils / estimateGMI

Function: estimateGMI()

estimateGMI(valueOrOptions, unit?): number

Defined in: conversions.ts:89

Estimate Glucose Management Indicator (GMI) from average glucose.

Parameters

valueOrOptions

Glucose value, string, or options object

string number EstimateGMIOptions

unit?

GlucoseUnit

Glucose unit (if value is a number)

Returns

number

GMI value

Throws

If unit is required but not provided when input is a number.

Throws

If the glucose unit is unsupported.

Throws

If the glucose value is not a positive number.

See

https://diatribe.org/glucose-management-indicator-gmi