Exemple #1
0
 def _first_visit_tested_positive_no_haart(self):
     healthy_visits = [enc.get_xform() for enc in self.sorted_healthy_encounters()]
     
     for healthy_visit_data in healthy_visits:
         if tested_positive(healthy_visit_data) and not_on_haart(healthy_visit_data):
             return healthy_visit_data
     
     return None
Exemple #2
0
 def _first_visit_tested_positive_no_haart_ga_14(self):
     healthy_visits = [enc.get_xform() for enc in self.sorted_healthy_encounters()]
     
     for healthy_visit_data in healthy_visits:
         gest_age = healthy_visit_data.xpath("gestational_age") 
         if gest_age and int(gest_age) > 14 and \
         tested_positive(healthy_visit_data) and not_on_haart(healthy_visit_data):
             return healthy_visit_data
     
     return None
Exemple #3
0
 def first_date_tested_positive(self):
     for encounter in self.sorted_encounters():
         if tested_positive(encounter.get_xform()):
             return encounter.visit_date
     return None