# AQL for all specializations of an archetype **Category:** [Technical (archive)](https://discourse.openehr.org/c/technical-archive/156) **Created:** 2019-05-30 08:57 UTC **Views:** 3 **Replies:** 4 **URL:** https://discourse.openehr.org/t/aql-for-all-specializations-of-an-archetype/14412 --- ## Post #1 by @system Hi, Does AQL allow defining containment so that the basic archetype and all it's specializations can be included in the query? f yes can somebody share the syntax? regards --- ## Post #2 by @system It should do - something like this works on ThinkEhr. I'm not sure if other AQls support it SELECT o FROM EHR e CONTAINS ACTION a[openEHR-EHR-ACTION.procedure.v1] CONTAINS OBSERVATION o[openEHR-EHR-CLUSTER.device-invasive*] Ian --- ## Post #3 by @system Thanks Ian, Can the wildcard(*) be used for different versions of the archetype also regards --- ## Post #4 by @system I assume so, and possibly for specialisations. I would be a bit wary about using it for different major versions of an archetype since by definition at least some of the paths may have changed. Ian --- ## Post #5 by @system thanks --- **Canonical:** https://discourse.openehr.org/t/aql-for-all-specializations-of-an-archetype/14412 **Original content:** https://discourse.openehr.org/t/aql-for-all-specializations-of-an-archetype/14412