Hi Georg,

ITEM is an abstract type. The hierarchy pattern of ITEM / CLUSTER / ELEMENT <https://specifications.openehr.org/releases/UML/latest/#Diagrams___18_1_83e026d_1433773264427_531476_6966> is one of the most common in class modelling.

- thomas

On 30/10/2019 09:26, Georg Fette wrote:
Hello,
I would like to typecheck AQL queries and have some problems doing that:
The items in a CLUSTER are of type ITEM. If I access myCluster/items[at0001]/value, is there any possibility to type-check the validity of this path without having the concrete archetype definition at hand? Just using the reference model isn't enough for this task, because ITEMs do not have a value-field. How can (from an object oriented point of view) the values of the ITEMs be accessed without knowing if it is an ELEMENT ? Why is there a distiguishment between ELEMENT, ITEM and CLUSTER at all ? If the fields "items" and "value" were already attached to the class ITEM it would be easier.
Greetings
Georg

--
Thomas Beale
Principal, Ars Semantica <http://www.arssemantica.com>
Consultant, ABD Project, Intermountain Healthcare <https://intermountainhealthcare.org/> Management Board, Specifications Program Lead, openEHR Foundation <http://www.openehr.org> Health IT blog <http://wolandscat.net/> | Culture blog <http://wolandsothercat.net/> | The Objective Stance <https://theobjectivestance.net/>
_______________________________________________
openEHR-technical mailing list
[email protected]
http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org

Reply via email to