Online archetype and template tools

Current archetype and template tools intended for clinical modelling do not support all new features in ADL 2.0 (previously called ADL 1.5). Some clinicians also have limited possibilities/permissions to install the current editing applications on their computers (hospital security rules etc). A more modular editing framework than the some of the current somewhat monolithic applications would also be desirable so that alternative implementations of parts/functions could be tested/used. The main mission of the currently starting project phase is to address these issues. After that initial phase, future development may further explore for example versioning and collaboration features.

The openEHR 2014 roadmap meeting agreed in principle on starting a community tooling project aiming to create an open source based web-accessible archetype and template editing framework/workbench capable of ADL 2.0. The meeting report http://www.openehr.org/news_events/2014-09-16_openehr_meeting_report states that:

A next generation archetype tooling project will be commenced.

Some other (less edited) input from the meeting is available at http://www.openehr.org/wiki/display/oecom/September+2014+Roadmap+Meeting 

Organisation, management and meetings

Erik Sundvall is responsible for arranging a first draft wikipage (this one) and an initial online meeting, but not necessarily the one coordinating the rest of the project. (An organization/person that can dedicate project leader time for some months would be welcome to volunteer.

A "doodle" where you can select time-preferences for a first (and possibly a second) 1-hour meeting is available at: http://doodle.com/gm456xavg3fcgvw5 (date alternatives ranging between Oct 14 to Oct 27) If we find two fairly suitable times within this timespan, then we can pick two of the dates so that we get one start and one followup meeting. Please respond before October 14.

Fallback online meeting mechanism if other things fail is the slightly lagging, but very scalable Adobe Connect meeting room at https://connect.sunet.se/openEHR. Please try it out before meetings so that you have audio (and possibly video) working properly.

Having a physical meeting was also suggested and that will hopefully be possible later for at least some participants. But we start online to be better prepared for physical meetings. Online participation possibilities during parts of physical meetings will be seriously considered.

Wiki discussion-threads can be created below using the comment function of the wiki.

Possible mailing list discussions regarding this project should initially be directed to the openEHR implementers list (if the wiki comment system below is not useful enough). Major questions, events and news should be announced on the openEHR implementers list (since we do not expect everybody to monitor the wiki). If traffic gets to intense there consider separate list.

Actors/developers and their interests/contributions

Please add full names, specific interests, possible contributions under your organisation/name and correct misunderstandings and other mistakes.

Actors that reported participation interest during the roadmap meeting:

Actors reporting participation interest after the meeting:

Initial/potential approaches identified as interesting during & after the roadmap meeting

Proper modularisation will make it easier for different developers to work on (or replace) separate parts. Suggest modules and/or APIs below

Potential API:s/interfaces between modules

Potential modules

Suggestions/ideas hard to classify/separate as above

This ends the project startup section, please add you thoughts and make corrections/clarifications.

--- Warning, proceeding by reading below this red line may cause confusion and/or deep thoughts. Serious project stuff goes above this line. ----

The notes/ideas below are from an old partly academic discussion regarding potential student projects, master thesis and PhD candidate work in this area. Some of the links may be dead by now. Feel free to add to the creative wiki-chaos here! More urgent and project related (less chaotic) stuff should go above the red line...

Use case background for online collaboration

[2014-note: online collaboration is not a priority in the initial phase above]

The current archetype editors are downloadable off-line applications and collaboration is done by editing offline, then sharing/uploading and discussing online (e.g. using products like Ocean Informatics CKM).

The situation above works and can be compared with collaborative editing of word processor documents. Document writing can be done in off-line applications and then shared and discussed online, or in mail sent back and forth. Versioning and conflict resolution of parallel edits (merging etc) requires skill, time and patience. Compared to this, it is often a lot easier to collaborate using online realtime multi-user editor environments like https://drive.google.com/, https://writer.zoho.com/, and http://en.wikipedia.org/wiki/Etherpad 

Many of the realtime environmants include some kind of comment/discussion mechanisms (e.g. the google drive apps) and history/playback/revisioning mechanisms that also sho who did what when. (Try “Time slider” at the etherpad-based http://piratepad.net/vDW7YbIMKv document and feel free to edit/experiment).

Just creating yet another archetype editor would not be such an interesting contribution to the world, but creating a new online collaborative archetype editor that has comments and timeline/playback functions would be a nice contribution!

When Google Wave (now Apache Wave) was active, the openEHR community tried different uses for it. Follow the threads around the message http://www.openehr.org/mailarchives/openehr-clinical/msg01615.html, and read http://omowizard.wordpress.com/2009/11/17/google-wave-and-health/ (Maybe also read some search results: https://www.google.se/search?q=openehr+google+wave) These links indicate that the real-time collaboration was appreciated for capturing knowledge in pre-editing phase of archetype creation.

Google wave was extendable with collaborative gadgets/widgets for mindmapping voting etc. There were open APIs that allowed you to add your own widgets (and server side “robots”). By combining client side gadgets/widgets with server-side robots, fairly sophisticated applications could be created.

At IMT, LiU Daniel Karlsson and Erik Sundvall supervised a student project that experimented with taking the archetyping discussions in Wave a bit closer to real archetype editing by creating widgets and robots that handled real partial archetype structures. The parts that got implemented in the limited timespan worked as expected. The editing process was automatically saved in the wave and could be played back using the wave playback function. Comments and discussion threads could be mixed in between the archetype editing widgets. During the project Google announced that it would shut down Wave, and the student project prototype was not continued by any follow-up projects.

Technical background

Many real-time multi-user online collaboration tools like the ones above are based on “operational transformation” (OT). A pedagogical description of OT is available at http://www.codecommit.com/blog/java/understanding-and-applying-operational-transformation

Some interesting OT-implementation links and discussions:

Operational transformation can be used on text as described above, but also data structurs like on XML (as was the case in Google Wave) and JSON (e.g. as described at https://github.com/josephg/ShareJS/wiki/JSON-Operations).

The openEHR AM can of course be represented as XML or JSON. The java-ref-impl provides XML import/export but JSON could be added (Erik S started experimenting with http://jackson.codehaus.org/ to provide AM/RM conversions to JSON)

Possible future

A master thesis project or similar effort create (or explore how to create) a real-time collaborative  online archetype editor. Ideally it should be possible to run the editor both in independent/freestanding mode and embedded in other collaborative environments (e.g. Google Hangouts https://developers.google.com/+/hangouts/ or similar platforms).

The broad idea is to host both pre-archetyping discussions and actual archetyping in the same (OT-based collaborative) environment that would take over most of what is done in off-line archetype editors today, a lot of what is done in the pre-editing phase, and some steps of what is done in the CKM today.

Some main ideas that can be reused from the LiU archetype-wave project are.

Going further

Going even further (likely something for later additional projects after an initial online-editor-focused student project)