{"action":"created","issue":{"url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/issues/175","labels_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/issues/175/comments","events_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/issues/175/events","html_url":"https://github.com/nightscout/cgm-remote-monitor/issues/175","id":43288700,"number":175,"title":"New Care Portal Treatment Types - Temp Basal Start and Stop","user":{"login":"rokheart","id":4493200,"avatar_url":"https://avatars.githubusercontent.com/u/4493200?v=3","gravatar_id":"","url":"https://api.github.com/users/rokheart","html_url":"https://github.com/rokheart","followers_url":"https://api.github.com/users/rokheart/followers","following_url":"https://api.github.com/users/rokheart/following{/other_user}","gists_url":"https://api.github.com/users/rokheart/gists{/gist_id}","starred_url":"https://api.github.com/users/rokheart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rokheart/subscriptions","organizations_url":"https://api.github.com/users/rokheart/orgs","repos_url":"https://api.github.com/users/rokheart/repos","events_url":"https://api.github.com/users/rokheart/events{/privacy}","received_events_url":"https://api.github.com/users/rokheart/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/labels/feature/careportal","name":"feature/careportal","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-09-19T22:19:56Z","updated_at":"2015-07-20T16:50:00Z","closed_at":null,"body":"I am very new to this group and am just getting my development environment setup and running, but I wanted to request (and prototype) a very minor addition to the care portal functionality.  I was not sure exactly what changes would be required so I waited until it was running on my machine before posting here.\r\n\r\nTo maintain my son's BG using an Omnipod, we use a combination of Bolus' and Temp Basal's, so I wanted to discuss the supporting the tracking of the Temp Basal's in addition to the bolus entries already in the care portal.\r\n\r\nSo, I got the code and created a branch wip/basal, and figured out that the change was VERY simple (with the assumption that the Insulin Given would be reused and no unique field for the time period).\r\n\r\nI tested the setup with MongoLab database and both Azure and my local Node.js and the entries came across as expected.  \r\n\r\nAnyway, I wanted to throw this up to you all for discussion.  Also, I do not know how to show/point you to my branch (or if you can see it automatically).  \r\n\r\nLet me know your thoughts.\r\n\r\nMichael McArthur\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/4500649-new-care-portal-treatment-types-temp-basal-start-and-stop?utm_campaign=plugin&utm_content=tracker%2F2451736&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F2451736&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/issues/comments/122947176","html_url":"https://github.com/nightscout/cgm-remote-monitor/issues/175#issuecomment-122947176","issue_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/issues/175","id":122947176,"user":{"login":"StuArnold","id":10799221,"avatar_url":"https://avatars.githubusercontent.com/u/10799221?v=3","gravatar_id":"","url":"https://api.github.com/users/StuArnold","html_url":"https://github.com/StuArnold","followers_url":"https://api.github.com/users/StuArnold/followers","following_url":"https://api.github.com/users/StuArnold/following{/other_user}","gists_url":"https://api.github.com/users/StuArnold/gists{/gist_id}","starred_url":"https://api.github.com/users/StuArnold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StuArnold/subscriptions","organizations_url":"https://api.github.com/users/StuArnold/orgs","repos_url":"https://api.github.com/users/StuArnold/repos","events_url":"https://api.github.com/users/StuArnold/events{/privacy}","received_events_url":"https://api.github.com/users/StuArnold/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T16:50:00Z","updated_at":"2015-07-20T16:50:00Z","body":"Having being using BWP in Dev and adding the TBR in Notes I can see the benefit of just recording more clearly when a TBR is applied than using the notes section. I understand the maths would be difficult to include in any calculations as the TBR may be cancelled part way through so I am not asking for that just a specific recording type to make the TBR more visible on the chart.\r\n\r\nWhat would also be nice though is a Basal offset variable in Azure so that any TBR can be entered as the user does in the pump . It would also make the BWP clearer as the BWP calculation would be the (current calculation - the Basal offset) \r\n\r\ne.g. For a Vibe I would set 100 as the factor in Azure as normal basal is 0%\r\nWhen I entered -20% as my TBR in the Careportal it would be stored as -20% +100 = 80%\r\n the BWP calculation would be the 80%-100 = -20% for display\r\n\r\nIf the normal basal is 100% then the factor would be 0\r\nWhen I entered 80% as my TBR in the Careportal it would be stored as 80%+0 = 80%\r\n the BWP calculation would be the 80%- 0 = 80% for display\r\n\r\nHope I am making some kind of sense.\r\n\r\nNot sure the factor is the right way round i,e. should Vibe be 0 and others -100 because if the TBR calculation is added it would presumably be a series of small negative or positive boluses so using 0% as the centre point may be easier in the longer term. \r\n\r\nThanks again for all the brilliant work. I am really enjoying the BWP which is why I am asking. I am sure the last few days our control has been significantly better as the math has been done for us and we can focus on making a decision not working out the calculations. "}}