diabetes's People
diabetes's Issues
Action After Form Submission
The form should return to the form submission page after a form is submitted
Facebook and Yahoo Anwsers
All invalidd data inputs should be submitted to Yahoo answers for clarification. Also, we link to your personal facebook account often for no specific reason. For example, if they say cow, let them know where the nearest farm is, so they can buy future cows (Or cow futures). And we viciously steal their bank account info in the process. Social Security Number specifically b/c it's how we get to know people. STart a religion. acebook account often for no specific reason. For example, if they say cow, let them know where the nearest farm is, so they can buy future cows (Or cow futures). And we viciously steal their bank account info in the process. Social Security Number specifically b/c it's how we get to know people. STart a religion.
Multiple Form Submit
As of now, each form (BG, food, insulin) submits independently. It's redundant and awful design. Obviously, we need a submit button that will handle all forms simultaneously. It should not submit empty fields. It should handle fields with user data. Reading around, it sounds like we need stuff like Jquery and/or Ajax to do this?
A couple other form related notes:
- We need input checks/evaluation
- We need to decide how to handle data submission. This will be fluid as we transition to a AWS database, but do we have multiple csv's (bg.csv, food.csv, etc.) and merge those into a single source, or do we handle the merging on submission.
- As we move the data into tables, we need to figure out how to handle time between submissions. If we add a row for every minute, we will end up with 1000's of empty cells. Perhaps that's appropriate, perhaps not. When we're ready, I'll get with my old stats professor to discuss this.
Create Time Field
Add a time field to our form. If no time is specified, initialize it to the current time.
Basal Program Submission
In an insulin pump, there is a constant background basal rate which may change over the course of the day. For example, I have something like .6 IU(international units) of insulin from 10 p.m. to 7 a.m. then .8 IU from 7:01 a.m. to 9:59 p.m.
Send date/time with form
I think our best approach right now is to have a datetime-local
input in our form and set it's default value to the current time. That way, a user can specify a time in the past as well for logging late information.
Here's a rough snippet I've come up with to help.
First, the form input element:
<input type="datetime-local" id="time-input" name="time">
And later in the code, to set the default value to now:
<script>
var s = new Date().toISOString();
document.getElementById("time-input").defaultValue = s.slice(0, -5);
// NOTE: the slice was used to convert from the ISO string I was getting to a format used by the HTML element
// I'm not sure the ISO string format I was getting is always gauranteed across browsers
// This seems to work for me but should be flagged as something to change later to make sure it always works
</script>
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.