Tim,
Performer and all other attributes that are of type PARTY_PROXY are single
attributes, not collections. Therefore there is no need to find a
particular occurrence using a node_id and name. The whole point of
PARTY_PROXY is that it is a proxy for a real object of type PARTY which is
in the demographics repository, this object is a locatable. The data
recorded as part of the PARTY_IDENTIFED is really just to support legacy
environments and is not intended to be used for structured data, hence a
name of plain string. None of this could be consider reliable enough to be
used as an identifier of the object. So if anything, you are looking for a
means to resolve the reference of the party proxy and search for the
particular PARTY, not the PARTY_PROXY.
Regards
Heath
From: openehr-implementers-bounces@openehr.org
[mailto:openehr-implementers-
bounces@openehr.org] On Behalf Of Tim Cook
Sent: Tuesday, 20 May 2008 5:55 AM
To: Sam Heard
Cc: For openEHR implementation discussions
Subject: Re: PARTICIPATION needs to be a LOCATABLE
Hi Sam,
> Hi Tim
>
> Locatable purely means that you can use a path to point to it.
Of course.
> Attributes can be contained in a query, so there is no issue with the
> question you have - and in fact, as composer is a unitary attribute it
> is pathable.
COMPOSITION.composer is unitary but....
it is not a specific class. It is listed as one of several subclasses of
PARTY_PROXY.
This means that you must be able to first determine which class then
introspect that class (instance) in implementation.
Since multiple subclasses of PARTY_PROXY can have lists of identifiers
(PARTY_IDENTIFIED, PARTY_RELATED and even the performer attribute of
PARTICIPATION) my thought is that PARTY_PROXY should be locatable since
these
instances can occur in so many places and are somewhat unknown between
systems.
> Locatable adds something to the ontology which describes it in some
> manner - and then there is the possibility of using the path with the
> name as the differentiator of multiple occurrences of the same node
> (ie same ontology entry - e.g. at0002 ).
Locatable adds the ability to find an instance that contains a specific
identifier; correct? Which could be in a list of one of the subclasses of
PARTY_PROXY.
>
> The difference between locatable and returned in queries is important
> and we will need to do some more education about this. It might be
> good for a Wiki page I guess.
Sounds like this may be helpful.
>
> I hope this is clear. We are currently able to query all
> participations - but we cannot point to a specific one using EHR_URI.
> That is the difference (and due to the fact that these can be
> multiple)
I think that this just made my case.
PARTY_SELF is pretty obvious but
PARTY_RELATED is not. Going to the root of the issue is more future proof
than other solutions and it is (as far as I can see) without any other
costs.