ADL reading

2012-01-30 Thread Athanasios Anastasiou
Hello again

I am sorry but i forgot to include the link to all the documents i am 
referring to my earlier message :-/

Here it is:
http://www.openehr.org/svn/specification/TRUNK/publishing/roadmap.html

All the best
Athanasios Anastasiou



On 30/01/2012 14:43, M?rcio Costa wrote:
> Hello guys,
>
> after reading the majority of the docs, i tryed to write a very simple
> app that:
>
> 1. Parse a ADL file to AOM
> 2. Try to build a Imput Form from respective AOM
>
> I'm with problems to find some references of how to use the Tree that
> the Parser gives to me.
>
> Is there some reference for the methods, or examples how to use the
> output of the Parser to build a Interface?
>
> If someone have a simple class, it would be very nice for me since i'm
> getting started :)
>
> Thanks in advance,
>
> *M?rcio Costa*
> B.Sc. in Computer Science @ Cin/UFPE
> M.Sc. Candidate in Computer Science @ CIn/UFPE
> MSN: mdckoury at gmail.com 



ADL reading

2012-01-30 Thread Thomas Beale

Now you need to join the java list 
 ;-)

On 30/01/2012 14:43, M?rcio Costa wrote:
> Hello guys,
>
> after reading the majority of the docs, i tryed to write a very simple 
> app that:
>
> 1. Parse a ADL file to AOM
> 2. Try to build a Imput Form from respective AOM
>
> I'm with problems to find some references of how to use the Tree that 
> the Parser gives to me.
>
> Is there some reference for the methods, or examples how to use the 
> output of the Parser to build a Interface?
>
> If someone have a simple class, it would be very nice for me since i'm 
> getting started :)
>
> Thanks in advance,
> **

-- next part --
An HTML attachment was scrubbed...
URL: 



ADL reading

2012-01-30 Thread Athanasios Anastasiou
Hello Marcio

(In the mean time, Pablo Pazos did provide a reply, so i must say that 
my response applies more generally to openEHR)

Allow me to remind you that, it all depends on what you are trying to do 
(and what sort of resource or time constraints you have).

At this point, i would strongly recommend that you very carefully read, 
at least once, the complete "Architecture Overview" document, so that 
you understand what openEHR is about and how do the individual building 
blocks fit together.

The data structures can (and usually will) get very complex, so having 
the bigger picture in mind first helps immensely.

After this, you can move to the "Archetype Model" documents (this is 
where you will find answers to questions regarding the structure of the 
"Archetype" class) and eventually, the "Reference Model" documents.

The Reference Model will be very important when the time comes for you 
to create actual computable representations according to the "blue 
print" that the "Archetype" class specifies.

In other words, the "Archetype" that you might have at hand at the 
moment, is only a description of a data structure...You can NOT do 
something like:

MyArchetype.SomeField = "Some String Value"

...on the Archetype class, you will have to obtain an RMObject (through 
the "RMObjectBuilder") and work on that one.

(It is not simply a matter of having "the right class" that someone 
might have put together...Almost everything you will need in terms of 
code, at least at introductory level, is available through the "java 
reference implementation" project.)

I hope this helps.

All the best
Athanasios Anastasiou









On 30/01/2012 14:43, M?rcio Costa wrote:
> Hello guys,
>
> after reading the majority of the docs, i tryed to write a very simple
> app that:
>
> 1. Parse a ADL file to AOM
> 2. Try to build a Imput Form from respective AOM
>
> I'm with problems to find some references of how to use the Tree that
> the Parser gives to me.
>
> Is there some reference for the methods, or examples how to use the
> output of the Parser to build a Interface?
>
> If someone have a simple class, it would be very nice for me since i'm
> getting started :)
>
> Thanks in advance,
>
> *M?rcio Costa*
> B.Sc. in Computer Science @ Cin/UFPE
> M.Sc. Candidate in Computer Science @ CIn/UFPE
> MSN: mdckoury at gmail.com 



ADL reading

2012-01-30 Thread pablo pazos

Hi M?rcio,
The EHRGen tool does just that: goes through a template with several archetypes 
and generate an user interface 
(HTML)http://code.google.com/p/open-ehr-gen-framework/source/browse/trunk/open-ehr-gen/grails-app/views/guiGen/create/_generarCreate.gsp
 

Docs and downloads:http://code.google.com/p/open-ehr-gen-framework/w/list 
http://code.google.com/p/open-ehr-gen-framework/downloads/list 

-- 
Kind regards,
Ing. Pablo Pazos Guti?rrez
LinkedIn: http://uy.linkedin.com/in/pablopazosgutierrez
Blog: http://informatica-medica.blogspot.com/
Twitter: http://twitter.com/ppazos

