# ADL syntax problem, the new ADLParser finds a problem that an old version of the ADLParser didnt find. **Category:** [Reference Implementation: Java (archive)](https://discourse.openehr.org/c/reference-implementation-java-archive/154) **Created:** 2008-10-22 12:06 UTC **Views:** 2 **Replies:** 5 **URL:** https://discourse.openehr.org/t/adl-syntax-problem-the-new-adlparser-finds-a-problem-that-an-old-version-of-the-adlparser-didnt-find/14848 --- ## Post #1 by @Filip_Klasson Hi, i am not very good at ADL syntax so i am wondering if some of you could help me find whats wrong with the ADL file. The ADL file is from openLinkEHR and they use an old version of the ADLParser. I would like to update the file so the new ADLParser accepts it since i want to use it in my project. The ADLParser returns the text: se.acode.openehr.parser.ParseException: Encountered "/" at line 297, column 48. Was expecting one of: "}" ... "c_dv_quantity" ... ... "use_node" ... ... ... ... "+" ... "-" ... ... "C_DV_ORDINAL" ... "true" ... "false" ... ... ... "|" ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... "*" ... ... ... Line 297 is: value matches {/\d{4}((0[1-9]|1[0-2])((0[1-9]|[12]\d|3[01])(T?([01]\d|2[0-3])([0-5]\d([0-5]\d([,.]\d+)?)?)?(Z|([+\-]((0\d)|(1[0-2]))(00|30)?))?)?)?)?|\d{4}(\-(0[1-9]|1[0-2])(\-(0[1-9]|[12]\d|3[01])(T([01]\d|2[0-3])(:[0-5]\d(:[0-5]\d([,.]\d+)?)?)?(Z|([+\-]((0\d)|(1[0-2]))(:(00|30))?))?)?)?)?/} Cheers, Filip [details="(attachments)"] [ITEM\_TREE.adl|attachment](upload://yParVWYKVJBztNqtk5MpSMLOn5F.adl) (46.7 KB) [/details] --- ## Post #2 by @system Hi Filip, It looks like datetime constraint pattern to me. Try to find some valid pattern from other archetypes and replace this one. cheers, Rong --- ## Post #3 by @Olof_Torgersson1 Hi, What's openLinkEHR? I get zero hits for it in google. Regards Olof Torgersson 22 okt 2008 kl. 14.06 skrev Filip Klasson: --- ## Post #4 by @mikael Hi, I guess Filip meant LinkEHR, [http://www.linkehr.com/](http://www.linkehr.com/) , but I am not completely sure. (It is Daniel and Erik that supervises Filip and Patrik, so I am not involved in their project.) Regards, Mikael Mikael Nyström Medicinsk informatik Institutionen för medicinsk teknik Linköpings universitet --- ## Post #5 by @system It's probably LinkEHR: www\.linkehr\.com/ Regards Sebastian Olof Torgersson wrote: --- ## Post #6 by @Filip_Klasson Hi, I am talking about [http://www.linkehr.com/](http://www.linkehr.com/) but when you download the source code it is called OpenLinkEHR. Sorry for the confusion. My problem is that LinkEHR uses an old version of the ADLParser so the RM archetypes passes through it but in the new ADLParser they are not accepted and i am trying to find what the problem is. Cheers, Filip 2008/10/23 Olof Torgersson <[oloft@chalmers.se](mailto:oloft@chalmers.se)> --- **Canonical:** https://discourse.openehr.org/t/adl-syntax-problem-the-new-adlparser-finds-a-problem-that-an-old-version-of-the-adlparser-didnt-find/14848 **Original content:** https://discourse.openehr.org/t/adl-syntax-problem-the-new-adlparser-finds-a-problem-that-an-old-version-of-the-adlparser-didnt-find/14848