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