AQL on versioned compositions

Ian McNicoll ian at
Tue Oct 30 05:32:25 EDT 2018

Hi Dileep,

It should be possible to query on versioned compositions but I feel a bit
uncomfortable about using versioned data this way. For event-type
compositions, I would only expect versions to be created as a result of an
error correction, not as part of routine recording. For persistent-type
compositions, new versions are routinely created but only when the previous
version is reallyof little interest e.g summaries, status-tracking.

I'm uneasy about your suggested approach. Can you spell out an example/

Dr Ian McNicoll
mobile +44 (0)775 209 7859
office +44 (0)1536 414994
skype: ianmcnicoll
email: ian at
twitter: @ianmcnicoll

Co-Chair, openEHR Foundation ian.mcnicoll at
Director, freshEHR Clinical Informatics Ltd.
Director, HANDIHealth CIC
Hon. Senior Research Associate, CHIME, UCL

On Tue, 30 Oct 2018 at 08:45, Dileep V S <dileep at> wrote:

> Hi,
> We are implementing virtual folders to organize compositions as per
> episodes of care and encounters. The plan is to keep track of versioned
> compositions in encounters to capture the change of information(Complaints
> and diagnosis getting resolved across encounters inside an episode).This
> will allow us to view the compositions as they were in any encounter and
> not the latest version always.
> For this we need to be able to query specific versions of compositions
> using aql. Can some body point me to the documentation or examples of how
> to do this?
> regards
> Dileep V S
> *Founder*
> HealtheLife Ventures LLP
> m: +91 9632888113
> a: 106, Innovation Centre, IIIT, Electronics City, Bangalore 560100
> w:  e: dileep at
> _______________________________________________
> openEHR-technical mailing list
> openEHR-technical at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the openEHR-technical mailing list