Hi Dileep, I do this by querying on the name attribute of the root composition archetype - see the examples in
https://github.com/RippleOSI/Ripple-openEHR/blob/master/docs/bindings/Current%20Ripple%20Headings/Clinical%20notes/clinical_notes.md You can of course query on multiple names. where a/name/value matches {'Clinical Notes', 'Other Clinical Notes'} Going forward I would expect the list of allowable composition names to come from a controlled vocabulary or even a local terminology. Ian Dr Ian McNicoll mobile +44 (0)775 209 7859 office +44 (0)1536 414994 skype: ianmcnicoll email: [email protected] twitter: @ianmcnicoll Co-Chair, openEHR Foundation [email protected] Director, freshEHR Clinical Informatics Ltd. Director, HANDIHealth CIC Hon. Senior Research Associate, CHIME, UCL On Fri, 17 Aug 2018 at 10:54, Dileep V S <[email protected]> wrote: > Hi, > > Can you write an AQL to query only on a list of specific compositions? Is > there any sample for reference? > > I am trying to create the concept of clinical encounters and maintain a > collection of compositions per encounter. I am using AQL to retrieve data > per encounter and need to pass the corresponding set of compositions. > > Thanks in advance > > regards > > Dileep V S > *Founder* > HealtheLife Ventures LLP > m: +91 9632888113 > a: 106, Innovation Centre, IIIT, Electronics City, Bangalore 560100 > w: healthelife.in e: [email protected] > _______________________________________________ > openEHR-technical mailing list > [email protected] > > http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org >
_______________________________________________ openEHR-technical mailing list [email protected] http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org

