# maybe weak point in Archetype-specification

**URL:** <https://discourse.openehr.org/t/maybe-weak-point-in-archetype-specification/15184>\
**Category:** Technical (archive)\
**Created:** [24 June 2012 12:30 UTC](https://discourse.openehr.org/t/maybe-weak-point-in-archetype-specification/15184 "2012-06-24T12:30:51Z")\
**Posts on this page:** 4\
**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:** [24 June 2012 12:30 UTC](https://discourse.openehr.org/t/maybe-weak-point-in-archetype-specification/15184/1 "2012-06-24T12:30:51Z")

</div>

Please consider following.

I think it is a weak point to have a file which contains an archetype having the same name as the archetype-id.  
This policy is enforced by as well the OCEAN-editor as the LinkEHR editor (however the latter has a bug in this).

I don't know if it is "officially" specified. But the disadvantage is that information is stored twice in the same file (in the contents and in the filename), this can cause problems, ambiguities.

Also, it is unnecessary restrictive, it is impossible to store more archetypes in one text-file.

Many programming languages have the same restriction, but often the have also workarounds for this restriction.

regards  
Bert Verhees

---

<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:** [24 June 2012 18:02 UTC](https://discourse.openehr.org/t/maybe-weak-point-in-archetype-specification/15184/2 "2012-06-24T18:02:14Z")

</div>

Bert,

yes, you are right. It’s not required, and the ADL Workbench and Ocean Template Designer don’t care about the file name. It’s a straightforward matter for all tools to remove this restriction (it means running a micro-parser across all the files to read the first line or few lines, so that an explorer / browser widget can be populated).

- thomas

---

<div class="post-metadata">

**Author:** ![yampeku](https://discourse.openehr.org/user_avatar/discourse.openehr.org/yampeku/32/25_2.png) [@yampeku](https://discourse.openehr.org/u/yampeku)\
**Post date:** [24 June 2012 19:26 UTC](https://discourse.openehr.org/t/maybe-weak-point-in-archetype-specification/15184/3 "2012-06-24T19:26:39Z")

</div>

I would say the reason to show those 3 alternatives was to prevent the  
user to overwrite a potential xxxxx.v1 archetype with a xxxxx.v2  
archetype. It seems like it can be annoying sometimes so we should  
make it a configuration option (and switched off by default).

---

<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 June 2012 06:18 UTC](https://discourse.openehr.org/t/maybe-weak-point-in-archetype-specification/15184/4 "2012-06-25T06:18:39Z")

</div>

I agree that this is not a reasonable behaviour any more, the archetype identifier could be just the default name proposal, but that’s all.

David

2012/6/24 Bert Verhees \<[bert.verhees@rosa.nl](mailto:bert.verhees@rosa.nl)\>
