Add ability to exclude Questionnaire items from being repopulated from a QuestionnaireResponse #3468
Closed
Description
Describe the feature request.
Introduce a new Questionnaire config to specify which Questionnaire items can be skipped during repopulation from a QuestionnaireResponse
Additional context
There are instances when editing previous Questionnaire submissions, the Questionnaire shouldn't have certain fields repopulated from the QuestionnaireResponse. For example, when a date field should have the current date and not the previously submitted date.
Acceptance criteria
- When linkIds of the Questionnaire items to be skipped are defined, the fields should not be initialized with the QuestionnaireResponse values
- If no linkIds are specified, the Questionnaire item values should be repopulated
Implementation plan (For Engineers)
When loading the Questionnaire, edit the QuestionnaireResponse and set values for the items defined in the new config to empty so that when the values are repopulated, the items with missing response items will not be assigned.