Add support for NOT CONTAINS

Description

The requirement is for getting COMPOS that doesn't contain a record of pregnancy. How is that kind of query specified?

Something like:

COMPOSITION c NOT CONTAINS EVALUATION[archetype_id_list]

Activity

Show:
Bjørn Næss
August 24, 2020, 7:54 PM

We support this request.

Pieter Bos
September 7, 2020, 10:47 PM

Looks like https://specifications.openehr.org/releases/QUERY/latest/AQL.html#_nest_query_and_not_in could achieve that query. I guess NOT CONTAINS is a simpler/cleaner solution.

Thomas Beale
January 11, 2021, 10:52 PM

Small EN improvement.

Current text: “Logical operator NOT can be used in combination with CONTAINS to express an exclusion constraint, i.e. the missing of a hierarchical relationships between the parent and child data items operands, e.g.“

Suggest: “The logical operator NOT can be used in combination with CONTAINS to express an exclusion constraint, i.e. the absence of any containment relationship between a parent and potential child items. The following example matches referral COMPOSITIONs that do not contain laboratory test result OBSERVATIONS:“

Reporter

Thomas Beale

Components

Affects versions