OpenEHR .oet XML schema

I’m exploring samples from the OpenEHR CKM app (http://openehr.org/ckm/) and see that XML schema namespace for the OET templates is “openEHR/v1/Template”. Where that XML Schema is hosted?

As far as I understood, the “openEHR/v1/Template” namespace references an XML template schema definition for version 1.0.1 which is not available for download (http://www.openehr.org/releases/1.0.1/its/XML-schema/)

Tried to use OET XML Schema taken from 1.0.2 distr (http://www.openehr.org/releases/1.0.2/its/XML-schema/) but sample template OET files taken from CKM do not pass v1.0.2 XML schema validation.

So the question is: which OpenEHR template XML schema is actual and up-to-date?

Hi Dmitri,

.oet is an internal Ocean format used by the Template Designer.

As far as I know this is the current version …

https://github.com/openEHR/java-libs/blob/master/oet-parser/src/main/xsd/CompositionTemplate.xsd

The key template schema which you should probably be investigating is the Operational Template .opt (which is generated by the Template Designer).

https://github.com/openEHR/java-libs/blob/master/oet-parser/src/main/xsd/Template.xsd

It depends on what are you trying to do. Can you tell us more about your project?

Ian
Dr Ian McNicoll
mobile +44 (0)775 209 7859
office +44 (0)1536 414994
skype: ianmcnicoll
email: ian@freshehr.com
twitter: @ianmcnicoll

Co-Chair, openEHR Foundation Management Board
Director, freshEHR Clinical Informatics
Director, HANDIHealth CIC
Hon. Senior Research Associate, CHIME, UCL

Hi Ian,
I'm trying to implement a EHR module that uses Oracle XML DB as a storage for clinical records in form of clinical document. A template defines the structure of such document (consultation note, evaluation note, operation note and so on), and EHR module produces a document that match particular template. So I just need an XML-schema-based template definition format but can't decide which one is more suitable.
Got your links, thank you.

The correct artefact to use for this purpose is the operational template originally developed by Ocean.

If you look at the Marand ehrscape API dev.ehrscape.com you will see how it used

The Ocean, code24, Privantis, Infinnity , ADOC. Cabolabs and Nousco backends all use this format.

Ian

Hi Ian,
I’m not sure if you’re prescribing the right medicine here :slight_smile: My understanding is Dmitry is looking for a schema to use as the basis of persistence. Opt(operational template)s define models, not actual data instances that conform to models.

Assuming that this is the case, the canonical schemas published along the specifications is more likely to be the answer. Dmitry, have you asked yourself the following question: what will happen when new templates are introduced? Will you create a set of tables for each new template? If you are to drive persistence implementation through a schema, you’d better invest into one that does not change as models change. The canonical schema satisfies this property.

Regards
Seref

Hi Seref, persistence is clear for me, and I was looking for an appropriate model XML-schema, of course.

Seref Arikan
Hi Ian, I'm not sure if you're prescribing the right medicine here :slight_smile: My understanding is Dmitry is looking for a schema to use as the basis of persistence.

Regards, Dmitry

In that case, kudos and apologies to Ian. His suggestion is spot on.

Ian, one more little question to you: can one consider .OPT templates from the OpenEHR CKM web application as thoroughly verified reference samples or rather not?
I still get a lot of validation errors trying to validate them with the latest version of Template.xsd from github (testing on eReferral template in opt format using Visual Studio 2013). It seems to me that XML formally is correct and almost conforms to the XML schema but there is something wrong with element ordering.