# What's the correct XML in an OPT for multiple terminology references?

**URL:** https://discourse.openehr.org/t/whats-the-correct-xml-in-an-opt-for-multiple-terminology-references/16599
**Category:** Technical (archive)
**Created:** [15 September 2018 17:56 UTC](https://discourse.openehr.org/t/whats-the-correct-xml-in-an-opt-for-multiple-terminology-references/16599 "2018-09-15T17:56:03Z")
**Posts on this page:** 2
**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: [15 September 2018 17:56 UTC](https://discourse.openehr.org/t/whats-the-correct-xml-in-an-opt-for-multiple-terminology-references/16599/1 "2018-09-15T17:56:03Z")

</div>

Hi,

I’m having trouble generating OPTs (1.4) from archetypes that reference multiple terminologies from a DV\_CODED\_TEXT.

For instance, I have a coded node that will be coded by LOINC or SNOMED-CT, that can be set in the archetype. But when exporting the OPT from the Template Designer, only LOINC appears in this way:

CODE\_PHRASE true true false false 1 1 \*\*terminology:LOINC\*\*

Now, looking at the OPT schema (I think I got it from the TD), it says the C\_CODE\_PHRASE only can have one **referenceSetUri** element, so it is not possible to add more elements with other terminologies.

So, how can we put many terminologies on the OPT?

Should that be multiple values in that element? like this:

**terminology:LOINC terminology:SNOMED-CT**

(that looks ugly and I don’t think is valid)

I’m surprised to find this simple case can’t be supported by tools or the OPT format itself. Any tips are welcome.

Best,  
Pablo.

---

<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: [15 September 2018 18:17 UTC](https://discourse.openehr.org/t/whats-the-correct-xml-in-an-opt-for-multiple-terminology-references/16599/2 "2018-09-15T18:17:44Z")

</div>

Just remembered children of attribute can handle multiple alternatives, while this is syntactically correct I’m not sure if the alternatives can be of the same object type:

defining\_code .... CODE\_PHRASE .... \*\*terminology:LOINC\*\* CODE\_PHRASE .... \*\*terminology:SNOMED-CT\*\*
