Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Careportal entries: wrong conversion of mmol BG readings [BG(mmol)/18] #5940

Open
bjornoleh opened this issue Sep 1, 2020 · 7 comments
Open

Comments

@bjornoleh
Copy link
Contributor

bjornoleh commented Sep 1, 2020

Careportal entries make a wrong conversion of mmol BG readings, where mmol values are reported ad BG(mmol)/18.

Carb correction:
image

Meal bolus
image

BG Cherck entries are correctly displayed:
image

However, this is not consistent across sites. We have four NS sites , two of which are "operational" (set up in April and June 2020). Two additional backup/testing sites were set up recently for migration testing purposes. This bug report is only valid for the sites set up in April and June. The sites are basically set up identically, the only difference is that the two latter sites are not fed with Loop data. The bug has been present since the sites were set up.

The bug is independent of NS Master vs Dev. All sites use DISPLAY_UNITS: mmol/L (or mmol, both with the same result).

Your setup information
Both Nightscout 13.0.1 and 13.1.0
All sites are fed with Dexcom Bridge CGM data
Same result across browser platforms (Chrome, Safari, Android mobile, iPhone/iPad, PC

@bjornoleh
Copy link
Contributor Author

bjornoleh commented Sep 1, 2020

The Carb Correction entry as stored in Collection: treatments:

Site with bug:
{
"_id": {
"$oid": "5f4e7b9ddb69150cd6194bc2"
},
"enteredBy": "undefined",
"eventType": "Carb Correction",
"glucose": 5,
"glucoseType": "Finger",
"carbs": 3,
"notes": "test BG 5",
"units": "mmol",
"created_at": "2020-09-01T16:49:33.868Z",
"utcOffset": 0
}

Site without bug:
{
"_id": {
"$oid": "5f4e7cd928df2d36fb5cef6c"
},
"eventType": "Carb Correction",
"glucose": 5,
"glucoseType": "Finger",
"carbs": 3,
"notes": "test BG 5",
"units": "mmol",
"created_at": "2020-09-01T16:54:49.930Z",
"utcOffset": 0
}

@sulkaharo
Copy link
Member

This should be fixed in dev

@bjornoleh
Copy link
Contributor Author

Hi, I don't think it is working in dev as of now, or are you about to change something in dev to fix this?

@bjornoleh
Copy link
Contributor Author

Ok, I just checked with Dev as of today. It looks just like before in the site that was set up in April.

By the way, the marker is positioned correctly at 5 mmol/L in the chart, so it is just the number in the textbox that is wrong (5/18 = 0,3).

image

@bjornoleh
Copy link
Contributor Author

Possibly (but not verified) a related observation in CGM In the cloud, but here with mg/dL settings:

https://www.facebook.com/groups/cgminthecloud/permalink/3351883211599578/

@sulkaharo
Copy link
Member

Does this still replicate with release 14?

@bjornoleh
Copy link
Contributor Author

Yes. There is also still the different behaviour between two NS instances, where the first one give BG (mmol)/18, and the other one displays it correctly.

I also notice now during testing that careportal entries are not updated properly without restarting dynos:

-Entries at the current time are OK
-Entries of past events need restart of dynos
-Deleting careportal entries need restart of dynos

This is different from Dev 13.1.0, but is probably more related to #5992 than the current issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants