> ## Documentation Index
> Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Validation Rules

> Create and manage data validation rules, view analytics on rule failures, and configure validation settings.

The Validation Rules page provides a tabbed hub for managing data validation rules, reviewing analytics on rule activations and failures, and configuring validation settings. It is reached at `/settings/validation-rules`.

## Overview

The page is gated by `pf.validation_rules.view` (via `RequirePermission`). It renders three tabs:

* **Rules** — `ValidationRulesListPage`: list and CRUD management of validation rules.
* **Analytics** — `ValidationAnalyticsReport`: charts and tables showing rule activation frequency and failure rates.
* **Settings** — `ValidationSettingsSection`: organization-level validation configuration.

All three sub-components receive the current `organizationId` as a prop.

## Who it's for

Requires `pf.validation_rules.view` (route guard via `RequirePermission`).

## Before you start

* No prerequisites for viewing. Rules are loaded automatically for the current organization.
* Creating or modifying rules may require additional permissions.

## Steps

1. Navigate to **Settings → Validation Rules** (`/settings/validation-rules`).
2. Review existing rules in the **Rules** tab.
3. Create a new rule using the action button within the Rules tab.
4. Switch to **Analytics** to review rule activation data.
5. Use **Settings** to configure organization-level validation behavior.

## Related

<Columns cols={2}>
  <Card title="Platform Foundation" icon="layer-group" href="/pf/overview">
    Platform Foundation overview.
  </Card>

  <Card title="Governance & parity" icon="scale-balanced" href="/governance/index" />
</Columns>

<Note>
  This page documents shipped product behavior. It is not medical, legal, or
  billing advice. Verify against your organization's policies and applicable
  regulations before using it for clinical, compliance, or billing decisions.
  Protected health information (PHI) shown in the product is governed by your
  tenant's access controls and is never exposed in this documentation.
</Note>

<Accordion title="Documentation sources">
  * src/routes/platform.tsx
  * src/platform/validation/pages/ValidationRulesPage.tsx
  * src/platform/validation/components/ValidationRulesListPage.tsx
</Accordion>
