Skip to content
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 library] initialExpression with multiple values as result rendering incorrectly. #2750

Open
parthfloyd opened this issue Dec 6, 2024 · 0 comments · May be fixed by #2751
Open

[SDC library] initialExpression with multiple values as result rendering incorrectly. #2750

parthfloyd opened this issue Dec 6, 2024 · 0 comments · May be fixed by #2751
Assignees
Labels
effort:small Small effort - 2 days P1 High priority issue

Comments

@parthfloyd
Copy link
Collaborator

Describe the bug
When the result of initialExpression is a collection instead of a single value, The SDC only renders the first value instead of the whole collection.
For example, while using it for a multiple choice question, it only populate the first element of resulting collection of the expression.

Component
SDC library

To Reproduce

Expected behavior
(Mother , sister & son should be selected).

Screenshots
Image

Smartphone (please complete the following information):

  • Pixel4a emulator

Additional context
Here it's only selecting the first value: https://github.com/google/android-fhir/blob/f42e80427b34dbe9f14ee2f0b4460c38cee0ef[…]a/com/google/android/fhir/datacapture/mapping/ResourceMapper.kt

Would you like to work on the issue?
Yes, creating a PR for fix.

cc: @jingtang10 , @icrc-jofrancisco

@parthfloyd parthfloyd linked a pull request Dec 6, 2024 that will close this issue
7 tasks
@aditya-07 aditya-07 added P1 High priority issue effort:small Small effort - 2 days labels Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort:small Small effort - 2 days P1 High priority issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants