Update determine-basal.js and basal-set-temp.js from Current oref0 dev.
This commit is contained in:
parent
936184be60
commit
88c1248c41
|
@ -29,8 +29,8 @@ var round_basal = require('./round-basal');
|
|||
}
|
||||
|
||||
var suggestedRate = round_basal(rate, profile);
|
||||
if (typeof(currenttemp) !== 'undefined' && typeof(currenttemp.duration) !== 'undefined' && typeof(currenttemp.rate) !== 'undefined' && currenttemp.duration > 20 && suggestedRate <= currenttemp.rate * 1.2 && suggestedRate >= currenttemp.rate * 0.8) {
|
||||
rT.reason += ", but "+currenttemp.duration+"m left and " + currenttemp.rate + " ~ req " + suggestedRate + "U/hr: no action required";
|
||||
if (typeof(currenttemp) !== 'undefined' && typeof(currenttemp.duration) !== 'undefined' && typeof(currenttemp.rate) !== 'undefined' && currenttemp.duration > (duration-10) && currenttemp.duration <= 120 && suggestedRate <= currenttemp.rate * 1.2 && suggestedRate >= currenttemp.rate * 0.8) {
|
||||
rT.reason += " "+currenttemp.duration+"m left and " + currenttemp.rate + " ~ req " + suggestedRate + "U/hr: no temp required";
|
||||
return rT;
|
||||
}
|
||||
|
||||
|
@ -58,4 +58,4 @@ var round_basal = require('./round-basal');
|
|||
}
|
||||
};
|
||||
|
||||
module.exports = tempBasalFunctions;
|
||||
module.exports = tempBasalFunctions;
|
Loading…
Reference in a new issue