Esempio n. 1
0
 def find_patient(self):
     dl = FindPatientDialog(self)
     if dl.exec_():
         self.clear()
         pt = BriefPatient(dl.chosen_sno)
         self.set_patient(pt)
     self.update_patient_label()
Esempio n. 2
0
 def find_patient(self):
     dl = FindPatientDialog(self)
     if dl.exec_():
         self.clear()
         pt = BriefPatient(dl.chosen_sno)
         self.set_patient(pt)
     self.update_patient_label()
Esempio n. 3
0
 def changePt(self):
     dl = FindPatientDialog(self.om_gui)
     if dl.exec_():
         serialno = dl.chosen_sno
         try:
             self.setPatient(patient_class.patient(serialno))
         except localsettings.PatientNotFoundError:
             QtWidgets.QMessageBox.information(
                 self, _("Error"), _("patient not found"))
             self.setPatient(patient_class.patient(0))
Esempio n. 4
0
 def find_patient(self):
     '''
     search and load a patient.
     '''
     dl = FindPatientDialog(self)
     if dl.exec_():
         self.clear()
         pt = BriefPatient(dl.chosen_sno)
         self.set_patient(pt)
         self.diary_widget.set_date(QtCore.QDate.currentDate())
     self.update_patient_label()
Esempio n. 5
0
 def find_patient(self):
     '''
     search and load a patient.
     '''
     dl = FindPatientDialog(self)
     if dl.exec_():
         self.clear()
         pt = BriefPatient(dl.chosen_sno)
         self.set_patient(pt)
         self.diary_widget.set_date(QtCore.QDate.currentDate())
     self.update_patient_label()
def allow_user_input(parent=None):
    '''
    A convenience function to raise the find patient dialog then raise the
    calendar
    '''
    dl = FindPatientDialog(parent)
    if dl.exec_():
        try:
            dl2 = MedFormDateEntryDialog(dl.chosen_sno, dl)
            if dl2.exec_():
                dl2.apply()
        except localsettings.PatientNotFoundError:
            LOGGER.debug("Patient Not Found - %s", dl.chosen_sno)
            QtWidgets.QMessageBox.warning(
                parent, _("Error!"),
                "%s %s<hr />%s" % (_("error getting serialno"), dl.chosen_sno,
                                   _("please check this number is correct?")))
def allow_user_input(parent=None):
    """
    A convenience function to raise the find patient dialog then raise the
    calendar
    """
    dl = FindPatientDialog(parent)
    if dl.exec_():
        try:
            dl2 = MedFormDateEntryDialog(dl.chosen_sno, dl)
            if dl2.exec_():
                dl2.apply()
        except localsettings.PatientNotFoundError:
            LOGGER.debug("Patient Not Found - %s", dl.chosen_sno)
            QtWidgets.QMessageBox.warning(
                parent,
                _("Error!"),
                "%s %s<hr />%s"
                % (_("error getting serialno"), dl.chosen_sno, _("please check this number is correct?")),
            )
Esempio n. 8
0
 def record_search(self):
     dl = FindPatientDialog(self)
     if dl.exec_():
         self.add_member(dl.chosen_sno)
 def record_search(self):
     dl = FindPatientDialog(self)
     if dl.exec_():
         self.add_member(dl.chosen_sno)