Re: automatic demotion of lists in AQL ?

2019-05-06 Thread Seref Arikan
Hi Georg, I’d say yes but do it reluctantly :) you can think in terms of iteration but in my experience it leads to incorrect assumptions and can confuse you, especially regarding how result sets are created I’d suggest thinking in terms of pattern matching rather than traversal but both are valid

Re: automatic demotion of lists in AQL ?

2019-05-06 Thread Georg Fette
Hi Seref, Ok, thank you for the answer. From that I and the other answers I would summarize that "implicit iteration over lists in order to further process the elements" is a paradigm that does actually exist in AQL. Greetings Georg --

Re: automatic demotion of lists in AQL ?

2019-05-05 Thread Seref Arikan
Have you seen a previous answer I gave to you re contains clause and nodes without arch nd ids? The one explaining why it is unlikely to work a/items[at0001]/value/value should do the trick On Sunday, May 5, 2019, Georg Fette wrote: > Hello, > In order to better understand the semantics of AQL

Re: automatic demotion of lists in AQL ?

2019-05-05 Thread Georg Fette
Hello, In order to better understand the semantics of AQL I try to rephrase the problem I have: Imagine an archetype "openEHR-EHR-CLUSTER.example.v1" that allows the multiple existence of a specific contained field: definition     CLUSTER[at] matches {         items cardinality matches

Re: automatic demotion of lists in AQL ?

2019-05-02 Thread Georg Fette
Hi Thomas, I do not want to use the path element "items[at0001]" multiple times. What I mean is that in the query SELECT a/items[at0001]/value FROM EHR e CONTAINS CLUSTER a[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1] the path "a/items[at0001]" denotes a list of ELEMENT (min: 0, max: *).

Re: automatic demotion of lists in AQL ?

2019-05-02 Thread Ian McNicoll
Yes that at codes are always effectively namespaced by their parent archetype. Ian ___ openEHR-technical mailing list openEHR-technical@lists.openehr.org http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org

Re: automatic demotion of lists in AQL ?

2019-05-02 Thread Thomas Beale
Unless I am missing something, the fragment items[at0001] cannot appear more than once /relative to any given archetype/. Here, it is relative to 'a', i.e. openEHR-EHR-CLUSTER.laboratory_test_analyte.v1. Within the same archetype, you cannot have other items[xxx] such that the xxx are not

automatic demotion of lists in AQL ?

2019-04-26 Thread Georg Fette
Hello, Is it allowed to use an element that is allowed to appear multiple times within a path ? For example in the query SELECT a/items[at0001]/value     FROM EHR e         CONTAINS CLUSTER a[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1] the field items[at0001] may appear 0..* times. Thus