Issues setting constraints to INSTRUCTIONS in the Archetype Editor

Hi,

I created an INSTRUCTION archetype, under Definition > Current Activity there is a checkbox “ordered” that seems not to be working since when I check it I see the same on the ADL:

activities cardinality matches {0..*; unordered}

This is a question really, since INSTRUCTION.narrative is DV_TEXT, it can also be DV_CODED_TEXT (looking at the specs I couldn’t find anything against it). If this is correct, shouldn’t the AE provide a feature to set the narrative as coded text?

BTW, I’m using v2.2.905 Beta.

Thanks!

Hi Pablo,

The ordered checkbox actually applies to the ITEM_TREE within the activity

INSTRUCTION[at0000] matches { – Care Plan

activities cardinality matches {0..*; unordered} matches {

ACTIVITY[at0001] occurrences matches {0..1} matches { – Activity

action_archetype_id matches {/openEHR-EHR-ACTION.care_plan.v1/}

description matches {

ITEM_TREE[at0004] matches { – Tree

items cardinality matches {0..*; ordered} matches {

ELEMENT[at0017] occurrences matches {0..1} matches { – Care Plan Name

What is your use-case for strict ordering of activities?

With regard to ‘narrative’ - that should definitely just be free text - it is intended as a pure narrative representation of the key parts of the instruction as a ‘sanity check’ for complex orders. It should not be CODED_TEXT, and arguably just ‘string’.

Ian

Thanks Ian,

Maybe if narrative can’t be coded text, we might want to add that clarification to the specs or, as you suggest, use string as type.

What do members of the SEC think about this?