Description
Currently the query builder allows selecting And or Or conditions, for example (Person.Birth_Dt_Tm <= 2000 AND Diagnoses.Diagnosis in ('D1', 'D2')). However, nested conditions are not possible, for example:
(Person.Birth_Dt_Tm <= 2000 AND (Diagnoses.Diagnosis in ('D1', 'D2') OR Procedures.Procedure in ('P1', 'P2')))
Additional context
I'm anticipating that this sort of query could be needed in many common cohort queries, for example in a cohort similar to the query above, which is selecting adult patients, who have certain diagnoses OR procedures.
Description
Currently the query builder allows selecting And or Or conditions, for example
(Person.Birth_Dt_Tm <= 2000 AND Diagnoses.Diagnosis in ('D1', 'D2')). However, nested conditions are not possible, for example:Additional context
I'm anticipating that this sort of query could be needed in many common cohort queries, for example in a cohort similar to the query above, which is selecting adult patients, who have certain diagnoses OR procedures.