/
Event filtering

Event filtering

To be added to event subscription page.

It's possible to filter action related events ('ActionCreated', 'ActionPreviewCreated' etc.) by specifying a filter. A filter is an expression that the event related resource must match for the event to be published. The filter is in the form of:
<PropertyName> <Operator> <Compare value>

e.g. 'DataTypeCode eq 1' to only receive action related events for actions that are of data type 1 (Audiogram actions). Logical operators can be used to specify multiple conditions e.g. 'DataTypeCode eq 1 or DataTypeCode eq 15' to only receive action related events for actions that are of data type 1 (Audiogram) and 15 (Admittance left). It's possible to use the 'any' keyword after the operator to specify a list of values that the property must match e.g. the former expression can be writen as 'DataTypeCode eq any (1,15)'. The list of values must be comma separated and enclosed in parenthesis.

For a complete list of data types / codes please see Noah defined data types and data formats

Operators

Operator

Description

Behavior

Operator

Description

Behavior

eq

equal

The property and operator values must be identical for a match.

ne

not equal

The property and operator values are not identical.

Logical operators

Operator

Description

Behavior

Operator

Description

Behavior

and

Logical “and”

The filter is only a match if both expressions evaluate to true.

or

Logical “or”

The filter is a match if either expression evaluates to true.