Bert Verhees wrote: > Sam Heard schreef: > >> Heath has said it how it is: >> >> Archetype paths - that is the path to each node in an archetype - is >> unique. This is what the ADL statement you have seen refers to. >> >> In data, in contrast, an individual archetype node which has >> occurrences set as (1...2) in the archetype could exist twice in the >> data. That is what occurrences of 2 means. How then to differentiate >> between the two instances of this node. The answer is in the name of >> that thing - which can be coded or free text. What this means is that >> you can ask for something in the data as a specific instance (unique) >> which may have a name in the path as well as the archetype_node_id's - >> for example: >> >> /items[at0002 and name/value="xxx"] >> >> or as a path as in the archetype >> >> /items[at0002] >> >> which will return all instances of the node. >> >> Both paths transform to XPath in a very straightforward manner and >> give the same results. >> >> Hope this is helpful. >> > Thanks Sam, for explaining, so, if I may resume: > > If you have a node in your ADL > /items[0002] > > and you have a node > /items[0003] > > and /items[0003] contains a Internalref to items/[0002], what will be > the ADL-path? > the paths /items[at0002] and /items[at0003] always stand for themselves. The latter would not be able to have an internal reference to the former, because that would imply that the latter information structure could contain the former as a sub-structure. You can always work out what internal references are valid by imagining how the archetype would like by not using one, and just expanding out a copy of the part you want. Use the Archetype workbench to see the paths that result from internal references - e.g. have a look at Apgar result and BP measurement, to name two.
- thomas

