Jostein Ven wrote:

> I am trying to bind an attribute in an archetype to a value set from a 
> terminology server. The data in the termserver is availiable through web 
> services. In practice, it should thus be possible to specify a URI in an 
> archetype constraint for the elementattribute. Can't figure out how this is 
> meant to be done in AE. Anyone with experience of how to do this in practice? 

Hi Jostein,

This depends whether you got AE from the openEHR web site or from Ocean 
Informatics.
* The openEHR build lacks a way of of connecting to a terminology server.
* The Ocean informatics build, on the other hand, uses a proprietary component 
to connect to the Ocean Terminology Server (OTS).

Why have two builds? Because AE is open source, and the inclusion of a 
proprietary component would prevent people from being able to build AE 
themselves. But people want this functionality, so the only solution was to do 
a separate Ocean build of AE, with the appropriate hooks to connect to OTS. In 
theory, any one who has the time and expertise could use those same hooks to 
connect to some other terminology service.

So, once you've installed the Ocean build of AE, here's how to do it. First you 
have to configure AE to point to the web service that you want to use:

1. Under the Tools menu, select Options.

2. In the Options dialog, select the File Locations tab.

3. Tick "Enable Terminology Lookup". (This is not available in the openEHR 
build.)

4. Enter the web service URL into the "URL for Terminology Service" box. (This 
isn't in the openEHR build either.)

5. Click OK.

Then you can set term bindings and constraint bindings. This can be done on the 
Definition tab.

To set a term binding, select the element that you want to bind to a term. 
Then, over on the right, select the little Details tab. Towards the bottom is a 
box, "Node meaning in terminologies", containing an empty grid. Click the 
button in the top row of the grid. This will show a dialog where you can select 
your binding.

To set a constraint binding on a DV_CODED_TEXT, select the text element that 
you want to bind. Over on the right, select the "Terminology" radio button. 
This will display an empty grid down below. Click the [+] button. This will 
show a dialog where you can add your binding.


> Does anyone know what the AE does when you enter the interface screen. Is the 
> constraint executed, if not, when is the constraint executed (or is it 
> executed at all?).

Term binding constraints aren't executed on the Interface tab. The Interface 
tab doesn't do anything really. Its only purpose is to give you a bit of an 
idea of how a hypothetical form based this archetype might look. I never use it 
myself, but I've noticed that it seems to help some people visualise their 
archetypes.


> References to AE user manual is also welcome. Can't find this.

Under the Help menu, select "Help Topics". This opens up 
http://www.openehr.org/svn/knowledge_tools_dotnet/TRUNK/ArchetypeEditor/Help/index.html
 and from there you can follow a link to more detailed help.

AE's online help hasn't been revised for more than five years, however. It's 
out of date in places. For example, it doesn't describe what I've written 
above, because it was only implemented a year or two ago, but it does describe 
an alternative way using the "Terminology" tab.

- Peter

Reply via email to