On 27/08/2013 18:20, Diego Bosc? wrote:
> Thinking a little about node identifiers I have thought some
> problematic use cases.
> First, this is the current 'rule' in the wiki
> (http://www.openehr.org/wiki/pages/viewpage.action?pageId=196633) for
> when node identifiers are really needed. I copy the relevant part for
> ease the discussion:
this wiki page is (I hate to say...) out of date - the current rules are:
ADL takes a minimalist approach and does not require node identifiers
where sibling object nodes
can be otherwise distinguished. Node identifiers are mandatory in the
following cases:
* for an attribute defined as multiply-valued in the underlying
information model (i.e. a container type such as a List<T>, Set<T>
etc), all immediate child object nodes. This applies even if a
particular archetype only specifies one child object of the attribute;
* for single-valued attributes with more than one child, all immediate
child object nodes;
* with the exception of use_node constraints where the node identifier
can be inferred from that of the target node.
I think this probably deals with the cases you point out below. I'll now
go and update that wiki page :(
- thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.openehr.org/pipermail/openehr-technical_lists.openehr.org/attachments/20130827/5aaedc44/attachment.html>