Changes between Version 6 and Version 7 of Archtectural Overview Archetypes


Ignore:
Timestamp:
Oct 2, 2007, 9:39:42 PM (17 years ago)
Author:
Tatsukawa, Akimichi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Archtectural Overview Archetypes

    v6 v7  
    7676The 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.
    7777
     78== 10.3 データに対するアーキタイプとテンプレートの関係
     79
    788010.3 Relationship of Archetypes and Templates to Data
     81
     82openEHRの参照モデルにおける上位レベルの構造内の全てのノードは、アーキタイプとして構成される archetypable ものである。これらの構造におけるある種のノードは根 root points としてのアーキタイプである。それぞれの上位レベルは常に根としてのアーキタイプであることを保証される。全ての上位レベル構造にただひとつのアーキタイプを用いることは理論的には可能であるが、多くの場合(特に COMPOSITION and PARTY)において、複数のアーキタイプが前述のスロット機構を用いて階層的に構成される。これによってアーキタイプのコンポーネント化と再利用が可能となる。上位レベル構造に階層的なアーキタイプが配置される場合、その構造の内部に根としてのアーキタイプが用いられる。例えば、COMPOSITIONの内部ではENTRYというインスタンス(すなわち、OBSERVATIONs, EVALUATIONなど)はほとんど常に根となる。SECTIONというインスタンスがSection構造の最上位のインスタンスであるならば、それは同時に根である。ディレクトリ構造におけるFOLDERというインスタンスも同じように根となる。他のノード(すなわち、SECTIONやITEM_STRUCTUREというインスタンス内部のノード)も根としてのアーキタイプとなるかも知れないが、これは実行時においてアーキタイプがどのようにデータに適用されるかに依存している。図30はアーキタイプとテンプレートがデータに対して適用される場面を表現している。
     83
    7984
    8085All nodes within the top-level information structures in the openEHR RM are "archetypable", with certain nodes within those structures being archetype "root points". Each top-level type is always guaranteed to be an archetype root point. Although it is theoretically possible to use a single archetype for an entire top-level structure, in most cases, particularly for COMPOSITION and PARTY, a hierarchical structure of multiple archetypes will be used, via the slot mechanism described above. This allows for componentisation and reusability of archetypes. When hierarchies of archetypes are used for a top-level structure, there will also be archetype root points in the interior of the structure. For example, within a COMPOSITION, ENTRY instances (i.e. OBSERVATIONs, EVALUATIONs etc.) are almost always root points. SECTION instances are root points if they are the top instance in a Section structure; similarly for FOLDER instances within a directory structure. Other nodes (e.g. interior SECTIONs, ITEM_STRUCTURE instances) might also be archetype root points, depending on how archetypes are applied at runtime to data. FIGURE 30 illustrates the application of archetypes and templates to data.