Hi
Comments in line.
Rong Chen wrote:
> Rahil wrote:
>
>> 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
>
>
> A string constraint can be expressed either by a fixed string or a
> regular expression. If you want to limit the string value to either
> "Patient" or "Relative", the correct syntax should be as following:
>
> value matches {/Patient|Relative/}
>
The syntax in which the {"Patient", "Relative"} appears in the ADL file
is probably the result of me selecting the "Free text or coded" option
in the Entry model of the archetype editor. I havent manually written
the values in this format so theres no way I can change it to look like
this {/Patient|Relative/}.
The Editor version Im working with is 0.99.2 Beta. Im not sure if theres
been any later release in which changes have been made with the ADL syntax.
Regards
Rahil
> Cheers,
> Rong
>
>
>>
>> Will appreciate help with this.
>>
>> Thanks
>> Regards
>> Rahil
>>
>
> -
> If you have any questions about using this list,
> please send a message to d.lloyd at openehr.org
>
>
--
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