# SLots in archetypes

**URL:** <https://discourse.openehr.org/t/slots-in-archetypes/14897>\
**Category:** Technical (archive)\
**Created:** [29 May 2009 09:53 UTC](https://discourse.openehr.org/t/slots-in-archetypes/14897 "2009-05-29T09:53:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paria\_Kashfi](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/p/278dde/32.png) [@Paria\_Kashfi](https://discourse.openehr.org/u/Paria_Kashfi)\
**Post date:** [29 May 2009 09:53 UTC](https://discourse.openehr.org/t/slots-in-archetypes/14897/1 "2009-05-29T09:53:38Z")

</div>

Hello,  
In archetype-editor one item type is Slot which only accepts archetypes in form of Cluster or Element as constraint on that slot. Is there any way to put a slot for including one Observation in another? Is the only way of putting two Observations together is using templates?

Regards  
Pariya

MSc; PhD Candidate  
Department of Computing Science and Engineering  
Chalmers University of Technology  
[http://www.chalmers.se/cse/EN/people/kashfi-hajar](http://www.chalmers.se/cse/EN/people/kashfi-hajar)

---

<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:** [29 May 2009 11:15 UTC](https://discourse.openehr.org/t/slots-in-archetypes/14897/2 "2009-05-29T11:15:09Z")

</div>

Hi Pariya,

No, it is not possible to nest Observations within slots. The allowable classes for slots are determined by the reference model. There were good reasons for setting this restriction, as allowing nested ENTRY classes intoduces all sorts of complications around the context of the observation, but it can sometimes seem awkward when creating models. In my experience, it is usually straightforward to work around the restriction by refactoring the observation which requires to be nested, as a CLUSTER archetype.

Can you give a specific example?

Ian  
Dr Ian McNicoll  
office / fax +44(0)141 560 4657  
mobile +44 (0)775 209 7859  
skype ianmcnicoll  
[ian@mcmi.co.uk](mailto:ian@mcmi.co.uk)

Clinical Analyst Ocean Informatics [ian.mcnicoll@oceaninformatics.com](mailto:ian.mcnicoll@oceaninformatics.com)  
BCS Primary Health Care Specialist Group [www.phcsg.org](http://www.phcsg.org)

2009/5/29 Pariya Kashfi \<[hajar.kashfi@chalmers.se](mailto:hajar.kashfi@chalmers.se)\>

---

<div class="post-metadata">

**Author:** ![Paria\_Kashfi](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/p/278dde/32.png) [@Paria\_Kashfi](https://discourse.openehr.org/u/Paria_Kashfi)\
**Post date:** [29 May 2009 14:56 UTC](https://discourse.openehr.org/t/slots-in-archetypes/14897/3 "2009-05-29T14:56:02Z")

</div>

Hi Ian,  
Thanks for your response.

In my case, I intend to use some existing Archetypes in my own observation. Having one Cluster/section named Status and Signs, I want to put two existing archetypes named Observation: Laboratory Values and Observation:Physical Examination into that. Re-factoring existing archetypes, in this case, doesn’t make sense since eliminates the benefits of reusing existing archetypes.

\_Pariya

---

<div class="post-metadata">

**Author:** ![Tim\_Cook2](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/t/57b2e6/32.png) [@Tim\_Cook2](https://discourse.openehr.org/u/Tim_Cook2)\
**Post date:** [29 May 2009 23:43 UTC](https://discourse.openehr.org/t/slots-in-archetypes/14897/4 "2009-05-29T23:43:48Z")

</div>

Hi Pariya,

It seems to me that you are exactly describing the use case for  
templates. Remember that the definition for an archetype is the maximal  
information model for a 'single' clinical concept. What you are  
describing above are most certainly separate concepts.

The purposes and usage of slots is well defined in the archetype  
principles document.

HTH,  
Tim

---

<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:** [30 May 2009 08:55 UTC](https://discourse.openehr.org/t/slots-in-archetypes/14897/5 "2009-05-30T08:55:58Z")

</div>

Hi Pariya,

it sounds like what you want to do is to have a number of Observations within a single report or encounter. In this case, you group them under a SECTION archetype, possibly within a COMPOSITION archetype. Since such grouping is usually a local thing, it would be more normal to do it in a template than in a archetype.

- thomas beale

Pariya Kashfi wrote:

> **(attachments)**
>
> ![OceanCsmall.png](https://discourse.openehr.org/images/transparent.png)

---

<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:** [30 May 2009 12:40 UTC](https://discourse.openehr.org/t/slots-in-archetypes/14897/6 "2009-05-30T12:40:57Z")

</div>

Hi

For that example, you should use a section archetype to group the physical examination and lab results archetypes together within  
A symptoms and signs heading. The key thing to understand is that these headings, though useful for humans, have no semantic value and should not normally be referenced when querying.

We make a lot of use of a simple ‘Ad-hoc’ Section archetype that can be renamed at template level to match local requirements.

So something like

COMPOSITION.Encounter.v1 “Oral medicine clinic”  
SECTION.Adhoc.v1 “Status and Signs”

SECTION.Adhoc.v1 “Lab Values”  
OBSERVATION.lab\_test-glucose.v1  
OBSERVATION.lab\_test-fbc.v1

SECTION. Adhoc.v1 “Physical Exams”  
OBSERVATION.exam-mouth.v1

SECTION.Adhoc.v1 “Conclusions”  
EVALUATION.problem-diagnosis.v1

Again, just to stress that the Section headers should not convey any querying semantics, they are there purely to assist human navigation.

Ian

Dr Ian McNicoll  
Clinical analyst Ocean Informatics  
Tel/fax +44(0)141 560 4657  
Mobile +44 (0) 775 209 7859  
Skype imcnicoll
