Giter Club home page Giter Club logo

rcturner7 / insulin-calculator2-meal-glucose-reading-and-sliding-scale- Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5 KB

This is part 2 with more advanced features to this Insulin Calculator. This calculator will not only figure your insulin for your meal with the sliding scale: carb/ units of insulin ratio. The calculator incorporates your glucose reading in blood. This means whatever level the user's glucose level is the calculator will reconfigure the amount of insulin to take based on glucose levels, the amount of carb intake, and carbs/ unit ratio of insulin.

Python 100.00%

insulin-calculator2-meal-glucose-reading-and-sliding-scale-'s Introduction

Insulin-Calculator2-Meal-Glucose-Reading-and-Sliding-Scale-

This is part 2 with more advanced features to this Insulin Calculator. This calculator will not only figure your insulin for your meal with the sliding scale: carb/ units of insulin ratio. The calculator incorporates your glucose reading in blood. This means whatever level the user's glucose level is the calculator will reconfigure the amount of insulin to take based on glucose levels, the amount of carb intake, and carbs/ unit ratio of insulin.

The scale I used to determine whether to take less insulin or more, or just the amount for meal based on blood glucose levels was; If the levels were lower than 70 take 35 carbs off the total carbs to eat in meal. The reason is when glucose levels are low the strategy is to intake 35 free carbs with no insulin for that to bring up glucose levels. Then you can just take insulin for the rest of carbs. The best way to do this is to normally intake 20 fast acting carbs, and the rest in slow acting carbs. Then if the levels were above 200 take 1 extra unit of insulin per 25 points after 200. I used the IF/elif/else functions to make this happen. This allowed me to give constraints in the range of every 25 points higher above glucose levels of 200 you add 1 unit per 25 points.

insulin-calculator2-meal-glucose-reading-and-sliding-scale-'s People

Contributors

rcturner7 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.