# AOM: how do you differentiate between sibling C\_OBJECT if both are ARCHETYPE\_ROOT and have the same archetype\_id?

**URL:** https://discourse.openehr.org/t/aom-how-do-you-differentiate-between-sibling-c-object-if-both-are-archetype-root-and-have-the-same-archetype-id/3013
**Category:** ADL
**Created:** [25 September 2022 04:20 UTC](https://discourse.openehr.org/t/aom-how-do-you-differentiate-between-sibling-c-object-if-both-are-archetype-root-and-have-the-same-archetype-id/3013 "2022-09-25T04:20:59Z")
**Posts on this page:** 1
**Showing post:** 31

<div class="post-metadata">

### Author: ![thomas.beale](https://discourse.openehr.org/user_avatar/discourse.openehr.org/thomas.beale/32/35_2.png) [@thomas.beale](https://discourse.openehr.org/u/thomas.beale)
#### Post date: [4 October 2022 08:43 UTC](https://discourse.openehr.org/t/aom-how-do-you-differentiate-between-sibling-c-object-if-both-are-archetype-root-and-have-the-same-archetype-id/3013/31 "2022-10-04T08:43:34Z")

</div>

> [@pablo](#):
>
> For both sections, the items are not constrained, just the names, then there is a need of identifying each individually

But name is constrained (at least that’s what I assume you meant with that short-hand!). ADL doesn’t differentiate between different attributes being constrained. Any constraint is a constraint.

> [@pablo](#):
>
> So in ADL2, if I understood correctly, the editor tool should mark the first one as SECTION.ad-hoc-1 and the second as SECTION.ad-hoc-2

Something like that. Maybe it could do `SECTION.ad-hoc-ovl1` and `SECTION.ad-hoc-ovl2` to make it easier to spot overlays.

> [@pablo](#):
>
> That is the border case for a whole family of test cases that show the issue at hand, and there is clearly no extra set of constraints added to neither occurrences of SECTION.ad-hoc.

See previous comment above!

> [@sebastian.garde](#):
>
> Just wanted to point you to the following Jira issue which describes a similar issue and has already created some discussion as well

Thanks Sebastian - we got close to the same point before, and indeed, Heath’s suggestion in that thread is a nice solution I think.

---

_[View the full topic](https://discourse.openehr.org/t/aom-how-do-you-differentiate-between-sibling-c-object-if-both-are-archetype-root-and-have-the-same-archetype-id/3013)._
