Structure Types

Overview

The types described in this section are basic data structures assumed to be standardly available in implementation technologies. The following types consititute the minimum set of structure types assumed by openEHR of an implementation environment.

Type name
in openEHR
Description

Array<T>

physical container of items indexed by number

List<T>

container of items, implied order, non-unique membership

Set<T>

container of items, no order, unique membership

Hash<K:Ordered, V>

a table of values of any type V, keyed by values of any Ordered descendant K, typically String or Integer, but may be more complex types, e.g. a coded term type.

The following UML diagram illustrates the base.foundation_types.structures package. As with the primitive types, inheritance and abstract classes are used for convenience of the definitions in openEHR models, but are not assumed to exist in exactly the same way within implementation technologies. Hence, in an implementation, various workarounds or equivalences may be needed to obtain the defined semantics.

BASE foundation types.structures
Figure 1. base.foundation_types.structures package

Class Definitions

Unresolved include directive in modules/foundation_types/pages/structure_types.adoc - include::../UML/classes/container.adoc[]

Unresolved include directive in modules/foundation_types/pages/structure_types.adoc - include::../UML/classes/list.adoc[]

Unresolved include directive in modules/foundation_types/pages/structure_types.adoc - include::../UML/classes/set.adoc[]

Unresolved include directive in modules/foundation_types/pages/structure_types.adoc - include::../UML/classes/array.adoc[]

Unresolved include directive in modules/foundation_types/pages/structure_types.adoc - include::../UML/classes/hash.adoc[]