From 45638ef5ebbfbeb5658ef425e71ea73c27ce5b64 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sat, 7 Sep 2019 11:56:16 +0200 Subject: [PATCH] more exams --- .../objectives/objectives/Objective2.java | 21 +++++++++++++++++++ app/src/main/res/values/exam.xml | 18 ++++++++++++++++ app/src/main/res/values/strings.xml | 1 - 3 files changed, 39 insertions(+), 1 deletion(-) 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 7673624934..a53e3f776b 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 @@ -56,6 +56,27 @@ public class Objective2 extends Objective { .option(new Option(R.string.noisycgm_checksmoothing, true)) .hint(new Hint(R.string.noisycgm_hint1)) ); + tasks.add(new ExamTask(R.string.exercise, R.string.exercise_whattodo,"exercise") + .option(new Option(R.string.nothing, false)) + .option(new Option(R.string.exercise_setactivitytt, true)) + .option(new Option(R.string.exercise_switchprofilebelow100, true)) + .option(new Option(R.string.exercise_switchprofileabove100, false)) + .option(new Option(R.string.exercise_stoploop, false)) + .option(new Option(R.string.exercise_doitbeforestart, true)) + .option(new Option(R.string.exercise_doitafterstart, false)) + .hint(new Hint(R.string.exercise_hint1)) + ); + tasks.add(new ExamTask(R.string.suspendloop, R.string.suspendloop_doigetinsulin,"suspendloop") + .option(new Option(R.string.suspendloop_yes, true)) + .option(new Option(R.string.no, false)) + .hint(new Hint(R.string.exercise_hint1)) + ); + tasks.add(new ExamTask(R.string.basaltest, R.string.basaltest_when,"basaltest") + .option(new Option(R.string.basaltest_beforeloop, true)) + .option(new Option(R.string.basaltest_havingregularhypo, true)) + .option(new Option(R.string.basaltest_havingregularhyper, true)) + .hint(new Hint(R.string.basaltest_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 47f9548ef4..db73101ee0 100644 --- a/app/src/main/res/values/exam.xml +++ b/app/src/main/res/values/exam.xml @@ -37,5 +37,23 @@ turn off CGM receiver https://androidaps.readthedocs.io/en/latest/EN/Usage/Smoothing-Blood-Glucose-Data-in-xDrip.html#smoothing-blood-glucose-data check if input data is smoothed + to prevent SMB after a hypo rise from fast carbs + Exercise + How to help the system deal with exercise + set activity temp target + do a profile switch below 100% + do profile switch above 100% + stop loop + do it before start exercise + do it after start exercise + https://androidaps.readthedocs.io/en/latest/EN/Usage/temptarget.html#activity-temp-target + Do I get insuling when loop is suspended? + Yes, common basal rate + Basal and ISF, IC testing + When should I test basals, ISF and IC? + before I start looping + when having regular hypos + when having regular hypers + https://androidaps.readthedocs.io/en/latest/EN/Getting-Started/FAQ.html#androidaps-settings diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index d17f2bbdcd..b39cd8777d 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1637,7 +1637,6 @@ Close objectives_request_code Request code: %1$s - to prevent SMB after a hypo rise from fast carbs (check all correct answers)