Esempio n. 1
0
 def filter(self, case):
     return is_pregnant_mother(case) and get_edd(case) and couple_interested_in_fp(case)
Esempio n. 2
0
 def total(self, case):
     yield get_edd(case)
Esempio n. 3
0
 def sortkey(self, case, context):
     return get_edd(case) or datetime.datetime.max.date()
Esempio n. 4
0
 def total(self, case):
     yield get_edd(case) - self.window / 2
Esempio n. 5
0
 def has_edd(self, case):
     return is_pregnant_mother(case) and get_edd(case) and not get_add(case)
Esempio n. 6
0
 def filter(self, case):
     return is_pregnant_mother(case) and get_edd(case)