We're updating the issue view to help you get more done.Learn more

Allow cardinality keyword for multiple attributes

Cardinality has become a non-mandatory property, i.e. it is not necessary to use it if it is not being constrained. In order to identify multiple attribute object (or to set the new is_container attribute) while parsing an ADL file without requiring a reference model definition, it becomes necessary to include a marker at ADL to identify those nodes.

Original discussion thread:
http://www.openehr.org/mailarchives/openehr-implementers/msg00999.html

Status

Assignee

Thomas Beale

Reporter

David Moner

Raised By

David Moner

Impact Analysis

In order to reduce implementation issues, "cardinality" is the proposed keyword to be used. The use of a different word, such us "is_container" would lead to a better legibility of ADL but would require additional changes to the tooling and parsers.

Analyst

Thomas Beale

Change Description

The proposed solution uses the "cardinality" keyword without the cardinality range to indicate which attributes are containers. - Multiple attribute with redefinition of cardinality: container_attr cardinality matches {2..*} matches { ... } - Multiple attribute without redefinition of cardinality: container_attr cardinality matches { ... }

Components

Fix versions

Affects versions

ADL 1.4

Due date

2015/11/30

Priority

Major