Skip to content

Commit

Permalink
display Sensitivity Ratio in OpenAPS pill
Browse files Browse the repository at this point in the history
  • Loading branch information
scottleibrand committed Nov 1, 2017
1 parent d96d772 commit 9701c03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/plugins/openaps.js
Expand Up @@ -300,7 +300,7 @@ function init(ctx) {
var valueParts = [
valueString('BG: ', prop.lastSuggested.bg)
, valueString(', ', prop.lastSuggested.reason)
, prop.lastSuggested.mealAssist && _.includes(selectedFields, 'meal-assist') ? ' <b>Meal Assist:</b> ' + prop.lastSuggested.mealAssist : ''
, prop.lastSuggested.sensitivityRatio ? ' <b>Sensitivity Ratio:</b> ' + prop.lastSuggested.sensitivityRatio : ''
];

if (_.includes(selectedFields, 'iob')) {
Expand All @@ -317,7 +317,7 @@ function init(ctx) {
function concatIOB (valueParts) {
if (prop.lastIOB) {
valueParts = valueParts.concat([
' IOB: '
', IOB: '
, sbx.roundInsulinForDisplayFormat(prop.lastIOB.iob) + 'U'
, prop.lastIOB.basaliob ? ', Basal IOB ' + sbx.roundInsulinForDisplayFormat(prop.lastIOB.basaliob) + 'U' : ''
, prop.lastIOB.bolusiob ? ', Bolus IOB ' + sbx.roundInsulinForDisplayFormat(prop.lastIOB.bolusiob) + 'U' : ''
Expand Down

0 comments on commit 9701c03

Please sign in to comment.