---
title: "Query the patients detailed usage between the specified dates"
method: GET
path: "/reporting/{patient_id}/detailed_patient_usage_log"
tags: ["reporting"]
---

# Query the patients detailed usage between the specified dates

`GET /reporting/{patient_id}/detailed_patient_usage_log`

## Request

- Base URL: `https://api.rxfoodapp.com/api`
- URL: `https://api.rxfoodapp.com/api/reporting/{patient_id}/detailed_patient_usage_log`
- Auth: HTTP bearer

## Path parameters

- `patient_id` integer, required

## Query parameters

- `date_since` string, required: calendar date in format YYYY-MM-DD
- `date_until` string, required: calendar date in format YYYY-MM-DD

## Response `200`

successful operation

- DetailedPatientUsageLogResponse
  - `date_since` string, required: calendar date in format YYYY-MM-DD
  - `date_until` string, required: calendar date in format YYYY-MM-DD
  - `log_entries` DetailedPatientUsageLogRowResponse[]
    - `clarifai_result` SimplifiedClarifaiResponse[]
      - `food` string, required
      - `score` number, required
    - `created_time` string, date-time, required: calendar date in format YYYY-MM-DD
    - `food_name` string, nullable: food name in database
    - `ia_match_names` string, nullable: recorded matches to the food ontology database
    - `items_returned_to_user` string, nullable: results returned to the user
    - `log_type` 'photo_ffe' | 'nlp' | 'text' | 'photo' | 'meal_item' | 'photo_ffe_queue' | 'audio_queue' | 'nlp_queue' | 'audio_unassigned' | 'nlp_unassigned' | 'photo_unassigned', required
    - `meal_audio_id` integer, nullable: meal audio id
    - `meal_audio_url` string, nullable: meal audio url if available
    - `meal_photo_id` integer, nullable: meal photo id
    - `meal_photo_url` string, nullable: meal photo url if available
    - `nutrition_source` string, nullable: source of food nutrition data
    - `patient_id` integer, required
    - `search_text` string, nullable: Text search string
    - `third_party_match_names` string, nullable: recorded matches to third party databases
    - `updated_time` string, date-time: calendar date in format YYYY-MM-DD
    - `usda_match_names` string, nullable: recorded matches to the USDA database
  - `patient_id` integer, required

---

[API](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server.md) - [All operations](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/llms.txt) - [OpenAPI document](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/revisions/c3d8e22b22e8?raw)
