What does "Add reference" in Archetype Editor means

Hi!

When right-clicking on any element in Archetype Editor there is link “Add reference” which adds a readonly element to definition.

So, what does it mean?

Игорь Лизунов wrote:

When right-clicking on any element in Archetype Editor there is link
"Add reference" which adds a readonly element to definition.

So, what does it mean?

Hi Igor,

It's an internal reference. See the ADL 1.4 specification, section
5.3.7.

- Peter Gummer

Privet Igor, this simply creates an “internal reference” to that node which you can reuse in upcoming parts of the same archetype. Of course the at code at the very end is referring to the same term_id. But the paths are difference depending on where it is referenced. Look at the ‘internal reference’ section or search for “use_node” within the ADL spec. I use it heavily where there are multiple appearances of a certain data node with exactly same semantics (i.e. anatomical sites) that needs qualify lots of “findings” which require further qualification of anatomical sites. When you create this reference using Archetype Editor you can drag and drop into onto any other part of the model. In the end when an operational template is generated there is no longer any difference between the ‘referenced’ and the ‘referencing’ nodes; i.e. they all become the same description of the same data item.

Hope this helps…You can look into the archetype: openEHR-EHR-OBSERVATION.MST_colon.v1

Which used to come bundled with the AE installation.

Cheers,

-koray

Koray Atalag wrote:

Hope this helps…You can look into the archetype: openEHR-EHR-
OBSERVATION.MST_colon.v1
Which used to come bundled with the AE installation.

Hi Koray,

The MST_colon archetype can still be downloaded from the old, obsolete
Subversion repository:

http://www.openehr.org/svn/knowledge/archetypes/dev/adl/openehr/ehr/entry/observation/openEHR-EHR-OBSERVATION.mst_colon.v1.adl

That archetype isn't installed by Archetype Editor any more. These
days, Archetype Editor installs a few dozen simple, representative
sample archetypes, to help new users familiarise themselves with
archetypes. They are clearly marked as samples to avoid mistaking them
for "real" (i.e. CKM) archetypes.

openEHR-EHR-ADMIN_ENTRY.sample_admission.v1.adl contains some internal
references.

- Peter Gummer