= 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: * [http://svn.openehr.org/specification/TAGS/Release-1.0.1/publishing/its/XML-schema/documentation/BaseTypes.xsd.html 基本型] - rm.data_typesとrm.support.identificationパッケージに収載されている型。([http://svn.openehr.org/specification/TAGS/Release-1.0.1/ITS/XML-schema/BaseTypes.xsd xsd]ファイル) * [http://svn.openehr.org/specification/TAGS/Release-1.0.1/publishing/its/XML-schema/documentation/Structure.xsd.html 構造] - rm.data_structuresとrm.common.genericパッケージに収載されているパッケージ([http://svn.openehr.org/specification/TAGS/Release-1.0.1/ITS/XML-schema/Structure.xsd xsd]ファイル) * [http://svn.openehr.org/specification/TAGS/Release-1.0.1/publishing/its/XML-schema/documentation/resource.xsd.html リソース] - rm.common.resourceに収載されているパッケージ([http://svn.openehr.org/specification/TAGS/Release-1.0.1/ITS/XML-schema/Resource.xsd xsd]ファイル) * [http://svn.openehr.org/specification/TAGS/Release-1.0.1/publishing/its/XML-schema/documentation/Content.xsd.html コンテンツ] - アイテム,セクション,エントリーなどのサブタイプ([http://svn.openehr.org/specification/TAGS/Release-1.0.1/ITS/XML-schema/Content.xsd xsd]ファイル) * [http://svn.openehr.org/specification/TAGS/Release-1.0.1/publishing/its/XML-schema/documentation/Composition.xsd.html コンポジション] - rm.composition ([http://svn.openehr.org/specification/TAGS/Release-1.0.1/ITS/XML-schema/Composition.xsd xsd]ファイル) * [http://svn.openehr.org/specification/TAGS/Release-1.0.1/publishing/its/XML-schema/documentation/Version.xsd.html バージョン] - rm.comon.change_controlに収載のVersionクラス([http://svn.openehr.org/specification/TAGS/Release-1.0.1/ITS/XML-schema/Version.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) AM(アーキタイプモデル; Archetype Model)のために2つのスキーマがあります。 For the AM, two schemas are provided: * [http://svn.openehr.org/specification/TAGS/Release-1.0.1/publishing/its/XML-schema/documentation/Archetype.xsd.html アーキタイプ] - アーキタイプオブジェクトモデル(Archetype Object Model; AOM)に収載されている型([http://svn.openehr.org/specification/TAGS/Release-1.0.1/ITS/XML-schema/Archetype.xsd xsd]ファイル) * [http://svn.openehr.org/specification/TAGS/Release-1.0.1/publishing/its/XML-schema/documentation/OpenehrProfile.xsd.html OpenehrProfile] - openEHRアーキタイププロフィールパッケージ収載されている型([http://svn.openehr.org/specification/TAGS/Release-1.0.1/ITS/XML-schema/OpenehrProfile.xsd xsd]ファイル) * Archetype - types from the Archetype Object Model (AOM) (xsd file) * !OpenehrProfile - types from the openEHR Archetype Profile package (xsd file) == 開発中のスキーマ == Schemas in Development さらに2つのスキーマが草稿の段階であり,活発に開発が続けられている。 Two further schemas are in the draft stage, and are under active development: * Extract - rm.net.extractパッケージに収載されている型([http://svn.openehr.org/specification/TAGS/Release-1.0.1/ITS/XML-schema/Extract.xsd xsd]ファイル) * Template - (もう少し先) * 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 基本タイプはサポートIMセクションで想定されるタイプに従ってXMLそのもののsimpleTypeを利用する。参照モデルはこの標準に適合するため若干の改変がくわえられている。 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. ||参照モデルタイプ||XMLスキーマのcomplexType|| ||DV_DATE_TIME||Iso8601DateTime型の値であり,以下の正規表現にマッチするxs:stringであるという制約を受ける \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||Iso8601Date型の値であり,以下の正規表現にマッチするxs:stringであるという制約を受ける \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||ISO8610Time型の値であり,以下の正規表現にマッチするxs:stringであるという制約を受ける (![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||DV_Iso8601Duration型の値であり,以下の正規表現にマッチするxs:stringであるという制約を受ける P(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(\d+H)?(\d+M)?(\d+(\.\d+)?S)?)?|| ||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型 == Generic types openEHRの参照モデルによってgeneric型を使うことができる。generic型にはたとえばDV_INTERVAL(IMデータ型)とVERSION(IM共通)がある。generic型はC#やJavaでも利用することができるようになったので,これは実装仕様を満たす必要がある。generic型はXMLスキーマで利用することができないので,'XS_'で始まる特殊な型を精製して同じように制約を加える必要がある。 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