-
Notifications
You must be signed in to change notification settings - Fork 2
Introduced COHORT_LABEL field in iteration rules #103
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
Introduced COHORT_LABEL field in iteration rules #103
Conversation
ba8f7b4 to
7f199f3
Compare
|
|
||
| class IterationRuleFactory(ModelFactory[rules.IterationRule]): ... | ||
| class IterationRuleFactory(ModelFactory[rules.IterationRule]): | ||
| attribute_target = None |
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.
no random values will be ret for target_attribute and cohort_label.
ayeshalshukri1-nhs
left a comment
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.
LGTM
| ir | ||
| for ir in iteration_rule_group | ||
| if ir.type in (rules.RuleType.filter, rules.RuleType.suppression) | ||
| and (ir.cohort_label is None or (ir.cohort_label in self.person_cohorts)) |
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.
This looks like it will work for the case of multiple rules, with the same priority, that are executed in an AND
ayeshalshukri1-nhs
left a comment
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.
LGTM (reviewed non draft)
Description
Context
Type of changes
Checklist
Sensitive Information Declaration
To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.