def yesterday(self): return (get_utcnow() - relativedelta(days=1)).date()
) refusedmember = Recipe(RefusedMember, ) undecidedmember = Recipe( UndecidedMember, report_date=None, ) movedmember = Recipe(MovedMember, ) deceasedmember = Recipe(DeceasedMember, ) htcmember = Recipe(HtcMember, ) # defaults should match defaults on householdmember enrollmentchecklist = Recipe( EnrollmentChecklist, report_datetime=get_utcnow, dob=(get_utcnow() - relativedelta(years=25)).date(), part_time_resident=YES, initials='EW', gender=FEMALE, household_residency=YES, has_identity=YES, citizen=YES, literacy=YES, guardian=NOT_APPLICABLE, confirm_participation=NOT_APPLICABLE, )
def four_weeks_ago(self): return (get_utcnow() - relativedelta(weeks=4)).date()
def three_months_ago(self): return (get_utcnow() - relativedelta(months=3)).date()
def last_year(self): return (get_utcnow() - relativedelta(years=1)).date()
def next_month(self): return (get_utcnow() + relativedelta(months=1)).date()
fake.add_provider(DateProvider) # fake.add_provider(EdcLabProvider) cancer = Recipe(Cancer, ) cd4history = Recipe( Cd4History, record_available=YES, last_cd4_count=400, last_cd4_drawn_date=date.today(), ) ceaenrollmentchecklist = Recipe( CeaEnrollmentChecklist, report_datetime=get_utcnow(), citizen=YES, legal_marriage=NO, marriage_certificate=NO, marriage_certificate_no='123456789', community_resident=YES, enrollment_reason='CD4 < 50', cd4_date=date.today(), cd4_count=400, opportunistic_illness='Tuberculosis', diagnosis_date=fake.last_year, date_signed=fake.last_year, ) circumcision_benefits = Recipe(CircumcisionBenefits, name='Improved hygiene ',