Смена профиля & процентное содержание профиля

В этом разделе объясняется, что такое Смена профиля и Процент профиля. You can learn how to create a Profile in Your AAPS Profile.

Когда мы вступаем в жизнь с использованием AAPS, нам следует создать диабетический Профиль, понять, как он работает, как выполнять Смену Профиля, а также изучить влияние ** Процентного содержания Профиля** на алгоритмы AAPS. The features of a Profile Switch or Profile Percentage can be particularly beneficial for:

  • принятия в расчет менструального цикла - процентная корректировка в пределах ** Профиля** может быть настроена в Автоматизации, чтобы позволить AAPS адаптироваться к различным стадиям гормонального цикла и прогнозируемой резистентности к инсулину.

  • учета физических нагрузок - процентная корректировка в ** профиле** может быть настроена в ** Автоматизациях** при физических нагрузках, чтобы снизить расход базала.

  • людей, работающих по сменам - сдвиг по времени в ** Профиле**, изменяя Профиль в зависимости от того, насколько позже / раньше пользователь ложится спать или просыпается.

Why use a Profile Percentage rather than a temporary basal adjustment? To be more effective in its application a Profile Percentage applies a proportionate reduction or increase across: basal, ISF and I:C. Это гарантирует, что при назначении дозы инсулина AAPS обеспечит сбалансированный подход. За счет уменьшения базальной скорости в Профиле можно добиться незначительных результатов, если алгоритм AAPS сохраняет прежние соотношения ISF и I:C.

Change the Profile Percentage from the main screen

You need at least one saved Profile. A Profile Percentage is always applied through a Profile Switch: you activate a Profile again, this time with a percentage.

Coming from AAPS 3? :class: note A long press on the profile name no longer opens the profile switch dialog. Tap the profile name, then tap the round ▶ button at the bottom right: it opens the same settings (percentage, duration, Activity temp target).

