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 what archetype e.g. Observation (actual glucose measurement), Evaluation.glucose_target (a target) ans so on. You might also want to specify what Composition type, e.g. Only Lab reports containing glucose, and not Device-recorded etc.

Its all about the semantics. 

- thomas 

On 16 Sep 2019 12:52, Georg Fette <georg.fe...@uni-wuerzburg.de> wrote:

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
potentially containing this archetype ?
When there are multiple templates that contain this archetypes, will
they all be found by this query, no matter where the archetype is
contained in their structure?
How can I constrain my query so that I only get those of a specific
template ?
Do templates have to be specifically mentioned in the queries or are
they handled as if they were archetypes as well ?
How could I change my query so that (when I receive results from
different template types) that I also get the surrounding information in
which template my archetype has been found in ?
Greetings
Georg

--
---------------------------------------------------------------------
Dipl.-Inf. Georg Fette      Raum: B001
Universität Würzburg        Tel.: +49-(0)931-31-85516
Am Hubland                  Fax.: +49-(0)931-31-86732
97074 Würzburg              mail: georg.fe...@uni-wuerzburg.de
---------------------------------------------------------------------

_______________________________________________
openEHR-technical mailing list
openEHR-technical@lists.openehr.org
http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org


_______________________________________________
openEHR-technical mailing list
openEHR-technical@lists.openehr.org
http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org

Reply via email to