opencimi / AML

Archetype Modeling Language development repository
4 stars 5 forks source link

DTV and Primitives Duration #88

Open neuronsong opened 9 years ago

neuronsong commented 9 years ago

Represents a period of time corresponding to a difference between two time- points.

C_DURATION

ISO 8601-compatible constraint on instances of Duration. In ISO 8601 terms, constraints might are of the form “PWD” (weeks and/or days), “PDTHMS” (days, hours, minutes, seconds) and so on. In official ISO 8601:2004, the ‘W’ (week) designator cannot be mixed in; allowing it is an openEHR-wide exception. The allowed patterns are: P[Y|y][M|m][D|d][T[H|h][M|m][S|s]] and P[W|w]. The XSD Duration pattern is the [ISO 8601] extended format PnYn MnDTnH nMnS, where nY represents the number of years, nM the number of months, nD the number of days, 'T' is the date/time separator, nH the number of hours, nM the number of minutes and nS the number of seconds. The number of seconds can include decimal digits to arbitrary precision. In any case, the value space for AOM/8601 is beyond the value space of XSD/DTV and hence requires that the type is a unique AOM type.