Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Operator

Meaning

Example

=

Equal

No Format
name/value = $nameValue

>

Greater than

No Format
o/data[at0001]/.../data[at0003]/items[at0004]/value/value >140

>=

Greater than or equal to

No Format
o/data[at0001]/..../data[at0003]/items[at0004]/value/value >=140

<

Smaller than

No Format
o/data[at0001]/.../data[at0003]/items[at0004]/value/value <160

<=

Smaller than or equal to

No Format
o/data[at0001]/.../data[at0003]/items[at0004]/value/value <=160

!=

not equals to

No Format
c/archetype_details/template_id/value != ''

Advanced AQL operators

 

matches

matches operator is used in WHERE clause. It has left expression,

These advanced operators are not yet supported by the grammar. The operator syntax is borrowed from ADL specifications. These are proposed to improve the richness and flexibility of AQL so that AQL syntax supports more complicated query scenarios.

...

  • consisting an AQL variable name followed by a predicate and an openEHR path, e.g.
    No Format
    o[name/value=$nameValue]/data[at0001]/.../data[at0003]/items[at0004]/value/value
    

Leaf Data

Primitive Types

String Data

All strings are enclosed in double quotes. It doesn't support line breaks.

AQL structure

Overview

AQL structure has been briefly introduced in Section 2.2. This section introduces AQL structure in details.

...