I’m using the http://www.openehr.org/ckm/#showArchetype_1013.1.130 as an example.
Best, Duarte Ferreira From: Ref_impl_java [mailto:ref_impl_java-boun...@lists.openehr.org] On Behalf Of Ian McNicoll Sent: 06 May 2015 23:08 To: List for the development team for the reference implementation of openEHR in Java language and technologies. Subject: Re: Doubt parsing ADL file Hi Can you point us to one of the archetypes ? Open the archetype in ckm and click the envelope button on the toolbar to get the link On Wed, 6 May 2015 at 22:04, pablo pazos <pazospa...@hotmail.com <mailto:pazospa...@hotmail.com> > wrote: The Resource contains the Description, so, Description.parent = Resource See http://openehr.org/releases/1.0.2/architecture/rm/common_im.pdf page 60 -- Kind regards, Eng. Pablo Pazos Gutiérrez http://cabolabs.com <http://cabolabs.com/es/home> _____ From: dferre...@fe.up.pt <mailto:dferre...@fe.up.pt> To: ref_impl_java@lists.openehr.org <mailto:ref_impl_java@lists.openehr.org> Subject: Doubt parsing ADL file Date: Wed, 6 May 2015 17:43:00 +0100 Hi, I’m using the java-libs to parse some adl files from the Clinical Knowledge Manager(CKM). I’m getting some crashes due to stackoverflow when trying to do Archetype.toString(). When I checked the Archetype I saw a loop. The field Archetype.description.parentResourse was pointing back at the Archetype. My confusion seems to be in the function org.openehr.rm.common.resource.AuthoredResource.setDescription(). I don’t understand why : if (description != null && description.getParentResource() != this) { description.setParentResource(this); } In this code we send “this” to be set as its own parentResource in the description. Can anyone help me understand why this is happening? Best, Duarte Ferreira _______________________________________________ Ref_impl_java mailing list Ref_impl_java@lists.openehr.org <mailto:Ref_impl_java@lists.openehr.org> http://lists.openehr.org/mailman/listinfo/ref_impl_java_lists.openehr.org _______________________________________________ Ref_impl_java mailing list Ref_impl_java@lists.openehr.org <mailto:Ref_impl_java@lists.openehr.org> http://lists.openehr.org/mailman/listinfo/ref_impl_java_lists.openehr.org
_______________________________________________ Ref_impl_java mailing list Ref_impl_java@lists.openehr.org http://lists.openehr.org/mailman/listinfo/ref_impl_java_lists.openehr.org