/
Existence, occurrences, cardinality
Existence, occurrences, cardinality
Various issues exist in the 1.4 specification and the AOM regarding the constraint of existence of attributes, cardinality of container attributes and occurrences of classes within these containers. The UML of the relevant part of the Archetype Object Model is on the openEHR site.
Existence
The issue in relation to existence of attributes is described on the Developers' Wiki.
Occurrences
The issues with occurrences are:
- Occurrences is mandatory in the AOM. This means some statement of occurrences is forced to be present even when there is no constraint.
- The ADL parser (reference) sets this to 0..1 by default. Occurrences that are different from this are recorded.
Resolution:
Make occurrences optional and constraint statements are only necessary when occurrences deviates from the reference model.
Cardinality
The issue with cardinality is:
- The ADL parser assumes cardinality is 0..* so even when there is no constraint, the cardinality of 0..* is entered into the ADL.
Resolution
The reference parser should remove statements about cardinality unless they are explicitly expressed within the modelling environment.
, multiple selections available,
Related content
Archetype Designer Guide for UCL Standards & Interoperability Course
Archetype Designer Guide for UCL Standards & Interoperability Course
Read with this
Archetype Designer - template building manual
Archetype Designer - template building manual
Read with this
Constraints, differentials and composites
Constraints, differentials and composites
Read with this
Existence of Attributes (AOM, ADL and XML)
Existence of Attributes (AOM, ADL and XML)
Read with this
Multi-level Modelling concepts
Multi-level Modelling concepts
Read with this
Template Data Schema (TDS) Specification and associated Template Data Document (TDD)
Template Data Schema (TDS) Specification and associated Template Data Document (TDD)
Read with this