Skip to content

Commit

Permalink
Introducing clinicians pages
Browse files Browse the repository at this point in the history
  • Loading branch information
psonnera committed Nov 2, 2023
1 parent c455d2f commit 1a772bc
Show file tree
Hide file tree
Showing 30 changed files with 321 additions and 7 deletions.
61 changes: 61 additions & 0 deletions docs/clinicians/home.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Nightscout for clinicians

</br>

```{tip}
Unless specified, links within the text are for advanced explanation of the underlying mechanisms but don't necessarily add value for clinicians use of Nightscout.
```

## What is Nightscout?

Nightscout is an open-source cloud application used to visualize, store and share in real-time:

- data from continuous glucose monitoring sensors
- manually or automatically logged treatments
- basal rates from pumps (optional)

</br>

## How can I access patient data?

Your patient should share a unique web URL with you, it will look like `https://name.domain.ext`.

Since the URL is open for viewing to anybody having internet access to it, patients or caregivers can decide to make the access [secure](/nightscout/security.md#how-to-turn-off-unauthorized-access) and will share a [tokened](/nightscout/security.md#create-authentication-tokens-for-users) read-only access URL looking like `https://name.domain.ext?token=clinic-48aed625abb0ec86`.
You need to use the full URL provided to access your patient Nightscout site.

Any device connected to the internet can be used to visualize patient data.

```{admonition} Cannot access patient URL
:class: tip
Should you experience issues to access the Nightscout site, check with your IT team if the domain used by your patient is not blocked by a local internet safety rule. Many patients or caregivers who build their own Nightscout site rely on platforms as a service or free DNS providers that can get classified as unsafe by cybersecurity systems.</br>
Ask your IT and cybersecurity teams to perform all necessary verifications to allow access to your patient site: Nightscout itself is safe for infrastructures, it doesn't contain any sort of cyberthread or malware.
```

Since Nightscout can be hosted in a large variety of [platforms](/nightscout/new_user.md#building-nightscout-diy-in-a-cloud-platform), you can expect the site domain to be (but not only) in the following list:

`heroku.com`, `azurewebsites.net`, `railway.app`, `fly.dev`, `onrender.com`, `t1pal.com`, `ns10be.de`, `nightscout.pro`, `mooo.com`, `chickenkiller.com`, `crabdance.com`, `strangled.net`, ` code.run` ...

```{admonition} Read only access
Writing data into Nightscout is protected with a password called API_SECRET that should not be shared with you by the patient.
```

</br>

## What should I see when I open a Nightscout site?

What will display should be similar to this:

![Nightscout](/images/nightscout_screenshot_600.png)

If you see this, it means your patient forgot to send you the link with a read-only token:

<img src="/nightscout/img/Admin02.png" width="600px" />

</br>

## Next steps:

Follow the links below.

- [Setup the main view](setup) to add or view all available information.
- [Generate reports](reports).
Binary file added docs/clinicians/img/Clinic01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/clinicians/img/Clinic02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/clinicians/img/Clinic03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/clinicians/img/Clinic04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/clinicians/img/Clinic05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/clinicians/img/Clinic06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/clinicians/img/Clinic07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/clinicians/img/Clinic08.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/clinicians/img/Clinic09.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/clinicians/img/Clinic10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/clinicians/img/Clinic11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/clinicians/img/Clinic12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/clinicians/img/Clinic13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/clinicians/img/Clinic14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/clinicians/img/Clinic15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/clinicians/img/Clinic16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/clinicians/img/Clinic17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/clinicians/img/Clinic18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/clinicians/img/Clinic19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/clinicians/img/Clinic20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/clinicians/img/Clinic21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/clinicians/img/Clinic22.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/clinicians/img/Clinic23.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/clinicians/img/Clinic24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/clinicians/img/Clinic25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/clinicians/img/Clinic26.png
173 changes: 173 additions & 0 deletions docs/clinicians/reports.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
# Nightscout reports

Access reports from the drawer menu,

<img src="/clinicians/img/Clinic14.png" width="300px" />

</br>

## View profiles

Profiles view gives important information on the patient therapy parameters.

Select profiles then SHOW (no additional setup is necessary).

<img src="/clinicians/img/Clinic20.png" width="100px" />

Patients profile(s) will display.

<img src="/clinicians/img/Clinic19.png" width="250px" />

DIA is the duration of the [insulin action](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4454113/).

Carbs absorption rate is [complex](https://diyps.org/2014/05/29/determining-your-carbohydrate-absorption-rate-diyps-lessons-learned/) to calculate for patients and can be undefined (or zero) if the DIY system doesn't update the value (when existing).

Insulin to Carbs ratio (IC) and Insulin Sensitivity Factor (ISF) can be defined by time periods. Only one visible value means whole day.

Basal rates should match the pump settings.

</br>

## Select a report

Select the report type:

<img src="/clinicians/img/Clinic15.png" width="700px" />

- `Day to day`
- `Week to week`
- `Daily Stats`
- `Distribution`
- `Hourly stats`
- `Percentile Chart`
- `Weekly Distribution`

</br>

## Setup the report

Select the period used to analyze data.

Enable the check box and either select `From:` and `To: `dates to define the interval

<img src="/clinicians/img/Clinic16.png" width="350px" />

or:

<img src="/clinicians/img/Clinic17.png" width="600px" />

- `Today`
- `Last 2 days`
- `Last 3 days`,
- `Last week`
- `Last 2 weeks`
- `Last Month`
- `Last 3 months`

Avoid selecting too long periods of time for daily reports.

</br>

Unless looking for specific `Notes` or `Event type` leave the checkboxes disabled.

<img src="/clinicians/img/Clinic18.png" width="300px" />

</br>

You can select which week days to use.

<img src="/nightscout/img/Reports03.png" width="300px" />

</br>

Confirm `Target BT range` `bottom` and `top` for TIR (or TITR) and graph range lines.

You can sort the report from older to newer or newer first.

<img src="/clinicians/img/Clinic24.png" width="500px" />

</br>

Click `SHOW` and wait for data to load and rendering to complete. This might take some time if the period is long (this will also depend on the Nightscout host engine).

<img src="/nightscout/img/Reports05.png" width="300px" />

</br>

## Day To day

This report will show BG, day by day, including selected treatments.

<img src="/clinicians/img/Clinic21.png" width="700px" />

<img src="/clinicians/img/Clinic22.png" width="700px" />

Enable insulin, carbs and basal rate to have consistent insulin distribution information.

<img src="/clinicians/img/Clinic23.png" width="250px" />

</br>

When changing selections, click again `SHOW` to update the view.

</br>

## Week to Week

This report will give a week by week spaghetti view, with color code for week days selected.

<img src="/nightscout/img/Reports10.png" width="800px" />

</br>

## Daily stats

This report will give a daily distribution view.

<img src="/nightscout/img/Reports11.png" width="800px" />

</br>

## Distribution

This report will give a complete distribution view.

You also can filter by hours (scroll to the bottom of the page).

<img src="/nightscout/img/Reports18.png" width="400px" />

<img src="/nightscout/img/Reports12.png" width="800px" />

You can quickly find %TIR, %TUR, %TAR and the rough estimated HbA1c values.

<img src="/clinicians/img/Clinic25.png" width="500px" />

Range must be modified to see %TITR.

</br>

## Percentile Chart

This report will give a percentile distribution view.

<img src="/nightscout/img/Reports16.png" width="800px" />

<img src="/clinicians/img/Clinic26.png" width="300px" />

</br>

## Hourly stats

This report will give an hourly distribution view with a box plot showing 25% and 75% percentile plus mean and standard deviation, then additional hour by hour statistics in a table.

<img src="/nightscout/img/Reports13.png" width="800px" />

</br>

## Weekly Distribution

This report will give a weekly view.

<img src="/nightscout/img/Reports14.png" width="1000px" />

</br>
79 changes: 79 additions & 0 deletions docs/clinicians/setup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Setup the main view

Before checking reports, you should verify your patient has setup correctly data upload.
The steps below might not be necessary but will probably give you more insights on the patient system.

If you're only looking for reports, skip this step and continue to [reports](/clinicians/reports).

</br>

## Customize your view

Open the main menu, located at the top right of the window, select the drawer icon:

<img src="./img/Clinic01.png" width="220px" />

Select the units for blood glucose values.

<img src="./img/Clinic02.png" width="300px" />

Select the language used for Nightscout display.

<img src="./img/Clinic03.png" width="300px" />

If the patient uses a pump that can send its basal rates, or has setup programmed basal rates, enable basal default display.

<img src="./img/Clinic04.png" width="300px" />

Enable all available plugins and save.
This will only modify the way you visualize Nightscout on the device you're using. It will not interfere with the patient settings.

<img src="./img/Clinic05.png" width="300px" />

</br>

## Identify displayed items

A typical DIY closed loop user display will look like this.

<img src="./img/Clinic06.png" width="600px" />

Last 48 hours are visible, you can select the upper graph time scale clicking on the corresponding length (2 to 24 hours). You can slide the lower graph selection to visualize the corresponding time period on the top graph.

The rounded rectangle indicators are called "pills" and contain immediately visible indications, or more insights if you hover on them with the mouse.

They can be automatically or manually updated by the patient or its closed loop/uploader device, else they will be empty or meaningless. As setting warning and urgent limit values for these pills is not always adjusted by the user in Nightscout variables, they might appear in yellow or red for values that are within normal usage.

<img src="./img/Clinic07.png" width="220px" />

Current blood glucose is displayed top left, the arrow only indicates the difference between the current measurement and the previous one (you'll see the measurement age on the left of the view).

<img src="./img/Clinic08.png" width="400px" />

- IOB: Insulin on board, is calculated using the insulin duration parameter in the current profile if no external closed loop system is used, or by this external algorithm if any (OpenAPS/Loop).

- COB: Carbs on board are calculated by the absorption rate set in the profile.
- CAGE, SAGE, BAGE, IAGE are timers counting the time since last Cannula (infusion site), Sensor, Battery and Insulin cartridge change.
- BASAL displays the current basal rate.

Uploading device battery level and Nightscout storage used space are not of clinical interest.

<img src="./img/Clinic09.png" width="150px" />

Connected pumps will show available insulin units, battery status and last registered activity.

<img src="./img/Clinic10.png" width="300px" />

DIY closed loop systems can be identified with the [Loop](https://loopkit.github.io/loopdocs/faqs/algorithm-faqs/) (Loop) or [OpenAPS](https://openaps.readthedocs.io/en/latest/docs/While%20You%20Wait%20For%20Gear/Understand-determine-basal.html#understanding-the-determine-basal-logic) (OpenAPS, AndoidAPS, FreeAPS, iAPS) pill. Only one will be enabled, if the other one appears it will normally show an exclamation mark. If a DIY closed loop system Nightscout doesn't show any active pill, configuration needs to be fixed so that Nightscout receives all necessary data (patient responsibility).

<img src="./img/Clinic11.png" width="400px" />

Basal display shows the programmed basal in dotted lines and the actual basal modulation. This is an example for the default basal display.

<img src="./img/Clinic12.png" width="400px" />

Loop adds rich details to Nightscout real time display, like food types and visual information.

Hovering on the DIY closed loop system pill (Loop/OpenAPS) will show insights of the algorithm decisions.

<img src="./img/Clinic13.png" width="400px" />
15 changes: 8 additions & 7 deletions docs/nightscout/reports.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Mean Hourly Change is a sum of the absolute value of all glucose excursions for

Out of Range RMS is calculated by squaring the distance out of range for all glucose readings for the examined period, summing them, dividing by the count and taking the square root. This metric is similar to in-range percentage but weights readings far out of range higher. Lower values are better.

GVI (Glycemic Variability Index) and PGS (Patient Glycemic Status) are measures developed by Dexcom, detailed [can be found here](https://web.archive.org/web/20160523152519/http://www.healthline.com/diabetesmine/a-new-view-of-glycemic-variability-how-long-is-your-line).
GVI (Glycemic Variability Index) and PGS (Patient Glycemic Status) are measures developed by Dexcom, details [can be found here](https://web.archive.org/web/20160523152519/http://www.healthline.com/diabetesmine/a-new-view-of-glycemic-variability-how-long-is-your-line).

</br>

Expand All @@ -134,31 +134,31 @@ This report will give you an hourly distribution view with a box plot and additi

## Percentile Chart

This report will give you an percentile distribution view of the range you selected.
This report will give you a percentile distribution view of the range you selected.

<img src="/nightscout/img/Reports16.png" width="800px" />

</br>

## Weekly Distribution

This report will give you an weekly view of your statistics.
This report will give you a weekly view of your statistics.

<img src="/nightscout/img/Reports14.png" width="1000px" />

</br>

## Calibrations

This will give you a a table of your calibrations, if your uploader sends the correct event and data.
This will give you a table of your calibrations, if your uploader sends the correct event and data.

<img src="/nightscout/img/Reports22.png" width="800px" />

</br>

## Treatments

This will give you a a table of your treatments, day by day.
This will give you a table of your treatments, day by day.

<img src="/nightscout/img/Reports15.png" width="800px" />

Expand Down Expand Up @@ -196,8 +196,9 @@ You can navigate day to day with `< Previous day` and `Next day >` or by period

You might also be interested by [AutoTune](https://autotuneweb.azurewebsites.net/).

!!!note
Make sure to temporarily [disable authentication](/nightscout/security.md#how-to-turn-off-unauthorized-access) before running AutoTune.
```{warning}
Make sure to temporarily [disable authentication](/nightscout/security.md#how-to-turn-off-unauthorized-access) before running AutoTune.
```

</br>

Expand Down

0 comments on commit 1a772bc

Please sign in to comment.