On 01/08/2012 17:16, Seref Arikan wrote: > Greeetings, > Looking at the current documentation for AQL, it is not clear to me if > a CONTAINS constraint should apply to all children of an RM type, or > to root level children only. > So if I use a statement such as "EHR e CONTAINS COMPOSITION c ..... " > would this mean that I'm looking for all EHR instances where there is > a COMPOSITION somewhere down the tree structure, or would it strictly > refer to an attribute of type COMPOSITION amongst the first level of > attributes of EHR? > > Maybe there is not reason at all to interpret the semantics as in the > latter, but I did so, and I'd appreciate some input. > * > *
CONTAINS is like // in Xpath - the operand on the right hand side can occur anywhere in the structure for a match. Indeed, that's the idea - 'find me this kind of thing, no matter how deep it is buried'. - thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.openehr.org/pipermail/openehr-technical_lists.openehr.org/attachments/20120801/7c47bafc/attachment.html>

