Hi Georg The instance data will actually have been subclassed to have a specific datatype and therefore the relevant attributes.
Therefore if you know that a particular analyte is a quantity, you can use aql to access the data just as if it had originally been modelled specifically as a quantity. If you do not know the datatype you should still be able to pull back the whole element as an object and process it further after figuring out the datatype. I'll try to an example when I get to my laptop. Too hard on the phone. Ian On Mon, 29 Apr 2019, 23:46 Georg Fette, <georg.fe...@uni-wuerzburg.de> wrote: > Hello, > How do I constrain the Analyte result of a laboratory_test_analyte.v1 ? > The Analyte result are defined as an ELEMENT that is only constrained by > a node predicate (i.e. ELEMENT[at0001]). Therefore the results cannot be > bound with a specialized type and an alias within the FROM part, as in > the FROM part only archetypeID-predicates are allowed and no node > predicates. As the result is defined with the abstract ELEMENT type, > which has an abstract DATA_VALUE as its content, no paths can be defined > that constrain specific aspects of subclasses of DATA_VALUE that are > actually stored in the ELEMENT[at0001] field of the test_analyte. > How can this problem be resolved ? > 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