Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Idea behind this page

Pablo recently announced his Open EHR-Gen framework on the list. As I have a tiny bit of experience with the MVC/ORM framework Grails, which his framework uses, I was enthusiastic to try it out. I will try to document my experience on this wiki page along the way.

And before I forget: Thank you Pablo for sharing this major piece of work!

Current status

This is very preliminary and I won't be playing for the next couple of days, as I am on holiday. However, playing continues at the end of next week. Then I will provide more details and links to Pablo's documentation. I will also include the tips & background info that Pablo provided on the list to have them in a more permanent form.

Setup

On the the project website Pablo describes in Spanish what is needed to install his framework. Here is the automatic Google translation.

...

At first I used the in-memory database HSQLDB then I used MySQL. Both worked, but with MySQL I could have a peak behind the scenes (see below).

Running the framework...

...with his templates

For the short time I clicked around the framework worked flawlessly as downloaded from SVN.

...

One thing I couldn't do properly and need to investigate further is to just display a subset of an archetype by only including certain paths in the template (similar to setting 'Zero Occurrence' in Ocean's Template Designer).

...with a self-created mini template

TBD

Performance

TBD

Future, ideas, how to leverage this work for the openEHR community

TBD

...

Peek behind the scenes

I was curious what magic Pablo had done. Here is the result of the first explorations regarding domain classes and db schema. More will follow, e.g. the GUI generating process.

Domain classes

To get a better overview of the domain classes I generated a diagram with the Grails plugin class-diagram. To do that I temporarily copied the domain class files in a new Grails 1.3.5 project, installed the plugin, compiled and got an impressive domain class diagram (see attachment open_ehr_gen-classDiagram.pdf).

Unbelievable that Pablo implemented almost the whole RM himself in 16 months. IMO this speaks for his programming skills, the good openEHR specs and the power of Grails.

DB Schema

This attachment open_ehr_gen-41_tables.png shows what tables Grails generates from the domain classes.