-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query DSL replacing EligibilityModel workflow #312
Query DSL replacing EligibilityModel workflow #312
Conversation
Trying out filtrex to parse boolean algebras, which would be a possible addendum to (or replacement for) the simpler require/exclude mechanisms currently in place for characteristics/conditions and languages. Also made some simple language changes.
We can now do AND and OR queries on Bitfields using a special manager that I have created, with two methods: has_one_of and has_all_of.
This is a work in progress - remaining todos include: 1) Integrating with view logic 2) Redesigning eligibility view 3) Further specifying grammar to handle gender specifications more naturally, as well as better handling of gestational age.
Here we are, wired up all the way through the frontend! TODO: 1) deprecate WIP eligibility view. I'm sure we'll be able to find a use for some of that code later :) 2) Modify docs to house query DSL and provide a link inline with the study edit and create forms.
In Study Edit and Study Create forms.
These should be bulked up a bit - in particular the complex condition.
Compound OR and AND expressions allowed. Tests included.
I see we're checking the criteria string to check that the form is as expected (so that I get e.g. For instance I can currently set eligibility to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor questions/comments only. This is great!
Much more strict.
Docs link for criteria expression - https://lookit.readthedocs.io/en/develop/researchers-set-study-fields.html#criteria-expression |
WIP, fixes #141