gotcha, makes sense, I need to check the grammar in the specs to see where
parenthesis can be used.

On Oct 1, 2017 3:38 PM, "Seref Arikan" <[email protected]>
wrote:

> X contains (y and z and t)
>
> The paranthesis are optional above but would help avoid ambiguity when we
> have
>
> X contains y and z contains t and o
> Is it:
> X contains y and (z contains t) and o
> Or
> X contains y and (z contains t and o)
>
> ??
>
> As you can see the paranthesis help define the containment structure
>
>
>
>
> On Sunday, October 1, 2017, Pablo Pazos <[email protected]> wrote:
>
>> Hi all, another question about AQL and CONTAINS.
>>
>> Most of the AQL samples use just one branch in the FROM clause, like:
>>
>> EHR CONTAINS COMPOSITION CONTAINS OBSERVATION.
>>
>> I'm wondering what would be the correct FROM notation when more than one
>> ENTRY is needed. Some examples below.
>>
>> SELECT o1/data[...]/.../value, o2/..., ....
>> FROM
>>    COMPOSITION c [archid] CONTAINS OBSERVATION o1 [archid2],
>>    COMPOSITION c [archid] CONTAINS OBSERVATION o2 [archid3],
>>    COMPOSITION c [archid] CONTAINS OBSERVATION o3 [archid4]
>> WHERE ...
>>
>>
>> SELECT o1/data[...]/.../value, o2/..., ....
>> FROM
>>    COMPOSITION c [archid]
>>       CONTAINS OBSERVATION o1 [archid2] AND
>>       CONTAINS OBSERVATION o2 [archid3] AND
>>       CONTAINS OBSERVATION o3 [archid4]
>> WHERE ...
>>
>>
>> Thanks!
>>
>> --
>> Ing. Pablo Pazos GutiƩrrez
>> e: [email protected]
>> p: +598 99 043 145 <099%20043%20145>
>> skype: cabolabs
>> <http://cabolabs.com/>
>> http://www.cabolabs.com
>> https://cloudehrserver.com
>> Subscribe to our newsletter <http://eepurl.com/b_w_tj>
>>
>
> _______________________________________________
> openEHR-technical mailing list
> [email protected]
> http://lists.openehr.org/mailman/listinfo/openehr-
> technical_lists.openehr.org
>
_______________________________________________
openEHR-technical mailing list
[email protected]
http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org

Reply via email to