{"action":"created","issue":{"url":"https://api.github.com/repos/Perceptus/iob/issues/1","repository_url":"https://api.github.com/repos/Perceptus/iob","labels_url":"https://api.github.com/repos/Perceptus/iob/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Perceptus/iob/issues/1/comments","events_url":"https://api.github.com/repos/Perceptus/iob/issues/1/events","html_url":"https://github.com/Perceptus/iob/issues/1","id":185009407,"number":1,"title":"Insulin activity","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":[{"id":466856602,"url":"https://api.github.com/repos/Perceptus/iob/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-10-25T03:24:46Z","updated_at":"2016-11-29T14:48:46Z","closed_at":null,"body":"How hard would it be to also return the level of insulin activity (first derivative of IOB)? That is the other thing we need to be able to incorporate this into oref0 or similar. \n"},"comment":{"url":"https://api.github.com/repos/Perceptus/iob/issues/comments/263589754","html_url":"https://github.com/Perceptus/iob/issues/1#issuecomment-263589754","issue_url":"https://api.github.com/repos/Perceptus/iob/issues/1","id":263589754,"user":{"login":"cjo20","id":442323,"avatar_url":"https://avatars.githubusercontent.com/u/442323?v=3","gravatar_id":"","url":"https://api.github.com/users/cjo20","html_url":"https://github.com/cjo20","followers_url":"https://api.github.com/users/cjo20/followers","following_url":"https://api.github.com/users/cjo20/following{/other_user}","gists_url":"https://api.github.com/users/cjo20/gists{/gist_id}","starred_url":"https://api.github.com/users/cjo20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjo20/subscriptions","organizations_url":"https://api.github.com/users/cjo20/orgs","repos_url":"https://api.github.com/users/cjo20/repos","events_url":"https://api.github.com/users/cjo20/events{/privacy}","received_events_url":"https://api.github.com/users/cjo20/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T14:48:46Z","updated_at":"2016-11-29T14:48:46Z","body":"Just to be absolutely clear, the grey line above is purely from taking the derivative of this polynomial: https://github.com/Perceptus/iob/blob/master/insulin_on_board_pct.js#L71\r\n\r\nThe orange line is what is currently used by oref0.\r\n\r\nI'm not sure where exactly the polynomial equations came from, but if it was just from trying to fit a curve to published ones then I could imagine it would be very easy to get something that looks right but with weird behaviours in the derivatives. \r\n\r\nTrying to model things like changing insulin resistance as part of this equation doesn't feel right, mainly because there isn't actually a guarantee that BG will be lower 150 minutes after any bolus."}}
{"actor":{"display_login":"cjo20"}}