Magikcraft / insulin-engine

Naive implementation of insulin and blood glucose interaction, for educational purposes.
https://www.magikcraft.io/minecraft-for-type-1-diabetes
1 stars 2 forks source link

Insulin Absorption Rate #6

Open Nelyx opened 7 years ago

Nelyx commented 7 years ago

Insulin itself doesnt absorb and react immediately. Instead, it has a ramp up time and a total absorption time. For example, insulin injected may not start having an effect for 15 minutes, while still needing 60 minutes to be fully absorbed, during which the rate of absorption could be modeled as being fairly linear. (its a little more complicated than that, but that might complicate playability). In Minecraft terms, this might mean a delay of 250 ticks after taking the insulin, and then an effect time of 1000 ticks, at a rate of 1% per 10 ticks.

jwulf commented 7 years ago

Insulin absorption rate is a magic number.

It is slightly different for everyone.

It's affected by activity. Running makes it higher.

Check out this article: http://www.stuff.co.nz/national/health/86704457/a-type-one-diabetic-shares-his-top-toknow-list-for-living-with-the-disease