Hi

I am trying to parse an ADL file using the ADLParser API. However, the 
ADLParser is throwing up an error in the ADL file that Im passing it. 
The block of code where the error occurs is :

------------
ELEMENT[at0008] occurrences matches {0..1} matches {    -- Person
                       value matches {
                           TEXT matches {
                               value matches {"Patient", "Relative"}
                           }
                       }
                   }
-----------

and the line with the error is     ------ value matches {"Patient", 
"Relative"}----. The compile time error thrown is

---------
se.acode.openehr.parser.ParseException: Encountered "," at line 32, 
column 89.
Was expecting one of:
   "}" ...
   "count" ...
   "quantity" ...
......
---------

I cant understand what the problem is with the translation of multiple 
values as comma-separated value-sets. If I remove the values beyond the 
occurrence of the first comma, the problem disappears.

Will appreciate help with this.

Thanks
Regards
Rahil

-- 
Rahil Qamar

Ph.D. Student
Room 2.89 Kilburn Building
University of Manchester
Work number: +44 (0) 161 275 5719
Email: qamarr at cs.man.ac.uk
Website: http://www.cs.man.ac.uk/~qamarr/

-
If you have any questions about using this list,
please send a message to d.lloyd at openehr.org

Reply via email to