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 <http://www.openehr.org/svn/ref_impl_eiffel/TRUNK/apps/adl_workbench/doc/web/index.html>. This is written in Eiffel, which is probably not a language you are familiar with, but the tool, and test archetypes <http://www.openehr.org/svn/knowledge2/TRUNK/archetypes/> will help you understand ADL 1.5, along with this wiki page. <http://www.openehr.org/wiki/pages/viewpage.action?pageId=196633> 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<mailto: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 <http://www.oceaninformatics.com/>* Chair Architectural Review Board, /open/EHR Foundation <http://www.openehr.org/> Honorary Research Fellow, University College London <http://www.chime.ucl.ac.uk/> Chartered IT Professional Fellow, BCS, British Computer Society <http://www.bcs.org.uk/> Health IT blog <http://www.wolandscat.net/> * * -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20120126/a6368a80/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: ocean_full_small.jpg Type: image/jpeg Size: 5828 bytes Desc: not available URL: <http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20120126/a6368a80/attachment.jpg>

