FHIR Chat · answerOption vs initial · questionnaire

Stream: questionnaire

Topic: answerOption vs initial


view this post on Zulip João Almeida (Apr 01 2022 at 09:42):

Hi everyone, I was looking at the R5 questionnaire and was wondering why the answerOption has less options (6) than initial (12) when from my understanding, they should go hand-in-hand?

view this post on Zulip Brian Postlethwaite (Apr 01 2022 at 11:57):

Not necessarily. Some datatypes don't make sense as a set of options to pick from, but fine for an initial value.

view this post on Zulip João Almeida (Apr 04 2022 at 10:55):

thanks for the answer. Could you please provide me an example so I can better understand this?

view this post on Zulip Lloyd McKenzie (Apr 04 2022 at 13:04):

Very simple example - it makes sense to be able to specify an initial (default) value for a boolean - i.e. 'true' or 'false'. However, we don't allow defining the allowed options for a 'boolean' because that's built in (the only options are true and false).

More complex - we don't have a use-case for providing a constrained list of 'decimal' or 'quantity' values for a user to choose between. However, we do have use-cases for defining initial/default values for these.

view this post on Zulip Lloyd McKenzie (Apr 04 2022 at 13:05):

In short, we don't include a data type for 'option' unless we have concrete examples of how/why a system would constrain that type as a selectable choice.

view this post on Zulip João Almeida (Apr 04 2022 at 13:13):

Great! Thanks for the answer!


Last updated: Apr 12 2022 at 19:14 UTC