get_iob
Determine current Insulin on Board (IOB) by factoring recent insulin doses and DIA to guide insulin dosing.
Instructions
Calculate the current Insulin on Board (IOB) - the amount of active insulin still working in the body. Uses recent insulin doses from the logbook and calculates decay based on Duration of Insulin Action (DIA). Useful for dosing decisions and understanding current insulin activity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dia | No | Duration of Insulin Action in hours (how long insulin remains active). Default is 4 hours. Typical range: 3-5 hours depending on insulin type. | |
| includeBasal | No | Whether to include basal insulin in IOB calculation. Default is false (only bolus/correction insulin). |