# Standard syntax for including Incomplete data?

**URL:** <https://discourse.openehr.org/t/standard-syntax-for-including-incomplete-data/2159>\
**Category:** AQL\
**Created:** [6 December 2021 16:02 UTC](https://discourse.openehr.org/t/standard-syntax-for-including-incomplete-data/2159 "2021-12-06T16:02:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joseph.kane](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@joseph.kane](https://discourse.openehr.org/u/joseph.kane)\
**Post date:** [6 December 2021 16:02 UTC](https://discourse.openehr.org/t/standard-syntax-for-including-incomplete-data/2159/1 "2021-12-06T16:02:52Z")

</div>

I’m looking into how to implement the changes for Incomplete data from [SPECRM-97](https://openehr.atlassian.net/browse/SPECRM-97), and I am not seeing anything in the AQL guides for the specific syntax for including this data in queries. There were a few thread I found with recommendations, but no consensus I saw.

What is the recommended syntax, and should the AQL guide be updated to reflect it?

---

<div class="post-metadata">

**Author:** ![sebastian.iancu](https://discourse.openehr.org/user_avatar/discourse.openehr.org/sebastian.iancu/32/31_2.png) [@sebastian.iancu](https://discourse.openehr.org/u/sebastian.iancu)\
**Post date:** [6 December 2021 20:23 UTC](https://discourse.openehr.org/t/standard-syntax-for-including-incomplete-data/2159/2 "2021-12-06T20:23:54Z")

</div>

There is a related ticket for this: [[SPECQUERY-24] AQL query processor should ignore data with lifecycle\_state = incomplete. - openEHR JIRA](https://openehr.atlassian.net/browse/SPECQUERY-24) and is scheduled for next release of AQL specs.  
On the other and the current specs already allows querying for VERSION, from where you should be able to refer to lifecycle\_state. There is also a topic on this: [Lifecycle\_state in EHRbase - #5 by ian.mcnicoll](https://discourse.openehr.org/t/lifecycle-state-in-ehrbase/1567/5).
