DvDuration: Mixed Pattern and Interval not supported by ADL Parser

Hi Rong and all,

The ADLParser does not appear to support a mixed pattern and Interval for a DV_DURATION.

From the ADL Specs

Mixed Pattern and Interval
In some cases there is a need to be able to limit the allowed units as well as state a duration interval.
This is common in obstetrics, where physicians want to be able to set an interval from say 0-50 weeks
and limit the units to only weeks and days. This can be done as follows:
PWD/|P0W..P50W| -- 0-50 weeks, expressed only using weeks and days
The general form is a pattern followed by a slash ('/') followed by an interval, as follows:
duration_pattern '/' duration_interval

I have implemented the following change in the Parser (in red).

(attachments)

oceanlogo.png

Hi Sebastian,

I can confirm the changes. I just re-arranged the code to make it clearer.

Cheers,
Rong

(attachments)

oceanlogo.png