Skip to Navigation | Skip to Content

Ref_impl_Java mailing list archives

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[513] Add parsing support for a mixed Pattern and Interval for a DV_DURA


Revision: 513
Author:   sebastian.garde
Date:     2010-07-13 16:42:07 +0100 (Tue, 13 Jul 2010)
Log Message:
-----------
Add parsing support for 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

Modified Paths:
--------------
    TRUNK/adl-parser/src/main/javacc/adl.jj
    
TRUNK/adl-parser/src/test/java/se/acode/openehr/parser/CDurationTest.java
    
TRUNK/adl-parser/src/test/resources/adl-test-entry.durations.test.adl

_______________________________________________
Ref_impl_java mailing list
Ref_impl_java@openehr.org
http://lists.chime.ucl.ac.uk/mailman/listinfo/ref_impl_java