Skip to content

Repose | Change sporadic SC scheduling

Code base: Schedule.matchesDate()

Sporadic SCs are symptom checks that are scheduled for a specific date and/or interval instead of fixed days of the week. The REPOSE study uses them to do an extensive baseline assessment at the start and end of the study.

Current

Sporadic SCs are active in the calendar week of their target day(s). A week starts on Monday.

Ex: ScheduleConfig = { startDate : '2023-10-01', interval : [5] }

Target day is 2023-10-06 (01 + 5), a Friday.

Ergo, the symptom check is active in the week October 2 to October 8.

Desired

Sporadic SCs are active for 14 days starting from the target day.

In the above example, the SC should be active from October 6 to October 20.

If that is too complicated, activate the SC in the calendar week of the target day (as is currently the case) and in the following calendar week. This way, each participant has at minimum 8 days to complete the SC, which should be enough.

Other, more general ideas for refactoring/expanding also welcome!

Edited by Noel Simmel