You're (unintentionally) circling back to discussions re AQL in the last SEC meeting in Slovenia (I was sitting in remotely)
What you're asking for can be accomplished in a number of ways at the AQL level, all of which would require changes to AQL specs and implementations. I'm always happy to discuss these but I suspect it deserves its own thread :) Hint for subject: How to resolve object references with AQL? All the best Seref On Mon, Aug 20, 2018 at 10:21 AM, Ian McNicoll <[email protected]> wrote: > Yup but AQL is so cool for this kind of thing :) > > I still want to do > > Select c FROM EHR Contains folder x contains composition c > > since logically folder x contains compositions. > > 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 Mon, 20 Aug 2018 at 10:14, Thomas Beale <[email protected]> > wrote: > >> Well if you have access to a Folder, you don't need to do an AQL query, >> you can just retrieve the Folder structure and recurse through it, >> picking up direct refs to VERSIONED_COMPOSITIONs. >> >> Creating Folders from the data on the other hand requires writing some >> queries that look for admissions and discharges, matching them up, and >> generating a Folder for each pair, named after the institution and/or >> dates of the stay. A bit messy, but not hard to do, if one wants to >> post hoc add Folders to 'old' EHRs that never had them. >> >> - thomas >> >> >> On 20/08/2018 10:07, Ian McNicoll wrote: >> > Thanks Thomas, >> > >> > What are your thoughts on the AQL example I foolishly guessed at :( >> > and that Seref quite correctly rejected!! >> > >> > How would/should we do... >> > >> > Select all compositions referenced by Folder x. >> >> >> _______________________________________________ >> 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 > >
_______________________________________________ openEHR-technical mailing list [email protected] http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org

