reporting

Query the patients detailed usage between the specified dates

Changed on
get/reporting/patient/{patient_id}/fasting_report

Request

  • Base URL
    https://api.rxfoodapp.com/api
  • URL
    https://api.rxfoodapp.com/api/reporting/patient/{patient_id}/fasting_report
  • Auth
    HTTP bearer

Path parameters

patient_idinteger required

Query parameters

date_sincestring required

calendar date in format YYYY-MM-DD

Example:2020-05-02
date_untilstring required

calendar date in format YYYY-MM-DD

Example:2020-05-12
ignore_fasting_entriesboolean

whether meal items of "fasting" should be ignored

Response

successful operation

date_sincestring required

calendar date in format YYYY-MM-DD

date_untilstring required

calendar date in format YYYY-MM-DD

fasting_avgnumber

avg of difference between first meal of the day and the last meal of the previous day

fasting_maxnumber

max of difference between first meal of the day and the last meal of the previous day

fasting_mediannumber

median of difference between first meal of the day and the last meal of the previous day

fasting_minnumber

min of difference between first meal of the day and the last meal of the previous day

n_days_skippedinteger

number of days not included in the date range, generally due to missed logging days

overnight_fasting_avgnumber

includes fast starting and ending on different days

overnight_fasting_maxnumber

includes fast starting and ending on different days

overnight_fasting_mediannumber

includes fast starting and ending on different days

overnight_fasting_minnumber

includes fast starting and ending on different days

patient_idinteger required
unitstring

unit of calculation

Changes

    • info

      added the optional property ////// to the response with the status

    • info

      added the optional property ////// to the response with the status