# Multiple parents and max number of nested specialized archetypes?

**URL:** <https://discourse.openehr.org/t/multiple-parents-and-max-number-of-nested-specialized-archetypes/14678>\
**Category:** Technical (archive)\
**Created:** [16 October 2007 15:34 UTC](https://discourse.openehr.org/t/multiple-parents-and-max-number-of-nested-specialized-archetypes/14678 "2007-10-16T15:34:29Z")\
**Posts on this page:** 4\
**Page:** 3

<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:** [22 October 2007 12:40 UTC](https://discourse.openehr.org/t/multiple-parents-and-max-number-of-nested-specialized-archetypes/14678/41 "2007-10-22T12:40:38Z")

</div>

Thanks all for the excellent explanations on the differences between archetypes and templates both from functional and technical point of view. I agree with Sebastian, these rather educational comments should be included in our FAQ page.

On the technical side, I will be glad to review the early draft of TEMPLATE\_SPEC specification. It can even be implemented by the Java community to provide feedbacks for further refinement.

Cheers,  
Rong

---

<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:** [22 October 2007 15:23 UTC](https://discourse.openehr.org/t/multiple-parents-and-max-number-of-nested-specialized-archetypes/14678/42 "2007-10-22T15:23:31Z")

</div>

Hi Greg

> ```auto
> Interfaces
> 
> a) When creating a generic outbound or inbound interface with an
> extrernal system - do you build based upon the archetypes only - i.e.
> provide as many values possible? or your specializations? or is this
> all mute and we stick with HL7?
> 
> ```

HL7 will be around forever - openEHR merely starts from the coherent and extensible EHR and aims to keep as much information as possible in a form that can be queried (and processed). If you want to ask a question in the openEHR environment then you do so in terms of the reference model and archetypes (which are always composed of reference model types). So if we have an archetype for blood pressure then we can recall all blood pressures - and then any part of that information group. So when you say interfaces - the raw interface itself knows only the reference model - but the query engine understands that archetypes exist and how they are ‘stamped’ in the data.

At a coarse grain level, the EHR consists of compositions - which remain the coherent view of the health information - as a document like CDA does.

> ```auto
> Templates, as a collection for a use case. I looked out in Subversion
> but only see one out there:
> [http://svn.openehr.org/knowledge/templates/dev/html/](http://svn.openehr.org/knowledge/templates/dev/html/)
> 
> ```

You need to look at the UK site:  
..templates\dev-uk-nhs\xml\openehr\ehr

> ```auto
> b) Do templates or specializations or archetypes define workflow
> e.g.
> record results, based upon results collect additional information or not?'
> 
> ```

All health record entries record workflow to some extent. Observations record measurements and findings, Evaluations record assessments and summaries, Instructions record orders and Actions record interventions or things done (or not done if required). It might take a while to think of an order for a lab (instruction) resulting in blood being taken (can be recorded as an action), being sent to the lab, being processed, being sent back to the sender, being checked by the ordering clinician, being completed - all actions. The actual result will be an observation - which is linked to the order but is not an action arising from the order.

> ```auto
> In the case were a doc just wants to replicate a paper form but not
> improve it would I build a template or stick with Archetypes? So
> implementing a form like this:
> 
> [http://home.cogeco.ca/~epiphany/FPDoctor-Perfect-Progress-Note-2.0.pdf](http://home.cogeco.ca/~epiphany/FPDoctor-Perfect-Progress-Note-2.0.pdf)
> 
> ```

The link didn’t work - but one design issue for those building archetypes is to consider the fact that some data will be entered in a narrative form - perhaps a great deal in some settings. This means we might only get minimal structure in 3 or 4 archetypes in some situations.  
Hope that is helpful, Sam

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

---

<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:** [23 October 2007 11:33 UTC](https://discourse.openehr.org/t/multiple-parents-and-max-number-of-nested-specialized-archetypes/14678/43 "2007-10-23T11:33:39Z")

</div>

Dipak Kalra wrote:

> Dear Heather,
> 
> Your 50c worth is really an excellent explanation. Well done, and I  
> hope many readers on the list will find it helpful.

You should see what Heather can do for $1....

- thomas

---

<div class="post-metadata">

**Author:** ![Koray\_Atalag](https://discourse.openehr.org/user_avatar/discourse.openehr.org/koray_atalag/32/70_2.png) [@Koray\_Atalag](https://discourse.openehr.org/u/Koray_Atalag)\
**Post date:** [29 October 2007 21:11 UTC](https://discourse.openehr.org/t/multiple-parents-and-max-number-of-nested-specialized-archetypes/14678/44 "2007-10-29T21:11:34Z")

</div>

Dear All,

I have an important modeling problem in ADL for defining whether single  
or multiple selection is allowed for values of an ELEMENT. In (very  
informal) other words checkbox or option box. During a recent discussion  
with Thomas, I learned that this has previously been discussed and that  
current trend is to move this into templates together with the  
constraint about default values.

I can perfectly understand and appreciate to define default values in  
templates as they can be dependent on regional, cultural or even  
religious matters. But considering the principles expressed  
(wonderfully) in a previous thread about archetypes and templates, one  
can simply come to a conclusion that (almost) universal and non-volatile  
domain knowledge go into former while local/volatile knowledge go into  
latter. In any concept such constraints are an integral part of that  
domain knowledge; i.e. an ELEMENT defining presence of bleeding can not  
have both present and absent. Of course then there might be other cases  
where this can not be determined in advance- so you simply do not  
constrain them in archetypes and handle with local templates.

The rationale behind my similar requests/suggestions is very simple: I  
prefer to be able to model concepts and implement them without depending  
on templates; just archetypes and that's all. I know that this is not  
the mainstream approach/business model but it can improve stability of  
archetypes and add flexibility in openEHR/CEN implementations.

Best regards,

Koray Atalag, MD, Ph.D.

[Previous page](https://discourse.openehr.org/t/multiple-parents-and-max-number-of-nested-specialized-archetypes/14678.md?page=2)