From: mdcko...@gmail.com
Date: Mon, 30 Jan 2012 11:43:58 -0300
Subject: Re: ADL reading
To: openehr-technical at openehr.org

Hello guys,

after reading the majority of the docs, i tryed to write a very simple app that:

1. Parse a ADL file to AOM
2. Try to build a Imput Form from respective AOM 

I'm with problems to find some references of how to use the Tree that the 
Parser gives to me.




Is there some reference for the methods, or examples how to use the output of 
the Parser to build a Interface?

If someone have a simple class, it would be very nice for me since i'm getting 
started :)




Thanks in advance,
M?rcio Costa
B.Sc. in Computer Science @ Cin/UFPE



M.Sc. Candidate in Computer Science @ CIn/UFPE
MSN: mdckoury at gmail.com


___
openEHR-technical mailing list
openEHR-technical at openehr.org
http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical 
  
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20120130/7fb561e3/attachment.html>


ADL reading

2012-01-30 Thread Márcio Costa
Hello guys,

after reading the majority of the docs, i tryed to write a very simple app
that:

1. Parse a ADL file to AOM
2. Try to build a Imput Form from respective AOM

I'm with problems to find some references of how to use the Tree that the
Parser gives to me.

Is there some reference for the methods, or examples how to use the output
of the Parser to build a Interface?

If someone have a simple class, it would be very nice for me since i'm
getting started :)

Thanks in advance,

*M?rcio Costa*
B.Sc. in Computer Science @ Cin/UFPE
M.Sc. Candidate in Computer Science @ CIn/UFPE
MSN: mdckoury at gmail.com
-- next part --
An HTML attachment was scrubbed...
URL: 



ADL reading

2012-01-26 Thread Seref Arikan
Greetings,
You may find this one helpful:
http://serefarikan.com/2010/10/18/openehr-for-practical-people/
Warning in advance: I moved this from my old server to wordpress and it has
some garbage, diagrams are missing etc. It may not be accurate enough too.
So why do I even bother to give the link? It would still help with the
basics.

Pablo's work is probably in better shape compared to Opereffa, (I'll
re-write all of it from scratch in the next month or so) so Pablo's work
may help you better as a starting point. Also check out Shinji's recent
posts; he recently released a big update to his implementation in Ruby.

Don't panic. openEHR is a great piece of work, but it will take time to
digest, so don't feel down if you struggle at first. As you can see, it has
a good community.



2012/1/26 M?rcio Costa 

> Excelent Pablo!
>
> I will study the class that you developed.
>
> Thanks,
>
> *M?rcio Costa*
> B.Sc. in Computer Science @ Cin/UFPE
> M.Sc. Candidate in Computer Science @ CIn/UFPE
> MSN: mdckoury at gmail.com
>
>
>
> 2012/1/26 pablo pazos 
>
>>  Hi M?rcio,
>>
>> As Ian mentioned, we have developed an EHR tool based on openEHR.
>> The EHRGen has a component to load and cache archetypes on memory, that
>> has the code Athanasios mentioned, you can see it here:
>> http://code.google.com/p/open-ehr-gen-framework/source/browse/trunk/open-ehr-gen/src/groovy/archetype_repository/ArchetypeManager.groovy
>>
>>
>> See method getArchetype(archetypId).
>>
>> We use the Java Ref Impl to parse ADL files.
>>
>> Hope that helps.
>>
>> --
>> Kind regards,
>> Ing. Pablo Pazos Guti?rrez
>> LinkedIn: http://uy.linkedin.com/in/pablopazosgutierrez
>> Blog: http://informatica-medica.blogspot.com/
>> Twitter: http://twitter.com/ppazos <http://twitter.com/ppazos>
>>
>> > From: Ian.McNicoll at oceaninformatics.com
>> > Date: Thu, 26 Jan 2012 18:44:38 +
>> > Subject: Re: ADL reading
>> > To: openehr-technical at openehr.org
>>
>> >
>> > Hi Marciio,
>> >
>> > You should also look at
>> >
>> > http://code.google.com/p/open-ehr-gen-framework/
>> >
>> > The author Pablo Pazos is on this list and will no doubt have how own
>> > suggestions.
>> >
>> > Do not despair - openEHR confusion is a normal pre-requisite to
>> > eventual enlightenment :-)
>>
>>
>> ___
>> openEHR-technical mailing list
>> openEHR-technical at openehr.org
>> http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical
>>
>>
>
> ___
> openEHR-technical mailing list
> openEHR-technical at openehr.org
> http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical
>
>
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20120126/7fc30535/attachment.html>


ADL reading

2012-01-26 Thread Márcio Costa
Hello Seref,

I'm really impressed with the activity and dynamism of this community.

OpenEHR is a great work, and also need a great time to digest :)

Thank you for help :)

Best Regards,

