As Pieter said, default occurrences (if not stated) are 0..* So if the attribute is ordered, this means that if the object appears, it has to be in that specific order, in your case at0002, at0002...at0003, at0003 Cardinality tells you how many of these are valid, so minimum 2. Take into account that occurrences of 0..* means that a given object may not appear, so in this case at0002, at0002 or at0003, at0003 are both valid
Regards El jue., 29 nov. 2018 11:09, Georg Fette <georg.fe...@uni-wuerzburg.de> escribió: > ------------------------------ > > Hi Diego, > The items inside the CLUSTER look like this: > > CLUSTER[at0001] matches { > items cardinality matches {2..*; ordered} matches { > ELEMENT[at0002] matches { > value matches { > DV_COUNT matches {*} > } > } > ELEMENT[at0003] matches { > value matches { > DV_TEXT matches {*} > } > } > } > } > > It could be that I not yet fully understand ADL, therefore I would need to > verify/falsify some assumptions I make: > > - Both elements (at0002, at0003) have an implicit cardinality of "1..1" ? > - The keyword "ordered" just indicates that the items inside an instance of > the cluster at0001 have to maintain the order in which they were defined. The > order does not affect an enforced order of the types of the elements inside > the cluster ? > - What is true?: > * The cluster at0001 may include the elements at0002 and at0003 in any > order an unlimited amounts of them as long as the cluster includes at least 2 > of them. The specification inside of at0001 just gives the set of possible > elements that may appear as items of at0001. E.g. "at0003, at0003, at0002, > at0003, ..." > * The cluster at0001 has to include at least 2 elements in the order > given in the at0001 definition and the order may be repeat an unlimited > amount of times, e.g. "at0002, at0003, at0002, at0003, ..." > > Greetings > Georg > > >Hello Georg, > > > >What (and how many) objects you have inside the items attribute? > >Think the cardinality as the "vector" capacity, and inside you can put them > >in order (depending on their occurrences, they may even not appear at all) > > > >Regards > > > >El jue., 29 nov. 2018 10:31, Georg Fette <georg.fette at uni-wuerzburg.de > ><http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org>> > > >escribió: > > > Am 29.11.2018 um 10:30 schrieb Georg Fette: > > Hello, > I have an archetype with a complex object derived of CLUSTER with > "items cardinality matches {2..*; ordered}" > and those two items are also defined inside the complex object. > I understand the semantics of this definition that both items always have > to appear together inside the cluster but the package of those two items > may appear any number of times. > Is it allowed for instances of this archetype to have an uneven number of > items > 2 inside this cluster, because that would still suffice the > restriction of having 2..* children. Or do the instances always have to > have both elements as a package that are defined as items in this cluster. > As I am not the author of the archetype I do not completely understand how > the definition has to be interpreted. > Greetings > Georg > > > -- > --------------------------------------------------------------------- > Dipl.-Inf. Georg Fette Raum: B001 > Universität Würzburg Tel.: +49-(0)931-31-85516 > Am Hubland Fax.: +49-(0)931-31-86732 > 97074 Würzburg mail: georg.fe...@uni-wuerzburg.de > --------------------------------------------------------------------- > > _______________________________________________ > openEHR-technical mailing list > openEHR-technical@lists.openehr.org > > http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org >
_______________________________________________ openEHR-technical mailing list openEHR-technical@lists.openehr.org http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org