FHIR Chat · Q.repeats? · questionnaire

Stream: questionnaire

Topic: Q.repeats?


view this post on Zulip Eric Haas (Jun 13 2018 at 02:06):

I thought that Q.repeats could be used to indicate any of the choices as in "2 Think about the place you live. Do you have problems with any of the following? (check all that apply)" But the documentation is not that clear - it indicates the question can repeat but no mention if you can select multiple checkbox items. Do I have to use the MIN and MAX extension for this common use case?

view this post on Zulip Grahame Grieve (Jun 13 2018 at 02:08):

heres a fun fact: the definition of max is :

The maximum number of times the group must appear, or the minimum number of answers for a question - when greater than 1 and not unlimited.

view this post on Zulip Grahame Grieve (Jun 13 2018 at 02:08):

so I don't know whether min/max are different to required/repeats or not

view this post on Zulip Lloyd McKenzie (Jun 13 2018 at 02:53):

Min and max qualify required and repeats

view this post on Zulip Lloyd McKenzie (Jun 13 2018 at 02:53):

So if required=true, then min is implicitly at least 1. You can use min to set it to a higher value.

view this post on Zulip Lloyd McKenzie (Jun 13 2018 at 02:54):

Similarly, if repeats = true, then max is implicitly more than one (default = unlimited). You can use the max extension to set an explicit max

view this post on Zulip Lloyd McKenzie (Jun 13 2018 at 02:54):

And yes, @Eric Haas, if you set repeats = true, that means you can have multiple answers for the question.

view this post on Zulip Grahame Grieve (Jun 13 2018 at 05:59):

I feel as though you ducked Eric's question: this question can be asked multiple times, or this question has multiple answers....

view this post on Zulip Lloyd McKenzie (Jun 13 2018 at 11:56):

The difference is just rendering. In some cases (if there's a whole bunch of descendant questions), it may be appropriate to ask the question multiple times. Most of the time you just get multiple answers.

view this post on Zulip Eric Haas (Jun 13 2018 at 14:47):

GF#17344


Last updated: Apr 12 2022 at 19:14 UTC