Questionnaire Item View Item
Data item for QuestionnaireItemViewHolder in RecyclerView.
The view should use questionnaireItem, answers, answerOption, and validationResult to render the data item in the UI. The view SHOULD NOT mutate the data using these properties.
The view should use the following answer APIs to update the answer(s):
setAnswer (for single and repeated answers)
clearAnswer (for single and repeated answers)
addAnswer (for repeated answers only)
removeAnswer (for repeated answers only)
Updates to the answers using these APIs will invoke answersChangedCallback to notify the view model that the answer(s) have been changed. This will trigger a re-render of the RecyclerView UI.
Parameters
the Questionnaire.QuestionnaireItemComponent in the Questionnaire
the QuestionnaireResponse.QuestionnaireResponseItemComponent in the QuestionnaireResponse
the ValidationResult of the answer(s) against the questionnaireItem
the callback to notify the view model that the answers have been changed for the QuestionnaireResponse.QuestionnaireResponseItemComponent
the callback to resolve the answer value set and return the answer
the callback to resolve answer options when answer-expression extension exists options