-
Notifications
You must be signed in to change notification settings - Fork 293
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
Handle repeated groups #726
Comments
bumping to P1 |
@shelaghm Are you able to provide a Ux mock for this? We are trying to add multiple items for a specific group. For example, I want to record multiple immunizations for a given Patient. Each item group has the same set of fields that are added. So something like a + icon option that adds a new line of fields to complete. Thanks |
Some quick comments:
1. We will need the ability to remove the item if it was
inadvertently added
2. As the single form can end up taking up the whole screen, just vertical
growth of the repeated items may be a bad idea from a usability point of
view. It will be nicer if an item can be collapsed to a single line so that
visually one can count how many have been added.
3. It should be possible to jump to each item easily.
4. What happens when a repeated item itself is large enough to need
multiple groups (pages)? e.g. "Add another family member"
…On Wed, Mar 23, 2022 at 3:00 PM Shelagh McLellan ***@***.***> wrote:
@joiskash <https://github.com/joiskash> @fredhersch
<https://github.com/fredhersch> @jingtang10
<https://github.com/jingtang10>
How about something like this?
[image: Screen Shot 2022-03-23 at 11 58 42]
<https://user-images.githubusercontent.com/86378921/159775619-c2f146f7-2386-43d9-8879-e37a6e57083b.png>
—
Reply to this email directly, view it on GitHub
<#726 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABWFNAUL3T67PJOIINJ4CALVBNS5PANCNFSM5CLSL3SA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@fredhersch As a follow-up, this can be used in the immunization follow-up questionnaire for Child Immunization for LMH. Will look into this in the next Sprint |
We also have use cases for recording birth outcomes. Sometimes this is handled with an initial question such as “how many babies?” |
Thanks @kumaakh , a couple of comments:
Open to other thoughts cc: @jingtang10 |
@RaaziaTarique FYI |
This ticket will be a pre-requisite for #1038 |
As per this link, https://www.hl7.org/fhir/questionnaire-definitions.html#Questionnaire.item.repeats. So, for supporting |
After analysing and trying multiple approaches to add repeated groups support in SDK I ended up in picking the approach to use nested recyclerView for each |
@RaaziaTarique as discussed can you share any progress/investigation you have made? thanks |
Here's an updated mock addressing
Let me know what you think and if this aligns with the engineering approach? |
|
@kevinmost i wonder if you can take a look at this after what you're working on right now |
@kevinmost thanks so much for landing the PR for repeated group! this is great! reopen to handle deletion. let me know when there's a pr kevin :) |
@shelaghm also can you please provide an icon for releated group in the catalog app? thanks! |
I recommend we use this icon! Will paste link on our internal chat where it is the right color and size. |
📜 |
Great solution here @shelaghm. @jingtang10 would one be able to still add repeat groups anywhere in the form e.g incases where the date is the same and they would want it separated from the groups and thus have date field above Immunization 1 group, and then the groups (immunization 1, 2, 3) below it. |
hey @HenryRae - in that case wouldn't date just be a question that precedes the repeated group? i think that can be easily supported with small modification to the authored questionnaire. hope i understand the question correctly and this makes sense. |
Yes @jingtang10, you got that right. It would precede the repeated group like below. Great then if it can be easily supported with small modification to the authored questionnaire. Thank you |
Reopening this issue instead of creating a new one, as this issue already mentions repeated group UI changes. |
Hello @santosh-pingle I've tested the changes introduced in this PR #1994 and it appears adding repeated groups in a paginated Questionnaire introduces an empty group. Are the group headers (labels) configurable? cc @jingtang10 |
thanks! Are the group headers (labels) configurable? |
Hi @santosh-pingle Yes, the issue is fixed with that PR ✅ |
Is your feature request related to a problem? Please describe.
Repeated question groups
Describe the solution you'd like
Potentiall we can add a "+" button so that the user can create new groups. Groups that are repeatable can also be deleted with a "-" button
Describe alternatives you've considered
NA
Additional context
NA
Would you like to work on the issue?
NA
The text was updated successfully, but these errors were encountered: