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

Failed bolus #52

Closed
eyim opened this issue Jul 2, 2016 · 7 comments
Closed

Failed bolus #52

eyim opened this issue Jul 2, 2016 · 7 comments

Comments

@eyim
Copy link

eyim commented Jul 2, 2016

Tried to bolus through the app. It says it failed. Then tried it again and it went through. The bolus insulin on board correctly shows the right amount but it never showed up in the Nightscout upload.

The problem is that the projected bg levels don't show the impact of that bolus even though it shows 10+ units of insulin on board. His bg projection goes right up to 700.

@eyim
Copy link
Author

eyim commented Jul 2, 2016

Hmm looks like the issue is that on the main page it says bolus iob is 12 units which is correct but when you click on the insulin graph. It says only 4.4 iob. It hasn't been low temping because I turned it off and there is no way that removing the basal can cut the iob by 8 units

@loudnate
Copy link
Collaborator

loudnate commented Jul 2, 2016

Can you show me the reservoir readings? (Tap on the IOB graph)

@eyim
Copy link
Author

eyim commented Jul 2, 2016

https://www.dropbox.com/sc/6avvi5irudbzm51/AADaML0btZaCTpvHMyPP_mq7a

Here are 4 screenshots of the main screen plus the reservoir readings. The one at 6:54 pm is the one I think is missing from the iob calculation

@loudnate
Copy link
Collaborator

loudnate commented Jul 2, 2016

What is the calculated IOB value?

There are large chunks of data missing in that reservoir history, as well as a rewind/prime. According to your pump history, what time were the boluses delivered?

@eyim
Copy link
Author

eyim commented Jul 2, 2016

Bolus:
9:27 1 unit
8:59 4.5 units
8:15 2 units
6:54 11.5 units
5:03 4.05 units
4:32 2 units

Right now the pump says 11.3 units on board. The home screen of the app says 11.475 units on board. But when you click on the insulin graph it shows 8.14 now.

When I sent you the earlier screenshots, the main screen showed 12+ and the graph showed 4.4

We changed the reservoir around 8:50 or so because he has been high and we are changing everything out.

The issues started before we changed the reservior

@loudnate
Copy link
Collaborator

loudnate commented Jul 2, 2016

Here's your missing insulin:
screen shot 2016-07-01 at 9 45 05 pm

So according to the max insulin delivery of 2.0 U/min, this drop was assumed to be false (e.g. a prime).

This is a bug in Loop which is exposed when the phone time and the pump time drift out-of-sync. With x23 pumps, I'm erroneously mixing pump clock (from sentry packets) with phone clock (manual reservoir readings before a bolus).

This was identified and fixed in #49, and I'll go ahead and cut this as a release.

So sorry you experienced this – thank you for finding it and filing. I'm going to close this as a duplicate as #49.

@loudnate loudnate closed this as completed Jul 2, 2016
@loudnate loudnate added this to the 0.4.2 milestone Jul 2, 2016
@eyim
Copy link
Author

eyim commented Jul 2, 2016

No problem. Glad to know it is a bug that already has a solution. Thank you again for developing this implementation. My son loves it and doesn't want to go back to the edison rig.

ps2 added a commit that referenced this issue Feb 29, 2020
* Add timer for marking glucose as stale

* Move check for change into didSet
ps2 added a commit that referenced this issue May 12, 2020
* Add timer for marking glucose as stale

* Move check for change into didSet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants