In order to build a filter rule from scratch, we should have universal quantifiers so that we can start with FilterRule.all(), and using and/or to build out more complex logic.
We should also have a nicer string format separate from the repr string so that we can potentially display the filter rule used in a User readable format.
Description of changes
Added FilterRule.all() and FilterRule.none() class methods that create the universal quantifier rules.
Added a new __str__ method with nicer strings
Updated filter_rule_from_cohort_dictionary to allow starting from None by using FilterRule.all() as a base.
Overview
In order to build a filter rule from scratch, we should have universal quantifiers so that we can start with FilterRule.all(), and using and/or to build out more complex logic.
We should also have a nicer string format separate from the repr string so that we can potentially display the filter rule used in a User readable format.
Description of changes
FilterRule.all()
andFilterRule.none()
class methods that create the universal quantifier rules.__str__
method with nicer stringsfilter_rule_from_cohort_dictionary
to allow starting from None by using FilterRule.all() as a base.Author Checklist
changelog/ISSUE.TYPE.rst
files; see changelog/README.md.