Sam Heard wrote:
> Thanks Koray
>
> Your expression of cardinality and occurrences is exactly correct - 
> there are clearly some errors in the archetypes.
>
> The only reason to limit cardinality in the archetype is to force a 
> choice when there are more than one child e.g.
>
> container x with cardinality 1..2
>     has children a (occurrences 1..1)
>                        b (occurrences 0..1)
>                        c (occurrences 0..1)
>
> This forces a choice between b and c.
>
> Cheers, Sam
Hi Sam,

Thanks for your kind answer and simple explanation; I just needed that 
:) Regarding the errors in the archetypes (and possibly others as well) 
I think it would be nice to have this kind of "semantic/validity" check 
built into ADL parser or the tools. Currently both the Editor and the 
Workbench allow these type of errors.

Also if you take a look at my previous questions 2 and 3, they are 
pointing out to some other aspects of ADL and archetype design. I would 
highly appreciate some guidance here though not urgent at the time.

Best regards,

-koray
_______________________________________________
openEHR-technical mailing list
openEHR-technical at openehr.org
http://www.chime.ucl.ac.uk/mailman/listinfo/openehr-technical



Reply via email to