Stream: questionnaire
Topic: Meaning of item.required on questions and groups
Miriam (Nov 09 2019 at 18:05):
Questionnaire.item.required definition states "An indication, if true, that the item must be present in a "completed" QuestionnaireResponse. If false, the item may be skipped when answering the questionnaire."
This makes it sound like it's requiring the item to present on the QR, which is redundant with the recommendation "all the items in the questionnaire SHOULD be included in the QuestionnaireResponse"?
I think the intent behind this field is to require at least one answer value to be present. Is my interpretation correct?:
(item.required and item.type != display and item.type != group) means: corresponding item in QR must have at least one answer
(item.required and item.type = group) means: corresponding group in QR must have at least one direct child item with at least one answer
Thanks
Lloyd McKenzie (Nov 09 2019 at 19:07):
If the item is of type question, then yes, it means it needs an answer. If it's a group, then the group must be present and at least one of the child questions must have an answer.
Last updated: Apr 12 2022 at 19:14 UTC