# Question about ADL-syntax (1.4) archetypeslot

**URL:** https://discourse.openehr.org/t/question-about-adl-syntax-1-4-archetypeslot/15022
**Category:** Implementers (archive)
**Created:** [25 October 2010 09:49 UTC](https://discourse.openehr.org/t/question-about-adl-syntax-1-4-archetypeslot/15022 "2010-10-25T09:49:39Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)
#### Post date: [25 October 2010 09:49 UTC](https://discourse.openehr.org/t/question-about-adl-syntax-1-4-archetypeslot/15022/1 "2010-10-25T09:49:39Z")

</div>

Hi,

Please allow me this ignorant question.

Below the "allow\_archetype", there are includes (and excludes)  
Below the "include" are rules what is include(d)

Like this.

(examples from repository on OpenEhr website)

1) allow\_archetype CLUSTER occurrences matches {0..1} matches {  
&nbsp;&nbsp;&nbsp;&nbsp;include  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;archetype\_id/value matches {/change\.v1draft/}

2) allow\_archetype ITEM\_TREE occurrences matches {0..1} matches {  
&nbsp;&nbsp;&nbsp;&nbsp;include  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;domain\_concept matches {/referral\.v1/}

3) allow\_archetype ADDRESS matches {  
&nbsp;&nbsp;&nbsp;&nbsp;include  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id matches {"br-demographic-ADDRESS.\*"}

The problem I have is that there seems inconsistency.

In example 1 is the archetypeid of the archetype-details referred which  
has a property value. Thsi seems OK to me  
In example 2 is the domain\_concept used, which is a property of the  
archetype\_id but not of the archetypedetails., shouldn't this be:  
archetype\_id/domain\_concept  
Example 3 makes to me no sense at all. Both archetypedetails and  
archetype\_id have a property id

Can someone please explain this to me?

Thanks, Bert

---

<div class="post-metadata">

### Author: ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)
#### Post date: [25 October 2010 10:55 UTC](https://discourse.openehr.org/t/question-about-adl-syntax-1-4-archetypeslot/15022/2 "2010-10-25T10:55:43Z")

</div>

Op 25-10-10 11:49, Bert Verhees schreef:

> Example 3 makes to me no sense at all. Both archetypedetails and  
> archetype\_id have a property id

Example 3 makes to me no sense at all. Both archetypedetails and  
archetype\_id have \*no\* property id

---

<div class="post-metadata">

### Author: ![Peter\_Gummer1](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/p/258eb7/32.png) [@Peter\_Gummer1](https://discourse.openehr.org/u/Peter_Gummer1)
#### Post date: [25 October 2010 10:59 UTC](https://discourse.openehr.org/t/question-about-adl-syntax-1-4-archetypeslot/15022/3 "2010-10-25T10:59:19Z")

</div>

Bert Verhees wrote:

> (examples from repository on OpenEhr website)

Hi Bert,

These are very strange examples of slots. They are not typical at all.

Where did you find these archetypes?

- Peter

---

<div class="post-metadata">

### Author: ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)
#### Post date: [25 October 2010 11:06 UTC](https://discourse.openehr.org/t/question-about-adl-syntax-1-4-archetypeslot/15022/4 "2010-10-25T11:06:14Z")

</div>

> These are very strange examples of slots. They are not typical at all.
> 
> Where did you find these archetypes?

Thanks, Peter, for your reply

I downloaded them with SVN from  
[http://www.openehr.org/svn/knowledge/archetypes](http://www.openehr.org/svn/knowledge/archetypes)

Is that not OK?

Bert

---

<div class="post-metadata">

### Author: ![Peter\_Gummer1](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/p/258eb7/32.png) [@Peter\_Gummer1](https://discourse.openehr.org/u/Peter_Gummer1)
#### Post date: [25 October 2010 11:12 UTC](https://discourse.openehr.org/t/question-about-adl-syntax-1-4-archetypeslot/15022/5 "2010-10-25T11:12:38Z")

</div>

Bert Verhees wrote:

> I downloaded them with SVN from  
> [http://www.openehr.org/svn/knowledge/archetypes](http://www.openehr.org/svn/knowledge/archetypes)
> 
> Is that not OK?

Those archetypes are obsolete. They were abandoned years ago. The  
current work on archetypes is in CKM:

www.openehr.org/knowledge/

- Peter

---

<div class="post-metadata">

### Author: ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)
#### Post date: [25 October 2010 11:30 UTC](https://discourse.openehr.org/t/question-about-adl-syntax-1-4-archetypeslot/15022/6 "2010-10-25T11:30:09Z")

</div>

> Those archetypes are obsolete. They were abandoned years ago. The  
> current work on archetypes is in CKM:  
> &nbsp;&nbsp;  
> I noticed some problems in the abandoned ones. But I skipped skip those  
> which did not parse well  
> I do not use archetypes for medical-content, only for technical purposes.

Is het possible to download the CKM-ones as convenient as the abandoned  
ones?  
Because I didn't find how, it was the reason I skipped them until today.

By the way, I found an example of an archetype-slot  
allow\_archetype CLUSTER[at0014] occurrences matches {0..\*} matches {  
-- Cessation attempts  
&nbsp;&nbsp;&nbsp;&nbsp;include  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;archetype\_id/value matches  
{/openEHR-EHR-CLUSTER\.cessation\_attempts\.v1/}  
}

This conform my example 1 in my previous question.

If you send me the download link of the CKM archetypes, than maybe I can  
answer my previous question myself, or I come back with more specific  
question

Thanks  
Bert

---

<div class="post-metadata">

### Author: ![Seref](https://discourse.openehr.org/user_avatar/discourse.openehr.org/seref/32/13_2.png) [@Seref](https://discourse.openehr.org/u/Seref)
#### Post date: [25 October 2010 11:35 UTC](https://discourse.openehr.org/t/question-about-adl-syntax-1-4-archetypeslot/15022/7 "2010-10-25T11:35:16Z")

</div>

Hi Bert,  
CKM supports download of all archetypes in a single zip archive. That is as convenient as it gets for me 😉  
The functionality should be accessable from a menu item, should not be hard to spot.

Regards  
Seref

---

<div class="post-metadata">

### Author: ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)
#### Post date: [25 October 2010 11:51 UTC](https://discourse.openehr.org/t/question-about-adl-syntax-1-4-archetypeslot/15022/8 "2010-10-25T11:51:03Z")

</div>

> ```auto
> By the way, I found an example of an archetype-slot
> allow_archetype CLUSTER[at0014] occurrences matches {0..*} matches {
> -- Cessation attempts
> include
> archetype_id/value matches
> {/openEHR-EHR-CLUSTER\.cessation_attempts\.v1/}
> }
> 
> This conform my example 1 in my previous question.
> 
> ```

Yes, this is from the substance use archetypes in CKM, and is correct.  
your previous example 1 had a .v1draft id which deprecated.

Thee is also an Archetype Validation report for each archetype in CKM, where errors such as in your examples 2 and 3 would be reported.

> ```auto
> If you send me the download link of the CKM archetypes, than maybe I can
> answer my previous question myself, or I come back with more specific
> question
> 
> ```

Yes, in the menu: Archetypes/Bulk export

Sebastian

---

<div class="post-metadata">

### Author: ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)
#### Post date: [25 October 2010 11:56 UTC](https://discourse.openehr.org/t/question-about-adl-syntax-1-4-archetypeslot/15022/9 "2010-10-25T11:56:09Z")

</div>

Thanks Seref,

It must be very clumsy of me, but I cannot find a menu-option where all the archetypes are in a single zip-archive.  
Maybe I should register first.

I’ll do that now, and if I don’t succeed in answering my previous questions, I’ll come back to this list.

Thanks Bert

Op 25-10-10 13:35, Seref Arikan schreef:

---

<div class="post-metadata">

### Author: ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)
#### Post date: [25 October 2010 12:00 UTC](https://discourse.openehr.org/t/question-about-adl-syntax-1-4-archetypeslot/15022/10 "2010-10-25T12:00:51Z")

</div>

Thanks, I just registered and found the bulk export, I think this will answer my questions.

I throw away the abondoned ones quickly.

Bert

Op 25-10-10 13:51, Sebastian Garde schreef:

---

<div class="post-metadata">

### Author: ![ian.mcnicoll](https://discourse.openehr.org/user_avatar/discourse.openehr.org/ian.mcnicoll/32/4430_2.png) [@ian.mcnicoll](https://discourse.openehr.org/u/ian.mcnicoll)
#### Post date: [25 October 2010 12:14 UTC](https://discourse.openehr.org/t/question-about-adl-syntax-1-4-archetypeslot/15022/11 "2010-10-25T12:14:37Z")

</div>

Hi Bert,

Yes - register on CKM first and then you can download all of the  
archetypes via menu Archetypes-\> Bulk export.

Dr Ian McNicoll  
office / fax +44(0)1536 414994  
mobile +44 (0)775 209 7859  
skype ianmcnicoll  
ian.mcnicoll@oceaninformatics.com

Clinical analyst, Ocean Informatics  
openEHR Clinical Knowledge Editor www.openehr.org/knowledge  
Honorary Senior Research Associate, CHIME, UCL  
BCS Primary Health Care SG Group www.phcsg.org
