# latest archetype & template drafts

**URL:** https://discourse.openehr.org/t/latest-archetype-template-drafts/13365
**Category:** Implementers (archive)
**Created:** [16 December 2009 18:19 UTC](https://discourse.openehr.org/t/latest-archetype-template-drafts/13365 "2009-12-16T18:19:29Z")
**Posts on this page:** 6
**Page:** 1

<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: [16 December 2009 18:19 UTC](https://discourse.openehr.org/t/latest-archetype-template-drafts/13365/1 "2009-12-16T18:19:29Z")

</div>

You can see the progress at  
[http://www.openehr.org/wiki/display/spec/openEHR+Templates+and+Specialised+Archetypes](http://www.openehr.org/wiki/display/spec/openEHR+Templates+and+Specialised+Archetypes)

This page has updated explanations for changes in ADL/AOM 1.5, and also  
links to the most recent archetype and template drafts. The template  
draft still has major parts to be done, but the modelling is nearly  
worked out. The operational template section will be next to be completed.

There are also a bunch of UML and other diagrams on the page which will  
give people quick access to the changes.

comments welcome.

- thomas beale

---

<div class="post-metadata">

### Author: ![pablo](https://discourse.openehr.org/user_avatar/discourse.openehr.org/pablo/32/3505_2.png) [@pablo](https://discourse.openehr.org/u/pablo)
#### Post date: [17 December 2009 01:01 UTC](https://discourse.openehr.org/t/latest-archetype-template-drafts/13365/2 "2009-12-17T01:01:33Z")

</div>

Hi Thomas,

I see you’re seeing problems with node\_id in C\_Primitive and C\_Domain\_Type, I’ve a problem in ArchetypeInternalRef too.

This is my issue:

In the AOM specs, every CObject has a mandatory node\_id attribute, included the ArchetypeInternalRef.

I make an archetype using Oceans Archetype Editor and the node with the reference looks like this (I think this is a valid ADL node):

CLUSTER[at0008] occurrences matches {0..1} matches { – Pelvis  
items cardinality matches {0..\*; unordered} matches {  
use\_node ELEMENT occurrences matches {0..3} /data[at0001]/events[at0002]/data[at0003]/items[at0004]/items[at0012]  
}  
}

But the use\_node internal reference has no node\_id, so, in the AOM structure parsed from the ADL, the ArchetypeInternalRef to /data[at0001]/events[at0002]/data[at0003]/items[at0004]/items[at0012] has no node\_id.

This problem complicates our binder implementation to support Internal Refs ☹

Cheers,  
Pablo.

---

<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: [17 December 2009 09:01 UTC](https://discourse.openehr.org/t/latest-archetype-template-drafts/13365/3 "2009-12-17T09:01:42Z")

</div>

pablo pazos wrote:

---

<div class="post-metadata">

### Author: ![pablo](https://discourse.openehr.org/user_avatar/discourse.openehr.org/pablo/32/3505_2.png) [@pablo](https://discourse.openehr.org/u/pablo)
#### Post date: [19 December 2009 07:54 UTC](https://discourse.openehr.org/t/latest-archetype-template-drafts/13365/4 "2009-12-19T07:54:13Z")

</div>

Hi Thomas,

With your input I can state that the problems are in the tools because:

1. It is not possible to define a node\_id for a internal ref on Oceans Archetype Editor.
2. When an archetype is parsed o AOM with the Java Ref Impl ADL parser, the node\_id of the reference is always empty, so the node\_id is not inferred from the target id.

Is this correct?

Best regards,  
Pablo.

---

<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: [21 December 2009 21:50 UTC](https://discourse.openehr.org/t/latest-archetype-template-drafts/13365/5 "2009-12-21T21:50:27Z")

</div>



---

<div class="post-metadata">

### Author: ![pablo](https://discourse.openehr.org/user_avatar/discourse.openehr.org/pablo/32/3505_2.png) [@pablo](https://discourse.openehr.org/u/pablo)
#### Post date: [22 December 2009 15:55 UTC](https://discourse.openehr.org/t/latest-archetype-template-drafts/13365/6 "2009-12-22T15:55:16Z")

</div>

Great, let me know if you find the problem.

Now that you’re revising the editor, wanted to tell you about another issue.  
If you define a constraint of external terminology for a text (like coded as ICD10), the editor will not let you specify the terminology id.

I had to do this example with notepad and is parsed ok by the java ref impl:

DV\_CODED\_TEXT matches {  
defining\_code matches {[icd10::ac0002]} – Diagnostico de trauma  
}

ac0002 is the id on the constraint\_definitions of this constraint.

Thanks a lot!

Pablo Pazos Gutierrez  
[http://sites.google.com/site/pablopazosgutierrez/](http://sites.google.com/site/pablopazosgutierrez/)
