# Categorize templates with SNOMED-CT

**URL:** <https://discourse.openehr.org/t/categorize-templates-with-snomed-ct/11427>\
**Category:** Implementation\
**Tags:** template\
**Created:** [26 September 2025 08:47 UTC](https://discourse.openehr.org/t/categorize-templates-with-snomed-ct/11427 "2025-09-26T08:47:28Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbuch](https://discourse.openehr.org/user_avatar/discourse.openehr.org/jbuch/32/4645_2.png) [@jbuch](https://discourse.openehr.org/u/jbuch)\
**Post date:** [26 September 2025 08:47 UTC](https://discourse.openehr.org/t/categorize-templates-with-snomed-ct/11427/1 "2025-09-26T08:47:28Z")

</div>

I want to categorize various templates using SNOMED-CT. The SNOMED concepts (“record artifacts”) should be persisted in each created compositon, preferably automatically. I am struggling to find a good (light-weight) solution. Is there a way to avoid the creation and insertion of a cluster archetype into the other\_context \> Extension slot?

---

<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:** [26 September 2025 10:04 UTC](https://discourse.openehr.org/t/categorize-templates-with-snomed-ct/11427/2 "2025-09-26T10:04:47Z")

</div>

Hi Jonas,

Our approach has been to add an ‘XDS metadata cluster’ originally developed by Fabio at Better to carry the document category as a SNOMED code. This probably could be usefully updated to fit with the [FHIR Document Reference resource]([DocumentReference - FHIR v6.0.0-ballot3](https://build.fhir.org/documentreference.html)) as that has utility beyond just the document category, in fitting into XDS/Record locator environments.

The alternative would be to add a Term mapping to the Composition root node but that feels a little obscure to me.

---

<div class="post-metadata">

**Author:** ![jbuch](https://discourse.openehr.org/user_avatar/discourse.openehr.org/jbuch/32/4645_2.png) [@jbuch](https://discourse.openehr.org/u/jbuch)\
**Post date:** [26 September 2025 13:23 UTC](https://discourse.openehr.org/t/categorize-templates-with-snomed-ct/11427/3 "2025-09-26T13:23:17Z")

</div>

Hi Ian,

Thanks for your reply. I had a feeling that a cluster archetype would be needed. I will look into any updates and adjustments to local requirements necessary. Has the archetype been considered for publication in the international CKM?

---

<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:** [26 September 2025 13:30 UTC](https://discourse.openehr.org/t/categorize-templates-with-snomed-ct/11427/4 "2025-09-26T13:30:43Z")

</div>

Not as yet - we did have it in the UK Apperta CKM but that is offline.

I think this is a good opportunity to intro a new archetype based on the FHIR DocumentReference but I’ve attached the XDS one for info

[openEHR-EHR-CLUSTER.xds\_metadata.v0.adl](https://discourse.openehr.org/uploads/short-url/y7wMQfOEmJ2xYQpbhpxJdJnGVgM.adl) (5.7 KB)

---

<div class="post-metadata">

**Author:** ![damoca](https://discourse.openehr.org/user_avatar/discourse.openehr.org/damoca/32/2606_2.png) [@damoca](https://discourse.openehr.org/u/damoca)\
**Post date:** [28 September 2025 17:01 UTC](https://discourse.openehr.org/t/categorize-templates-with-snomed-ct/11427/5 "2025-09-28T17:01:52Z")

</div>

That XDS metadata cluster is also used in Catalonia. I agree that this should be aligned, and published through the international CKM.

---

<div class="post-metadata">

**Author:** ![siljelb](https://discourse.openehr.org/user_avatar/discourse.openehr.org/siljelb/32/12_2.png) [@siljelb](https://discourse.openehr.org/u/siljelb)\
**Post date:** [29 September 2025 06:27 UTC](https://discourse.openehr.org/t/categorize-templates-with-snomed-ct/11427/6 "2025-09-29T06:27:56Z")

</div>

That sounds like a good idea. Do we have any volunteers to run the reviews? 😄

---

<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 September 2025 08:34 UTC](https://discourse.openehr.org/t/categorize-templates-with-snomed-ct/11427/7 "2025-09-29T08:34:09Z")

</div>

I’d certainly be happy to help. I do wonder if we should take this opportunity to modernise it towards the FHIR equivalent

---

<div class="post-metadata">

**Author:** ![linforest](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/l/ac8455/32.png) [@linforest](https://discourse.openehr.org/u/linforest)\
**Post date:** [29 September 2025 09:46 UTC](https://discourse.openehr.org/t/categorize-templates-with-snomed-ct/11427/8 "2025-09-29T09:46:33Z")

</div>

I’d love to translate it into zh-CN if needed

---

<div class="post-metadata">

**Author:** ![jbuch](https://discourse.openehr.org/user_avatar/discourse.openehr.org/jbuch/32/4645_2.png) [@jbuch](https://discourse.openehr.org/u/jbuch)\
**Post date:** [1 October 2025 07:50 UTC](https://discourse.openehr.org/t/categorize-templates-with-snomed-ct/11427/9 "2025-10-01T07:50:22Z")

</div>

I would be happy to help as well!

---

<div class="post-metadata">

**Author:** ![SevKohler](https://discourse.openehr.org/user_avatar/discourse.openehr.org/sevkohler/32/3504_2.png) [@SevKohler](https://discourse.openehr.org/u/SevKohler)\
**Post date:** [1 October 2025 14:04 UTC](https://discourse.openehr.org/t/categorize-templates-with-snomed-ct/11427/10 "2025-10-01T14:04:11Z")

</div>

i would rather have a clean slate using a specific category cluster, this XDS carries a lot of stone age IHE stuff.  
I would propose making a specific fhir cluster for that for the composition.  
Would be also useful to carry an encounter identifier e.g. where ever this will point to (implementation dependant).  
Would help a lot.  
There also might be other fields we want to put there.

---

<div class="post-metadata">

**Author:** ![SevKohler](https://discourse.openehr.org/user_avatar/discourse.openehr.org/sevkohler/32/3504_2.png) [@SevKohler](https://discourse.openehr.org/u/SevKohler)\
**Post date:** [1 October 2025 15:25 UTC](https://discourse.openehr.org/t/categorize-templates-with-snomed-ct/11427/11 "2025-10-01T15:25:58Z")

</div>

As always i recommend first of all looking at this from an import and export view.

import:  
easy: use term\_mapping or add an category cluster to each of the archetypes clusters. That would be the XDS on here (which i would not recommend), still clumsy. I personally prefer term\_mappings here especially for child elements (for the composition itself category could be fine).

Export:  
The bigger issue is that most existing compositions have no categories. We cannot tell people now to populate all those + retrospectively. Here, **dataAbsentReason** in FHIR is the correct way to represent missing values.  
But how do we handle this in the future ?  
Adding a category field to each of the archetypes and each of our Clusters ?  
Also do not the codes used implicate already what type of e.g. test category this is ?

---

<div class="post-metadata">

**Author:** ![jbuch](https://discourse.openehr.org/user_avatar/discourse.openehr.org/jbuch/32/4645_2.png) [@jbuch](https://discourse.openehr.org/u/jbuch)\
**Post date:** [27 October 2025 11:04 UTC](https://discourse.openehr.org/t/categorize-templates-with-snomed-ct/11427/12 "2025-10-27T11:04:08Z")

</div>

What do you mean by “add a category cluster to each of the archetypes clusters”. Wouldn’t it be just adding one category cluster in the context of each template?

---

<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:** [27 October 2025 14:57 UTC](https://discourse.openehr.org/t/categorize-templates-with-snomed-ct/11427/13 "2025-10-27T14:57:50Z")

</div>

I agree term\_mappings is much cleaner, especially as the categories probably do not add much value inside the CDR but are really just there to assist integration.

---

<div class="post-metadata">

**Author:** ![jbuch](https://discourse.openehr.org/user_avatar/discourse.openehr.org/jbuch/32/4645_2.png) [@jbuch](https://discourse.openehr.org/u/jbuch)\
**Post date:** [28 January 2026 10:08 UTC](https://discourse.openehr.org/t/categorize-templates-with-snomed-ct/11427/14 "2026-01-28T10:08:46Z")

</div>

I created a first draft of a cluster archetype as a starting point for discussions. It is mainly based on the the DocumentReference FHIR resource [DocumentReference - FHIR v6.0.0-ballot3](https://build.fhir.org/documentreference.html)  
Let me know in case you are interested to collaborate on authoring/reviewing/translating, it would be great to set up a meeting to get started.

[openEHR-EHR-CLUSTER.document\_reference.v0.adl](https://discourse.openehr.org/uploads/short-url/kMSaK6DTUVvMdqrhrDSoHnottMb.adl) (8.6 KB)

[documentReference.xmind](https://discourse.openehr.org/uploads/short-url/hVc78JKiQEALomMX3CXWwpoZiXR.xmind) (215.5 KB)
