@ssmusoke, if any patients are left out of the queries that you describe, it is a bug. Can you please try to demonstrate this, either in a failing unit test, on a demo server, or elsewhere? I am not aware of any problems with the AgeCohortDefinition, which is a pretty fundamental building block in reporting that is very widely used.