Saturday, March 15, 2008

The Anatomy of the Blood Pressure Archetype


Hi there!
Lets hit the road...


Firstly, I will add two elements to the previous list, then list the non-optional components of archetypes, and then proceed to discuss each node.


2 additional elements


The two additions are: is_controlled, whose value is boolean (true or false);
and parent_archetype_id , whose value is the archetype from which the
archetype in consideration was derived.


Non-optional components

All archetypes must have the following portions, as a minimum:

archetype_id, adl_version, concept, original language, definition, ontology and revision_history.

As stated in the ADL2 document, the order is not significant.


We will now proceed to discuss each node:

1. adl_version

which has a value of v1 in the blood pressure archetype

v1 representing version one.
adl is the language used in authoring 'raw' archetypes (remember?)

2. concept

at0000 is its value in the blood pressure archetype

at0000 represents the archetype's central concept, which is blood pressure.
Each archetype is defined by a concept.
All concepts used in an archetype are stored in the ontology section.

More of this ontology and concepts stuff in my next post

I guess it will be possible to dehydrate these concepts onto concept proposals in OpenMRS...
or kind of mass load concepts from here...
just initial thoughts...

I have been trying to upload this long bloodpressure.xml archetype here without success. I think blogspot has turned off uplaods for security reasons...
would need to sort this out soon...

Sunday, March 2, 2008

Anatomy of an archetype

An archetype is a well-structured (formal) model of clinical content. Archetypes are designed to be used as a basis for structuring data eg building forms and building queries (xpath-like).

They are written in a language called the archetype definition language (ADL). ADL archetypes can be converted to xml.

Parts of an archetype

An archetype consists of the following sections (though some sections are not mandatory):

(Please see diagram within ADL2 document here)

archetype_id

adl_version

concept

original_language

translations

description

declaration

definition

invariant

ontology

revision_history


Lets start dissecting the blood pressure archetype xml

See below: