Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes some old bugs, and extends many of the report pages.
This is a refinement of the customisations we (David Burren and Nascence Biomed) have been using in-project with v14 for some time.
Timeframes:
3-week and 2-month presets available.
Plus for every timeframe preset we can select the period BEFORE that.
14 days now the default.
Now two BG ranges:
Goal (inner) range from BG_TARGET_BOTTOM and BG_TARGET_TOP.
Outer range from BG_LOW and BG_HIGH.
If the ranges are set to be the same, glucose values are split into 3 groups as before. But now we can have more
Day to day
1200x400px now the default.
Both low and both high lines are shown.
Insulin distribution:
The delivery of insulin via "basal" or "bolus" mechanisms is not relevant to profile analysis.
Now highlights TBB and TDD rather than mechanical basal/bolus.
Pie chart shows base basal rather than basal.
More decimal places in report (supporting high-precision pumps and low-volume users).
Week to week
3-5 glucose brackets supported (dependent on goal and outer boundaries). With coloured headings.
CV added to StDev column.
Percentile
Green background for in-range area.
Both high and both low lines shown.
Distribution
GMI as well as eHbA1c displayed.
PGS dropped (it was always dependent on assumptions of the "Normal" range and was deeply flawed).
Displays CV ("relative SD") along with SD.
GRI available in the extended report.
Table rows always start with high and progress to low glucose values. Previously "low" was above "high".
Fixed some double-counting of start/end records.
Summarises overall data points per day (there are 288 5-minute samples in 24 hours). But because we don't know the user is using a 5-minute CGM we don't translate this to a capture percentage.
Old code counted regarded values "at" the high boundary (e.g. 180/10.0) as high, instead of the accepted "within range"). First column should make it clear how the boundaries are applied.
3 report styles available:
Between 3-5 brackets (depending on goal/outer range boundaries).
If a range matches TIR or TITR it is labelled as such.
All bracket boundaries hard-coded based on industry use.
All known manufacturer/study boundaries are included.
TITR and TIR are both shown.
Adds a TING column, and displays GRI.
General
Max report timeframe extended to one year (mostly useful for Distribution).
CSS update so colours in tables now transfer to printed copies.
New strings have been added to the end of the en translation.json, but not updated into other languages.