Client for otherwise routes and unrecognised documents

This commit is contained in:
Roberto Treviño
2026-11-27 19:17:49 -06:00
parent 672091d19a
commit cc22840c3c
4 changed files with 100 additions and 5 deletions
+5 -2
View File
@@ -5,13 +5,16 @@ import { Condition } from '../models/condition';
import { Position } from '../models/position';
/**
* Only the rows where every condition holds (e.g. reports titled "Citología").
* Only the rows where every condition holds (e.g. reports titled "Citología"). An
* `otherwise` route takes the rows of its input that none of the other routes on that
* input take (documents nobody recognises, for a reviewer), then its own conditions.
*/
export interface Route {
id: string;
inputs?: Array<string>;
kind?: 'route';
label?: string;
otherwise?: boolean;
position?: (Position | null);
when: Array<Condition>;
when?: Array<Condition>;
}