Thanks a lot!? LINK can solve my problems very well. But I still have some questions between using LINK and templates.
1. Does LINK require the linking attributes to be explicitly defined in archetypes? For example, should one more LINK typed attribute be added under links attribute in openEHR-EHR-OBSERVATION.lab_test.v1 target at openEHR-EHR-INSTRUCTION.request-lab_test.v1? 2. If I use a template with a SECTION node and put both openEHR-EHR-INSTRUCTION.request-lab_test.v1 and openEHR-EHR-OBSERVATION.lab_test.v1 under it using archetype slots, does that means these two archetypes are implicitly related to each other? For example, in openEHR-EHR-SECTION.soap.v1, is OBSERVATION[at0006] node implicitly related to SECTION[at0007]? And how to express one to many relationship between these two in template? Thanks again! Kind regards, Li Wang On Sep 11, 2014, at 03:55 PM, Athanasios Anastasiou <a.anastasiou at swansea.ac.uk> wrote: Hello Wang It depends on the relationship. INSTRUCTION and OBSERVATION are separate entities because they map to two completely different things in reality. Is the INSTRUCTION an integral part of the OBSERVATION? If you really want to maintain some sort of relationship between these two then you could use a LINK (see www.openehr.org/releases/1.0.2/architecture/rm/common_im.pdf) But they would still have to be stored separately. If these two are related within the context of a specific operation / examination / consultation or other process, then it would be better to create a template that brings these two separate archetypes together with any additional information you might need to capture. Hope this helps All the best Athanasios Anastasiou On 11/09/2014 02:41, Li Wang wrote: ? ? ? ?> Hi, ? ? ? ?> ? ? ? ?> I'm try to understand how to model relationship between archetypes. For ? ? ? ?> example, there are two archetypes in CKM, ? ? ? ?> ? ? ? ?> openEHR-EHR-INSTRUCTION.request-lab_test.v1 and ? ? ? ?> openEHR-EHR-OBSERVATION.lab_test.v1 ? ? ? ?> ? ? ? ?> My question is, how to express the relationship that ? ? ? ?> openEHR-EHR-OBSERVATION.lab_test.v1 relates to ? ? ? ?> openEHR-EHR-INSTRUCTION.request-lab_test.v1? ? ? ? ?> ? ? ? ?> I tried possible methods: ? ? ? ?> 1. Add an attribute in openEHR-EHR-OBSERVATION.lab_test.v1 referring to ? ? ? ?> uid of openEHR-EHR-INSTRUCTION.request-lab_test.v1. ? ? ? ?> 2. Use archetype slots. But I think archetype slots are not allowed ? ? ? ?> between Entry based archetypes, is that correct? ? ? ? ?> 3. Define a new Section archetype as container and put both ? ? ? ?> openEHR-EHR-INSTRUCTION.request-lab_test.v1 and ? ? ? ?> openEHR-EHR-OBSERVATION.lab_test.v1 in it. ? ? ? ?> ? ? ? ?> Which is correct? And is there any better method? ? ? ? ?> ? ? ? ?> Thanks! ? ? ? ?> ? ? ? ?> Kind regards, ? ? ? ?> Wang Li ? ? ? ?> ? ? ? ?> ? ? ? ?> _______________________________________________ ? ? ? ?> openEHR-technical mailing list ? ? ? ?> openEHR-technical at lists.openehr.org ? ? ? ?> http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org ? ? ? ?> _______________________________________________ openEHR-technical mailing list openEHR-technical at lists.openehr.org http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.openehr.org/pipermail/openehr-technical_lists.openehr.org/attachments/20140911/06ea760d/attachment.html>

