Thanks sam

 

The main issues is how to apply constraint on Slots? Such as occurrence?

So if I used archetype_id instead of archetype_node_id, then how can I found
correct Slot if more than one slot is used, to apply occurrence constraint?

I think I must test if archetype_id matches by Slot/include regular
expression? So how to solve conflicts if archetype_id matches with two
slot/include regular expression?

Is this a new issue? On validation RMObject via archetype ?

 

Thanks in advance

Asgari, mahdi

 

> -----Original Message-----

> Date: Mon, 2 May 2011 16:53:24 +0930

> From: "Sam Heard" <sam.heard at oceaninformatics.com>

> Subject: RE: openEHR-technical Digest, Vol 49, Issue 12

> To: "'For openEHR technical discussions'"

>             <openehr-technical at openehr.org>

> Cc: Thomas Beale <Thomas.Beale at oceaninformatics.com>

> Message-ID:

>             <008c01cc0899$d8439cf0$88cad6d0$@heard at oceaninformatics.com>

> Content-Type: text/plain;           charset="us-ascii"

> 

> Mahdi

> 

> The ID needs to be the archetypeID not the archetype-node-ID if it is the
root node of an archetype.

> 

> Cheers, Sam

 

> > -----Original Message-----

> > From: openehr-technical-bounces at openehr.org [mailto:openehr-technical- 

> > bounces at openehr.org] On Behalf Of mahdi.asgari at gmail.com

> > Sent: Saturday, 30 April 2011 6:02 PM

> > To: openehr-technical at openehr.org

> > Subject: RE: openEHR-technical Digest, Vol 49, Issue 12

> > 

> > Hi dear Ian

> > 

> > According to openEHR-technical Digest, Vol 49, Issue 12 you saied two 

> bellow statement are correct (in scope of ADL 1.4):

> 

> 1-        The archetype-node-id in a locatable constructed around an

> archetype

> in an archetypeslot is the archetype-node-id it gets from its own 

> archetype (which is called in the slot).

> 2-        The archetype-node-id in a locatable constructed around the

> archetype calling the archetypeslot is to be ignored.

> 

> I have a validation problem:

> If the archetype-node-id in a locatable constructed around an 

> archetype in an archetypeslot is the archetype-node-id it gets from 

> its own archetype, means at0000(child archetype node id) instead of 

> at0001(slot node id) so how can I apply occurrence of slot? for 

> example

> 

> Entry[at0000] matches {    -- Encounter

>         content matches {

>             allow_archetype INSTRUCTION [at0001] occurrences matches 

> {0..1} matches {

>                 include

>                     domain_concept matches {/instruction.v1/}

>             }

>             allow_archetype OBSERVATION [at0002] occurrences matches 

> {1..1} matches {

>                 include

>                     domain_concept matches {/observation.v1/}

>             }

>         }

>     }

> 

> the object may be something like this:

>                     <content xsi:type="INSTRUCTION"

> archetype_node_id="at0000">

>                     .....

>      </content>

>                     <content xsi:type="OBSERVATION"

> archetype_node_id="at0000">

>                     .....

>      </content>

> 

> In the above example how I can apply occurrence for INSTRUCTION 

> objects optional or just one occurrence and OBSERVATION only one 

> occurrence must be appear.

> Or maybe we must bypass constraint defined on slots?

> What is the main constraint applied? Slot constraint or child 

> archetype constraint?

> 

> Thanks in advance

> 

> 

> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20110503/413fcf71/attachment.html>

Reply via email to