-
Notifications
You must be signed in to change notification settings - Fork 299
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 Questionnaire with item repeats to handle questions which can have more than one answer #216
Comments
can I work on this? |
I believe @joiskash was gonna take this. |
Yup that's right :) |
There are two main requirements as defined in the FHIR spec
@jingtang10 @fredhersch just wanted your views on the comment above. que-6 | Rule | Required and repeat aren't permitted for display items | type!='display' or (required.empty() and repeats.empty()) |
I didn't know that a group can be repeated too. Interesting. It makes sense. I guess that could be handled in a separate PR or even in a separate issue if you prefer. About the text you quoted, I think it depends on type of answer and whether nested items exist. For example, multiple choices questions with checkboxes probably don't need to repeat the question. But questions with nested items might need to have the question repeated to make it clear. We can probably depriorise this case (repeating the question) for now and focus on repeated questions without nested items. Would this be enough as a starting point? @fredhersch we might benefit from some mocks / UX support for this one. |
ok got it. Yea that makes sense and is a good starting point for this PR. Thanks @jingtang10 |
Points to keep in mind for questionnaire items that can have more than one answer,:
|
@fredhersch on 2) and 3). A plus icon sounds reasonable to me. Rather than a dustbin icon, can we do a minus icon? Simpler. Also can we try to use material icons? |
Sure I will use material design. As discussed with Jing, I will be going ahead with the following design: |
Could we split this into different issues:
|
@fredhersch how is "nested items" and "multiple items selected" different from the other items? |
|
I think the most important of these is the set of checkboxes. The rest will be good to have but probably not critical (yet). But this issue should be kept open for record keeping. |
I think adding multi-select dropdown with checkboxes is a priority given the mobile surface we are supporting. The rest can be nice to haves for now. |
Closing this issue since any work is tracked in sub-items |
Questionnaire.item.repeats is used to indicate that a particular question / group of questions can have multiple answers.
The text was updated successfully, but these errors were encountered: