# Composition Archetypes are generated with atcode in EventContext

**URL:** https://discourse.openehr.org/t/composition-archetypes-are-generated-with-atcode-in-eventcontext/3202
**Category:** Archetype Designer
**Created:** [16 November 2022 10:59 UTC](https://discourse.openehr.org/t/composition-archetypes-are-generated-with-atcode-in-eventcontext/3202 "2022-11-16T10:59:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![stefanspiska](https://discourse.openehr.org/user_avatar/discourse.openehr.org/stefanspiska/32/819_2.png) [@stefanspiska](https://discourse.openehr.org/u/stefanspiska)
#### Post date: [16 November 2022 10:59 UTC](https://discourse.openehr.org/t/composition-archetypes-are-generated-with-atcode-in-eventcontext/3202/1 "2022-11-16T10:59:28Z")

</div>

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

```auto
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

```auto
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.
