This page shows a BMI, Height and Weight models, where the Height and Weight can be used as self standing Entries, and also be used in a BMI Entry 'panel'various standalone and panel style archetypes and templates showing how the Entry-in-Entry concept could work. The archetypes / template source is here on the openEHR adl-archetypes GitHub repo.
Reference Model
First, we need to know what the CIMI Reference Model (RM) looks like for this. Here is the important bit:
...
Here's a simple CIMI height archetype (, derived / hacked from a Results4Care model (ADL source on Github):
Structural view | Structural view + RM types + codes |
---|---|
...
Here's a simple CIMI weight archetype (derived / hacked from a Results4Care modelGithub source):
Structural view | Structural view + RM types + codes |
---|---|
...
Now the simple case: we want to just record a Weight on its own. We do that with a Weight template (remember in ADL/AOM 1.5, a template is needed for a data-set, even in the degenerate case where the only contents are just one archetype) (Github source):
Source | Flattened - same as archetype | Paths |
---|---|---|
...
The most obvious way to model BMI is probably as an archetype that contains its own BMI data point(s), plus direct inclusions (i.e. not via slots) of the Weight and Height archetypes. We'll need a template as well. Let's look at the archetype first (Github source).
Structure | ADL Source |
---|---|
We now have a compound structure, so the root RM type is a COMPOUND_ENTRY. It contains under 'parts' the two INDIVISIBLE_ENTRY Height and Weight archetypes.
Now the template, in source and flattened form (Github source).
Template ADL source | Flattened structure | Flattened paths |
---|---|---|
...
The first thing we would need would be a panel archetype, containing slots for inserting panel item archetypes. Here is a somewhat contrived one - a 'GP' panel (Github source).
'GP' Panel Archetype structure | |
---|---|
Now we need to define an actual panel 'GP physical exam' - this will be a template that 'fills' the slots with a particular choice of archetypes. Here we'll use height, weight, and another archetype I have on hand, heart rate (Github source).
'GP phys exam' panel structure | Flattened |
---|---|
...