Re: usage of templates in AQL

2019-09-17 Thread Ian McNicoll
There are a bunch of AQL examples at https://github.com/RippleOSI/Ripple-openEHR/tree/master/docs/bindings/Current%20Ripple%20Headings Ian Dr Ian McNicoll mobile +44 (0)775 209 7859 office +44 (0)1536 414994 skype: ianmcnicoll email: i...@freshehr.com twitter: @ianmcnicoll Director, freshEHR

Re: usage of templates in AQL

2019-09-17 Thread Ian McNicoll
Yes that works. It is also common to use the name/value attribute of the Composition root to identify a specific composition. Normally the name/value attribute of a templated Composition defaults to the underlying Composition archetype croot concept name e.g 'Bericht' but it can be renamed at

Re: usage of templates in AQL

2019-09-17 Thread Georg Fette
Hi Ian, Sorry, I did not mean specifically imaging data. What I meant was that all our templates are based on the archetype openEHR-EHR-COMPOSITION.report.v1. My question therefore was, if the only possibility to retrieve all data for a specific template type is by querying with something you

Re: usage of templates in AQL

2019-09-17 Thread Ian McNicoll
We are still working on Imaging but the current presumption is that we would use a generic Imaging Result archetype https://openehr.org/ckm/archetypes/1013.1.1494 which contains Examination result name and modality elements which we would query on to find 'Echocardiography' data. The exact use of

Re: usage of templates in AQL

2019-09-17 Thread Georg Fette
Ah, I understand. I  just made the test to use the json_instance_generator of the CoboLabs openEHR Toolkit by creating an instance of one of my templates. The template name only appears in the archetype_details. The whole rest looks like a standard instance of the archetype the template is

Re: usage of templates in AQL

2019-09-17 Thread Ian McNicoll
Hi Georg, You don't find the templates as such, you find compositions committed against those templates definitions. Templates are just definitions of how to aggregate archetypes to meet a specific use-case. It is the composition instance that is committed and queried against. The data within

Re: usage of templates in AQL

2019-09-17 Thread Georg Fette
Thanks for the answers. Is a template apart from being a container which aggregates archetypes, a semi-definition or a derivation of an archetype ? The .oet template definitions always state a derivation from a an existing archetype (archetype_id="openEHR-EHR-COMPOSITION.report.v1"), and the

Re: usage of templates in AQL

2019-09-16 Thread Thomas
The short answer is that you don't have to care at all about the templates that were used. This is one of the fundamental advantages of openEHR - the query will find your blood sugars no matter what application, screen or form was used to capture it.What you need to know is what kind of Entry and

Re: usage of templates in AQL

2019-09-16 Thread Ian McNicoll
Hi Georg, There is no direct connection between AQL and templates. What do I need to know about the data model structures of the templates potentially containing this archetype ? Nothing - you can use the CONTAINS statement to find your candidate archetype regardless of the enclosing

usage of templates in AQL

2019-09-16 Thread Georg Fette
Hello, I have some question related to the coupling of AQL and templates: Imagine I want to write an AQL query containing a certain archetype and that archetype is used in multiple templates in the openEHR system. What do I need to know about the data model structures of the templates