Skip to main content

InvalidItems Usage

The invalidItems object is a Record<linkId, OperationOutcome> of the items that has a specified value constraint that is not satisfied.

For all supported value constraints, refer to the Value Constraints section.

Live Editor
function App() {
  const invalidItems = useQuestionnaireResponseStore.use.invalidItems();

  return (
    <>
      <YourBaseRendererWrapper questionnaire={qCalculatedExpressionBMICalculator} />
      <JsonViewer hookName="invalidItems" data={invalidItems} />
    </>
  );
}
Result
Loading...