Improve documentation of 'matches' operator

Description

Covred by Git :

The documentation of matches: http://www.openehr.org/releases/QUERY/latest/docs/AQL/AQL.html#_matches

It says: "Right operand of matches operator has three forms:"

There is only listed two and each of them is numbered 1.

Below is copied docs:

The matches operator is used in the WHERE clause. This operator needs left operand and right operand. Left operand is an AQL identified path. Right operand is enclosed within curly braces. Right operand of matches operator has three forms:

type of constraint ADL (cADL): this type of right operand can be a value list or a value range. Value range is not supported in the current AQL grammar. Below is an example with matches a string value list:

SELECT
o/data[at0002]/events[at0003]/data/items[at0015]/items[at0018]/name
FROM
Ehr [uid=$ehrUid]
CONTAINS Composition c
CONTAINS Observation o[openEHR-EHR-OBSERVATION.microbiology.v1]
WHERE
o/data[at0002]/events[at0003]/data/items[at0015]/items[at0018]/items[at0019]/items[at0021]/name/defining_code/code_string matches {'18919-1', '18961-3', '19000-9'}
URI: can be a terminology URI, openEHR EHR URI, or other URI. An example with a terminology URI is shown below:

SELECT
e/ehr_status/subject/external_ref/id/value, diagnosis/data/items[at0002.1]/value
FROM
EHR e
CONTAINS Composition c[openEHR-EHR-COMPOSITION.problem_list.v1]
CONTAINS Evaluation diagnosis[openEHR-EHR-EVALUATION.problem-diagnosis.v1]
WHERE
c/name/value='Current Problems'
AND diagnosis/data/items[at0002.1]/value/defining_code matches { terminology://Snomed-CT/hierarchy?rootConceptId=50043002 }

Reporter

Bjørn Næss

Raised By

Bjørn Næss

Components

Affects versions

Configure