-
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
Fix zip index based mapping issue when unpacking repeat groups #1973
Conversation
- With unmerged PR google#1973 - With unmerged PR #1 - With unmerged PR google#1917
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for this @maimoonak.
about should not modify other items while unpacking repeated groups
: i think the test is wrong, the link ids in the questionnaire response should be non-repeated... can you fix please? thanks!
...e/src/main/java/com/google/android/fhir/datacapture/extensions/MoreQuestionnaireResponses.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @maimoonak
.../main/java/com/google/android/fhir/datacapture/extensions/MoreQuestionnaireItemComponents.kt
Outdated
Show resolved
Hide resolved
…extensions/MoreQuestionnaireItemComponents.kt
Fixes #1972
Description
The issue is that the zip index mapping for questionnaire and questionnaire-response item can not be used when unpacking the items while generating questionnaire-response. If items before the group are missed due to enablement it just skip the data entered into item embedded into groups.
Alternative(s) considered
zip index mapping for questionnaire and questionnaire-response item can not be used because there could be missing items from questionnaire-response due to enablement condition
Type
Choose one: Bug fix
Screenshots (if applicable)
Checklist
./gradlew spotlessApply
and./gradlew spotlessCheck
to check my code follows the style guide of this project../gradlew check
and./gradlew connectedCheck
to test my changes locally.