# 2 constraint bindings in ADL - 1 referenceSetUri in OPT

**URL:** https://discourse.openehr.org/t/2-constraint-bindings-in-adl-1-referenceseturi-in-opt/15650
**Category:** Implementers (archive)
**Created:** [8 August 2015 19:20 UTC](https://discourse.openehr.org/t/2-constraint-bindings-in-adl-1-referenceseturi-in-opt/15650 "2015-08-08T19:20:41Z")
**Posts on this page:** 1
**Page:** 1

<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: [8 August 2015 19:20 UTC](https://discourse.openehr.org/t/2-constraint-bindings-in-adl-1-referenceseturi-in-opt/15650/1 "2015-08-08T19:20:41Z")

</div>

Hi,

I have created a testing archetype with two constraint bindings:

…

ELEMENT[at0004] occurrences matches {0..1} matches { – Terminology ref  
value matches {  
DV\_CODED\_TEXT matches {  
defining\_code matches {[ac0001]} – ref  
}  
}

…

constraint\_definitions = \<  
[“es”] = \<  
items = \<  
[“ac0001”] = \<  
text = \<“ref”\>  
description = \<“ref”\>

> 

constraint\_bindings = \<  
[“SNOMED-CT”] = \<  
items = \<  
[“ac0001”] = terminology:SNOMED-CT?subset=motivo\_de\_consulta

> 

[“AOD2000”] = \<  
items = \<  
[“ac0001”] = terminology:AOD2000?subset=sdfgsd

> 

If I use this archetype in the Template Designer and export the OPT, I get just one URI:

DV\_CODED\_TEXT ... defining\_code ... CODE\_PHRASE ... terminology:SNOMED-CT?subset=motivo\_de\_consulta

Is this a TD bug? I’m using TD 2.6.1214Beta.
