ExpressionEvaluator

object ExpressionEvaluator

Evaluates an expression and returns its result.

Expressions can be defined at questionnaire level and questionnaire item level. This ExpressionEvaluator supports evaluation of variable expression defined at either questionnaire level or questionnaire item level.

Functions

Link copied to clipboard
fun evaluateCalculatedExpressions(updatedQuestionnaireItem: <ERROR CLASS>, questionnaire: <ERROR CLASS>, questionnaireResponse: <ERROR CLASS>, questionnaireItemParentMap: Map<<ERROR CLASS>, <ERROR CLASS>>): List<<ERROR CLASS><<ERROR CLASS>, List<<ERROR CLASS>>>>

Returns a list of pair of item and the calculated and evaluated value for all items with calculated expression extension, which is dependent on value of updated response