diff --git a/lib/iob/history.js b/lib/iob/history.js index 1449b678..080715c2 100644 --- a/lib/iob/history.js +++ b/lib/iob/history.js @@ -109,6 +109,13 @@ function calcTempTreatments (inputs) { temp.date = temp.started_at.getTime(); temp.insulin = current.insulin; tempBoluses.push(temp); + } else if (current.enteredBy =="HAPP_App" && current.insulin) { + var temp = {}; + temp.timestamp = current.created_at; + temp.started_at = new Date(tz(current.timestamp)); + temp.date = temp.started_at.getTime(); + temp.insulin = current.insulin; + tempBoluses.push(temp); } else if (current.eventType == "Temp Basal") { var temp = {}; temp.rate = current.rate;