QuestionnaireItemViewItem

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

Parameters

questionnaireItem

the Questionnaire.QuestionnaireItemComponent in the Questionnaire

questionnaireResponseItem

the QuestionnaireResponse.QuestionnaireResponseItemComponent in the QuestionnaireResponse

validationResult

the ValidationResult of the answer(s) against the questionnaireItem

answersChangedCallback

the callback to notify the view model that the answers have been changed for the QuestionnaireResponse.QuestionnaireResponseItemComponent

resolveAnswerValueSet

the callback to resolve the answer value set and return the answer options