Composition Archetypes are generated with atcode in EventContext

If I create a new Composition Archetype then ehr generated adl code is

definition
	COMPOSITION[at0000] matches {    -- test
		category matches {
			DV_CODED_TEXT[at0001] matches {    -- Coded text
				defining_code matches {
					[openehr::433]
				}
			}
		}
		context matches {
			EVENT_CONTEXT[at0002] matches {*}    -- Event Context
		}
	}

but I think this should be

definition
	COMPOSITION[at0000] matches {    -- test
		category matches {
			DV_CODED_TEXT[at0001] matches {    -- Coded text
				defining_code matches {
					[openehr::433]
				}
			}
		}
		context matches {
			EVENT_CONTEXT matches {*}    -- Event Context
		}
	}

since the path to context is /context and not /context[at0001]. This matches also what I see in other composition archetypes.

2 Likes