Skip to content

Validation rules reference

Validation rules are authored in the Indicator Registry (Indicator detail → Validation Rules sub-tab) and stored against each indicator. The engine applies them, and each issue in the Quality Manager names the check it failed.

Rule type What it checks When it runs
range Value within [min, max]. On the device (Critical blocks saving) and after sync
required Field must not be empty. On the device and after sync
pattern Value matches a regular expression. On the device and after sync
type Value matches the declared data type. On the device and after sync
comparison This indicator against another one, e.g. women trained ≤ total trained, optionally with a multiplier (≤ 0.5 × …) or a tolerance for = / ≠. Within a submission when one form collects both indicators; and for every reporting period that has a value for both
temporal (change over time) The change between successive values stays within a maximum increase and/or decrease, as a percentage or an absolute amount. Period to period compares a reporting period’s value with the previous period of the same type (month with month). Reading to reading compares each participant’s or resource’s successive readings. Set the maximum decrease to 0 for values that must never fall, such as cumulative totals. Within minutes of the values changing, and nightly
freshness The indicator’s newest reading is no older than N days. Flagged in the nightly pass; clears within minutes of new data arriving
statistical Outlier detection (z-score / IQR) across an indicator’s values. Nightly
Consistency check (custom) A combination of answers in one submission that should not occur together, built from conditions on indicators you pick from a list, e.g. Food Consumption Score category is one of Poor and rCSI is at most 3. A condition compares an answer with a number, with categories, with Yes/No or text, or with another indicator’s answer in the same submission. The issue lists every answer the check read. A submission that leaves one of the answers blank, or a form that doesn’t ask one of the indicators, is not checked. After each submission is processed

Issues about a period or the whole indicator. A comparison or period-to-period change is about a reporting period’s value, and freshness is about the indicator as a whole, so neither has a submission to open. These issues name the reporting period instead and link to the indicator’s quality view. When the value changes and the check passes again, the issue closes itself (auto resolved). If you resolve one as verified correct, overridden or excluded, it stays closed.

Legacy cross-field rules (free-text field names) could never be evaluated and have been switched off; re-create them as Comparison rules.