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