Ejemplo n.º 1
0
 def FindByString(self, nr, string):
     if self.__departmentrepo.FindByNr(nr) != None:
         printlist(
             isSearched(
                 self.__departmentrepo.FindByNr(nr).getListOfPatients(),
                 find_by_string, string))
     else:
         raise IndexError
Ejemplo n.º 2
0
 def FindByUnderAge(self, a):
     printlist(
         isSearched(self.__departmentrepo.getDatalist(), find_by_age, a))
Ejemplo n.º 3
0
 def PrintAtDepartment(self, nr):
     if self.__departmentrepo.FindByNr(nr) != None:
         printlist(self.__departmentrepo.FindByNr(nr).getListOfPatients())
     else:
         raise IndexError
Ejemplo n.º 4
0
 def PrintDepartments(self):
     printlist(self.__departmentrepo.getDatalist())
Ejemplo n.º 5
0
 def PrintPatients(self):
     printlist(self.__patientrepo.getData())
Ejemplo n.º 6
0
 def FindByFname(self, a):
     printlist(
         isSearched(self.__departmentrepo.getDatalist(), find_by_fname, a))