termbinding constraints in the archetype editor

2012-01-10 Thread Jostein Ven

Everybody,

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? 

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?).

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


All the best 
Jostein Ven
Senior adviser
Norwegian Directorate of Health
  
-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20120110/711503fc/attachment.html


termbinding constraints in the archetype editor

2012-01-10 Thread Seref Arikan
Hi Jostein,
Regarding your question about what AE does when you enter the interface
screen: it is open source. In case you have someone who can speak vb.net,
you can simply debug that part of the code and see what it does.

Probably not the most practical way of knowing the answer, but the most
certain one..

Cheers
Seref


On Tue, Jan 10, 2012 at 9:55 AM, Jostein Ven josteinven at hotmail.com wrote:

  Everybody,

 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?

 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?).

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


 All the best
 Jostein Ven
 Senior adviser
 Norwegian Directorate of Health

 ___
 openEHR-technical mailing list
 openEHR-technical at openehr.org
 http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical


-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20120110/90fc149c/attachment.html


termbinding constraints in the archetype editor

2012-01-10 Thread Daniel Karlsson
Jostein,

as a possible work-around, we have used internal at-codes and mapped
those at-codes to the external terminology. This, of course, only works
if the number of allowed codes is limited, which have been the case in
our projects so far. This also has the benefit that the archetype does
not depend on external (terminology server) resources.

If the terminology used is SNOMED CT, IHTSDO will (eventually) provide a
standard for constraining expressions which will be applicable. This
would though have to be implemented in your terminology server.

Out of curiosity, what terminology server are you using?

Regards,
Daniel
-- 
Daniel Karlsson, PhD
Department of Biomedical Engineering/Medical Informatics
Link?pings universitet
SE-58185 Link?ping
Sweden
Phone: +46 13 286762, Cellular: +46 70 8350109, Skype: imt_danka



Tue 2012-01-10 klockan 10:55 +0100 skrev Jostein Ven:
 Everybody,
 
 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? 
 
 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?).
 
 References to AE user manual is also welcome. Can't find this.
 
 
 All the best 
 Jostein Ven
 Senior adviser
 Norwegian Directorate of Health
 
-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20120110/696dc33d/attachment.html


termbinding constraints in the archetype editor

2012-01-10 Thread Peter Gummer
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