Overview
The rm.data_structures package contains two packages: the item_structure package and
the history package. The first describes generic, path-addressable data structures, while the latter
describes a generic notion of linear history, for recording events in past time. The
data_structures package is illustrated in the UML diagram below.
The data_structures package itself contains a single class, DATA_STRUCTURE, which is the
ancestor of all openEHR data structures. Its only feature is the function as_hierarchy, which is implemented
by each subtype of DATA_STRUCTURE, in order to generate a physical representation of the
structure in ISO 13606 form. The ISO 13606 form is usually less optimal than the openEHR form, but
is compatible with the less semantically rich standard, and is guaranteed (in theory) to be comprehensible
to other systems which support ISO 13606 as an interoperability standard.
Class Descriptions
DATA_STRUCTURE Class
-
Definition
-
Effective
-
BMM
-
UML
Class |
DATA_STRUCTURE (abstract) |
|
|---|---|---|
Description |
Abstract parent class of all data structure types. Includes the |
|
Inherit |
||
Functions |
Signature |
Meaning |
1..1 |
as_hierarchy (): |
Hierarchical equivalent of the physical representation of each subtype, compatible with CEN EN 13606 structures. |
| DATA_STRUCTURE (abstract) | |||
|---|---|---|---|
Abstract parent class of all data structure types. Includes the |
|||
Attributes |
|||
Runtime name of this fragment, used to build runtime paths. This is the term provided via a clinical application or batch process to name this EHR construct: its retention in the EHR faithfully preserves the original label by which this entry was known to end users. |
|||
Design-time archetype identifier of this node taken from its generating archetype; used to build archetype paths. Always in the form of an at-code, e.g. At an archetype root point, the value of this attribute is always the stringified form of the |
|||
LOCATABLE.uid: |
Optional globally unique object identifier for root points of archetyped structures. |
||
Links to other archetyped structures (data whose root object inherits from |
|||
LOCATABLE.archetype_details: |
Details of archetyping used on this node. |
||
LOCATABLE.feeder_audit: |
Audit trail from non-openEHR system of original commit of information forming the content of this node, or from a conversion gateway which has synthesised this node. |
||
Functions |
|||
Value equality: return True if Parameters
|
|||
Reference equality for reference types, value equality for value types. Parameters
|
|||
Create new instance of a type. |
|||
Type name of an object as a string. May include generic parameters, as in |
|||
Any.not_equal alias "!=", "≠" ( |
True if current object not equal to |
||
Parent of this node in a compositional hierarchy. |
|||
PATHABLE.item_at_path ( |
The item at a path (relative to this item); only valid for unique paths, i.e. paths that resolve to a single item. |
||
PATHABLE.items_at_path ( |
List of items corresponding to a non-unique path. |
||
PATHABLE.path_exists ( |
True if the path exists in the data with respect to the current item. |
||
PATHABLE.path_unique ( |
True if the path corresponds to a single item in the data. |
||
The path to an item relative to the root of this archetyped structure. |
|||
Clinical concept of the archetype as a whole (= derived from the archetype_node_id' of the root node) |
|||
True if this node is the root of an archetyped structure. |
|||
as_hierarchy (): |
Hierarchical equivalent of the physical representation of each subtype, compatible with CEN EN 13606 structures. |
||
Invariants |
|||
LOCATABLE.Links_valid: |
|||
LOCATABLE.Archetyped_valid: |
|||
LOCATABLE.Archetype_node_id_valid: |
|||
{
"name": "DATA_STRUCTURE",
"documentation": "Abstract parent class of all data structure types. Includes the `_as_hierarchy_` function which can generate the equivalent CEN EN13606 single hierarchy for each subtype's physical representation. For example, the physical representation of an `ITEM_LIST` is `List<ELEMENT>`; its implementation of `_as_hierarchy_` will generate a `CLUSTER` containing the set of `ELEMENT` nodes from the list. ",
"is_abstract": true,
"ancestors": [
"LOCATABLE"
],
"functions": {
"as_hierarchy": {
"name": "as_hierarchy",
"documentation": "Hierarchical equivalent of the physical representation of each subtype, compatible with CEN EN 13606 structures. ",
"result": {
"_type": "P_BMM_SIMPLE_TYPE",
"type": "ITEM"
}
}
}
}