QuestionnaireItemViewItem

fun QuestionnaireItemViewItem(questionnaireItem: <ERROR CLASS>, questionnaireResponseItem: <ERROR CLASS>, resolveAnswerValueSet: suspend (String) -> List<<ERROR CLASS>> = { emptyList() }, questionnaireResponseItemChangedCallback: () -> Unit)

Parameters

questionnaireItem

the question and the answer.

questionnaireResponseItem

the question and the answer are used to create the right type of view (e.g. a CheckBox for a yes/no question) and populate the view with the right information (e.g text for the CheckBox and initial yes/no answer for the CheckBox).

questionnaireResponseItemChangedCallback

function that should be called whenever the questionnaireResponseItemBuilder is changed to inform the rest of the questionnaire to be updated