Representation Package
Overview
This package contains classes for a simple hierarchical representation of any data structure, as shown on the lower right side of [data_structures_package]. These classes are compatible with the ISO 13606-1 classes of the same names, and instances can be losslessly generated to and from ISO 13606 instance structures.
Class Descriptions
ITEM Class
-
Definition
-
Effective
-
BMM
-
UML
Class |
ITEM (abstract) |
|
|---|---|---|
Description |
The abstract parent of |
|
Inherit |
||
| ITEM (abstract) | |||
|---|---|---|---|
The abstract parent of |
|||
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. |
|||
Invariants |
|||
LOCATABLE.Links_valid: |
|||
LOCATABLE.Archetyped_valid: |
|||
LOCATABLE.Archetype_node_id_valid: |
|||
{
"name": "ITEM",
"documentation": "The abstract parent of `CLUSTER` and `ELEMENT` representation classes. ",
"is_abstract": true,
"ancestors": [
"LOCATABLE"
]
}
CLUSTER Class
-
Definition
-
Effective
-
BMM
-
UML
Class |
CLUSTER |
|
|---|---|---|
Description |
The grouping variant of |
|
Inherit |
||
Attributes |
Signature |
Meaning |
1..1 |
Ordered list of items - |
|
| CLUSTER | |||
|---|---|---|---|
The grouping variant of |
|||
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. |
||
Ordered list of items - |
|||
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. |
|||
Invariants |
|||
LOCATABLE.Links_valid: |
|||
LOCATABLE.Archetyped_valid: |
|||
LOCATABLE.Archetype_node_id_valid: |
|||
{
"name": "CLUSTER",
"documentation": "The grouping variant of `ITEM`, which may contain further instances of `ITEM`, in an ordered list. ",
"ancestors": [
"ITEM"
],
"properties": {
"items": {
"_type": "P_BMM_CONTAINER_PROPERTY",
"name": "items",
"documentation": "Ordered list of items - `CLUSTER` or `ELEMENT` objects - under this `CLUSTER`. ",
"is_mandatory": true,
"type_def": {
"container_type": "List",
"type": "ITEM"
},
"cardinality": {
"lower": 1,
"upper_unbounded": true
}
}
}
}
ELEMENT Class
-
Definition
-
Effective
-
BMM
-
UML
Class |
ELEMENT |
|
|---|---|---|
Description |
The leaf variant of |
|
Inherit |
||
Attributes |
Signature |
Meaning |
0..1 |
null_flavour: |
Flavour of null value, e.g. |
0..1 |
value: |
Property representing leaf value object of |
0..1 |
null_reason: |
Optional specific reason for null value; if set, |
Functions |
Signature |
Meaning |
1..1 |
is_null (): |
True if value logically not known, e.g. if indeterminate, not asked etc. |
Invariants |
Inv_is_null_valid: |
|
Inv_null_flavour_indicated: |
||
Inv_null_flavour_valid: |
||
Inv_null_reason_valid: |
||
| ELEMENT | |||
|---|---|---|---|
The leaf variant of |
|||
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. |
||
null_flavour: |
Flavour of null value, e.g. |
||
value: |
Property representing leaf value object of |
||
null_reason: |
Optional specific reason for null value; if set, |
||
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. |
|||
is_null (): |
True if value logically not known, e.g. if indeterminate, not asked etc. |
||
Invariants |
|||
LOCATABLE.Links_valid: |
|||
LOCATABLE.Archetyped_valid: |
|||
LOCATABLE.Archetype_node_id_valid: |
|||
Inv_is_null_valid: |
|||
Inv_null_flavour_indicated: |
|||
Inv_null_flavour_valid: |
|||
Inv_null_reason_valid: |
|||
{
"name": "ELEMENT",
"documentation": "The leaf variant of `ITEM`, to which a `DATA_VALUE` instance is attached. ",
"ancestors": [
"ITEM"
],
"properties": {
"null_flavour": {
"_type": "P_BMM_SINGLE_PROPERTY",
"name": "null_flavour",
"documentation": "Flavour of null value, e.g. `253|unknown|`, `271|no information|`, `272|masked|`, and `273|not applicable|`.",
"type": "DV_CODED_TEXT"
},
"value": {
"_type": "P_BMM_SINGLE_PROPERTY",
"name": "value",
"documentation": "Property representing leaf value object of `ELEMENT`. In real data, any concrete subtype of `DATA_VALUE` can be used.",
"type": "DATA_VALUE"
},
"null_reason": {
"_type": "P_BMM_SINGLE_PROPERTY",
"name": "null_reason",
"documentation": "Optional specific reason for null value; if set, `_null_flavour_` must be set. Null reason may apply only to a minority of clinical data, commonly needed in reporting contexts.",
"type": "DV_TEXT"
}
},
"functions": {
"is_null": {
"name": "is_null",
"documentation": "True if value logically not known, e.g. if indeterminate, not asked etc. ",
"result": {
"_type": "P_BMM_SIMPLE_TYPE",
"type": "Boolean"
}
}
},
"invariants": {
"Inv_is_null_valid": "is_null() = (value = Void)",
"Inv_null_flavour_indicated": "is_null() xor null_flavour = Void",
"Inv_null_flavour_valid": "is_null implies terminology (Terminology_id_openehr).has_code_for_group_id (Group_id_null_flavour, null_flavour.defining_code)",
"Inv_null_reason_valid": "null_reason /= Void implies is_null()"
}
}