{"action":"closed","issue":{"url":"https://api.github.com/repos/openaps/oref0/issues/61","repository_url":"https://api.github.com/repos/openaps/oref0","labels_url":"https://api.github.com/repos/openaps/oref0/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/openaps/oref0/issues/61/comments","events_url":"https://api.github.com/repos/openaps/oref0/issues/61/events","html_url":"https://github.com/openaps/oref0/issues/61","id":128900856,"number":61,"title":"Meal assist \"simulated extended bolus\" high temps","user":{"login":"scottleibrand","id":6982790,"avatar_url":"https://avatars.githubusercontent.com/u/6982790?v=3","gravatar_id":"","url":"https://api.github.com/users/scottleibrand","html_url":"https://github.com/scottleibrand","followers_url":"https://api.github.com/users/scottleibrand/followers","following_url":"https://api.github.com/users/scottleibrand/following{/other_user}","gists_url":"https://api.github.com/users/scottleibrand/gists{/gist_id}","starred_url":"https://api.github.com/users/scottleibrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottleibrand/subscriptions","organizations_url":"https://api.github.com/users/scottleibrand/orgs","repos_url":"https://api.github.com/users/scottleibrand/repos","events_url":"https://api.github.com/users/scottleibrand/events{/privacy}","received_events_url":"https://api.github.com/users/scottleibrand/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-26T18:23:21Z","updated_at":"2016-03-23T07:53:01Z","closed_at":"2016-03-23T07:53:01Z","body":"When eating a large meal and only bolusing for part of it, meal assist does a good job of giving more insulin as BG is initially rising, but once BG flattens out in range, it will let IOB and insulin activity drop almost to zero (if no manual boluses are performed), and only belatedly deliver the rest of the meal insulin when BG starts to rise quickly again.\r\n\r\nIt would be better to continue delivering a slightly elevated basal rate after a meal, as long as deviation is high and snoozeBG is still above target, to simulate an extended bolus.  It could set the basal high enough to cover the carbs that haven't yet been bolused for over the course of DIA.  So for example, if you bolus 6U and get 1U of meal assist insulin during the initial rise from a 100g meal (with an IC of 10 and a DIA of 3), it would want to deliver 3U of additional insulin over 3h, so it would set the basal to 1U/hr higher than normal if BG is flat.  As with \"high and flat\" situations, we could reduce that insuilinReq proportionally as avgDelta drops from 0 down to expectedDelta.  We might also want to increase it proportionally up to full mealAssist levels as avgDelta increases from 0 up to the full mealAssist threshold."}}