Allow both pattern and interval constraint on Duration in Archetypes

Description

Currently there is no way to specify a constraint on Duration such that both of the following can be specified at once:

  • the allowed units are specified, e.g. the current PWD constraint allows only weeks and days

  • the time limit, e.g. the current |P0W..P50W| allows this

This constraint is needed at least for the common duration constraint for pregnancy.

The existing syntax strings must continue to parse as they do now:

PWD

P0W..P50W

Example can be found online in this test archetype: http://www.openehr.org/wsvn/knowledge/archetypes/dev/adl/test/basics/adl-test-ENTRY.basic_types.v1.adl?op=file&rev=0&sc=0 (see duration_attribute_101 - 207)

Activity

Show:
Thomas Beale
July 18, 2008, 9:59 PM

Accepted by ARB: TB, RC, SH, TC, EB, DK

Thomas Beale
July 24, 2008, 1:33 PM

Small adjustment to solution - used the one from the working ADL workbench grammar.

Thomas Beale
July 28, 2008, 3:11 PM

Updated the change description to include current working rules.

Thomas Beale
August 11, 2008, 10:19 PM

Passed by EB, RC, TB, JA, DK

Assignee

Unassigned

Reporter

Thomas Beale

Raised By

(Sam Heard) inactive

Priority

Major
Configure