Code Monkey home page Code Monkey logo

hmi's Introduction

How Much Insulin

Tells you how much insulin to take based on current blood glucose reading and grams of carbs you're about to ingest, according to a user configuration for each time of the day.

Sections of this file:

  • Current state
  • Info for non-diabetics
  • Contributing

Screenshot of the home screen

Current state

We have an MVP but it's not published anywhere. This has fixed intervals (configuration for every two hour interval in a day) and some usability issues. I'm working on a redesign which should not be complicated, but here are the main ideas I look forward to implementing:

  • Special introduction the first time someone opens the app
  • Take user to the settings page (instead of home) if it's the first time using the app
  • Undo button on the settings page
  • Lock settings (press an "edit" button or something to enable editing)
  • Variable time intervals
  • Export settings to a PDF
  • "About" button at the settings tab which shows short information about the app (version etc), a link to this github page, and a list of the contributors

As soon as I'm finished with the redesign concept I'll update this to enable other people to help.

Info for non-diabetics

Peple of Type 1 Diabetes must usually count carbs. This means estimating how many grams of carbohydrates there are in a meal and then taking insulin to prevent blood sugar spikes after eating. Besides carbs, it's also important to take into account current blood glucose, taking more insulin for high blood sugars and less insulin for low blood sugars.

The amount of insulin one takes to deal with blood glucose and carbohydrates varies from person to person and from situation to situation (after exercising most people take less insulin than usual), but the calculation is the same:

I = BG÷SF + CH÷IC

Where I is the amount of insulin to take, BG is the measured blood glucose, SF is the sensibility factor (as in, sensibility of BG to insulin), CH is the amount of carbohydrates about to be ingested and finally IC is an insulin-carbohydrate ratio.

So, all of this so you could understand what this app does. The user saves the SF and IC values for different times of the day, and then whenever they're about to take insulin they input current BG and CH, thus receiving as output the amount of insulin. The configuration phase takes about 2 minutes the first time you install the app, then a couple of seconds every time your doctor tells you to change something. The main function, which is calculating how much insulin to take and is to be used about 6-12 times a day, takes about 5 seconds.

Contributing

Check CONTRIBUTING.md for more information.

hmi's People

Contributors

agsu77 avatar almeidaraul avatar bfmonique avatar ctcdnightmare avatar dand16 avatar gcoro avatar princezna avatar syarol avatar tititesouris avatar tubacase avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

hmi's Issues

Translate to other languages

To help translate the app, go to assets/strings.js and copy and paste the whole "en_US" object. Change "en_US" to the LCID of the language you'll be translating the app to (check your language's LCID here).

So if you're translating to Korean, for an example, assets/strings.js would look like this:

const content = {
    "en_US": {
        ...
    },
}

And you'd change it to:

const content = {
    "en_US": {
        ...
    },
    "ko": {
        ...
    },
}

Notes on a few items that might not be clear:

  • bg: blood glucose
  • carbs: carbohydrates
  • carb_insulin: carbohydrate-insulin factor

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.