# Does aql support multiple ehrids? **Category:** [Technical (archive)](https://discourse.openehr.org/c/technical-archive/156) **Created:** 2017-10-27 06:20 UTC **Views:** 1 **Replies:** 3 **URL:** https://discourse.openehr.org/t/does-aql-support-multiple-ehrids/14364 --- ## Post #1 by @system Hi, I have tested aql with single ehr and across all ehrs(without any ehrid). Can we pass an array of ehrids in an aql to limit the query to selected ehrs? regards --- ## Post #2 by @system Marand THinkEHR supports this ... WHERE e/ehr_id/value MATCHES { 'e241715b-3ca7-435e-a474-718579aadaa2', '0e7ac1d6-2dc6-40ec-8259-ac9f9a9727d1', 'ed74f788-4bd6-4e47-ab98-211643cc4b0c'} --- ## Post #3 by @system Thanks Ian Regards Dileep V S Founder HealtheLife Ventures LLP +91 9632888113 103, Innovation Centre, IIIT, Electronics City, Bangalore 560100, [healthelife.in](http://healthelife.in) --- ## Post #4 by @system There is a lot of use-cases involving multiple EHRs. The answer from Ian is defined in AQL specification. In an upcoming version of the REST API I think population queries will be added to give client even more control on this kind of use-cases. We have already implemented this a while ago. Vennlig hilsen Bjørn Næss Produktansvarlig DIPS ASA Mobil +47 93 43 29 10 --- **Canonical:** https://discourse.openehr.org/t/does-aql-support-multiple-ehrids/14364 **Original content:** https://discourse.openehr.org/t/does-aql-support-multiple-ehrids/14364