コード例 #1
0
 def check_patients_without_doctor(self):
     sql_con = sqlite.sqlite_connector()
     patients_without_doctor = sql_con.get_patients_no_doctor()
     sql_con.close()
     for patient in patients_without_doctor:
         if comprobation_message('Paciente sin médico', 'El paciente '+patient[1]+" "+patient[2]+' ('+patient[0]+'), no tiene ningún médico asignado ya que el que tenía se ha eliminado. ¿Quieres añadirle un nuevo médico ahora?'):
             self.new_window = edit_patient.Edit_patient(patient[0], True)
コード例 #2
0
 def editar_paciente(self):
     self.new_window = edit_patient.Edit_patient(
         self.patients_dni[self.model.indexFromItem(
             self.patient_item).row()],
         doctor=self.current_user)