-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDC | Nested items of group are not rendering when loading Questionnaire using QuestionnaireResponse #1998
Comments
I have experienced the same issue with below questionnaire and questionnaireResponse. questionnaire.txt Steps:
|
@jingtang10 @santosh-pingle |
I will look into it. |
@ppanchal-argus |
@santosh-pingle From the second patch: |
hey @parthfloyd and @nsabale7, why are questionnaire responses provided without nested items? where did they come from? can you fix this by using questionnarie responses with nested items? |
@jingtang10 This is occuring when the nested items are not enabled due to their enableWhenExpression logic. The questionnaireResponse generated in the SDC doesn't include these disabled (by enableWhenExpression logic) nested items. The issue occurs when the questionnaire is re-rendered with this QR and user changes question which satisfied the enableWhenExpression condition for those nested items. |
If the corresponding missing response items are added to the questionnaire response, and the Expectation as per QuestionnaireResponse specification which says cc @jingtang10 |
Describe the bug
Nested items under group type are not rendering when loading Questionnaire using QuestionnaireResponse, however they are loading when nested items are under Boolean type.
Component
SDC Library
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Ideally the nested items should be visible even for group type.
Screenshot
Group Type:
Boolean Type:
Smartphone (please complete the following information):
Additional context
After applying patch: Questionnaire is at file: assets/new-patient-registration-paginated.json & QuestionnaireResponse is on line: 82 (AddPatientFragment.kt)
cc: @jingtang10 @omarismail94
The text was updated successfully, but these errors were encountered: