def _to_model_clause(self): return aa.Clause(criteria=aa.Criteria( variable_name=self.variable_name, include=self.include, logic="OR", ignore_case=False, text_match_type="Is", value_rules=[ aa.ValueRule(list_rule=aa.ListRule(list="\t".join(vals), variable_name=var_name)) for var_name, vals in self.value_sets.items() ], table_name=self.table_name, name=self.label, ))
def _to_model_clause(self): return aa.Clause(criteria=aa.Criteria( variable_name=self.variable_name, include=self.include, logic="OR", ignore_case=not self.match_case, text_match_type=self.match_type, value_rules=[ aa.ValueRule(list_rule=aa.ListRule( list="\t".join(self.values), variable_name=self.variable_name, )) ], table_name=self.table_name, name=self.label, ))
def _to_model_clause(self): return aa.Clause(criteria=aa.Criteria( variable_name=self.variable_name, include=self.include, logic="OR", ignore_case=False, text_match_type="Is", value_rules=[ aa.ValueRule( predefined_rule="CustomTimeRule", time_rule=aa.TimeRule(range_low=self.start, range_high=self.end), ) ], table_name=self.table_name, name=self.label, ))
def _to_model_clause(self): return aa.Clause(criteria=aa.Criteria( variable_name=self.variable_name, include=self.include, logic="OR", ignore_case=False, text_match_type="Is", value_rules=[ aa.ValueRule( list_rule=aa.ListRule( list="\t".join(self.values), variable_name=self.variable_name, ), predefined_rule="AdhocDates", ) ], table_name=self.table_name, name=self.label, ))
def _to_model_clause(self): return aa.Clause(criteria=aa.Criteria( variable_name=self.variable_name, include=self.include, logic="OR", ignore_case=False, text_match_type="Is", value_rules=[ aa.ValueRule( predefined_rule="CustomRule", date_rule=aa.DateRule( pattern_frequency="Daily", pattern_interval=1, pattern_days_of_week=["All"], **self._create_range_parameters(), ), ) ], table_name=self.table_name, name=self.label, ))