---
title: "Get list of rdis for the patient"
method: GET
path: "/patients/{patient_id}/patient_rdi"
tags: ["patient"]
---

# Get list of rdis for the patient

`GET /patients/{patient_id}/patient_rdi`

## Path parameters

- `patient_id` integer, required

## Query parameters

- `date_since` string, required
- `date_until` string, required
- `use_insufficient_meal_filter` boolean — whether days with insufficient number of meals should be excluded from the meals. Added 2024-04-01

## Response `200`

successful operation

- PatientRdiResponse
  - `date_since` string, required — calendar date in format YYYY-MM-DD
  - `date_until` string, required — calendar date in format YYYY-MM-DD
  - `n_days_with_data` number, nullable, required — number of dates with at least one meal logged
  - `n_days_with_valid_data` number, nullable — number of dates with at least one meal logged
  - `nutrients` PatientRdiNutrientResponse[], required
    - `avg_daily_intake` number, nullable — average daily intake over the period
    - `max_daily_intake` number, nullable — min daily intake over the period
    - `median_daily_intake` number, nullable — average daily intake over the period
    - `min_daily_intake` number, nullable — max daily intake over the period
    - `nutrient` string, required — current nutrient
    - `per_thousand_kcal` number, nullable — percent per thousand kcals
    - `sources` PatientRdiNutrientSource[], nullable — sources of the nutrient
      - `avg` number, nullable, required — average per day
      - `count` number, nullable, required — frequency
      - `food_name` string, required — name of the food source
      - `sum` number, nullable, required — total consumed
      - `unit` string, required — unit of measure for this nutrient
    - `target_value_high` number, nullable — low end threshold of the data set
    - `target_value_low` number, nullable — low end threshold of the data set
    - `unit` string, required — unit of measure for this nutrient
    - `value_percent_of_target` number, nullable — percent of target. Null if no target (eg. polyols).
    - `value_percent_threshold_high` number, nullable — 'value_percent_of_target' values over the high threshold should be flagged as 'high'
    - `value_percent_threshold_low` number, nullable — 'value_percent_of_target' values below the low threshold should be flagged as 'low'
  - `patient_id` integer, required
  - `threshold_explainer_message` string, nullable — explanation of the thresholds used when flagging RDIs as high or low

---

[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/750cc0d96a93?raw)
