openEHR XML-schemas


Introduction

This page provides access to the W3C XML schemas for the openEHR reference model (RM). Separate schemas have been created, as follows:

Mapping Rules

The following mapping rules were used in order to create the schema from the reference model.

Basic type mappings

The basic types utilise the internal XML simpleTypes in accordance with the assumed types section in the Support IM.  Some changes have been made to the reference model to accommodate these standards.

Reference model type

XML Schema complexType

DV_DATE_TIME DV_DATE_TIME
The value attribute is of xs:dateTime type based on ISO 8601
DV_DATE
DV_TIME
DV_PARTIAL_DATE
DV_PARTIAL_TIME
DV_PARTIAL_DATE_TIME
DV_DURATION DV_DURATION
The value attribute is of xs:duration type based on ISO 8601

Generic types

The openEHR reference model makes use of generic types - including DV_INTERVAL<T> (Data types IM) and VERSION<T> (Common IM) for example. As generic types are now available in C# and Java this is warranted for implementation specifications. Generic types are not available in XML Schema, so specific types prefixed with 'XS_' have been created to provide the same constraints.

Reference model type

XML Schema complexType

DV_INTERVAL<DV_ORDINAL> XS_DV_INTERVAL_ORDINAL
DV_INTERVAL<DV_COUNT> XS_DV_INTERVAL_COUNT
DV_INTERVAL<DV_QUANTITY> XS_DV_INTERVAL_QUANTITY
DV_INTERVAL<DV_DATE_TIME> XS_DV_INTERVAL_DATE_TIME

Removed attributes

Some attributes have been removed for the moment as the lack of surety about implementation of this feature is not well understood.

Reference model type

XML Schema complexType

ARCHETYPED
The archetype id is carried in the archetype_node_id attribute and the access control group has not had sufficient discussion to warrant including it at this stage.
Removed from LOCATABLE

Added attributes

All added attributes have current change requests outstanding. Any that are not accepted within the 3 month public review will be added to this table.

Reference model type

XML Schema complexType

To Be Determined


Acknowledgements

This work was carried out for the openEHR Foundation  by Ocean Informatics.
$LastChangedDate: 2006-02-15 05:57:48 +0930 (Wed, 15 Feb 2006) $   $LastChangedRevision$