Interface: ClausePolicyCondition
@kortexya/reasoninglayer / ClausePolicyCondition
Interface: ClausePolicyCondition
Section titled “Interface: ClausePolicyCondition”Defined in: src/types/document-check.ts:281
One comparison of a case observation’s feature with a value.
Remarks
Section titled “Remarks”value is a boolean or an integer: the engine reads nothing else. Plain
JSON; feature names a feature of the evidence sort.
Example
Section titled “Example”const condition: ClausePolicyCondition = { feature: 'days_late', comparison: 'gt', value: 30, quote: 'more than thirty days after the due date',};Properties
Section titled “Properties”comparison
Section titled “comparison”comparison:
ClausePolicyComparison
Defined in: src/types/document-check.ts:285
How the feature compares with value.
feature
Section titled “feature”feature:
string
Defined in: src/types/document-check.ts:283
The feature of the evidence sort the condition reads.
quote:
string
Defined in: src/types/document-check.ts:289
The exact wording of the clause that supports this comparison.
value:
number|boolean
Defined in: src/types/document-check.ts:287
The value compared with: a boolean or an integer.