You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In FHIR questionnaires, questions that support more than one answer need to be marked with "repeats": true.
Currently, the differentiation between radio button questions vs. checkbox questions is done by using either the choice or open-choice type, but the latter is meant for a different use case:
Like with choice questions, for open-choice there is a fixed list of possible answer options, but additionally a free-text field is supposed to be provided. (That is what distinguishes it from choice questions)
Expected behavior
The backend does not send questionnaires with items of type open-choice, but instead with type choice and sends an additional property "repeats": true. The frontend distinguishes radio button questions (single-choice) vs. checkbox (multiple-choice) by looking at the repeats property. If it is absent or false, radio buttons are rendered for choice questions.
Could someone please have a look at the changes made in update-open-choice? The repeats property should be supported now by choices as well as open-choices. The latter now comes with its own additional text-input element.
Describe the bug
In FHIR questionnaires, questions that support more than one answer need to be marked with
"repeats": true
.Currently, the differentiation between radio button questions vs. checkbox questions is done by using either the
choice
oropen-choice
type, but the latter is meant for a different use case:Like with
choice
questions, foropen-choice
there is a fixed list of possible answer options, but additionally a free-text field is supposed to be provided. (That is what distinguishes it fromchoice
questions)Expected behavior
The backend does not send questionnaires with items of type
open-choice
, but instead with typechoice
and sends an additional property"repeats": true
. The frontend distinguishes radio button questions (single-choice) vs. checkbox (multiple-choice) by looking at therepeats
property. If it is absent orfalse
, radio buttons are rendered forchoice
questions.Additional context
https://www.hl7.org/fhir/codesystem-item-type.html#item-type-open-choice
https://www.hl7.org/fhir/questionnaire-definitions.html#Questionnaire.item.repeats
The text was updated successfully, but these errors were encountered: