Esempio n. 1
0
    def visit_exclusion_rule(self, pre_processed_context: dict,
                             exclusion_context: DotMap) -> None:

        if pre_processed_context['Member']['Age'] >= 66:
            if self.is_enrolled_in_snp(pre_processed_context):
                exclusion_context.SNP.Excluded = True
            if self.is_long_term_institution(pre_processed_context):
                exclusion_context.LTI.Excluded = True
            if self.is_frailty_and_advanced_illness(pre_processed_context):
                exclusion_context.FrailtyAdvancedIllness = True