# Parser Versions

**URL:** https://discourse.openehr.org/t/parser-versions/13167
**Category:** Technical (archive)
**Created:** [23 January 2009 09:33 UTC](https://discourse.openehr.org/t/parser-versions/13167 "2009-01-23T09:33:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Oxford\_Partnership](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/o/45deac/32.png) [@Oxford\_Partnership](https://discourse.openehr.org/u/Oxford_Partnership)
#### Post date: [23 January 2009 09:33 UTC](https://discourse.openehr.org/t/parser-versions/13167/1 "2009-01-23T09:33:05Z")

</div>

I am using the ADL parser library from within a C# application. I want  
the application to be able to report on which version of the parser is  
being used.

Using the following code :

openehr.version.OPENEHR\_VERSION adl\_parser\_version =  
openehr.version.Create.OPENEHR\_VERSION.default\_create();  
EiffelSoftware.Library.Base.kernel.STRING\_8 parserVersion =  
adl\_parser\_version.version();

This seems work and I get a version back, the version reported is :  
$LastChangedRevision: 203 $  
$LastChangedDate: 2007-04-10 05:17:40 +1000 (Tue, 10 Apr 2007) $

As this is the parser from the latest beta release of the editor, do  
those values make sense?

Also, is there a way of obtaining the version info from the XML parser library.

regards,  
OP

---

<div class="post-metadata">

### Author: ![Peter\_Gummer1](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/p/258eb7/32.png) [@Peter\_Gummer1](https://discourse.openehr.org/u/Peter_Gummer1)
#### Post date: [23 January 2009 14:00 UTC](https://discourse.openehr.org/t/parser-versions/13167/2 "2009-01-23T14:00:10Z")

</div>

OxfordPartnership wrote:

> This seems work and I get a version back, the version reported is :  
> $LastChangedRevision: 203 $  
> $LastChangedDate: 2007-04-10 05:17:40 +1000 (Tue, 10 Apr 2007) $
> 
> As this is the parser from the latest beta release of the editor, do  
> those values make sense?  
> &nbsp;&nbsp;  
> Unfortunately, not really. That string represents the last time that the  
> source file openehr\_version.e was committed to the branch of the  
> ref\_impl\_eiffel repository from which the current ADL Parser DLL is  
> built. As the last change to that branch was only a month or two ago,  
> sadly the so-called version string is wildly inaccurate.

There have been improvements to how this is handled in the TRUNK of the  
ref\_impl\_eiffel repository. We probably ought to merge those  
improvements back into the ADL Parser's current release branch, in order  
to avoid this confusion.

- Peter

---

<div class="post-metadata">

### Author: ![Oxford\_Partnership](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/o/45deac/32.png) [@Oxford\_Partnership](https://discourse.openehr.org/u/Oxford_Partnership)
#### Post date: [23 January 2009 15:15 UTC](https://discourse.openehr.org/t/parser-versions/13167/3 "2009-01-23T15:15:35Z")

</div>

Thanks for the prompt reply Peter, much appreciated.

Is there a way to change the “probably ought to” statement to something a little more definite. i.e. is there a way to formerly request this and get it in to the next build ?

thanks once again  
OP

---

<div class="post-metadata">

### Author: ![Peter\_Gummer1](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/p/258eb7/32.png) [@Peter\_Gummer1](https://discourse.openehr.org/u/Peter_Gummer1)
#### Post date: [24 January 2009 13:26 UTC](https://discourse.openehr.org/t/parser-versions/13167/4 "2009-01-24T13:26:53Z")

</div>

Oxford Partnership wrote:

> Is there a way to change the "probably ought to" statement to  
> something a little more definite. i.e. is there a way to formerly  
> request this and get it in to the next build ?

I've merged OPENEHR\_VERSION into the ADL Parser's current release  
branch, so you can get accurate details of the parser version.

The version() function that you were calling is gone. You can now call  
out() to get a version string.

Archetype Editor's beta release isn't using this new version of the DLL  
yet. You can get it from the link half-way down the ADL Workbench  
release page:

[https://wiki.oceaninformatics.com/confluence/display/TTL/ADL+Workbench+Releases](https://wiki.oceaninformatics.com/confluence/display/TTL/ADL+Workbench+Releases)

The direct link is:

[http://my.openehr.org/wsvn/oe\_distrib/windows/adl\_parser/dotnet/?rev=0&sc=0](http://my.openehr.org/wsvn/oe_distrib/windows/adl_parser/dotnet/?rev=0&sc=0)

- Peter
