From 88c263bb39cc5c0b69c6584fac9554e4c7ca3ea3 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sat, 7 Sep 2019 11:21:14 +0200 Subject: [PATCH 1/3] better hypott question --- .../constraints/objectives/objectives/Objective2.java | 9 ++++----- app/src/main/res/values/exam.xml | 5 +---- app/src/main/res/values/strings.xml | 1 + 3 files changed, 6 insertions(+), 9 deletions(-) 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 9c23278ca3..7673624934 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 @@ -21,11 +21,10 @@ public class Objective2 extends Objective { .option(new Option(R.string.dia_valuemustbedetermined, true)) .hint(new Hint(R.string.dia_hint1)) ); - tasks.add(new ExamTask(R.string.hypott, R.string.hypott_whenhypott,"hypott") - .option(new Option(R.string.hypott_goinglow, true)) - .option(new Option(R.string.hypott_havinglow, true)) - .option(new Option(R.string.hypott_notlowanymorebutrising, false)) - .option(new Option(R.string.hypott_havehadalowbg, false)) + tasks.add(new ExamTask(R.string.hypott, R.string.hypott_whyhypott,"hypott") + .option(new Option(R.string.hypott_goinglow, false)) + .option(new Option(R.string.hypott_havinglow, false)) + .option(new Option(R.string.hypott_preventoversmb, true)) .hint(new Hint(R.string.hypott_hint1)) ); tasks.add(new ExamTask(R.string.offlineprofile, R.string.offlineprofile_whatprofile,"offlineprofile") diff --git a/app/src/main/res/values/exam.xml b/app/src/main/res/values/exam.xml index 688eb2d825..47f9548ef4 100644 --- a/app/src/main/res/values/exam.xml +++ b/app/src/main/res/values/exam.xml @@ -8,12 +8,9 @@ meaning is equal to DIA parameter used in pumps correct value must be determined Hypo temp target - When should you do a hypo TT? + Why should you do a hypo TT? you are going low your already have a low bg - your not low anymore, but your BG is rising because of the (right!) amount of hypo treatments - your bg is rising, has just reached the target BG but there is still too much IOB left - you have had a low bg a while ago, but it got you in a hyper https://androidaps.readthedocs.io/en/latest/EN/Usage/temptarget.html Which profile can be used and configured offline Offline profile diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 77fe1ff9d0..87b42fa1ff 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1637,6 +1637,7 @@ Close objectives_request_code Request code: %1$s + to prevent SMB after a hypo rise from fast carbs %1$d day From b5e4c044ac61167c370aa2acbc8ca80615a72a93 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sat, 7 Sep 2019 11:32:24 +0200 Subject: [PATCH 2/3] display hint in exam --- app/src/main/res/layout/objectives_exam_fragment.xml | 11 ++++++++++- app/src/main/res/values/strings.xml | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/src/main/res/layout/objectives_exam_fragment.xml b/app/src/main/res/layout/objectives_exam_fragment.xml index df432cc5d2..ff906d036d 100644 --- a/app/src/main/res/layout/objectives_exam_fragment.xml +++ b/app/src/main/res/layout/objectives_exam_fragment.xml @@ -17,7 +17,7 @@ android:layout_height="wrap_content" android:layout_marginTop="16dp" android:orientation="vertical" - app:layout_constraintTop_toBottomOf="@+id/objectives_exam_question" + app:layout_constraintTop_toBottomOf="@+id/objectives_exam_hint" tools:layout_editor_absoluteX="3dp"> @@ -81,6 +81,15 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/objectives_exam_name" /> + + objectives_request_code Request code: %1$s to prevent SMB after a hypo rise from fast carbs + (check all correct answers) %1$d day From 45638ef5ebbfbeb5658ef425e71ea73c27ce5b64 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sat, 7 Sep 2019 11:56:16 +0200 Subject: [PATCH 3/3] 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)