Esempio n. 1
0
    def PrintLtr(self):
	#need consultant first and lastname by parsing self.consultant 
	conName = self.consultant[0:self.consultant.find(',')]
	Printer.myConsultLtr(self, self.PtID, self.textctrl['reason'].GetValue(), self.textctrl['memo'].GetValue(), \
				conName, self.textctrl['Due Date'])
	EMR_utilities.updateList(todo_find(self.PtID, toggle=0), self.todoInstance.todo_list)
	self.Destroy()
Esempio n. 2
0
    def OnOk(self, event):
	qry = 'INSERT INTO todo SET date = "%s", description = "%s", priority = "%s", category = "%s", memo = "%s", due_date = "%s", complete = "0", patient_ID = %s;' % (self.textctrl['Date'].GetValue(), 
		     self.textctrl['Description'].GetValue(), self.textctrl['Priority'].GetValue(), 
		     self.textctrl['Category'].GetValue(), self.textctrl['Memo'].GetValue(), 
		     self.textctrl['Due Date'].GetValue(), self.PtID)
	EMR_utilities.updateData(qry)	
	EMR_utilities.updateList(todo_find(self.PtID), self.List)
Esempio n. 3
0
 def PrintLtr(self):
     #need consultant first and lastname by parsing self.consultant
     conName = self.consultant[0:self.consultant.find(',')]
     Printer.myConsultLtr(self, self.PtID, self.textctrl['reason'].GetValue(), self.textctrl['memo'].GetValue(), \
        conName, self.textctrl['Due Date'])
     EMR_utilities.updateList(todo_find(self.PtID, toggle=0),
                              self.todoInstance.todo_list)
     self.Destroy()
Esempio n. 4
0
 def OnOk(self, event):
     qry = 'INSERT INTO todo SET date = "%s", description = "%s", priority = "%s", category = "%s", memo = "%s", due_date = "%s", complete = "0", patient_ID = %s;' % (
         self.textctrl['Date'].GetValue(),
         self.textctrl['Description'].GetValue(),
         self.textctrl['Priority'].GetValue(),
         self.textctrl['Category'].GetValue(),
         self.textctrl['Memo'].GetValue(),
         self.textctrl['Due Date'].GetValue(), self.PtID)
     EMR_utilities.updateData(qry)
     EMR_utilities.updateList(todo_find(self.PtID), self.List)
Esempio n. 5
0
    def OnToggle(self, event):					#changes list display from active to completed items
	if self.toggler == 'Active':				
	    self.toggler = 'Completed'
	    self.todoTitle.SetLabel(self.toggler)
	    data = todo_find(self.PtID, toggle=1)
	    EMR_utilities.updateList(data, self.todo_list)
	else:
	    self.toggler = 'Active'				#and back
	    self.todoTitle.SetLabel(self.toggler)
	    data = todo_find(self.PtID, toggle=0)
	    EMR_utilities.updateList(data, self.todo_list)
Esempio n. 6
0
 def OnToggle(self,
              event):  #changes list display from active to completed items
     if self.toggler == 'Active':
         self.toggler = 'Completed'
         self.todoTitle.SetLabel(self.toggler)
         data = todo_find(self.PtID, toggle=1)
         EMR_utilities.updateList(data, self.todo_list)
     else:
         self.toggler = 'Active'  #and back
         self.todoTitle.SetLabel(self.toggler)
         data = todo_find(self.PtID, toggle=0)
         EMR_utilities.updateList(data, self.todo_list)