kimberscott/nightscout-analysis

Annotator tool

Opened this issue · 0 comments

Overall goal is to create a tool for annotation of current and historical data to provide additional context and improve interpretability of data. Examples of notes we might want to store are:

  • forgot to dose
  • I think this was a take-out dinner and we probably messed up carb counting
  • interval where pt was sick or taking medication
  • at Grandma's
  • pressure low, not real

In particular, we want to be able to select certain days and time ranges to exclude from data analysis because we know the data are unreliable or non-representative in uninformative ways.

  • Add a day-by-day view similar to Nightscout's, with CGM/SMBG, carbs, insulin, notes, basal
  • Add ability to add an "all-day" note
    • Finalize data scheme for day-level events (point events but with granularity day)
    • Add a display for any day-level events alongside the day-by-day view
    • Add ability to add/update/delete events
  • Add ability to exclude a day's data
    • Finalize data scheme for exclude-day event (regular note with specific content? new event type?)
    • Add display of whether this day's data is excluded alongside the day-by-day view
    • Make updatable
    • Use exclusion status at day level in data selection (but still show in day-by-day view...)
  • Add ability to add a range event at the data point level
    • Finalize data scheme
    • Add display of range events
    • Add ability to create a new range event
    • Add ability to edit or delete an existing event
  • Add ability to exclude a time range
    • Finalize data scheme for exclude-range event
    • Add display of excluded time ranges
    • Add ability to create, edit, or delete an exclusion event with a note
  • Move to a separate 'page' on Dash app