Adjustments to C_Duration semantics.
Raise CR
Analysis
Execution
Raise CR
Analysis
Execution
Description
relates to
Activity
Show:
Silje Ljosland Bakke February 11, 2021 at 2:17 PM
@Sebastian Garde Negative durations do make this more complicated. I’d say maybe for negative values, the minimum has to be given in the largest allowed unit, and the maximum (if also negative) has to be given in the smallest allowed unit. Ie the opposite as for positive max/min values?
Sebastian Garde February 11, 2021 at 1:48 PM
Re 3: Does “the maximum can’t be smaller than 1 [largest allowed unit]” constraint hold up with negative durations? Cp https://openehr.atlassian.net/browse/SPECAM-69 and https://openehr.atlassian.net/browse/SPECRM-96 … you may want to express something like adjusted age <= 0 for example?
Ref: Discourse discussion: https://discourse.openehr.org/t/tool-support-of-dv-duration/1255
Specific adjustments:
1. Only allowed time units can be used to set minimum, maximum or assumed values.
2. When setting minimum and maximum values, the minimum time unit should always be smaller than or equal to the maximum time unit. For example: Minimum can’t be in hours if the maximum is in seconds.
3. When setting minimum and maximum values, the maximum can’t be smaller than 1 [largest allowed unit]. For example, if months and years are allowed, the maximum can’t be set to 6 months.
How such rules work with negative durations needs to be considered as well, as per linked CRs.