Add question category to questions on share
🆕 Feature
Related software requirement: none
Related Epic ClickUp ID: none
Affected app variants: HCP
Summary
While both RccMonitoringSetupService
and SymptomCheck
can handle questions with categories now both still need to be linked together.
Background
The possibility to have categories for questions lead to changes in RccMonitoringSetupService
and SymptonCheck
those changes were made independent of each other and both do not yet interact in a way that allows a transfer of question categories from monitoring setup.
Acceptance Criteria
List the acceptance criteria that must be met before this issue may be closed.
-
Questions should be transfered with associated categories from monitoring setup
Ideas
This should be very little work. Adding categories in the share
method of RccMonitoringSetupService
should do it (see lines 387 to 394 in monitoring-setup.service.ts
):
// TODO: also add category when changes to SymptomCheck have been merged. see !239
questions.forEach(
(categorizedQuestion: CategorizedQuestionWithSchedule) =>
symptomCheck.addQuestionId(
categorizedQuestion.question.id,
categorizedQuestion.schedule?.config
// add category here
)
)