diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/constraints/objectives/objectives/Objective.java b/app/src/main/java/info/nightscout/androidaps/plugins/constraints/objectives/objectives/Objective.java index 916cfa10be..f58d469fa2 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/constraints/objectives/objectives/Objective.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/constraints/objectives/objectives/Objective.java @@ -27,7 +27,7 @@ public abstract class Objective { private int gate; private long startedOn; private long accomplishedOn; - private List tasks = new ArrayList<>(); + List tasks = new ArrayList<>(); public boolean hasSpecialInput = false; public Objective(String spName, @StringRes int objective, @StringRes int gate) { diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/constraints/objectives/objectives/Objective2.java b/app/src/main/java/info/nightscout/androidaps/plugins/constraints/objectives/objectives/Objective2.java index 73576731e7..2249385d48 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/constraints/objectives/objectives/Objective2.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/constraints/objectives/objectives/Objective2.java @@ -10,6 +10,9 @@ public class Objective2 extends Objective { public Objective2() { super("exam", R.string.objectives_exam_objective, R.string.objectives_exam_gate); + for (Task task : tasks) { + if (!task.isCompleted()) setAccomplishedOn(0); + } } @Override @@ -46,6 +49,7 @@ public class Objective2 extends Objective { .option(new Option(R.string.objectives_doexportafterchange, true)) .option(new Option(R.string.objectives_doexportafterfirtssettings, true)) .hint(new Hint(R.string.objectives_hint1)) + .hint(new Hint(R.string.objectives_hint2)) ); tasks.add(new ExamTask(R.string.noisycgm, R.string.noisycgm_whattodo,"noisycgm") .option(new Option(R.string.nothing, false)) @@ -131,6 +135,44 @@ public class Objective2 extends Objective { .option(new Option(R.string.sensitivityaaps, false)) .hint(new Hint(R.string.sensitivity_hint1)) ); + tasks.add(new ExamTask(R.string.wrongcarbs, R.string.wrongcarbs_whattodo,"wrongcarbs") + .option(new Option(R.string.disableloop, false)) + .option(new Option(R.string.wrongcarbs_treatmentstab, true)) + .hint(new Hint(R.string.sensitivity_hint1)) + ); + tasks.add(new ExamTask(R.string.extendedcarbs, R.string.extendedcarbs_handling,"extendedcarbs") + .option(new Option(R.string.extendedcarbs_useextendedcarbs, true)) + .option(new Option(R.string.extendedcarbs_add, false)) + .option(new Option(R.string.extendedcarbs_useextendedbolus, false)) + .hint(new Hint(R.string.sensitivity_hint1)) + ); + tasks.add(new ExamTask(R.string.nsclient_monitoring, R.string.nsclient_howcanyou,"nsclient") + .option(new Option(R.string.nightscout, true)) + .option(new Option(R.string.nsclientinternal, true)) + .option(new Option(R.string.dexcomfollow, true)) + .option(new Option(R.string.dexcomfollowxdrip, false)) + .option(new Option(R.string.xdripfollower, true)) + .option(new Option(R.string.looponiphone, false)) + .option(new Option(R.string.spikeiphone, true)) + .hint(new Hint(R.string.sensitivity_hint1)) + ); + tasks.add(new ExamTask(R.string.nsprofileview_isf_label, R.string.whatistrue,"isf") + .option(new Option(R.string.isf_increasingvalue, true)) + .option(new Option(R.string.isf_decreasingvalue, false)) + .option(new Option(R.string.isf_noeffect, false)) + .option(new Option(R.string.isf_preferences, false)) + .option(new Option(R.string.isf_profile, false)) + .hint(new Hint(R.string.isf_hint1)) + .hint(new Hint(R.string.isf_hint2)) + ); + tasks.add(new ExamTask(R.string.nsprofileview_ic_label, R.string.whatistrue,"ic") + .option(new Option(R.string.ic_increasingvalue, true)) + .option(new Option(R.string.id_decreasingvalue, false)) + .option(new Option(R.string.ic_noeffect, false)) + .option(new Option(R.string.ic_different, false)) + .option(new Option(R.string.ic_meaning, false)) + .hint(new Hint(R.string.ic_hint1)) + ); for (Task task : tasks) Collections.shuffle(((ExamTask)task).options); diff --git a/app/src/main/res/values/exam.xml b/app/src/main/res/values/exam.xml index a6353ac688..d1f84fdaa0 100644 --- a/app/src/main/res/values/exam.xml +++ b/app/src/main/res/values/exam.xml @@ -100,5 +100,34 @@ Which sensitivity plugin has user defined time range for detection? https://androidaps.readthedocs.io/en/latest/EN/Configuration/Sensitivity-detection-and-COB.html Which sensitivity plugin must be used for UAM? + Wrong carbs + You see you have entered wrong carbs. What should you do? + Go to treatments, delete wrong carbs and enter new carbs + Food with fat and protein + What to do if your food contains larger amount of fat or proteins? + Recalculate fat and proteins to carbs and use \"Extended carbs\" feature to tell system about it + Recalculate fat and proteins to carbs and add it to bolus calculation + Use extended bolus to cover fat and proteins + Monitoring children + How can you monitor AAPS of your child remotely? + Nightscout + Dexcom follow if you are using original Dexcom app + Dexcom follow if you are using xDrip + xDrip in follower mode + Loop app on iPhone + Spike on iPhone + Assume you have high glycemia. Increasing ISF number will lead to giving less insulin if you try to correct high glycemia by bolus wizard + Assume you have high glycemia. Decreasing ISF number will lead to giving less insulin if you try to correct high glycemia by bolus wizard + Changing ISF has no effect on amount of insulin given by APS when trying to correct high glycemia + You have to enter ISF in preferences + Changing ISF in profile is enough to apply the change + https://androidaps.readthedocs.io/en/latest/EN/Getting-Started/FAQ.html#insulin-sensitivity-factor-isf-mmol-l-u-or-mg-dl-u + https://androidaps.readthedocs.io/en/latest/EN/Usage/Profiles.html + Increasing IC value will lead to giving less insulin for the same amount of carbs + Decreasing IC value will lead to giving less insulin for the same amount of carbs + Assume you have no active carbs. Changing IC will lead to different amount of insuling to correct your glycemia + IC will be different if you count bread unit as 10g or 12g + IC meaning is: How much bread units is covered by 1U of insulin + https://androidaps.readthedocs.io/en/latest/EN/Getting-Started/FAQ.html#carbohydrate-to-insulin-ratio-cr-g-u diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 35daa8efff..ae15fc6dd4 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1638,6 +1638,7 @@ objectives_request_code Request code: %1$s (check all correct answers) + https://androidaps.readthedocs.io/en/latest/EN/Getting-Started/FAQ.html#what-emergency-equipment-is-recommended-to-take-with-me %1$d day