Skip to content

[Feature]: Implement NOT for search #500

@patrickskowronekdkfz

Description

@patrickskowronekdkfz

General Summary

In upcoming projects, support for logical negation (NOT) will be required. While the AST already supports the NOT type, most other components in the system are not yet equipped to handle it.

A common request in the feasibility search is an explicit way to define exclusion criteria, i.e., fields whose inputs are logically negated to filter out matching subjects.

Design Question

A possible approach would be to provide a second search bar (or section) with an "Exclude criteria" option. However, it's unclear whether this is the most intuitive or scalable solution.

Initial Thoughts

Pros of separate “Exclude” bar:

Clear UI separation between inclusion and exclusion

Aligns with user expectations from medical or cohort query tools

Cons:

May add visual and cognitive complexity

Potential duplication of logic and UI handling

Alternative idea:

Add an “Exclude” toggle or tag at the field level within the existing search builder

Maintain a single UI, but clearly mark excluded filters visually (e.g., red tags, NOT badges)

Is this Breaking?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions