My son is a diabetic. I am creating a database to help me manage his disease.
He get's insulin through a pump that delivers "basal" insulin (small automatic injections spaced out to support basal metabolism) and "bolus" insulin (one time injections given at meal times). The insulin has a half-life of 81 minutes. To make things a bit more complicated a "bolus" can be "normal" (all insulin given at once) or "combo" (some insulin given up front & some given over time - like additional basal insulin). His pump can also deliver additional basal insulin.
Thus, total active insulin is a result of basal insulin, temp basal insulin, normal bolus insulin injections & the extended combo insulin. There is only one "combo" and one "temp basal" that can be active at any one time but there can be multiple "bolus" injections.
I have tables that store the basal, temp basal, and bolus information. Where I am needing help is in that I want to create a curve (chart) showing active insulin using the discreet inputs and a decay rate.
Any ideas on what would be the best way to approach this would be much appreciated.
He get's insulin through a pump that delivers "basal" insulin (small automatic injections spaced out to support basal metabolism) and "bolus" insulin (one time injections given at meal times). The insulin has a half-life of 81 minutes. To make things a bit more complicated a "bolus" can be "normal" (all insulin given at once) or "combo" (some insulin given up front & some given over time - like additional basal insulin). His pump can also deliver additional basal insulin.
Thus, total active insulin is a result of basal insulin, temp basal insulin, normal bolus insulin injections & the extended combo insulin. There is only one "combo" and one "temp basal" that can be active at any one time but there can be multiple "bolus" injections.
I have tables that store the basal, temp basal, and bolus information. Where I am needing help is in that I want to create a curve (chart) showing active insulin using the discreet inputs and a decay rate.
Any ideas on what would be the best way to approach this would be much appreciated.
Comment