-
Notifications
You must be signed in to change notification settings - Fork 305
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
Some Radio Buttons seems to deselect automatically after selection. #1812
Comments
I also see below issues
Screen.Recording.2023-01-17.at.3.39.18.PM.movScreen.Recording.2023-01-17.at.3.43.52.PM.mov |
Basically, these issues are observed on nested question items of the question when it get enabled. |
I ran
looking further into the change that caused this |
Leaving my debugging notes here: We don’t seem to save the answers right now to the When I set the
|
I found a simple solution, which is changing the statement:
to just an
however, I am not sure if this diverts us from the FHIR standard (I am still a novice when it comes to the standard). If a Questionnaire Item type is "choice" or "text", can it have child items? The link below states that the type "group" should have at least one child item, but is unclear whether other types can: |
Answer to my own question: Anything but display items can have child items. https://www.hl7.org/fhir/questionnaire-definitions.html#Questionnaire.item.item |
@dubdabasoduba is there a reason for the questionnaire attached to have nested items? While we find a fix to support nested items, is it possible to flatten out the items? |
@omarismail94 yes, the nested items make it easier to write the enableWhen expressions. Instead of replicating the same enableWhen expression you just write it for the parent. |
The flattened forms work well FYI. I tested them on our imlementation |
Thanks, good to know the flattened forms work! I know it isn't as nice as nested, but at least it unblocks you while we work on this issue. I had an initial solution working, but it created new problems when validating the questionnaire :( |
Final finding for today, it seems like this is a known issue in our codebase. Looking at the test files, I see a unit test that has the same setup as this issue, but is ignored. Seems like Kashyap wrote this test, so will chat with him if he shows up to the developer call tomorrow |
Updated the questionnaire to remove noise: new_pregnancy_registration_min.json.txt @dubdabasoduba please try to include minimum examples while creating issuse in the future (removing unnecessary information in your example and just the bare minimum required to reproduce the problem) - that makes it much easier to debug and to get to the bottom of the issue more quickly. |
Makes sense. |
@dubdabasoduba will you please test if PR #1881 fixes your issue? |
I will test and raise a ticket for bugs if any |
This works well. @jingtang10 Thanks |
Describe the bug
new_pregnancy_registration.json.zip
Component
SDC library
To Reproduce
Steps to reproduce the behavior:
Load the attached form to the SDK then test using the steps shown on the attached video
https://user-images.githubusercontent.com/4817531/212714001-5b944d84-d6ed-4a6a-9927-f892ac73a9f8.mov
Expected behavior
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: