= openEHR XML-schemas - Release 1.0.1 = ---- このページは[http://svn.openehr.org/specification/TAGS/Release-1.0.1/publishing/its/XML-schema/index.html openEHR XML-schemas - Release 1.0.1]の翻訳です。正確な内容については原文を参照して確認してください。 == 概要 == Overview このページからopenEHRの参照モデル(RM; Refference Model)とアーキタイプモデル(AM; Archetype Model)に対応するW3C XMLスキーマにアクセスできる。 This page provides access to the W3C XML schemas for the openEHR Reference Model (RM) and Archetype Model (AM). == 安定版スキーマ == 参照モデルに対応して分割されたスキーマが以下のように作成されている。 For the RM, separate schemas have been created, as follows: * 基本タイプ - rm.data_typesとrm.support.identificationパッケージにあるタイプ。([http://svn.openehr.org/specification/TAGS/Release-1.0.1/ITS/XML-schema/BaseTypes.xsd xsd]ファイル) * Basic types - types from rm.data_types and rm.support.identification packages. (xsd file) * Structure - types from rm.data_structures and rm.common.generic packages. (xsd file) * Resource - types from the rm.common.resource package (xsd file) * Content - item, Section, Entry and all subtypes. (xsd file) * Composition - rm.composition. (xsd file) * Version - the Version classes from rm.common.change_control (xsd file) For the AM, two schemas are provided: * Archetype - types from the Archetype Object Model (AOM) (xsd file) * OpenehrProfile - types from the openEHR Archetype Profile package (xsd file) Schemas in Development Two further schemas are in the draft stage, and are under active development: * Extract - types from rm.extract package (xsd file) * Template - (coming soon) Transformation 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 value is of type Iso8601DateTime, a restriction of xs:string, matching regular expression \d{4}((0[1-9]|1[0-2])((0[1-9]|[12]\d|3[01])(T?([01]\d|2[0-3])([0-5]\d([0-5]\d([,.]\d+)?)?)?(Z|([+\-]((0\d)|(1[0-2]))(00|30)?))?)?)?)?| \d{4}(\-(0[1-9]|1[0-2])(\-(0[1-9]|[12]\d|3[01])(T([01]\d|2[0-3])(:[0-5]\d(:[0-5]\d([,.]\d+)?)?)?(Z|([+\-]((0\d)|(1[0-2]))(:(00|30))?))?)?)?)? DV_DATE value is of type Iso8601Date, a restriction of xs:string, matching regular expression \d{4}((((0[1-9])|(1[0-2]))((0[1-9])|([12]\d)|(3[01]))?)? |(\-(((0[1-9])|(1[0-2]))(\-((0[1-9])|([12]\d)|(3[01])))?)?)?) DV_TIME value is of type Iso8601Time, a restriction of xs:string, matching regular expression ([01]\d|2[0-3])([0-5]\d([0-5]\d([,.]\d+)?)?)?(Z|([+\-]((0\d)|(1[0-2]))(00|30)?))?| ([01]\d|2[0-3])(:[0-5]\d(:[0-5]\d([,.]\d+)?)?)?(Z|([+\-]((0\d)|(1[0-2]))(:(00|30))?))? DV_DURATION value is of type DV_Iso8601Duration, a restriction of xs:string, matching regular expression P(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(\d+H)?(\d+M)?(\d+(\.\d+)?S)?)? }}} Generic types The openEHR reference model makes use of generic types - including DV_INTERVAL (Data types IM) and VERSION (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 Interval IntervalOfInteger (BaseTypes.xsd) Interval IntervalOfReal (BaseTypes.xsd) Interval IntervalOfDate (BaseTypes.xsd) Interval