Exemplo n.º 1
0
 def segou_total_treated_malaria_cases(self, period):
     if self.entity.type.slug == 'cscom' or \
        self.entity.type.slug == 'district':
         report = get_report_for_element(get_report_national(period) \
                                         .sources.validated(), 0)
         return report.total_treated_malaria_cases
     else:
         report = get_report_for_element(get_report_for_slug(self.entity,
                                         period).sources.validated(), 0)
         return report.total_treated_malaria_cases
Exemplo n.º 2
0
 def segou_u5_total_malaria_death(self, period):
     if self.entity.type.slug == 'cscom' \
         or self.entity.type.slug == 'district':
         report = get_report_for_element(get_report_national(period) \
                                         .sources.validated(), 0)
         return report.u5_total_malaria_death
     else:
         report = get_report_for_element(get_report_for_slug(self.entity,
                                         period).sources.validated(), 0)
         return report.u5_total_malaria_death
Exemplo n.º 3
0
 def segou_u5_total_malaria_death(self, period):
     if self.entity.type.slug == 'cscom' \
         or self.entity.type.slug == 'district':
         report = get_report_for_element(get_report_national(period) \
                                         .sources.validated(), 0)
         return report.u5_total_malaria_death
     else:
         report = get_report_for_element(
             get_report_for_slug(self.entity, period).sources.validated(),
             0)
         return report.u5_total_malaria_death
Exemplo n.º 4
0
 def bamako_total_malaria_death(self, period):
     if self.entity.type.slug == 'cscom' or \
        self.entity.type.slug == 'district':
         report = get_report_for_element(get_report_national(period) \
                                         .sources.validated(), 1)
         print report
         return report.total_malaria_death
     else:
         report = get_report_for_element(get_report_for_slug(self.entity,
                                         period).sources.validated(), 1)
         return report.total_malaria_death
Exemplo n.º 5
0
 def segou_total_treated_malaria_cases(self, period):
     if self.entity.type.slug == 'cscom' or \
        self.entity.type.slug == 'district':
         report = get_report_for_element(get_report_national(period) \
                                         .sources.validated(), 0)
         return report.total_treated_malaria_cases
     else:
         report = get_report_for_element(
             get_report_for_slug(self.entity, period).sources.validated(),
             0)
         return report.total_treated_malaria_cases
Exemplo n.º 6
0
 def bamako_total_malaria_death(self, period):
     if self.entity.type.slug == 'cscom' or \
        self.entity.type.slug == 'district':
         report = get_report_for_element(get_report_national(period) \
                                         .sources.validated(), 1)
         print report
         return report.total_malaria_death
     else:
         report = get_report_for_element(
             get_report_for_slug(self.entity, period).sources.validated(),
             1)
         return report.total_malaria_death