Changes between Version 5 and Version 6 of Archtectural Overview Paths


Ignore:
Timestamp:
Nov 6, 2007, 4:28:32 PM (16 years ago)
Author:
haru
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Archtectural Overview Paths

    v5 v6  
    232311.2.1 Basic Syntax
    2424
    25 openEHRにおけるパスは、XPath1互換の構文で定義され、これはアーキタイプ定義言語(Archetype Definition Language, ADL)に記載されたパス構文のスーパーセットとなっている。この構文はXPath表現に容易にマッピングできるよう設計されており、openEHRベースのXMLとともに使用できる。
     25openEHRにおけるパスは、XPath[[FootNote(1)]]互換の構文で定義され、これはアーキタイプ定義言語(Archetype Definition Language, ADL)に記載されたパス構文のスーパーセットとなっている。この構文はXPath表現に容易にマッピングできるよう設計されており、openEHRベースのXMLとともに使用できる。
    2626
    2727Paths in openEHR are defined in an Xpath1-compatible syntax which is a superset of the path syntax described in the Archetype Definition Language (ADL). The syntax is designed to be easily mappable to Xpath expressions, for use with openEHR-based XML.
    2828
    29 ロケーター表現におけるデータ・パス構文は、属性名(attribute_ name2)の各構成要素をセグメントとするパスの一般表記を並べ、スラッシュ(`/') 文字で分割する。すなわち、
     29ロケーター表現におけるデータ・パス構文は、属性名(attribute_ name[[FootNote(2)]])の各構成要素をセグメントとするパスの一般表記を並べ、スラッシュ(`/') 文字で分割する。すなわち、
    3030
    3131attribute_name / attribute_name / ... / attribute_name
     
    357357上述のアーキタイプ・パスは、記録に含まれる両収縮期血圧のいずれにも適合する。多くの検索場面において、これこそが正に求められるものである。だが、収縮期血圧の各ノードに一意に適合させるためには、パスはarchetype_node_idのみならず他の属性にも基づいて生成されなければならない。上記のケースでは、name属性が一意性を提供する。各イベント(座位及び立位での計測)ごとの収縮期及び拡張期血圧に関する一意性が保証されたパスは、下記の表現によって可能となる。(XPathと全く同一である)3
    358358
    359 The archetype path mentioned above matches both systolic pressures in the recording. In many querying situations, this may be exactly what is desired. However, to uniquely match each of the systolic pressure nodes, paths need to be created that are based not only on the archetype_node_id but also on another attribute. In the case above, the name attribute provides uniqueness. Guaranteed unique paths to the systolic and diastolic pressures of each event (sitting and standing measurements) are available using the following expressions (identical in Xpath)3:
     359The archetype path mentioned above matches both systolic pressures in the recording. In many querying situations, this may be exactly what is desired. However, to uniquely match each of the systolic pressure nodes, paths need to be created that are based not only on the archetype_node_id but also on another attribute. In the case above, the name attribute provides uniqueness. Guaranteed unique paths to the systolic and diastolic pressures of each event (sitting and standing measurements) are available using the following expressions (identical in Xpath)[[FootNote(3)]]:
    360360
    361361/data/events[1]/data/items[1]/value/magnitude
     
    390390
    391391一般規則として、ランタイム・データにおけるひとつまたは複数の他の属性値によって、openEHRデータにおけるいかなるノードでも一意に識別させることができるであろう。一意のパスをより容易に構築するためには、name属性(LOCATABLEクラスから継承したもの) の値が、兄弟ノードのname値に対して一意であることが要請される。このことは以下の2点に帰着する。
    392 ·       一意性が保証されたパスは、(上記のパスの例で示したように)archetype_node_idとname値との組合わせを用いることによって、openEHRデータ中のいかなるデータに対しても常に構築することが可能である。
    393 ·       name値は、ひとつまたは複数の属性値のコピーとしてシステマティックに定義することも可能であろう。たとえば、あるEVENTオブジェクトにおいて、nameはtime属性を文字列としてコピーしたものとすることが明らかに可能である。
     392  * 一意性が保証されたパスは、(上記のパスの例で示したように)archetype_node_idとname値との組合わせを用いることによって、openEHRデータ中のいかなるデータに対しても常に構築することが可能である。
     393  * name値は、ひとつまたは複数の属性値のコピーとしてシステマティックに定義することも可能であろう。たとえば、あるEVENTオブジェクトにおいて、nameはtime属性を文字列としてコピーしたものとすることが明らかに可能である。
    394394 
    395395As a general rule, one or more other attribute values in the runtime data will uniquely identify any node in openEHR data. To make construction of unique paths easier, the value of the name attribute (inherited from the LOCATABLE class), is required to be unique with respect to the name values of sibling nodes. This has two consequences as follows:
    396 ·       a guaranteed unique path can always be constructed to any data item in openEHR data using a combination of archetype_node_id and name values (as shown in the example paths above);
    397 ·       the name value may be systematically defined to be a copy of one or more other attribute values. For example, in an EVENT object, name could clearly be a string copy of the time attribute.
     396  * a guaranteed unique path can always be constructed to any data item in openEHR data using a combination of archetype_node_id and name values (as shown in the example paths above);
     397  * the name value may be systematically defined to be a copy of one or more other attribute values. For example, in an EVENT object, name could clearly be a string copy of the time attribute.
    398398
    399399== 11.3 EHR URI ==
     
    505505        data/events[at0006, 'any event']/data/items[at0004]
    506506 
    507 1W3C Xpath 1.0 specification, 1999参照(http://www.w3.org/TR/xpath にて利用可能)
    508 2すべてのopenEHRのドキュメントにおいて、"属性(attribute)"という用語はオブジェクト指向における"オブジェクトのプロパティ"の意味で用いられている。XMLにおけるタグ中に現れる名前の値を意味しない。ここで記述された構文は、XMLインスタンスへの字義通りのマッピングを必ずしも考慮に入れたものではなく、むしろオブジェクト指向のデータ構造への論理的なマッピングが考慮されている。
    509 3attr[1]という表記は、Xpathでのattr[position() = 1]の簡略形である。
     507[[FootNote(1)]] W3C Xpath 1.0 specification, 1999参照(http://www.w3.org/TR/xpath にて利用可能)
     508[[FootNote(2)]]すべてのopenEHRのドキュメントにおいて、"属性(attribute)"という用語はオブジェクト指向における"オブジェクトのプロパティ"の意味で用いられている。XMLにおけるタグ中に現れる名前の値を意味しない。ここで記述された構文は、XMLインスタンスへの字義通りのマッピングを必ずしも考慮に入れたものではなく、むしろオブジェクト指向のデータ構造への論理的なマッピングが考慮されている。
     509[[FootNote(3)]]attr[1]という表記は、Xpathでのattr[position() = 1]の簡略形である。
    510510
    5115111See W3C Xpath 1.0 specification, 1999. Available at http://www.w3.org/TR/xpath.