*M?rcio Costa*
B.Sc. in Computer Science @ Cin/UFPE
M.Sc. Candidate in Computer Science @ CIn/UFPE
MSN: mdckoury at gmail.com



2012/1/26 Seref Arikan 

> Greetings,
> You may find this one helpful:
> http://serefarikan.com/2010/10/18/openehr-for-practical-people/
> Warning in advance: I moved this from my old server to wordpress and it
> has some garbage, diagrams are missing etc. It may not be accurate enough
> too. So why do I even bother to give the link? It would still help with the
> basics.
>
> Pablo's work is probably in better shape compared to Opereffa, (I'll
> re-write all of it from scratch in the next month or so) so Pablo's work
> may help you better as a starting point. Also check out Shinji's recent
> posts; he recently released a big update to his implementation in Ruby.
>
> Don't panic. openEHR is a great piece of work, but it will take time to
> digest, so don't feel down if you struggle at first. As you can see, it has
> a good community.
>
>
>
>
> 2012/1/26 M?rcio Costa 
>
>> Excelent Pablo!
>>
>> I will study the class that you developed.
>>
>>  Thanks,
>>
>> *M?rcio Costa*
>> B.Sc. in Computer Science @ Cin/UFPE
>> M.Sc. Candidate in Computer Science @ CIn/UFPE
>> MSN: mdckoury at gmail.com
>>
>>
>>
>> 2012/1/26 pablo pazos 
>>
>>>  Hi M?rcio,
>>>
>>> As Ian mentioned, we have developed an EHR tool based on openEHR.
>>> The EHRGen has a component to load and cache archetypes on memory, that
>>> has the code Athanasios mentioned, you can see it here:
>>> http://code.google.com/p/open-ehr-gen-framework/source/browse/trunk/open-ehr-gen/src/groovy/archetype_repository/ArchetypeManager.groovy
>>>
>>>
>>> See method getArchetype(archetypId).
>>>
>>> We use the Java Ref Impl to parse ADL files.
>>>
>>> Hope that helps.
>>>
>>> --
>>> Kind regards,
>>> Ing. Pablo Pazos Guti?rrez
>>> LinkedIn: http://uy.linkedin.com/in/pablopazosgutierrez
>>> Blog: http://informatica-medica.blogspot.com/
>>> Twitter: http://twitter.com/ppazos <http://twitter.com/ppazos>
>>>
>>> > From: Ian.McNicoll at oceaninformatics.com
>>> > Date: Thu, 26 Jan 2012 18:44:38 +
>>> > Subject: Re: ADL reading
>>> > To: openehr-technical at openehr.org
>>>
>>> >
>>> > Hi Marciio,
>>> >
>>> > You should also look at
>>> >
>>> > http://code.google.com/p/open-ehr-gen-framework/
>>> >
>>> > The author Pablo Pazos is on this list and will no doubt have how own
>>> > suggestions.
>>> >
>>> > Do not despair - openEHR confusion is a normal pre-requisite to
>>> > eventual enlightenment :-)
>>>
>>>
>>> ___
>>> openEHR-technical mailing list
>>> openEHR-technical at openehr.org
>>> http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical
>>>
>>>
>>
>> ___
>> openEHR-technical mailing list
>> openEHR-technical at openehr.org
>> http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical
>>
>>
>
> ___
> openEHR-technical mailing list
> openEHR-technical at openehr.org
> http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical
>
>
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20120126/9ecd5f2f/attachment.html>


ADL reading

2012-01-26 Thread Thomas Beale

Just one note of caution - the Java project is in the middle of 
upgrading to ADL/AOM 1.5 from 1.4. So the operational code that is there 
today is for ADL 1.4. If you are just getting started, the differences 
probably won't matter for a while. If you specifically want to see ADL 
1.5, you can use the ADL Workbench 
.
 
This is written in Eiffel, which is probably not a language you are 
familiar with, but the tool, and test archetypes 
 will help you 
understand ADL 1.5, along with this wiki page. 
 In a 
few months the Java code base will catch up, so ADL 1.5 in Java won't be 
that far away.

- thomas

