Why can't CLUSTER.dosage.v2 be imported into the SLOT?

During design a medication list (openEHR-EHR-SECTION.medication_list.v0) to document medication use statements, when I’m trying to drag openEHR-EHR-CLUSTER.dosage.v2 into the SLOT “Structured dose and timing”, the Ocean Template Designer tells me:

image

The SLOT “Structured dose and timing” has a Constraint:

openEHR-EHR-CLUSTER\.timing_daily(-[a-zA-Z0-9_]+)*\.v1|openEHR-EHR-CLUSTER\.timing_nondaily(-[a-zA-Z0-9_]+)*\.v1|openEHR-EHR-CLUSTER\.therapeutic_direction(-[a-zA-Z0-9_]+)*\.v1|openEHR-EHR-CLUSTER\.dosage(-[a-zA-Z0-9_]+)*\.v2

Does the Ocean Template Designer refer to this constraint which would prevent the dragging/importing?

When right-clicking the SLOT, Dosage v2 appears on the top:

BTW, in the recommendation list, neither the top two CLUSTERs could be imported due to the same reason but the other two could.

The RM doesn’t allow a CLUSTER inside a SECTION. A CLUSTER can only be inside some ITEM_STRUCTUREs and inside other CLUSTERs.

1 Like

Thanks, @pablo. But my Composition Template has a structure as follows:

Composition: openEHR-EHR-COMPOSITION.report.v1
Section: openEHR-EHR-SECTION.medication_list.v0
----Observation: openEHR-EHR-OBSERVATION.medication_statement.v0
------SLOT: Structured dose and timing (where openEHR-EHR-CLUSTER.dosage.v2 is needed)

1 Like

Hi Lin,

This document should help with usage of the various dose and timing components

https://ckm.openehr.org/ckm/documents/1013.17.119

An example of a basic pattern is

Medication order
  Medication item: Atenolol 40mg tabs
  Therapeutic direction..
    Direction sequence: 0
    Dosage administration..
      Pattern sequence: 0
      Dose amount: 1
      Dose unit: tablet
      Timing - daily..
        Named time event: in the morning
    Direction duration: Indefinitely

So start with a therapeutic direction cluster in the top slot.

1 Like

And if you want ot use the Medication List Section (I would not) then the Medicaiton order would slot into Medications slot with in the Section.

Many thanks, @ian.mcnicoll. A valuable pattern document :heart:
I’ll give it try immediately.

Haha, EXACTLY as you said.

1 Like

For now, it seems like I don’t have any other choice but to do so.

My template requirement (from my exercise modeling scenario) is:

Develop a Composition template for a health checkup report which has many top-level sections . Medication List and Vaccination List are just two sections among them.

The structure above is my current design for the Medication List section. Apprently, it doesn’t cover all the needs yet. My thoughts on the other section Vaccination List are much the same. And such a modeling exercise looks like it’s getting bogged down…

Sections can be useful, but we nearly always just use the SECTION.ad_hoc and rename to suit the local use.

1 Like

Yes, most of the sections are renamed from SECTION.ad_hoc. Initially, All of them were.
I thought SECTION.medication_list and SECTION.immunisation_list would be more specific and therfore suitable.

So far, the best attempt to cover as many data points as possible. For this, the constraint on the slot “Vaccine details” in the Archetype “Vaccination summary” have even been temporarily changed as highlighted, i.e., from /openEHR-EHR-CLUSTER.medication(-[a-zA-Z0-9_]+)*.v1/ to /openEHR-EHR-CLUSTER.medication(-[a-zA-Z0-9_]+)*.v2/.

But still got the error (Error loading …):

And in the TD, when right-clicking the CLUSTER “Medication details (v2)” to edit the Archetype, the Archetype Editor gives several RED errors :x: as follows. It looks like it can’t do some data types conversions. Could it be the cause of the loading error above?

image

@sebastian.garde -any thoughts?

		ELEMENT[at0153] matches {    -- Strength numerator
						value matches {
							DV_QUANTITY matches {*}
						}
					}

Is the ‘open’ Quantity the problem?

1 Like

@linforest @ian.mcnicoll I don’t have any intimate knowledge of Archetype Editor and have not used it in a long time, but from the error message, yes, it sounds a bit like that might be a problem.

For Template Designer related issues, you can use
https://oceanehr.atlassian.net/servicedesk/customer/portal/5

2 Likes

Thanks a lot, @sebastian.garde.

I guess I had to use openEHR Archetype Designer Online to complete the above template instead, but the login to this online tool is not very stable (which is one of the reasons why I didn’t use this tool in the first place).

As of now, the template editing process utilizing the online tool is relatively smooth, although the saving process is a bit time-consuming. Is the slowness of the saving process due to local traffic throttling? But not ervery time.

image

I think it must be a local issue. Occasionally there is a slow save but mostly it is pretty usable.

1 Like