Skip to content

Validation rules

Validation rules are the acceptance criteria for your mapped test results. Each rule checks a test-result value against a fixed value or against another value in the same row. As the Validation Map tab puts it: “Rules run per Test Results row at submission time. Errors block signing; warnings are advisory.”

Rules live on the map, not the definition, so different suppliers can have different acceptance criteria for the same definition.

  1. Open the map and select the Validation Map tab.
  2. Select Add Rule. A new rule card appears.
  3. Fill in the rule:
    • a description of what the rule checks (optional), shown in the validation report;
    • Target: the test-result property being checked;
    • Operator: Equals, Not Equals, >, >=, <, <=, Between, In Set, Is Blank or Is Not Blank;
    • Compare to: Literal to type a value, or Property to compare with another test-result property in the same row. Between asks for a low and a high value (or property). In Set takes one allowed value per line;
    • Severity: Error (blocks) to block signing when the rule fails, or Warning to flag it without blocking.
A new rule on the Validation Map tab: target, operator, a literal to compare to, and Error (blocks) severity
A new rule on the Validation Map tab: target, operator, a literal to compare to, and Error (blocks) severity
  1. Select Save on the rule card. The tab heading counts the rules, for example 1 rule.
The saved rule listed on the Validation Map tab
The saved rule listed on the Validation Map tab

To remove a rule, select the bin icon (Delete rule) on its card.

How a value is compared depends on the target property’s type. Integer and Floating point properties are compared as numbers (comma decimal separators are handled); everything else is compared as text. Use numeric types for results you want to range-check.

A results table can mix rows: some read PASS or FAIL, others are numbers. Use filters so a rule runs only on the rows it is meant for.

  1. On the rule card, select the expand arrow (Add filters).
  2. Select Add Filter, then choose Only apply when or Skip when, a Property, an Operator and a Value. For example: only apply when TestName equals Sterility.
  3. With two or more filters, choose Match: All filters (AND) or Any filter (OR).
  4. Use the Active switch to turn the rule on or off.
  5. Select Apply.

The card then shows a chip such as 1 filter. With no filters, the rule runs on every Test Results row. A row that a filter excludes is reported as skipped, not as a failure.

  • When a Quality Person (QP) opens a certificate built on the map, an error rule that fails shows “Validation failed — resolve all error-severity rules before signing.” and Sign stays disabled. Warnings are shown but don’t block. See Pre-signing checks.
  • The rules are checked again when the certificate is submitted.
  • The validation result is recorded on the certificate, so changing the rules later never rewrites the judgement a past certificate was signed against.
A certificate whose results fail an error rule: the validation banner, and Sign disabled
A certificate whose results fail an error rule: the validation banner, and Sign disabled

Below the rules, Mapped Test Results Preview applies your current field mappings and rules to the sample on the Field Mapping tab. See Test with a sample.