Reports
One-call clinical reports composed from the whole engine.
1 function
Generated from the source TSDoc — every signature, parameter, and example is the real thing.
analyzeGlucose
analyzeGlucose(readings: GlucoseReading[], options?: AnalyzeGlucoseOptions): AnalyzeGlucoseResultProduces a comprehensive clinical report from glucose readings in one call.
| Parameter | Description |
|---|---|
readings | Glucose readings with ISO 8601 timestamps |
options | Unit, time zone, profile toggle, and sufficiency thresholds |
Returns — A typed report; valid: false when there are no in-range readings
const report = analyzeGlucose(readings, { timeZone: 'America/New_York' })
report.timeInRange?.inRange.percentage // 72.5
report.gmi // 6.8
report.agpProfile?.bins // 288 time-of-day bins