Questionnaire Item View Item
fun QuestionnaireItemViewItem(questionnaireItem: <ERROR CLASS>, questionnaireResponseItem: <ERROR CLASS>, resolveAnswerValueSet: suspend (String) -> List<<ERROR CLASS>> = {
emptyList()
}, questionnaireResponseItemChangedCallback: () -> Unit)
Content copied to clipboard
Parameters
questionnaire Item
the question and the answer.
questionnaire Response Item
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).
questionnaire Response Item Changed Callback
function that should be called whenever the questionnaireResponseItemBuilder
is changed to inform the rest of the questionnaire to be updated