

def filter(self, case):
    return (has_delivered_at_all(case) and (getattr(case, 'family_planning_type', '') in ('no_fp_at_delivery', 'no_fp_adopted_at_delivery')) and get_add(case))

dataset/ETHPy150Open dimagi/commcare-hq/custom/bihar/calculations/familyplanning.py NoFP.filter/original