Questionnaire Item View Item
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()
}, resolveAnswerExpression: suspend (<ERROR CLASS>) -> List<<ERROR CLASS>> = {
emptyList()
})
Content copied to clipboard
Parameters
questionnaire Item
the Questionnaire.QuestionnaireItemComponent in the Questionnaire
questionnaire Response Item
the QuestionnaireResponse.QuestionnaireResponseItemComponent in the QuestionnaireResponse
validation Result
the ValidationResult of the answer(s) against the questionnaireItem
answers Changed Callback
the callback to notify the view model that the answers have been changed for the QuestionnaireResponse.QuestionnaireResponseItemComponent
resolve Answer Value Set
the callback to resolve the answer value set and return the answer
resolve Answer Expression
the callback to resolve answer options when answer-expression extension exists options