Coder Social home page Coder Social logo

myhealthtargetapi's Introduction

Health Target API

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.

Technology Used

  • Node.js
  • Express.js
  • Mongodb
  • Mongoose

API

Method: daylists

Returns day lists for a given query.
User must have auth token to run queries

Optional Arguments:

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.

Method: daylists/getcauses/

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.
User must have auth token to run queries

Argument:

symptom - must include a symptom query

Optional Arguments:

to do - date ranges for overall search, and period of time prior to symptom -24, 48 etc

myhealthtargetapi's People

Contributors

mikedolan03 avatar

Watchers

James Cloos avatar  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.