ARCHETYPE TUTORIAL I
Step 1. Creating the Archetype
INTRODUCTION
This tutorial guide is a supplement to the Archetypes guide, utilizing existing models to provide a step-by-step demonstration on how to design basic archetypes for different types of clinical decision support (CDS) applications using the Archetype Designer.
Before starting the modelling process, it is of vital importance to understand that the model of a clinical concept must be constructed based upon a solid scientific basis. It is therefore essential to thoroughly review the available scientific literature prior to commencing the construction of the archetype to minimize the potential risk of errors. Once the model has been published, users should be able to quickly access the scientific material upon which the model is based upon; always make sure to list the references.
Resources containing more in-depth information are available on the Links & Resources page. There is also a link to Cambio Healthcare Systems CDS Apps Showcase Page on GitHub available in this section, containing over 600 demo applications (using 600 + archetypes and guidelines).
The guide has been written by Cambio CDS. If you have any questions or would like to provide feedback on this document, please send us a message by visiting the Contact Us page.
CALCULATIONS
This tutorial will focus solely on archetypes for CDS applications with a primary function to perform calculations. Archetypes used in calculation applications generally make use of the quantity data element that stores both numerical values AND units (for more information on the quantity data element, see the archetype introduction guide).
Examples of clinical applications using calculations are: albumin/creatinine ratio, Basal Metabolic Rate, Body Mass Index, Body Surface Area, corrected calcium, fractional excretion of sodium/urea, Ideal Body Weight, Glomerular Filtration Rate, Mean Arterial Pressure, Parkland formula, and TIMI Risk Index. This tutorial will focus on the clinical concept Ideal Body Weight (IBW). All of the applications mentioned are available in our gdl-guideline-models GitHub repository and can be tested via the CDS Apps Overview page in the Links and Resources section.
Ideal Body Weight (IBW)
To demonstrate how to create archetypes with the intention of being used in CDS applications performing calculations, we will use ideal body weight. The IBW application uses the Devine formula to calculate the ideal body weight:
- Ideal Body Weight (men) = [50kg + 2.3kg * ( Height(in) – 60 inches )]
- Ideal Body Weight (women) = [45.5kg + 2.3kg *( Height(in) – 60 inches )]
A screenshot of the Ideal Body Weight CDS application is presented below.
The IBW guideline (IBW.v1) is composed of three different archetypes:
The height.v1 archetype contains patient height (quantity data element), and the basic_demographic.v1 archetype contains patient gender (coded text data element). The IBW guideline uses the patient gender to determine which of the two formulas to calculate, and the patient height as input for the equation. The resulting value is then stored in the ideal_body_weight.v1 (quantity data element) archetype along with the correct unit. It is this archetype that we are going to model in this tutorial. All of the archetypes can be downloaded from the gdl-guideline-models GitHub repository.
Step 1. Creating the Archetype
After logging in to the Archetype Designer and selecting a repository, click on the New button, select the appropriate RM type and fill in the Concept field in the dialog box as shown below.
Create the archetype:
- Choose OBSERVATION from the RM type drop-down menu (or directly from the New button).
- Name the archetype in the Concept text box.
- Click Create to create the archetype.
Recall from the archetype introduction guide that observation archetypes are used to document and store data components and values related to a clinical concept that can be observed or gathered at a specific point in time.
Step 2. Adding Data Elements
To add data elements to the archetype, select the Tree tab. The first data element we are going to add is the quantity data element. Follow the instructions illustrated below to perform this task.
Add quantity element:
- Select the data node under Any event
- Click on the Q (quantity element) in the toolbar.
- Name the element: “Ideal Body Weight”.
- Use the plus button to add both kg and Ib as units of mass.
- Enter a description of the element – in this case, a description of the Devine formula used for calculating IBW has been added.
The reason for choosing the quantity data element for the ideal body weight is that it must be able to store both a value (integer or float data type) AND units (kg or lb). The quantity data element is the only option that meets those requirements.
Next, we are going to add a text element.
Add text element:
- Click on the T (text element) in the toolbar.
- Name the element: “Comment”.
- Select the option Free text to make the data element function as a text box where the user can enter additional information regarding the calculation of ideal body weight.
- Enter description of the element – in this case, additional information that could not be captured in other fields.
Once all the data elements have been added, a structured overview of the newly added content can be viewed under the Terminology tab along with the assigned at-codes:
It is highly recommended to use this tab when translating the data elements of the archetype at a later stage.
After this step has been completed, the foundation of the CDS application has been laid. Now, all that remains is the metadata. After the metadata have been added, we are ready to design the Ideal Body Weight guideline (IBW.v1) using the GDL2 Editor.
Step 3. Adding Metadata
Once the archetype has been modelled, detailed information about the model – metadata – should be added to the archetype. This provides the user with key facts about the clinical concept related to the specific model.
To add metadata, begin in the Tabbed tab by writing a short summary of the clinical concept in the Concept description field as shown below. The Concept name can also be adjusted if needed.
- Add keywords.
- In the Purpose section, enter a descriptive text explaining the purpose of the clinical concept.
- In the Use section, detailed information regarding the clinical concept can be inserted. In this case – how the ideal body weight is calculated for men and women respectively along with some additional information. When applicable, information on score interpretation and clinical significance should also be added here.
- The Misuse section should contain information on potential misuse of the archetype. If there are any restrictions on the use of the archetype in specific settings or contexts, they should be entered here.
- Add the references relevant to Ideal Body Weight as listed below:
- Devine BJ. Gentamicin therapy. Drug Intell Clin Pharm. 1974;8:650–655.
- Pai MP, Paloucek FP. The origin of the “ideal” body weight equations. Ann Pharmacother. 2000 Sep;34(9):1066-9. doi: 10.1345/aph.19381. PMID: 10981254.
The next tab is the Attribution tab. This is where information about the: archetype lifecycle, author and copyright should be added.
If there are several modelers working on the archetype, they should be added as Contributors.