Well, at least the reference model makes sense to me.
I can build EHR structures like no problem now in my demo.
But reading the Archetypes (definition) makes me think so much is
missing from the ADL. Let's take a simple case study.
Compositions are the primary data container in an EHR.
openEHR-EHR-COMPOSITION.encounter.v1
as shown in the definition:
26 definition
27 COMPOSITION[at0000] matches { -- Encounter
28 category matches {
29 DV_CODED_TEXT matches {
30 defining_code matches {[openehr::433]}
31 }
32 }
33 }
there is one required attribute listed; "category".
Now if you go to 5.4.1 in the EHR IM document you will see that the
following attributes are listed (ignoring the ones inherited from
Locatable for now.):
content - not required
context - not required
composer - required
language - required
territory - required
So my question is. If the oft quoted phrase "an archetype is a maximal
data set of a clinical concept" is true. Then were are these other
attribute values to come from?
I have found many examples of of these missing attributes and in this
case I can say that the other three required ones maybe should come from
the system its self. But shouldn't they at least be listed in the ADL?
Let's look at an archetype where the data cannot possibly come from the
system. openEHR-EHR-INSTRUCTION.procedure.v2draft
26 definition
27 INSTRUCTION[at0000] matches { -- Procedure instruction
28 activities cardinality matches {0..*; unordered} matches {
29 ACTIVITY[at0002] occurrences matches {0..1} matches { -- new
activity
30 action_archetype_id matches {/procedure\.v2/}
31 description matches {
32 allow_archetype ITEM_TREE occurrences matches {0..*} matches {
33 include
34 archetype_id/value matches {/procedure\.v3/}
35 }
36 }
37 }
38 }
39 }
40
Now here we see that this Instruction (EHR IM 8.3.6) provides for a list
of "activities" (not required). But the one required attribute
"narrative" is not present in the ADL. Why? Now, it seems to me to
allow for a slot for an ACTION archetype but it doesn't have a narrative
attribute nor does it's parent class CARE_ENTRY (8.3.3).
There are many of these so I must be missing something basic. Because
it seems to me that I as a developer (not the clinical expert) would
have to decide that these required attributes are on the UI in order to
develop RM compliant data.
If something like that is true then I think we may have a problem as I
understand it there are people out there implementing what they think
are openEHR compliant archetype data based on other data models just
using the ADL as a guide. In fact I once thought that this was possible
from OpenMRS. But it seems to me that archetypes expressed in ADL are
NOT the maximal data set for a clinical concept.
Help me understand?
Cheers,
Tim