<br />1. On the main screen, **tap the profile name** (next to the star icon). The [Profile screen](#ProfileSwitch-manage-v4) opens on the card of the running **Profile**, marked **ACTIVE**.

   ![Tap the profile name on the main screen to open the Profile screen](../images/v4/Profiles/ProfileSwitch2.png)

2. To keep the same **Profile**, leave the **ACTIVE** card selected. To change **Profile** at the same time, swipe to another card.
3. Tap the round **▶** button (**Activate**) at the bottom right. The **Activate** screen opens.
4. Set the **Percentage** with **−** / **+** (steps of 5 %), or type it in (30 to 250 %). The field always starts at **100 %**: it does not show the percentage that is running now. For example, enter **80** for 20 % less insulin, or **120** for 20 % more.
5. Set the **Duration** in minutes:
   * **0** keeps the new percentage until you make another **Profile Switch**;
   * any other value ends the switch after that time, and **AAPS** goes back to the **Profile** that was running before.

   ![The Activate screen set to 80 % for 60 minutes](../images/v4/Profiles/profile_activate_percentage.png)

6. Tap **▶ Activate** at the bottom of the screen. Check the summary in the **Profile switch** dialog and tap **OK**.

   ![The confirmation dialog — profile, percentage and duration](../images/v4/Profiles/profile_activate_confirm.png)

Back on the main screen, the profile name shows the percentage and the remaining time, for example *Normal (80%) (59')*, and turns yellow while a switch with a duration is running. A star marks the switch on the glucose graph. See [the main screen](#aaps-screens-profile--target).

![The main screen while an 80 % profile switch is running](../images/v4/Profiles/profile_switch_running.png)

To **go back to 100 %** before the end, repeat the steps and keep **Percentage** at 100 and **Duration** at 0.

```{admonition} One-tap percentages
:class: tip
If you often use the same percentage (sport, illness), add a [Profile shortcut](#profile-shortcuts) to the Quick Launch bar, or create a [scene](Scenes.md). Both apply a profile with a preset percentage and duration in one tap.

Managing and activating profiles (Manage → Profile)

In AAPS v4 profiles are managed and activated from the Manage screen (bottom navigation) → Profile (“Manage and activate profiles”).

The Profile screen shows your profiles as a swipeable card carousel. The card of the running profile is marked ACTIVE and shows its total daily basal (e.g. ∑ 30.15 U). Below the selected card you see that profile’s details — the Insulin type, and the IC, ISF, basal and target schedules with graphs.

When a temporary switch is running, the ACTIVE card shows its percentage and time shift with the time left, for example 110% +2 h · 2 h 40 min, above a progress bar. Both are refreshed every 30 seconds. The details below then have two columns: the values of the profile in blue, and the values in use with the percentage in red.

The Profile screen — profile carousel, details and action bar

The buttons at the bottom act on the selected profile: ➕ Add, ✏️ Edit, ⧉ Clone and ‘️ Delete, and the round ▶ Activate button on the right. For how to fill in the four schedules in the editor (IC / ISF / BAS / TARG), see Create and edit Profiles.

⧉ Clone uses the two-squares icon often used for copy, but there is nothing to paste: it makes the duplicate in one step. Confirm Clone profile «Normal»? and a new profile named Normal copy is added at the end of the carousel and selected, ready for ✏️ Edit (where you can also rename it). This is not the same as cloning a past Profile Switch from the Treatments history, which creates a new profile with the percentage and time shift applied. See Keep a profile switch for later use.

(ProfileSwitch-read-only-mode)= Only the ▶ Activate button? Your settings are protected, so the screen opens read-only. Tap the ✏️ pencil in the top bar and enter your settings password. See Settings protection now also locks the management screens.

Reordering profiles

If you have more than one profile you can choose their order in the carousel: tap the Reorder icon (⇅, two arrows pointing up and down) in the top bar. The page indicator is replaced by ◀ / ▶ move buttons with a position / total readout — step the centred card earlier or later, then confirm with ✓ (or discard with ✕). The new order is saved once, when you confirm.

Reorder mode — move buttons and position readout

Activating a profile

Select a profile and tap ▶ Activate. The Activate screen lets you tailor how the Profile Switch is applied:

The Activate screen — percentage, duration, time shift, time

  • Percentage (30–250 %, starts at 100 % every time) — scale the whole profile. 100 % uses it as-is; for example 70 % reduces basal and the calculated insulin dose (both meal boluses and corrections) by 30 %. It does not change your glucose targets or carb absorption. See Profile Percentage for the full effect.

  • Duration (0–10080 minutes, that is up to 7 days) — how long the switch lasts. 0 = indefinite (until you switch again); a non-zero value reverts to the previous profile when it ends.

  • Temporary target / Activity — appears only when you set a Duration and a Percentage below 100 %. Switch it on to also start an Activity temp target for the same duration, as you would before exercise.

  • Time shift — shows 0h; tap Change to move the schedule forward or back by up to 23 hours (useful for shift work or travel). See Time shift.

  • Reuse — appears when the running switch has a percentage other than 100 % or a time shift, for example Reuse 80% 0h. Tap it to fill in the same percentage and time shift, for instance to prolong a switch that is about to end.

    The Reuse button while an 80 % switch is running

  • Time — Now by default. You can pick another time, up to 24 hours before or after now. A switch set in the future starts at that time; an Activity temp target set with it then also starts at that time.

    Choosing the time of a profile switch

  • Notes — only shown if Show notes in dialogs is on.

If the basal rates at the chosen percentage are not compatible with your pump, a warning appears at the top and ▶ Activate stays disabled: choose another percentage.

Tap ▶ Activate, then OK in the confirmation dialog. The running profile then carries the ACTIVE badge on its card.

Your pump may round the basal rates :class: note Each pump can only give basal rates in its own steps (for example 0.05 U/h), so it rounds the rates of your Profile. AAPS then uses the basal the pump really gives, so IOB and TDD stay correct. If the pump gives a little more or less insulin per day than your Profile, the notice «Basal profile in pump updated» tells you how much, for example «it gives 10.00 U per day instead of 10.12 U».

If the pump reports a basal that is far from your Profile, AAPS keeps the Profile basal and asks you to check the basal rates in the pump.

<br />```{admonition} Percentage and time shift make one profile go a long way
:class: note
Rather than building many similar profiles, keep one base profile and apply it at a different **percentage** or **time shift** for recurring situations (illness, exercise, travel). This is exactly what [scenes](Scenes.md) automate.

A profile switch is not limited to this screen. The same switch can also be triggered from a Wear OS watch, a paired client (see Master ↔ Client control), a scene, or an Automation rule.

Процент профиля

Важно, чтобы пользователь понимал основные характеристики ** процентного содержания профилей**. При применении процентного увеличения или уменьшения при Смене профиля **** пропорционально увеличиваются или уменьшаются значения настроек пользователя, которые установлены в ** Профиле**.

Например: **Смена профиля ** на 130% (т. е. резистентность к инсулину у пользователя на 30% выше) заставит алгоритм AAPS выполнить такие действия:

  • Увеличить скорость подачи базального инсулина на 30%;

  • Понизить ** Фактор чувствительности к инсулину ISF** разделив его на 1,3;

  • Понизить ** Углеводный коэффициент I:C** разделив его на 1,3.

Помните, что снижение ISF или I:C означает более агрессивную подачу инсулина. Новички AAPS могут легко упустить это из виду.

После смены профиля AAPS изменит базальную скорость по умолчанию, и (в открытом или замкнутом цикле) будет продолжать работать исходя из выбранного процентного значения ** Профиля **.

Влияние процентного изменения ** Профиля ** можно увидеть в таблице ниже:

| Смена Профиля
Процент | Эффект | I:C
g/U | Example
15 g | ISF
mmol/L/U
mg/dL/U | U to lower
2mmol/L
40mg/dL | |:————————:|:————:|:—————–:|:————–:|:——————————————:|:——————————:| | 90% | Слабее | 5/0.9
=5.55 | 2.7 U | 2.2/0.9
=2.4

40/0.9
=44.4 | 0.8 U | | 100% | Стандарт | 5 | 3 U | 2.2
40
| 0.9 U | | 130% | Сильнее | 5/1.3
=3.85 | 3.9 U | 2.2/1.3
=2.4

40/1.3
=30.8 | 1.2 U |

Временной сдвиг циркадного процентного Профиля

Функция «сдвиг по времени» в **Профиле ** переместит настройки ** Профиля ** пользователя в соответствии с суточным (циркадным) часовым ритмом на введенное количество часов. Это полезно для:

  • night shift or pattern workers: work night shifts by altering the number of hours to how much later/earlier in the Profile the user will go to bed or wake up;

  • пользователей, меняющих часовые пояса во время путешествия; или

  • Детей с диабетом 1 типа: у которых есть установленный режим отхода ко сну и резистентность к инсулину, указанные в Профиле. Если по какой-либо причине ребенку назначено более позднее время отхода ко сну, лицо, осуществляющее уход, может применить «сдвиг во времени» к Профилю ребенка, чтобы позволить AAPS реагировать на резистентность к инсулину в период времени, установленный врачом.

Всегда возникает вопрос о том, настройки **Профиля ** какого времени должны замениться настройками текущего времени. Это время должно быть сдвинуто на х часов. Поэтому, внимательно отнеситесь к инструкциям, описанным в следующем примере:

  • Текущее время: 12:00

  • Сдвиг в сторону увеличения времени

    • 2:00 ** + 10 ч **-> 12:00

    • Вместо параметров, обычно используемых в 12:00, из-за положительного сдвига времени будут использоваться параметры от 2:00.

  • **Сдвиг в сторону уменьшения ** времени

    • 22:00 ** -10 ч **-> 12:00

    • Вместо параметров, обычно используемых в 24:00, из-за отрицательного сдвига времени будут использоваться параметры от 22:00.

Инструкции по смене профиля и часового пояса

This mechanism of taking snapshots of the Profile allows a much more precise calculation of the past and the possibility to track Profile changes.

Сохраняйте изменения в профиле для последующего использования

После того, как выполнена Смену профиля с помощью процентного и/или временного сдвига, можно скопировать этот временный профиль в новый профиль.

To do this, open the menu (☰) → Treatments and go to the Profile switch tab, see Clone a Profile switch to a new Profile.