Health Target is a mobile health app that makes it easy for users to track the foods they eat and activities they do, alongside health markers like allergic reactions, autoimmune responses, other health symptoms, and mood as well as to analyze these data points to help make healthier choices.
- Node.js
- Express.js
- Mongodb
- Mongoose
date - Specific date for a day list
sdate/edate - Start date/end date - returns day lists within range
food - Food item to search lists for, returns all days with that food (can be combined with sdate/edate and symptom)
symptom - Symptom to search lists for, returns all days with symptom (can be combined with sdate/edate and food)
tag - Tag of food items - returns all days where tag is present in food lists (can be combined with sdate/edate)
id - unique Day List Id - returns specific Day List
foodid - unique Food Item id - returns specific Day List where food item is listed
symptomid - unique Symptom id - returns specific Day List where symptom was listed
Example:
/api/daylists/?sdate=7/1/2018&edate=7/5/2018&food=donuts
/api/daylists/?sdate=7/1/2018&edate=7/5/2018&tag=gluten
/api/daylists/?symptom=Pain
/api/daylists/?symptom=Gas&food=donuts
/api/daylists/?foodid=5b466467a474db6bc4d9146b
Notes:
User must be logged in, all data returned will be based on user's id, Optional fields may be empty.
Returns day lists with 48hrs of each day of symptom, a combined food list of all foods eaten within 48hr of the symptom, and indvidual counts of how often a food was eaten prior to symptom.
symptom - must include a symptom query
to do - date ranges for overall search, and period of time prior to symptom -24, 48 etc