On 26/01/2012 18:20, Athanasios Anastasiou wrote:
> Hello Marcio
>
> Perhaps the quickest route to do this would be to use the java reference
> implementation (http://www.openehr.org/projects/java.html) and more
> specifically the classes ADLParser and Archetype. Essentially, you
> create a new ADLParser object passing as  a parameter a standard file
> object pointing to your ADL file and then from the parser you can obtain
> an Archetype object using the parse() member function.
>
> //For a (minimal) example
> File fd;
> ADLParser theParser;
> Archetype MyArchetype;
>
> fd = new File("openEHR-EHR-OBSERVATION.blood_pressure.v1.adl");
> theParser = new ADLParser(fd);
> MyArchetype = theParser.parse();
> //--
> // It omits some exception handling but this is the main idea
>
> You can now traverse the archetype structure implied by your .adl file
> using the functions of Archetype such as getAdlVersion(),
> getConceptName(), getChildren() and others.
>
>
> You could also use the Clinical Knowledge Manager
> (http://openehr.org/knowledge/) to browse archetypes of interest and
> download them in XML (rather than ADL). From there you could possibly
> process the XML to recover anything you want (concepts, terms, labels etc).
>
> The code from the opereffa project
> (http://opereffa.chime.ucl.ac.uk/introduction.jsf) might also be helpful
> for you, depending on what exactly you are trying to do (Web app in
> Java, deployed over Tomcat).
>
> That one is very detailed in that it includes all the necessary (and
> extensive) work that is required to handle Archetype(able) information
> through the current reference implementation and the Data Access Objects
> "mechanism". If my memory is not failing me, it also includes an actual
> user interface generator so that forms accepting data are constructed
> through the archetypes.
>
> I hope this helps.
>
> All the best
> Athanasios Anastasiou
>
> On 26/01/2012 17:43, M?rcio Costa wrote:
>> Hello guys,
>>
>> i'm trying to build a app using arquetypes and i need to read the ADL to
>> build my interface.
>>
>> where i can get some examples how reading ADL 1.5? Is there some API to
>> do that?
>>
>> thanks in advance,
>>
>> *M?rcio Costa*
>> B.Sc. in Computer Science @ Cin/UFPE
>> M.Sc. Candidate in Computer Science @ CIn/UFPE
>> MSN: mdckoury at gmail.com
>>
> ___
> openEHR-technical mailing list
> openEHR-technical at openehr.org
> http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical
>


-- 
Ocean Informatics   *Thomas Beale
Chief Technology Officer, Ocean Informatics 
*

Chair Architectural Review Board, /open/EHR Foundation 

Honorary Research Fellow, University College London 

Chartered IT Professional Fellow, BCS, British Computer Society 

Health IT blog 


*
*
-- next part --
An HTML attachment was scrubbed...
URL: 

-- next part --
A non-text attachment was scrubbed...
Name: ocean_full_small.jpg
Type: image/jpeg
Size: 5828 bytes
Desc: not available
URL: 



ADL reading

2012-01-26 Thread Marcelo Rodrigues dos Santos
M?rcio,

We have some academic projects developed at UFMG / Brazil involving the use
of ADL. Please, feel free to contact us directly if you have interest.

Regards,

Marcelo Rodrigues dos Santos
UFMG/FUMEC

Em 26 de janeiro de 2012 18:53, M?rcio Costa  escreveu:

> I would like to thank all for the attention and help.
>
> Best Regards,
>
> *M?rcio Costa*
> B.Sc. in Computer Science @ Cin/UFPE
> M.Sc. Candidate in Computer Science @ CIn/UFPE
> MSN: mdckoury at gmail.com
>
>
>
> 2012/1/26 Thomas Beale 
>
>>
>> Just one note of caution - the Java project is in the middle of upgrading
>> to ADL/AOM 1.5 from 1.4. So the operational code that is there today is for
>> ADL 1.4. If you are just getting started, the differences probably won't
>> matter for a while. If you specifically want to see ADL 1.5, you can use
>> the ADL 
>> Workbench.
>> This is written in Eiffel, which is probably not a language you are
>> familiar with, but the tool, and test 
>> archetypeswill help 
>> you understand ADL 1.5, along with this
>> wiki 
>> page.In a 
>> few months the Java code base will catch up, so ADL 1.5 in Java won't
>> be that far away.
>>
>> - thomas
>>
>>
>> On 26/01/2012 18:20, Athanasios Anastasiou wrote:
>>
>> Hello Marcio
>>
>> Perhaps the quickest route to do this would be to use the java reference
>> implementation (http://www.openehr.org/projects/java.html) and more
>> specifically the classes ADLParser and Archetype. Essentially, you
>> create a new ADLParser object passing as  a parameter a standard file
>> object pointing to your ADL file and then from the parser you can obtain
>> an Archetype object using the parse() member function.
>>
>> //For a (minimal) example
>> File fd;
>> ADLParser theParser;
>> Archetype MyArchetype;
>>
>> fd = new File("openEHR-EHR-OBSERVATION.blood_pressure.v1.adl");
>> theParser = new ADLParser(fd);
>> MyArchetype = theParser.parse();
>> //--
>> // It omits some exception handling but this is the main idea
>>
>> You can now traverse the archetype structure implied by your .adl file
>> using the functions of Archetype such as getAdlVersion(),
>> getConceptName(), getChildren() and others.
>>
>>
>> You could also use the Clinical Knowledge Manager
>> (http://openehr.org/knowledge/) to browse archetypes of interest and
>> download them in XML (rather than ADL). From there you could possibly
>> process the XML to recover anything you want (concepts, terms, labels etc).
>>
>> The code from the opereffa project
>> (http://opereffa.chime.ucl.ac.uk/introduction.jsf) might also be helpful
>> for you, depending on what exactly you are trying to do (Web app in
>> Java, deployed over Tomcat).
>>
>> That one is very detailed in that it includes all the necessary (and
>> extensive) work that is required to handle Archetype(able) information
>> through the current reference implementation and the Data Access Objects
>> "mechanism". If my memory is not failing me, it also includes an actual
>> user interface generator so that forms accepting data are constructed
>> through the archetypes.
>>
>> I hope this helps.
>>
>> All the best
>> Athanasios Anastasiou
>>
>> On 26/01/2012 17:43, M?rcio Costa wrote:
>>
>>  Hello guys,
>>
>> i'm trying to build a app using arquetypes and i need to read the ADL to
>> build my interface.
>>
>> where i can get some examples how reading ADL 1.5? Is there some API to
>> do that?
>>
>> thanks in advance,
>>
>> *M?rcio Costa*
>> B.Sc. in Computer Science @ Cin/UFPE
>> M.Sc. Candidate in Computer Science @ CIn/UFPE
>> MSN: mdckoury at gmail.com  > gmail.com>
>>
>>  ___
>> openEHR-technical mailing listopenEHR-technical at 
>> openehr.orghttp://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical
>>
>>
>>
>> --
>>   [image: Ocean Informatics]  *Thomas Beale
>> Chief Technology Officer, Ocean Informatics
>> *
>>
>> Chair Architectural Review Board, *open*EHR 
>> Foundation
>> Honorary Research Fellow, University College 
>> London
>> Chartered IT Professional Fellow, BCS, British Computer 
>> Society
>> Health IT blog 
>> *
>> *
>>
>> ___
>> openEHR-technical mailing list
>> openEHR-technical at openehr.org
>> http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical
>>
>>
>
> ___
> openEHR-technical mailing list
> openEHR-technical at openehr.org
> http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical
>
>
-- next part --
An HTML attachment was scrubbed...
URL: 

ADL reading

2012-01-26 Thread Ian McNicoll
Hi Marciio,

You should also look at

http://code.google.com/p/open-ehr-gen-framework/

The author Pablo Pazos is on this list and will no doubt have how own
suggestions.

Do not despair - openEHR confusion is a normal pre-requisite to
eventual enlightenment  :-)

Ian
Dr Ian McNicoll
office +44 (0)1536 414 994
fax +44 (0)1536 516317
mobile +44 (0)775 209 7859
skype ianmcnicoll
ian.mcnicoll at oceaninformatics.com

Clinical Modelling Consultant,?Ocean Informatics, UK
Director/Clinical Knowledge Editor openEHR Foundation ?www.openehr.org/knowledge
Honorary Senior Research Associate, CHIME, UCL
SCIMP Working Group, NHS Scotland
BCS Primary Health Care ?www.phcsg.org



2012/1/26 M?rcio Costa :
> Hello Athanasios ,
>
> your information helped me a lot! I was a little bit lost in the world of
> openEHR. Now i know how to start my journey!
>
> Thanks you very much!
>
> Best Regards,
>
> M?rcio Costa
> B.Sc. in Computer Science @ Cin/UFPE
> M.Sc. Candidate in Computer Science @ CIn/UFPE
> MSN: mdckoury at gmail.com
>
>
>
> 2012/1/26 Athanasios Anastasiou 
>>
>> Hello Marcio
>>
>> Perhaps the quickest route to do this would be to use the java reference
>> implementation (http://www.openehr.org/projects/java.html) and more
>> specifically the classes ADLParser and Archetype. Essentially, you
>> create a new ADLParser object passing as ?a parameter a standard file
>> object pointing to your ADL file and then from the parser you can obtain
>> an Archetype object using the parse() member function.
>>
>> //For a (minimal) example
>> File fd;
>> ADLParser theParser;
>> Archetype MyArchetype;
>>
>> fd = new File("openEHR-EHR-OBSERVATION.blood_pressure.v1.adl");
>> theParser = new ADLParser(fd);
>> MyArchetype = theParser.parse();
>> //--
>> // It omits some exception handling but this is the main idea
>>
>> You can now traverse the archetype structure implied by your .adl file
>> using the functions of Archetype such as getAdlVersion(),
>> getConceptName(), getChildren() and others.
>>
>>
>> You could also use the Clinical Knowledge Manager
>> (http://openehr.org/knowledge/) to browse archetypes of interest and
>> download them in XML (rather than ADL). From there you could possibly
>> process the XML to recover anything you want (concepts, terms, labels
>> etc).
>>
>> The code from the opereffa project
>> (http://opereffa.chime.ucl.ac.uk/introduction.jsf) might also be helpful
>> for you, depending on what exactly you are trying to do (Web app in
>> Java, deployed over Tomcat).
>>
>> That one is very detailed in that it includes all the necessary (and
>> extensive) work that is required to handle Archetype(able) information
>> through the current reference implementation and the Data Access Objects
>> "mechanism". If my memory is not failing me, it also includes an actual
>> user interface generator so that forms accepting data are constructed
>> through the archetypes.
>>
>> I hope this helps.
>>
>> All the best
>> Athanasios Anastasiou
>>
>> On 26/01/2012 17:43, M?rcio Costa wrote:
>> > Hello guys,
>> >
>> > i'm trying to build a app using arquetypes and i need to read the ADL to
>> > build my interface.
>> >
>> > where i can get some examples how reading ADL 1.5? Is there some API to
>> > do that?
>> >
>> > thanks in advance,
>> >
>> > *M?rcio Costa*
>> > B.Sc. in Computer Science @ Cin/UFPE
>> > M.Sc. Candidate in Computer Science @ CIn/UFPE
>> > MSN: mdckoury at gmail.com 
>> >
>> ___
>> openEHR-technical mailing list
>> openEHR-technical at openehr.org
>> http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical
>
>
>
> ___
> openEHR-technical mailing list
> openEHR-technical at openehr.org
> http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical
>




ADL reading

2012-01-26 Thread Athanasios Anastasiou
Hello Marcio

Perhaps the quickest route to do this would be to use the java reference 
implementation (http://www.openehr.org/projects/java.html) and more 
specifically the classes ADLParser and Archetype. Essentially, you 
create a new ADLParser object passing as  a parameter a standard file 
object pointing to your ADL file and then from the parser you can obtain 
an Archetype object using the parse() member function.

//For a (minimal) example
File fd;
ADLParser theParser;
Archetype MyArchetype;

fd = new File("openEHR-EHR-OBSERVATION.blood_pressure.v1.adl");
theParser = new ADLParser(fd);
MyArchetype = theParser.parse();
//--
// It omits some exception handling but this is the main idea

You can now traverse the archetype structure implied by your .adl file 
using the functions of Archetype such as getAdlVersion(), 
getConceptName(), getChildren() and others.


You could also use the Clinical Knowledge Manager 
(http://openehr.org/knowledge/) to browse archetypes of interest and 
download them in XML (rather than ADL). From there you could possibly 
process the XML to recover anything you want (concepts, terms, labels etc).

The code from the opereffa project 
(http://opereffa.chime.ucl.ac.uk/introduction.jsf) might also be helpful 
for you, depending on what exactly you are trying to do (Web app in 
Java, deployed over Tomcat).

That one is very detailed in that it includes all the necessary (and 
extensive) work that is required to handle Archetype(able) information 
through the current reference implementation and the Data Access Objects 
"mechanism". If my memory is not failing me, it also includes an actual 
user interface generator so that forms accepting data are constructed 
through the archetypes.

I hope this helps.

All the best
Athanasios Anastasiou

On 26/01/2012 17:43, M?rcio Costa wrote:
> Hello guys,
>
> i'm trying to build a app using arquetypes and i need to read the ADL to
> build my interface.
>
> where i can get some examples how reading ADL 1.5? Is there some API to
> do that?
>
> thanks in advance,
>
> *M?rcio Costa*
> B.Sc. in Computer Science @ Cin/UFPE
> M.Sc. Candidate in Computer Science @ CIn/UFPE
> MSN: mdckoury at gmail.com 
>



ADL reading

2012-01-26 Thread Márcio Costa
Excelent Pablo!

I will study the class that you developed.

Thanks,

*M?rcio Costa*
B.Sc. in Computer Science @ Cin/UFPE
M.Sc. Candidate in Computer Science @ CIn/UFPE
MSN: mdckoury at gmail.com



2012/1/26 pablo pazos 

>  Hi M?rcio,
>
> As Ian mentioned, we have developed an EHR tool based on openEHR.
> The EHRGen has a component to load and cache archetypes on memory, that
> has the code Athanasios mentioned, you can see it here:
> http://code.google.com/p/open-ehr-gen-framework/source/browse/trunk/open-ehr-gen/src/groovy/archetype_repository/ArchetypeManager.groovy
>
>
> See method getArchetype(archetypId).
>
> We use the Java Ref Impl to parse ADL files.
>
> Hope that helps.
>
> --
> Kind regards,
> Ing. Pablo Pazos Guti?rrez
> LinkedIn: http://uy.linkedin.com/in/pablopazosgutierrez
> Blog: http://informatica-medica.blogspot.com/
> Twitter: http://twitter.com/ppazos <http://twitter.com/ppazos>
>
> > From: Ian.McNicoll at oceaninformatics.com
> > Date: Thu, 26 Jan 2012 18:44:38 +
> > Subject: Re: ADL reading
> > To: openehr-technical at openehr.org
>
> >
> > Hi Marciio,
> >
> > You should also look at
> >
> > http://code.google.com/p/open-ehr-gen-framework/
> >
> > The author Pablo Pazos is on this list and will no doubt have how own
> > suggestions.
> >
> > Do not despair - openEHR confusion is a normal pre-requisite to
> > eventual enlightenment :-)
>
>
> ___
> openEHR-technical mailing list
> openEHR-technical at openehr.org
> http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical
>
>
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20120126/2a650b88/attachment.html>


ADL reading

2012-01-26 Thread pablo pazos

Hi M?rcio,
As Ian mentioned, we have developed an EHR tool based on openEHR.The EHRGen has 
a component to load and cache archetypes on memory, that has the code 
Athanasios mentioned, you can see it here: 
http://code.google.com/p/open-ehr-gen-framework/source/browse/trunk/open-ehr-gen/src/groovy/archetype_repository/ArchetypeManager.groovy
 
See method getArchetype(archetypId).
We use the Java Ref Impl to parse ADL files.
Hope that helps.

-- 
Kind regards,
Ing. Pablo Pazos Guti?rrez
LinkedIn: http://uy.linkedin.com/in/pablopazosgutierrez
Blog: http://informatica-medica.blogspot.com/
Twitter: http://twitter.com/ppazos

> From: Ian.McNicoll at oceaninformatics.com
> Date: Thu, 26 Jan 2012 18:44:38 +
> Subject: Re: ADL reading
> To: openehr-technical at openehr.org
> 
> Hi Marciio,
> 
> You should also look at
> 
> http://code.google.com/p/open-ehr-gen-framework/
> 
> The author Pablo Pazos is on this list and will no doubt have how own
> suggestions.
> 
> Do not despair - openEHR confusion is a normal pre-requisite to
> eventual enlightenment  :-)

  
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20120126/7b1fd0c5/attachment.html>


ADL reading

2012-01-26 Thread Márcio Costa
I would like to thank all for the attention and help.

Best Regards,

*M?rcio Costa*
B.Sc. in Computer Science @ Cin/UFPE
M.Sc. Candidate in Computer Science @ CIn/UFPE
MSN: mdckoury at gmail.com



2012/1/26 Thomas Beale 

>
> Just one note of caution - the Java project is in the middle of upgrading
> to ADL/AOM 1.5 from 1.4. So the operational code that is there today is for
> ADL 1.4. If you are just getting started, the differences probably won't
> matter for a while. If you specifically want to see ADL 1.5, you can use
> the ADL 
> Workbench.
> This is written in Eiffel, which is probably not a language you are
> familiar with, but the tool, and test 
> archetypeswill help 
> you understand ADL 1.5, along with this
> wiki page.In 
> a few months the Java code base will catch up, so ADL 1.5 in Java won't
> be that far away.
>
> - thomas
>
>
> On 26/01/2012 18:20, Athanasios Anastasiou wrote:
>
> Hello Marcio
>
> Perhaps the quickest route to do this would be to use the java reference
> implementation (http://www.openehr.org/projects/java.html) and more
> specifically the classes ADLParser and Archetype. Essentially, you
> create a new ADLParser object passing as  a parameter a standard file
> object pointing to your ADL file and then from the parser you can obtain
> an Archetype object using the parse() member function.
>
> //For a (minimal) example
> File fd;
> ADLParser theParser;
> Archetype MyArchetype;
>
> fd = new File("openEHR-EHR-OBSERVATION.blood_pressure.v1.adl");
> theParser = new ADLParser(fd);
> MyArchetype = theParser.parse();
> //--
> // It omits some exception handling but this is the main idea
>
> You can now traverse the archetype structure implied by your .adl file
> using the functions of Archetype such as getAdlVersion(),
> getConceptName(), getChildren() and others.
>
>
> You could also use the Clinical Knowledge Manager
> (http://openehr.org/knowledge/) to browse archetypes of interest and
> download them in XML (rather than ADL). From there you could possibly
> process the XML to recover anything you want (concepts, terms, labels etc).
>
> The code from the opereffa project
> (http://opereffa.chime.ucl.ac.uk/introduction.jsf) might also be helpful
> for you, depending on what exactly you are trying to do (Web app in
> Java, deployed over Tomcat).
>
> That one is very detailed in that it includes all the necessary (and
> extensive) work that is required to handle Archetype(able) information
> through the current reference implementation and the Data Access Objects
> "mechanism". If my memory is not failing me, it also includes an actual
> user interface generator so that forms accepting data are constructed
> through the archetypes.
>
> I hope this helps.
>
> All the best
> Athanasios Anastasiou
>
> On 26/01/2012 17:43, M?rcio Costa wrote:
>
>  Hello guys,
>
> i'm trying to build a app using arquetypes and i need to read the ADL to
> build my interface.
>
> where i can get some examples how reading ADL 1.5? Is there some API to
> do that?
>
> thanks in advance,
>
> *M?rcio Costa*
> B.Sc. in Computer Science @ Cin/UFPE
> M.Sc. Candidate in Computer Science @ CIn/UFPE
> MSN: mdckoury at gmail.com   gmail.com>
>
>  ___
> openEHR-technical mailing listopenEHR-technical at 
> openehr.orghttp://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical
>
>
>
> --
>   [image: Ocean Informatics]  *Thomas Beale
> Chief Technology Officer, Ocean Informatics
> *
>
> Chair Architectural Review Board, *open*EHR 
> Foundation
> Honorary Research Fellow, University College 
> London
> Chartered IT Professional Fellow, BCS, British Computer 
> Society
> Health IT blog 
> *
> *
>
> ___
> openEHR-technical mailing list
> openEHR-technical at openehr.org
> http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical
>
>
-- next part --
An HTML attachment was scrubbed...
URL: 



ADL reading

2012-01-26 Thread Márcio Costa
Hello Athanasios ,

your information helped me a lot! I was a little bit lost in the world of
openEHR. Now i know how to start my journey!

Thanks you very much!

Best Regards,

*M?rcio Costa*
B.Sc. in Computer Science @ Cin/UFPE
M.Sc. Candidate in Computer Science @ CIn/UFPE
MSN: mdckoury at gmail.com



2012/1/26 Athanasios Anastasiou 

> Hello Marcio
>
> Perhaps the quickest route to do this would be to use the java reference
> implementation (http://www.openehr.org/projects/java.html) and more
> specifically the classes ADLParser and Archetype. Essentially, you
> create a new ADLParser object passing as  a parameter a standard file
> object pointing to your ADL file and then from the parser you can obtain
> an Archetype object using the parse() member function.
>
> //For a (minimal) example
> File fd;
> ADLParser theParser;
> Archetype MyArchetype;
>
> fd = new File("openEHR-EHR-OBSERVATION.blood_pressure.v1.adl");
> theParser = new ADLParser(fd);
> MyArchetype = theParser.parse();
> //--
> // It omits some exception handling but this is the main idea
>
> You can now traverse the archetype structure implied by your .adl file
> using the functions of Archetype such as getAdlVersion(),
> getConceptName(), getChildren() and others.
>
>
> You could also use the Clinical Knowledge Manager
> (http://openehr.org/knowledge/) to browse archetypes of interest and
> download them in XML (rather than ADL). From there you could possibly
> process the XML to recover anything you want (concepts, terms, labels etc).
>
> The code from the opereffa project
> (http://opereffa.chime.ucl.ac.uk/introduction.jsf) might also be helpful
> for you, depending on what exactly you are trying to do (Web app in
> Java, deployed over Tomcat).
>
> That one is very detailed in that it includes all the necessary (and
> extensive) work that is required to handle Archetype(able) information
> through the current reference implementation and the Data Access Objects
> "mechanism". If my memory is not failing me, it also includes an actual
> user interface generator so that forms accepting data are constructed
> through the archetypes.
>
> I hope this helps.
>
> All the best
> Athanasios Anastasiou
>
> On 26/01/2012 17:43, M?rcio Costa wrote:
> > Hello guys,
> >
> > i'm trying to build a app using arquetypes and i need to read the ADL to
> > build my interface.
> >
> > where i can get some examples how reading ADL 1.5? Is there some API to
> > do that?
> >
> > thanks in advance,
> >
> > *M?rcio Costa*
> > B.Sc. in Computer Science @ Cin/UFPE
> > M.Sc. Candidate in Computer Science @ CIn/UFPE
> > MSN: mdckoury at gmail.com 
> >
> ___
> openEHR-technical mailing list
> openEHR-technical at openehr.org
> http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical
>
-- next part --
An HTML attachment was scrubbed...
URL: 



ADL reading

2012-01-26 Thread Márcio Costa
Hello guys,

i'm trying to build a app using arquetypes and i need to read the ADL to
build my interface.

where i can get some examples how reading ADL 1.5? Is there some API to do
that?

thanks in advance,

*M?rcio Costa*
B.Sc. in Computer Science @ Cin/UFPE
M.Sc. Candidate in Computer Science @ CIn/UFPE
MSN: mdckoury at gmail.com
-- next part --
An HTML attachment was scrubbed...
URL: