Skip to content

Add Schedule and Reminder Quick actions to basic structure of monitoring setup #37hg3wd

This issue is a sub issue of #240+

It's probably a good idea to take a look at #240 first to get some context for this issue.

The goal here is to enable default schedule and reminder for the Monitoring setup, building on the basic structure laid out in #247+.

What is to be done?

  • Add an RccQuickActionListComponent (from #242+) to the page created in #247
  • Add an entry for the schedule
  • Add an entry for the reminder
  • Add the title 'Standardzeitplan & -erinnerung' above the RccQuickActionListComponent (maybe adjust spelling as you see fit)

Schedule

The Action used for the schedule entry should use ScheduleEditService.edit(schedule).

See SymptomCheckEditComponent.editDefaultSchedule() for an example. The actual schedule editing overlay/modal/widget will be subject of a later issue. For now we use the current/old one.

The schedule is part of the SymptomCheck held by RccMonitoringSetupService (see #247) and needs to be updated, when the user clicks this quick action: SymptomCheck.meta.defaultSchedule.

Reminder

The actual reminder editing overlay/modal/widget will be the subject of a later issue,

Check out SymptomCheckEditComponent, the Reminder is handled by a FormControl and ion-datetime. Replicating this is probably overly complicated for this issue. For this issue it is only important that the entry exists and somehow sets the reminder.

To make it work I propose one of the following:

  • Clicking the Reminder entry opens a modal with an input, that expects an HH:MM value
  • Clicking the Reminder entry focuses an input below the quick action list expecting an HH:MM value
  • Something better you come up with :D

The reminder is part of the SymptomCheck held by RccMonitoringSetupService (see #247) and needs to be updated, when the user clicks this quick action: SymptomCheck.meta.reminder.

Setting values on SymptomChecks

In many cases I felt more comfortable editing SymptomCheckConfigs and then creating a SymptomCheck with that config when needed rather than the values on SymptomChecks directly. But that seems like a matter of taste :) In any case though it is probably a good idea to amend RccMonitoringSetupService with methods updating those values.

Requirement

  • RccQuickActions is present on the page and looks like the layout (styles are part of #242 though)
  • The title above theRccQuickActions is present
  • Clicking the send button creates a QR code that transfers a SymptomCheck to the PAT with the set default schedule and reminder (sending is part of #247)

Layouts

Here's what the the final screens should look like; This issue is only concerned with quick action list on the bottom (white box)

figma

PDF with Annotations

Screen layout normal and hovered/tapped:

B_002_Initialising_Monetoring_Set-Up

Edited by Andreas Pittrich