II would say that you just have to attach the remaining path from target
node to the use_node path, so I would say first option is the right one




2013/9/5 Bert Verhees <bert.verhees at rosa.nl>

> Hi All,
>
> We had a discussion about data-pointds being identified by archetype-path,
> not  archetypenode-id.
> I agree with that, but I am a bit confused how to do following.
>
> consider following fantasy archetype
>
> ------------------------------**------------
>
>     Entry[at0000] matches {    -- Encounter
>         attribute1 matches {
>             SECTION[at0003] occurrences matches {0..1} matches {
>                 items  cardinality matches {0..*} matches {
>                     ITEM_LIST[at0007] occurrences matches {0..1} matches {
>                         items existence matches {0..1} cardinality matches
> {0..*; unordered; unique} matches {
>                             ELEMENT[at0008] occurrences matches {0..1}
> matches {
>                                 value matches {
>                                     DV_TEXT occurrences matches {1..1}
> matches {
>                                         value matches {/abc/}
>                                     }
>                                 }
>                             }
>                         }
>                     }
>                 }
>             }
>         }
>         attribute3 matches {
>             use_node ITEM_LIST /attribute1[at0003]/items[**at0007]
>         }
>         attribute4 matches {
>             use_node ITEM_LIST[at0005] /attribute1[at0003]/items[**at0007]
>         }
>
> ------------------------------**------------
>
> Now I want to know the path in the three ways to the data-point of value
> of DV_TEXT
>
> Which one is right, or are all wrong?
>
> [archetype_id]/attribute1[**at0003]/items[at0007]/items[**
> at0008]/value/value
> [archetype_id]/attribute3/**items[at0008]/value/value
> [archetype_id]/attribute4[**at0005]/items[at0008]/value/**value
>
> or we have this (repeat the targetpath also in the path to the data-point)
>
> [archetype_id]/attribute1[**at0003]/items[at0007]/items[**
> at0008]/value/value
> [archetype_id]/attribute3/**items[at0007]/items[at0008]/**value/value
> [archetype_id]/attribute4[**at0005]/items[at0007]/items[**
> at0008]/value/value
>
> or is it like this (repeat the complete path of the targetpath)
>
> [archetype_id]/attribute1[**at0003]/items[at0007]/items[**
> at0008]/value/value
> [archetype_id]/attribute3/**attribute1[at0003]/items[**
> at0007]/items[at0008]/value/**value
> [archetype_id]/attribute4[**at0005]/attribute1[at0003]/**
> items[at0007]/items[at0008]/**value/value
>
> Thanks very much
>
> Bert
>
>
>
> ______________________________**_________________
> openEHR-technical mailing list
> openEHR-technical at lists.**openehr.org<openEHR-technical at 
> lists.openehr.org>
> http://lists.openehr.org/**mailman/listinfo/openehr-**
> technical_lists.openehr.org<http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.openehr.org/pipermail/openehr-technical_lists.openehr.org/attachments/20130905/8ebbfe1c/attachment.html>

Reply via email to