You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After the decision to remove questionnaireResponse items which are not enabled from the Questionnaire Response (more details in #755) , the validateQuestionnaireResponseItems function in the QuestionnaireViewModel had to be updated because it was initially written assuming that disabled questionnaireResponse Items would also be there in the QuestionnaireReponse with empty answers.
Component
SDC library
To Reproduce
Steps to reproduce the behavior:
Use a questionnaire with an item that has enable when
Answer the questionnaire such that enableWhen is false
Use the questionnaire response that is output and the questionnaire as input to the fragment
App will crash.
Expected behavior
App should not crash since the spec clearly mentions that the disabled answers "may" be present
When a QuestionnaireResponse references a Questionnaire, all the items in the questionnaire SHOULD be included in the QuestionnaireResponse if they are relevant to the interpretation of the answers, including items of type = display. This might also include items that were >not enabled when the Questionnaire was answered, though of course these will not have answers
Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
Device: [e.g. Pixel4a emulator]
Android version: [e.g. Settings -> About phone -> Android version]
Build number: [e.g. Settings -> About phone -> Build number]
Version [e.g. 22]
Additional context
Add any other context about the problem here.
Would you like to work on the issue?
Yes
The text was updated successfully, but these errors were encountered:
Describe the bug
After the decision to remove questionnaireResponse items which are not enabled from the Questionnaire Response (more details in #755) , the
validateQuestionnaireResponseItems
function in the QuestionnaireViewModel had to be updated because it was initially written assuming that disabled questionnaireResponse Items would also be there in the QuestionnaireReponse with empty answers.Component
SDC library
To Reproduce
Steps to reproduce the behavior:
Expected behavior
App should not crash since the spec clearly mentions that the disabled answers "may" be present
Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
Would you like to work on the issue?
Yes
The text was updated successfully, but these errors were encountered: