William, You can also use internal references from within archetypes, you define the structure once and then reference it from other places within the same Archetype.
If you are working with the same structure across multiple archetypes then you should use slots. Remember the principle of archetypes is to have discrete clinical concepts, if you are copying structures from one archetype to another than you are not developing discrete concepts. Regards Heath From: openehr-clinical-boun...@openehr.org [mailto:openehr-clinical-bounces at openehr.org] On Behalf Of Ian McNicoll Sent: Friday, 26 June 2009 10:15 PM To: For openEHR clinical discussions Subject: {Disarmed} Re: {Disarmed} editor: no object orientation features Hi William, You have my sympathies!! This is a pretty regular problem for us at the sharp of modelling and support for this kind of 'refactoring' would be really helpful. It is one of the reasons why we currently do a lot of pre-work with mindmaps so that we do not have to alter the basic structure too much when archetyping. We are aware of a need to handle 'compound archetypes' i.e those constructed of a number of smaller components, in a more seamless fashion. In Ocean, we currently do this by using archetype slots and filling these appropriately in templates. These can be saved as 'Embedded templates' for reuse, effectively as ready-built compound archetypes. These ideas, improved in the light of experience, will be brought into the forthcoming official openEHR Template Object Model. If you want to see some examples of how we approach this kind of issue, have a look in CKM at the Cluster-Microscopy Melanoma archetype which is designed to plug-in to a parent lab_test-histopathology archetype. If you look at the Document Centre for that archetype (via toolbar), you can see an HTML rendering of the parent template which brings together the various components e.g. Lab_test-histopthstology, microscopy-melanoma, specimen, tumour_resection_margins, to form a compound archetype. It is actually quite easy to extract some hard-coded content out into a separate archetype via a bit of judicious cutting an pasting of the ADL. It is more difficult to go the other way.i.e where some content developed as a separate archetype turns out to be better modelled directly within the parent. It is easy to do this in XML-spy since by lucky coincidenece, it seems to understand, and properly tab, matching start-end brackets, even in an ADL file. You also need to do a bit of chopping and possibly renumbering of AT-codes. Not for the fant-hearted casual modeller but not too hard when you get the hang of it, and understand how to fix things if you get errors as a result What are your timescales? I am off on holiday for a couple of weeks but we have penicilled in starting work on Allergies as part of the next round of CKM activity, as apart from obvious global appeal, it is relevant to a number of local projects. It would be really helpful and interesting to collaborate on this work as far as possible. Aside from the obvious issues of gathering and defining the clinical knowledge, working out the optimal structure and re-use of sub-components is probably the main challenge that is involved in DCM/archetyping work. It is often difficult to formulate defined 'best practice' in this area, but we are all gaining some practical experience of appropriate design patterns and approaches which as far as possible we should share, along with the underlying clinical knowledge. Many of these issues are agnostic to any modelling formalism, HL7v3,openEHR, UML, and are much more a reflection of the maturity of clinical knowledge in the particular domain involved. Sorry, I have no quick solution,but would be very happy to have a look at the archetypes involved and lend a hand, either by passing on my preferred design patterns, my limited repertoire of safe ADL hacking or by doing the hacking myself!! You can be certain that some future version of openEHR tooling will make this much easier. Regards, Ian Dr Ian McNicoll office / fax +44(0)141 560 4657 mobile +44 (0)775 209 7859 skype ianmcnicoll ian at mcmi.co.uk Clinical Analyst Ocean Informatics ian.mcnicoll at oceaninformatics.com BCS Primary Health Care Specialist Group www.phcsg.org 2009/6/26 <Williamtfgoossen at cs.com> Dear all, I wonder you experience the same experience that if you are creating a more complex cluster based archetype you want to copy and paste a small structure from one cluster into another, but the editor does not allow this. (on behalf of DCM work I am trying to see if the HL7 allergy and intolerance model can be transformed into an archetype). Any tricks to be able to reuse small archetype strucetures into creating a new one? Now I have to create each single structure over and over and over and over and over. William Sincerely yours, Dr. William T.F. Goossen RN PhD CEO and Researcher and Consultant Health and Nursing Informatics Results 4 Care, the Netherlands Health Informatics, research, development, consulting, teaching <http://www.acquest.nl/> MailScanner has detected a possible fraud attempt from "www.acquest.nl" claiming to be MailScanner has detected a possible fraud attempt from "www.acquest.nl" claiming to be MailScanner has detected a possible fraud attempt from "www.acquest.nl" claiming to be MailScanner has detected a possible fraud attempt from "www.acquest.nl" claiming to be results4care at cs.com phone + 31654614458 fax +3133 2570169 www.results4care.nl Dutch Chamber of Commerce number: 32133713 & Adjunct Associate Professor in the School of Nursing, the University of Minnesota, Minneapolis, USA. http://www.nursing.umn.edu/FacultyandStaff/GoossenWilliam/home.html & Chair NEN normcommissie informatievoorziening in de zorg NEN 303006 (chair Dutch CEN/ISO mirror body health informatics) Netherlands Normalisation institute NEN. www.nen.nl & Co-chair Patient Care Technical Commission, Health Level Seven, Ann Arbor, MI, USA. http://www.hl7.org & Meester Docent Zorg en Technologie, ROC van Twente, http://www.rocvantwente.nl/scholier/nieuws/Meesterdocent-Zorg-Technologie.ht ml & Country Representative for the Netherlands in the Special Interest Group Nursing Informatics, IMIA. http://www.infocom.cqu.edu.au/imia-ni/ & Teacher in health and nursing informatics, MBA Health Management University of Applied Sciences, Osnabr?ck, Germany. http://www.wiso.fh-osnabrueck.de/aktuelle-lehre.html & Fellow of the Centre for Health Informatics Research and Development (CHIRAD), School of Social Sciences, Kings Alfred's, Winchester, UK. <http://www.chirad.org.uk/> MailScanner has detected a possible fraud attempt from "www.chirad.org.uk" claiming to be www.chirad.org.u & Lector ICT innovations in healthcare at Hogeschool Windesheim, Zwolle the Netherlands www.windesheim.nl _______________________________________________ openEHR-clinical mailing list openEHR-clinical at openehr.org http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-clinical -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.openehr.org/mailman/private/openehr-clinical_lists.openehr.org/attachments/20090629/ff6538c7/attachment.html>