templates and views

Hi all,

I am preety new to openEHR and even newer to all these kinds of mailiing lists so please correct me if this question is sent to wrong list.

I am now implementing openEHR for my master’s thesis and stuck with views. I have figured out that openEHR template is basically a scheme for the view. It only describes what elements the view is going to contain, but it does not says how are they placed. So I have taken Demo-with-hide-on-form template from clinical manager, wrote XSLT for it and got forms where I can put data. But now I have no idea how from template xml file create Compoistion java object. I am using Spring MVC for my gui app. Anybody can help?

Thanks in advance,

Grzegorz Wojciechowski
University of Science (AGH)
Krakow, Poland

Hi Grzegorz

I think you have misunderstood the use of Templates a little. A template is actually a constrained use case for one or more archetypes. This could be a gui but is just as likely to be a data instance or an XML schema for integration or any number of other things.

There has certainly been a lot of work in the community around adding hints to Templates for use as views and automatic gui generation - you can find some of this work on the openEHR wiki I think. Have a look here - http://www.openehr.org/wiki/display/projects/Open+EHR-Gen+Framework

regards Hugh