# Example or description on the Specification

**URL:** <https://discourse.openehr.org/t/example-or-description-on-the-specification/16633>\
**Category:** Technical (archive)\
**Created:** [23 June 2006 14:53 UTC](https://discourse.openehr.org/t/example-or-description-on-the-specification/16633 "2006-06-23T14:53:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brendan\_Cheng](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/b/c68b51/32.png) [@Brendan\_Cheng](https://discourse.openehr.org/u/Brendan_Cheng)\
**Post date:** [23 June 2006 14:53 UTC](https://discourse.openehr.org/t/example-or-description-on-the-specification/16633/1 "2006-06-23T14:53:53Z")

</div>

Hi,

I'm using Python to implement the specification of OpenEHR 1.0.1  
I have a lot of problems in understanding how some functions should be  
worked like.

Here is one; in LOCATABLE class, the function:  
path\_of\_item(a\_loc:LOCATABLE): String

can u give a example to demonstrate how the function can work out a answer?  
because "The path to an item relative to the root of this archetyped  
structure." doesn't help me to solve that.

similarly, the function item\_at\_path(a\_path:String): ANY and  
valid\_path(a\_path:string): Boolean

in your example, please tell me what is the parameter a\_loc and a\_path  
look like.

Brendan

---

<div class="post-metadata">

**Author:** ![thomas.beale](https://discourse.openehr.org/user_avatar/discourse.openehr.org/thomas.beale/32/35_2.png) [@thomas.beale](https://discourse.openehr.org/u/thomas.beale)\
**Post date:** [27 June 2006 11:51 UTC](https://discourse.openehr.org/t/example-or-description-on-the-specification/16633/2 "2006-06-27T11:51:00Z")

</div>

I will provide some guidance on this in the next couple of days. It has already been implemented in Java and C# actually, so we should be able to find out what the approach used by those two groups was.

- thomas beale

Brendan Cheng wrote:
