question about assumed_types test archetype

On following URL
http://www.openehr.org/wsvn/knowledge/archetypes/dev/adl/test/basics/adl-test-entry.assumed_types.v1.adl?op=file&rev=0&sc=0

we find an archetype called:
adl-test-entry.assumed_types.v1.adl

In there is:

        date_attr1 matches {yyyy-mm-dd; 1995-03-17}
        date_attr2 matches {yyyy-??-??; 1995-03-17}
        date_attr3 matches {yyyy-mm-??; 1995-03-17}
--->    date_attr4 matches {yyyy-??-XX; 1995-03}  <------
        date_attr5 matches {|1983-12-25|}
        date_attr6 matches {|2000-01-01|}

I get an exception error in the adl-parser (see arrows), I wonder, should this be?

Thanks in advance for any clou

Kind regards
Bert Verhees

Below the exception
(maybe the line-numbers in ADLParser differ a bit with the original, although I am using the latest version, I have substituted some lines because I use my own terminology-server)

se.acode.openehr.parser.ParseException: Encountered “1995” at line 51, column 49.
Was expecting:
<V_DATE> …

at se.acode.openehr.parser.ADLParser.generateParseException(ADLParser.java:7196)
at se.acode.openehr.parser.ADLParser.jj_consume_token(ADLParser.java:7058)
at se.acode.openehr.parser.ADLParser.date_value(ADLParser.java:1993)
at se.acode.openehr.parser.ADLParser.c_date(ADLParser.java:3678)
at se.acode.openehr.parser.ADLParser.c_primitive(ADLParser.java:2681)
at se.acode.openehr.parser.ADLParser.c_primitive_object(ADLParser.java:2671)
at se.acode.openehr.parser.ADLParser.c_object(ADLParser.java:2572)
at se.acode.openehr.parser.ADLParser.c_attr_values(ADLParser.java:2763)
at se.acode.openehr.parser.ADLParser.c_attribute(ADLParser.java:2735)
at se.acode.openehr.parser.ADLParser.c_complex_object_body(ADLParser.java:2527)
at se.acode.openehr.parser.ADLParser.c_complex_object(ADLParser.java:2510)
at se.acode.openehr.parser.ADLParser.cadl_text(ADLParser.java:2476)
at se.acode.openehr.parser.ADLParser.arch_definition(ADLParser.java:687)
at se.acode.openehr.parser.ADLParser.archetype(ADLParser.java:278)
at my code …

Partial dates should be supported. It’s fixed on the Trunk now. Thanks for the report!
/Rong

Rong Chen schreef:

Partial dates should be supported. It's fixed on the Trunk now. Thanks
for the report!
/Rong

thanks :wink:

Bert