View: Hide Browser | Browser on the left | Browser on the right | Dictionary
Report:General Info | Attributes | Constraints

Parent Package: primitive
Class C_DURATION


C_PRIMITIVE
   |
   +--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.

Attributes
SignatureOptionalityMultiplicityConstantDocumentation
 assumed_value : Duration 0..1  --  The value to assume if this item is not included in data, due to being part of an optional structure. 
 days_allowed : Boolean 0..1  --  True if days are allowed in the constrained Duration. 
 fractional_seconds_allowed : Boolean 0..1  --  True if fractional seconds are allowed in the constrained Duration. 
 hours_allowed : Boolean 0..1  --  True if hours are allowed in the constrained Duration. 
 minutes_allowed : Boolean 0..1  --  True if minutes are allowed in the constrained Duration. 
 months_allowed : Boolean 0..1  --  True if months are allowed in the constrained Duration. 
 range : Interval<Duration> 0..1  --  Constraint on instances of Duration . 
 seconds_allowed : Boolean 0..1  --  True if seconds are allowed in the constrained Duration. 
 weeks_allowed : Boolean 0..1  --  True if weeks are allowed in the constrained Duration. 
 years_allowed : Boolean 0..1  --  True if years are allowed in the constrained Duration 


Constraints
NameExpression
range_validinv: range <> Void or (years_allowed or months_allowed or weeks_allowed or days_allowed or hours_allowed or minutes_allowed or seconds_allowed or fractional_seconds_allowed)