Introduction KRANE™ Knowledge Base
Working version v2.23-Woodpecker- App version 1.35.x v2.21-Umbrellabird- App version 1.33.0 v2.19 Sparrow - App version 1.31.1 v2.18 Raven - App version 1.30.5 v2.17.1 - App version 1.30 v2.17 Quail - App version 1.28.0 v2.16 Pelican
Working version v2.23-Woodpecker- App version 1.35.x v2.21-Umbrellabird- App version 1.33.0 v2.19 Sparrow - App version 1.31.1 v2.18 Raven - App version 1.30.5 v2.17.1 - App version 1.30 v2.17 Quail - App version 1.28.0 v2.16 Pelican English Dutch
Breadcrumbs

MAN-10 Scheduling Logic

1. Introduction

1.1 Purpose

The purpose of this manual is to explain the configuration and behavior of experiment scheduling, including trigger-based activation, relative scheduling, end date settings, and individual workflow configuration per participant.

1.2 Scope

This manual covers the following aspects:

  • Behavior and configuration of trigger-based scheduling ("First Login", "Start Date" and "Experiment Completed")

  • Individual participant scheduling vs. project-level

  • Setting and calculating schedule end dates and occurrences

  • Recurring schedules (including relative frequency options)

  • Display behavior of scheduled tasks in the app

  • Time zone considerations

2. Scheduling configuration

2.1 Trigger-based Scheduling

The system supports trigger-based activation of experiment schedules. Supported triggers are:

  • First Login:

    • The schedule is activated either immediately upon the user's first login or after a configurable delay. The delay can be set in hours, days, or months from the moment of first login.

    • The system shall provide an option to set the specific time at which the experiment must be triggered.

    • If the patient logs in after the scheduled trigger time (e.g., logs in at 11:00 AM when the experiment was set for 8:00 AM), the task shall be scheduled for the next valid occurrence of that time (e.g., 8:00 AM the following day).

    • The availability duration of the task (e.g., 1 hour, 3 weeks) shall begin from the actual trigger time, not from the originally scheduled time if it has already passed.

  • Experiment Completed:

    • The schedule is activated when the user successfully completes a selected experiment. A delay can also be configured in hours, days, or months after the experiment completion.

    • The system shall provide an option to set the specific time at which the experiment must be triggered.

    • If the patient completes the experiment after the scheduled trigger time (e.g., completed at 11:00 AM when the experiment was set for 8:00 AM), the task shall be scheduled for the next valid occurrence of that time (e.g., 8:00 AM the following day).

    • The availability duration of the task (e.g., 1 hour, 3 weeks) shall begin from the actual trigger time, not from the originally scheduled time if it has already passed.

  • Start Date (manual selection):
    The schedule is activated on a fixed date manually selected by the user.

These triggers must be stored in the database and retrievable via API.

2.2 End Date configuration

When configuring a schedule, users can select how and when the schedule ends. Options include:

  • No end date:
    Schedule remains active indefinitely as long as the project/sub-org/patient exists.

  • Set end date:
    A calendar appears to let the user select a specific date. The schedule is active until that date.

  • Amount of occurrences:
    A text field appears to define how many times the task should occur. The effective end date is calculated based on this input.

  • Behavior:

    • Tasks are scheduled only within the active period.

    • Tasks are not shown in the app after the end date.

2.3 Individual participant Scheduling

Participants can have workflows tailored specifically to them:

  • Default behavior:
    New participant workflows are prefilled from the project-level configuration.

  • Override capability:
    Individual workflows overwrite project-level defaults (for the individual participant).

  • Visibility:
    When an individual schedule is applied, it is displayed in the app accordingly.

2.4 Recurring Scheduling options

When setting a recurring schedule, the following frequency options are available via dropdown:

  • Daily

  • Weekly

  • Monthly

  • Relative

Relative Scheduling:

When "Relative" is selected, an additional input appears:

every [X] hour(s)/day(s)/week(s)/month(s)/year(s)

  • The first task appears in the Planned Tasks section as per schedule.

  • Tasks appear in the Open Tasks section only during the active duration defined in the workflow.

2.5 Task visibility in the app

  • Planned tasks:

    • Displays the next upcoming task (first scheduled task in the future).

  • Open tasks:

    • Displays only active tasks within the configured active duration (taking into account how the availability has been configured).

2.6 Time zone considerations

  • Task scheduling respects the user’s individual time zone.

  • Future tasks are scheduled using the time zone in effect at that future date.

2.7 Project and patient workflows

  • A project can have multiple workflows, each linked to a specific experiment.

  • When adding a patient, multiple workflows can also be assigned.

  • Workflows can be deleted or modified as needed.