Hi Alessandro,

Think of ADL as a format for plain text files, an ADL file represent an 
instance of the AOM classes (that's why you have to parse ADL into AOM).

For working with the RM, take the blood pressure observation archetype as an 
example. In our RM implementation 
(http://code.google.com/p/open-ehr-gen-framework/) you have an Observation 
class 
(http://code.google.com/p/open-ehr-gen-framework/source/browse/trunk/open-ehr-gen/grails-app/domain/hce/core/composition/content/entry/Observation.groovy)
 you have a "data" attribute of type History 
(http://code.google.com/p/open-ehr-gen-framework/source/browse/trunk/open-ehr-gen/grails-app/domain/hce/core/datastructure/history/History.groovy),
 History can have many Event 
(http://code.google.com/p/open-ehr-gen-framework/source/browse/trunk/open-ehr-gen/grails-app/domain/hce/core/datastructure/history/Event.groovy),
 and each Event. Event have a "data" attribute of type ItemStructure. 
ItemStructure is an abstract class, so only with the RM implementation, you 
don't know what is the structure and how to set this information, that 
information is in the instance of the blood pressure archetype, you can find it 
here: http://www.openehr.org/knowledge/
In this archetype, you'll see that the Event.data is defined as ItemTree, not 
as ItemStructure, and ItemTree is a concrete class of ItemStructure.

The point here is: you have to process the AOM instance to know what is the 
concrete RM structure that represent your clinical concept, like "blood 
pressure". Then, you create your RM instance and set data values the same way 
you create an instance of any object oriented model.

Hope that helps.

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



> Date: Wed, 30 Mar 2011 02:09:04 -0700
> From: padiglionestation at gmail.com
> To: openehr-technical at openehr.org
> Subject: RE: Use Archetypes and ADL file in Java
> 
> 
> 
> 
> Pablo Pazos Gutierrez wrote:
> > 
> > 
> > Hi Alessandro,
> > 
> > ADL defines the structure of your clinical data, In practice, ADL defines
> > an instance of the archetype object model (AOM), that instance is the one
> > you can handle from java. But the clinical data values must be set on the
> > reference information model (RM). So, you must have: an implementation of
> > the AOM, an ADLParser that parses ADL to an instance of AOM, and an
> > implementation of the RM, and processing the AOM you can create an empty
> > instance of the RM (empty because you have no clinical data yet).
> > 
> > Here you can find a project (my degree thesis) that implements openEHR,
> > and can generate any clinical record (is Java based):
> > 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
> > 
> > 
> > 
> >> Date: Tue, 29 Mar 2011 06:24:25 -0700
> >> From: padiglionestation at gmail.com
> >> To: openehr-technical at openehr.org
> >> Subject: Use Archetypes and ADL file in Java
> >> 
> >> 
> >> Hi everybody I'm Alessandro OpenEhr is I'm working on for my thesis.For
> >> the
> >> moment I'm using java in the ADLParser file for the openEHR EHRS-.
> >> blood_pressure.-OBSERVATION v1.0 adl. I wanted to know, via java objects,
> >> how to handle this archetype in java and assign values, such as the
> >> systolic
> >> pressure. More generally, how can I access the OpenEhr archetypes in
> >> java?
> >> I attach the file that I have produced so far. 
> >> 
> >>  Thank you for your attention, good job.
> >> 
> >> Alessandro http://old.nabble.com/file/p31266646/Test_Archetype.java
> >> Test_Archetype.java 
> >> -- 
> >> View this message in context:
> >> http://old.nabble.com/Use-Archetypes-and-ADL-file-in-Java-tp31266646p31266646.html
> >> Sent from the openehr-technical mailing list archive at Nabble.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
> > 
> > 
> Thanks for your reply and for the documents that I have passed.From what I
> understood ADL class represents an instance of AOM right?If you would like
> to know how I can map the archetype on an RM? Let me explain better: how ADL
> I openEHR-EHR-OBSERVATION. blood_pressure. v1. I like adl access its
> properties via the RM Observation? You can find some examples in this
> regard? I apologize but I am beginning with OpenEhr. 
> 
> 
> 
> 
> -- 
> View this message in context: 
> http://old.nabble.com/Use-Archetypes-and-ADL-file-in-Java-tp31266646p31275301.html
> Sent from the openehr-technical mailing list archive at Nabble.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/20110330/607b7ba8/attachment.html>

Reply via email to