-
Notifications
You must be signed in to change notification settings - Fork 5
Description
In Orchestra version 1.0 abstract metamodel, a field has a type (as well as other attributes such as name and id). Type refers to a datatype. Also, in the metamodel a code set is defined as a specialized datatype with a finite set of valid values. In other words, a code set is-a datatype, abstractly. Thus, the type attribute can refer to either a datatype or a code set.
The version 1.0 XML schema enforces that type refers to either a datatype or code set element. A broken link will be reported by an XML processor.
Nevertheless, some developers have found this relationship confusing. The proposal is to make type attribute refer only to a datatype or the underlying datatype of a code set, but not to the code set itself. Rather, a second optional attribute will be added if a field has a code set to give the ID of that code set.
In the abstract sense, a code set will be thought of as has-a constraint of a datatype rather than is-a datatype.