In openEHR we use custom syntax in archetypes to express ordinal constraints, quantity constraints and coded text constraints - i..e constraints on what are probably the most ubiquitous data types in health.
I have been mulling over feedback from previous debates here and in CIMI about the 'undesirability' of this syntax. I have posted some new ideas on how to solve this here <http://www.openehr.org/wiki/display/spec/ADL+1.5+Power+Syntax+Proposals>. The executive summary is: * let's treat 'code' as a built in type, like a Date or a Uri; this then makes an AOM type that constrains this trivial; * ADL can be augmented in a generic way to enable tuples to be constrained, which would better solve the Quantity constraint problem * The Ordinal constraint syntax would be replaced by a combination of both of the above. Feedback welcome. - thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.openehr.org/pipermail/openehr-technical_lists.openehr.org/attachments/20130424/6939289a/attachment.html>

