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
openEHR-technical@lists.openehr.org
http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org

Reply via email to