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 <mdckoury at gmail.com>: > 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 <athanasios.anastasiou at plymouth.ac.uk> >> >> 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 <mailto: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 >

