patient

Get all-time patient meal stats with optional bounded meal-window facts.

get/patients/{patient_id}/stats

Path parameters

patient_idinteger required

Query parameters

today_isostring date

patient-local calendar date; must be supplied with limit

Example:2026-08-31
limitinteger

bounded meal count normalized to 1..500 using meals-table complete-day semantics; must be supplied with today_iso

Example:60

Response

successful operation

logged_meal_dates_in_windowstring[]
meal_count_in_windowinteger
meal_count_today_in_windowinteger
patient_idinteger required
total_days_loggedinteger required
total_meals_loggedinteger required

Changes

Changed in 2 of the 15 revisions of this API.7

    • ○

      added the optional property to the response with the status

      response-optional-property-added

    • ○

      added the new optional query request parameter limit

      new-optional-request-parameter

    • ○

      added the new optional query request parameter today_iso

      new-optional-request-parameter

    • ○

      added the non-success response with the status

      response-non-success-status-added

    • ○

      added the optional property to the response with the status

      response-optional-property-added

    • ○

      added the optional property to the response with the status

      response-optional-property-added

    • ○

      added the optional property to the response with the status

      response-optional-property-added