FHIR Chat · Questionnaire question with multiple answers · implementers

Stream: implementers

Topic: Questionnaire question with multiple answers


view this post on Zulip Diego Bosca (Apr 25 2020 at 14:42):

From the section "Questions with multiple answer types" each one should be in their own question, but which type should have the parent item? if the meaning is 'answer with A xor B' putting the parent type as a 'group' feels wrong. 'choice' seems to be only intended for choosing one response in a given valueSets, so it doesn't fit either. Is there a way to specify that only one is valid?

view this post on Zulip Lloyd McKenzie (Apr 25 2020 at 15:06):

It would have to be a group - otherwise the parent would itself have to have an answer. Alternatively, don't specify a parent, just list the two questions allowing different types in sequence

view this post on Zulip Diego Bosca (Apr 25 2020 at 15:25):

But then the alternative nature would be lost :(
So there is no actual way to specify answer alternatives? maybe using the enableWhen attribute?

view this post on Zulip Lloyd McKenzie (Apr 25 2020 at 15:39):

SDC has an extension that allows you to specify a constraint limiting you to answering only one or the other. Using enableWhen, where one gets disabled when the other is answered is also a possibility.


Last updated: Apr 12 2022 at 19:14 UTC