# constraint binding error

**URL:** <https://discourse.openehr.org/t/constraint-binding-error/15051>\
**Category:** Technical (archive)\
**Created:** [18 February 2011 13:31 UTC](https://discourse.openehr.org/t/constraint-binding-error/15051 "2011-02-18T13:31:20Z")\
**Posts on this page:** 16\
**Page:** 2

<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:** [21 February 2011 10:43 UTC](https://discourse.openehr.org/t/constraint-binding-error/15051/21 "2011-02-21T10:43:51Z")

</div>

that is correct - URIs were an older way of thinking about how to ‘find’ the ref set. Now with IHTSDO / SNOMED CT, we can imagine ref sets identified by SNomed code (they are in SNOMED CT). The problem is that the whole industry is not yet converted to SNOMED CT, and as far as I can see today, there is no guarantee that it ever will. We just don’t know. So while we could potentially put SNOMED\_CT::123456789 to refer to ref set 123456789 in the SCT concept space, what do we put for LOINC, ICDx or local terminologies?

What probably does make sense anyway is to relax the spec in ADL 1.5 to allow both forms (and one day, probably we get rid of the URI form). Does that seem reasonable?

- thomas

---

<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:** [21 February 2011 10:48 UTC](https://discourse.openehr.org/t/constraint-binding-error/15051/22 "2011-02-21T10:48:56Z")

</div>

this relates to the question of how SNOMED represents Ref set ids. In SCT concept space, all ‘concept’ ids are unique for the whole planet, with special bits being used to distinguish concepts and ref sets within national or other ‘extensions’ (i.e. outside the international release). So the question for the industry overall is: do we go to the SNOMED way of doing things (requires all other terminologies to be representable in SNOMED CT form) or do we have some more technologically neutral form? The URNs examples below raise the question: what is the internationally agreed namespacing scheme to use? WHat are the rules for establishing new URNs?

I don’t know what the answers are at this stage, because it requires some sort of global / standards agreement, and that does not yet exist.

- thomas

> **(attachments)**
>
> ![OceanInformaticsl.JPG](https://discourse.openehr.org/images/transparent.png)

---

<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:** [21 February 2011 10:51 UTC](https://discourse.openehr.org/t/constraint-binding-error/15051/23 "2011-02-21T10:51:35Z")

</div>

indeed… the original idea was that we would use some scheme space like ‘terminology:xxxx’. We have use URL-like URIs in the past inn actual implementations, on the basis that we thought that one day IHTSDO or someone would finally get their act together and either decide to move to the SCT way of doing things in unison, or else define a URN scheme for everyone to use (i.e. not just SNOMED). This has not happened yet…

- thomas

---

<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:** [21 February 2011 10:53 UTC](https://discourse.openehr.org/t/constraint-binding-error/15051/24 "2011-02-21T10:53:38Z")

</div>

me too. If someone wants to come up with a simple clean little specification, we could put that into openEHR, and find ways to map from it to whatever turns up in the future…

- thomas

---

<div class="post-metadata">

**Author:** ![Peter\_Gummer1](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/p/258eb7/32.png) [@Peter\_Gummer1](https://discourse.openehr.org/u/Peter_Gummer1)\
**Post date:** [21 February 2011 11:06 UTC](https://discourse.openehr.org/t/constraint-binding-error/15051/25 "2011-02-21T11:06:15Z")

</div>

Thomas Beale wrote:

> What probably does make sense anyway is to relax the spec in ADL 1.5  
> to allow both forms (and one day, probably we get rid of the URI  
> form). Does that seem reasonable?

This would mean, then, a revision to section 8.3.1 of the AOM 1.5  
spec. Currently it says that ARCHETYPE\_ONTOLOGY.constraint\_bindings  
contains DV\_URI objects.

- Peter

---

<div class="post-metadata">

**Author:** ![SEABURY\_Tom\_NHS\_DIGI](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/s/b2d939/32.png) [@SEABURY\_Tom\_NHS\_DIGI](https://discourse.openehr.org/u/SEABURY_Tom_NHS_DIGI)\
**Post date:** [21 February 2011 11:27 UTC](https://discourse.openehr.org/t/constraint-binding-error/15051/26 "2011-02-21T11:27:15Z")

</div>

I see this as an opportunity for some joint work on specification of terminology binding, in the intersection of interests between the openEHR community and for one: IHTSDO.

I hope the following notes are both helpful and true, corrections are most welcome!  
[Specialists language from the SNOMED CT technical lexicon is in '' marks]

The identification of bindable 'components' from SNOMED CT is certainly via ReferenceSet IDs (not yet part of the standard but very soon will be) via SubsetIDs

For SubsetIDs I would expect the {URI/URN etc.} to include a 'Version'  
For Concepts the 'ConceptID' should of itself be adequate  
For query specifications - mentioned somewhere in this thread - the only way to identify these will in the future be via an 'intensional' ReferenceSet definition, but to be meaningful this may (in some cases must) be used in conjunction with the named Edition of SNOMED CT against which this will be run.

For enumerated ReferenceSet members (not the query but a results set of a query) then the ReferenceSetID would be needed.

In all the above cases it is necessary to consider if the named 'Edition' and 'Release' of that 'Edition' may need to be included. The proposed uses of 'Module' Identifiers is a further topic.

The 'Releases' are identified such as "UK Edition"  
Releases are identified in ways that are decided by each SNOMED CT 'National Release Center' such as the effective date, but this is not a formal convention.

[Anyone wanting the finer points of detail for IHTSDO standards and common practice for issuance and use of : Namespaces, Editions, Release Centres, ModuleIDs and other such metadata are invited to join, say, the Special Interest Groups in IHTSDO.

Overall, in this intersection of interests between multiple information models (say HL7 and UK's LRA), and multiple terminology and classification schemes (say SNOMED CT and ICD and..) makes this topic one where working-up rather than handing-down a solution is most likely to happen and succeed.

Tom Seabury

---

<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:** [21 February 2011 11:36 UTC](https://discourse.openehr.org/t/constraint-binding-error/15051/27 "2011-02-21T11:36:12Z")

</div>

most people consider ICD10 as simply a different terminology from ICD9. There are variants like ICD10AM, ICD9CM and so on… and in theory, there are no ‘versions’ of these terminologies, at least as far as I know - WHO issues once and that’s it (not sure about the AM and CM releases though).

- thomas

---

<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:** [21 February 2011 11:37 UTC](https://discourse.openehr.org/t/constraint-binding-error/15051/28 "2011-02-21T11:37:36Z")

</div>

I had better be more precise here 😉

‘proper’ URIs or URNs may be the correct approach. URLs almost certainly are not. So the spec might remain correct technically, just that the guidance for what URIs can be used should probably change.

- thomas

> **(attachments)**
>
> ![OceanInformaticsl.JPG](https://discourse.openehr.org/images/transparent.png)

---

<div class="post-metadata">

**Author:** ![Colin\_Sutton](https://discourse.openehr.org/user_avatar/discourse.openehr.org/colin_sutton/32/47_2.png) [@Colin\_Sutton](https://discourse.openehr.org/u/Colin_Sutton)\
**Post date:** [21 February 2011 12:05 UTC](https://discourse.openehr.org/t/constraint-binding-error/15051/29 "2011-02-21T12:05:04Z")

</div>

Both ICD 10 and ICD 10-AM have yearly updates. Mapping tables are issued to show the changes: new codes are introduced, some are deleted, and some change their meaning...

It seems to me a terminology server for each terminology version is needed as a reference at the clinical archetype definition stage.  
As the terminologies stabilise (apart from new discoveries), the responsibility will then be on each server to resolve changes, as the health record will not change.

Colin

---

<div class="post-metadata">

**Author:** ![mikael](https://discourse.openehr.org/user_avatar/discourse.openehr.org/mikael/32/881_2.png) [@mikael](https://discourse.openehr.org/u/mikael)\
**Post date:** [21 February 2011 12:13 UTC](https://discourse.openehr.org/t/constraint-binding-error/15051/30 "2011-02-21T12:13:22Z")

</div>

Hi Thomas,

I would disagree that the version of ICD-10 is “10”. Even terminology systems like ICD-10 are revised (for example in Sweden once a year) and released in different releases. I therefore think that is fair to handle ICD-9 and ICD-10 as different systems in the same way as SNOMED RT and SNOMED CT are.

Greetings,

Mikael

---

<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:** [21 February 2011 13:17 UTC](https://discourse.openehr.org/t/constraint-binding-error/15051/31 "2011-02-21T13:17:14Z")

</div>

oops my mistake. I just checked on the NLM page at [http://www.nlm.nih.gov/research/umls/knowledge\_sources/metathesaurus/release/source\_vocabularies.html](http://www.nlm.nih.gov/research/umls/knowledge_sources/metathesaurus/release/source_vocabularies.html) - seems they put year numbers on ICD terminology names.

In any case, you are right about having the version dependency from archetypes to terminologies…

- thomas

---

<div class="post-metadata">

**Author:** ![Andrew\_Patterson](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/a/76d3ee/32.png) [@Andrew\_Patterson](https://discourse.openehr.org/u/Andrew_Patterson)\
**Post date:** [21 February 2011 13:35 UTC](https://discourse.openehr.org/t/constraint-binding-error/15051/32 "2011-02-21T13:35:34Z")

</div>

> WHat are the rules for establishing new URNs?

[http://www.iana.org/assignments/urn-namespaces/urn-namespaces.xml](http://www.iana.org/assignments/urn-namespaces/urn-namespaces.xml)

and RFC 3406

I think a well designed IHTSDO urn specification could be useful.

urn:ihtsdo:SCT-AU:20100131+:refset:135394005

etc

This doesn't help out with other terminology sets like ICD-10 though..

Andrew

---

<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:** [21 February 2011 14:09 UTC](https://discourse.openehr.org/t/constraint-binding-error/15051/33 "2011-02-21T14:09:31Z")

</div>

Hi Thomas,

Maybe we could think of CM/AM in ICD, and CT/CT-AU in Snomed like the “country/variant” in a locale, (en\_UK or en\_UK\_v1) leaving the version alone (version = a number or date or id or whatever).

---

<div class="post-metadata">

**Author:** ![Hugh\_Leslie1](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/h/2acd7d/32.png) [@Hugh\_Leslie1](https://discourse.openehr.org/u/Hugh_Leslie1)\
**Post date:** [24 February 2011 02:28 UTC](https://discourse.openehr.org/t/constraint-binding-error/15051/34 "2011-02-24T02:28:36Z")

</div>

This is a great discussion. I think it would be good to make sure it doesn’t get lost. Is it worth setting up a page on the wiki and moving some of the discussion there?

---

<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 February 2011 02:39 UTC](https://discourse.openehr.org/t/constraint-binding-error/15051/35 "2011-02-24T02:39:08Z")

</div>

I vote for that 🙂

---

<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 February 2011 09:51 UTC](https://discourse.openehr.org/t/constraint-binding-error/15051/36 "2011-02-24T09:51:49Z")

</div>

some time ago I added this page, on more or less the same topic: [http://www.openehr.org/wiki/display/term/Terminology+Identification](http://www.openehr.org/wiki/display/term/Terminology+Identification) - please feel free to update with some notes

If you go to [http://www.openehr.org/wiki/display/term/Terminology+and+openEHR](http://www.openehr.org/wiki/display/term/Terminology+and+openEHR) and look at the bottom right you will see the current hierarchy of pages on topics relating to this one.

- thomas beale

[Previous page](https://discourse.openehr.org/t/constraint-binding-error/15051.md?page=1)
