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
def FindByUnderAge(self, a): printlist( isSearched(self.__departmentrepo.getDatalist(), find_by_age, a))
def PrintAtDepartment(self, nr): if self.__departmentrepo.FindByNr(nr) != None: printlist(self.__departmentrepo.FindByNr(nr).getListOfPatients()) else: raise IndexError
def PrintDepartments(self): printlist(self.__departmentrepo.getDatalist())
def PrintPatients(self): printlist(self.__patientrepo.getData())
def FindByFname(self, a): printlist( isSearched(self.__departmentrepo.getDatalist(), find_by_fname, a))