@property
    def anc_completed(self):
        lmp = self.lmp
        anc_date_1 = self.anc_date_1
        if lmp != EMPTY_FIELD and anc_date_1 != EMPTY_FIELD:
            try:
                return _("yes") if CaseDisplay.parse_date(self, self.anc_date_1) < (CaseDisplay.parse_date(self, self.lmp) + timedelta(days=12*7)) else _("no")
            except AttributeError:
                return _("Bad date format!")
        else:
            return EMPTY_FIELD
dataset/ETHPy150Open dimagi/commcare-hq/custom/bihar/reports/display.py/MCHMotherDisplay.anc_completed/original