CalculatedExpressions Usage
The calculatedExpressions object is a Record<linkId, CalculatedExpression>.
It contains the expression string itself, a from identifier to determine where the expression is coming from (either item, item._text, item._text.aria-label or item._answerValueSet) and the result of the expression.
Live Editor
function App() { const calculatedExpressions = useQuestionnaireStore.use.calculatedExpressions(); return ( <> <YourBaseRendererWrapper questionnaire={qCalculatedExpressionBMICalculator} /> <JsonViewer hookName="calculatedExpressions" data={calculatedExpressions} /> </> ); }
Result
Loading...