Changes between Version 5 and Version 6 of Archtectural Overview Archetypes


Ignore:
Timestamp:
Oct 1, 2007, 8:28:23 PM (17 years ago)
Author:
Tatsukawa, Akimichi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Archtectural Overview Archetypes

    v5 v6  
    7272This has the effect that the data created with any specialised archetype will always be matched by queries based on the parent archetype - in other words, a query for `laboratory' Observations will correctly retrieve `glucose' Observations as well. This accords with the basic ontological principle of subsumption, which says that instances of a type B are also instances of type A, where type B is related to type A by the semantic relationship `IS-A'. Specialised archetypes are indicated by the use of an identifier derived from the parent archetype, with a new sub-element of the semantic part of the identifier, separated by a `-' character.
    7373
     74アーキタイプ間の関係には合成 composition もある。合成という関係をもとに小規模のアーキタイプを階層的に再利用して巨大なデータ構造を柔軟に制約することが可能となる。合成関係はアーキタイプ内のスロット slot によって定義される。アーキタイプ構造においてスロットにオブジェクト型を指定するのではなく、allow_archetypeという特別の制約を課し、それによってスロットの型を他のアーキタイプに制約する。例えば、アーキタイプ openEHR-EHR-SECTION.vital_signs.v1(訳注: http://www.oceaninformatics.biz/archetypes/ADL/section/openEHR-EHR-SECTION.vital_signs.v1.adl ) はバイタルサインに関する表題を定義すると同時に、その属性値として表題の下位項目になる観察項目 Observations を定義している。しかしながら、それら属性値をスロットにそのまま埋め込むのではなく、その箇所に観察項目アーキタイプ Observation archetypes に対する制約として指定している。もっとも単純な制約はアーキタイプ識別子を正規表現で指定するものである。より複雑な制約には、 /some/path[at0005] のように他のアーキタイプのパスとして記述する方法がある。このようにスロットはその箇所における可能なアーキタイプあるいは除外すべきアーキタイプを指定するという連結点 `chaining point' として定義される。無論、ひとつのアーキタイプだけに限定することも可能である。テンプレートは具体的な場面のあるスロットにおいていずれのアーキタイプが許容されるかを選択するために利用される。
     75
    7476The second relationship possible between archetypes is composition, allowing large data structures to be flexibly constrained via the hierarchical re-use of smaller archetypes. Composition is defined in terms of `slots' within an archetype. A slot is a point in an archetype structure where, instead of specifying an object type inline, a special allow_archetype constraint is used to specify other archetypes constraining that same type, that may be used at that point. For example, the archetype openEHR-EHR-SECTION.vital_signs.v1 defines a heading structure for headings to do with vital signs. It also defines as its items attribute value (i.e. what comes under the heading) a number of possible Observations; however, rather than defining these inline, it specifies an archetype slot in the form of constraints on Observation archetypes that are allowed at that point. The simplest kind of constraint is in terms of regular expressions on archetype identifiers. More complex constraints can be stated in terms of paths in other archetypes (for example exists(/some/path[at0005])). A slot thus defines a `chaining point' in terms of possible archetypes allowed or excluded at that point; limiting this to a single archetype is of course possible. Templates are used to choose which particular archetypes allowed at a slot will actually be used in a given circumstance.
    7577