Add TargetBG
This commit is contained in:
parent
3c2d5ff3d6
commit
a20008c0db
2 changed files with 5 additions and 0 deletions
|
@ -51,6 +51,9 @@ public class DetermineBasalResultSMB extends APSResult {
|
||||||
} else {
|
} else {
|
||||||
smb = 0d;
|
smb = 0d;
|
||||||
}
|
}
|
||||||
|
if (result.has("targetBG")) {
|
||||||
|
targetBG = result.getDouble("targetBG");
|
||||||
|
}
|
||||||
|
|
||||||
if (result.has("deliverAt")) {
|
if (result.has("deliverAt")) {
|
||||||
String date = result.getString("deliverAt");
|
String date = result.getString("deliverAt");
|
||||||
|
|
|
@ -62,6 +62,7 @@ public class APSResult {
|
||||||
public boolean hasPredictions = false;
|
public boolean hasPredictions = false;
|
||||||
public double smb = 0d; // super micro bolus in units
|
public double smb = 0d; // super micro bolus in units
|
||||||
public long deliverAt = 0;
|
public long deliverAt = 0;
|
||||||
|
public double targetBG = 0d;
|
||||||
|
|
||||||
public Constraint<Double> inputConstraints;
|
public Constraint<Double> inputConstraints;
|
||||||
|
|
||||||
|
@ -184,6 +185,7 @@ public class APSResult {
|
||||||
newResult.smbConstraint = smbConstraint;
|
newResult.smbConstraint = smbConstraint;
|
||||||
newResult.percent = percent;
|
newResult.percent = percent;
|
||||||
newResult.usePercent = usePercent;
|
newResult.usePercent = usePercent;
|
||||||
|
newResult.targetBG = targetBG;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue