# Values for Coded Texts

**URL:** https://discourse.openehr.org/t/values-for-coded-texts/4370
**Category:** ADL
**Created:** [24 August 2023 10:12 UTC](https://discourse.openehr.org/t/values-for-coded-texts/4370 "2023-08-24T10:12:33Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![LauraMoral](https://discourse.openehr.org/user_avatar/discourse.openehr.org/lauramoral/32/5713_2.png) [@LauraMoral](https://discourse.openehr.org/u/LauraMoral)
#### Post date: [24 August 2023 10:12 UTC](https://discourse.openehr.org/t/values-for-coded-texts/4370/1 "2023-08-24T10:12:33Z")

</div>

Hello everyone,

I am working on a template for the obstetric process and I have some questions again! 🙂

The problem is that I am using the openEHR-EHR-EVALUATION.pregnancy\_summary.v0 in my template (and others…) and it fits quite well for some of my variables. I have a variable that fits with an element of the archetype, but it is a Coded text with a set of values (or Internal codes). The thing is that the context of the element fits for my use case (Position of the baby), but the values that I need to have are different.

- How would you add those new values? Could I specialize the archetype and delete the values from the parent archetype and add the new ones? Or should I keep them?

Furthermore, I would like to bind some of those values with some SNOMED CT concepts. I have tried doing it from the archetype adding the terminology SNOMED CT and then the bindings for each element, but then I can only do it if the values are added as “Internal codes”, and not as “external codes”.

- What is the difference between using internal/external codes?
- What does it happen, speaking from a technical perspective, if I change/delete those values from the original/parent archetype and I specialize it?

Thank you very much in advance.  
Kind regards,  
Laura

---

<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: [24 August 2023 10:33 UTC](https://discourse.openehr.org/t/values-for-coded-texts/4370/2 "2023-08-24T10:33:46Z")

</div>

Hi Laura! The [Pregnancy summary archetype](https://ckm.openehr.org/ckm/archetypes/1013.1.177) is one of the older archetypes in the CKM that haven’t gone through review and publication, so it contains some older modelling patterns. Your use case where you need to use a local or otherwise different value set for a specific DV\_CODED\_TEXT element is known in other use cases as well. Newer archetypes have solved the issue by adding another DV\_TEXT data type (which can be specialised to DV\_CODED\_TEXT in a template) to the element. This pattern has also been applied to some elements of this archetype over time, see for example the “Presenting part” element.

I would suggest you add a change request to the archetype, to add a “DV\_TEXT” data type to the “Position” element. Alternatively (or additionally), you could suggest the value set you need to be added to the archetype to make it more universally applicable.

We can of course also add SNOMED CT (or any other terminology) bindings to the value set that’s in the archetype.

---

<div class="post-metadata">

### Author: ![Pau\_Corral](https://discourse.openehr.org/user_avatar/discourse.openehr.org/pau_corral/32/1177_2.png) [@Pau\_Corral](https://discourse.openehr.org/u/Pau_Corral)
#### Post date: [14 September 2023 10:17 UTC](https://discourse.openehr.org/t/values-for-coded-texts/4370/3 "2023-09-14T10:17:56Z")

</div>

Hi,  
Coming back to this use case, could the addition of a DV\_TEXT to elements that have an internal definition be a general workaround applicable to all current archetypes? If I understood correctly, this represents a minor change (in semantic versioning) and it should not diminish the consensus reached in the internal value set, plus it gives room to local use without having to change the archetype.

---

<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: [14 September 2023 19:14 UTC](https://discourse.openehr.org/t/values-for-coded-texts/4370/4 "2023-09-14T19:14:49Z")

</div>

Generally, yes. Some archetypes are made for very specific use cases such as standardised scores, scales or classifications, and this workaround isn’t as applicable for those.

---

<div class="post-metadata">

### Author: ![LauraMoral](https://discourse.openehr.org/user_avatar/discourse.openehr.org/lauramoral/32/5713_2.png) [@LauraMoral](https://discourse.openehr.org/u/LauraMoral)
#### Post date: [18 September 2023 12:04 UTC](https://discourse.openehr.org/t/values-for-coded-texts/4370/5 "2023-09-18T12:04:25Z")

</div>

Thank you very much, @siljelb

I added the change request to the archetype. Let’s see!
