diabetic-utils / calculateTIR
calculateTIR(
readings
,target
):TIRResult
Defined in: tir.ts:13
Calculates clinical Time in Range (TIR) metrics for glucose readings. Returns the percentage of readings in, below, and above the specified clinical target range.
Array of glucose readings to analyze
Object specifying the target range ({ min, max })
number
number
Object with in-range, below-range, and above-range percentages
https://care.diabetesjournals.org/content/42/8/1593