Ejemplo n.º 1
0
def todays_notes(serialno):
    html = notes(get_notes_dict(serialno, True))
    if not _("Today") in html:
        html = HEADER
        html += "%s <a href='edit_notes?%s'>%s</a></body></html>" % (_("No notes found"), serialno, _("Add a note"))

    name = db_patients.name(serialno)
    header = "<h3>%s %s</h3>" % (_("Todays notes for"), name)
    html = html.replace("<!HEADER>", header)
    html = html.replace("||SNO||", str(serialno))

    return html
Ejemplo n.º 2
0
def todays_notes(serialno):
    html = notes(get_notes_dict(serialno, True))
    if not _("Today") in html:
        html = HEADER
        html += "%s <a href='edit_notes?%s'>%s</a></body></html>" % (
            _("No notes found"), serialno, _("Add a note"))

    name = db_patients.name(serialno)
    header = "<h3>%s %s</h3>" % (_("Todays notes for"), name)
    html = html.replace("<!HEADER>", header)
    html = html.replace("||SNO||", str(serialno))

    return html
Ejemplo n.º 3
0
 def get_patient_name(self):
     try:
         self.patient_label.setText(db_patients.name(self.sno))
     except localsettings.PatientNotFoundError as exc:
         QtWidgets.QMessageBox.warning(self, "Error", exc.message)
Ejemplo n.º 4
0
 def get_patient_name(self):
     try:
         self.patient_label.setText(db_patients.name(self.sno))
     except localsettings.PatientNotFoundError as exc:
         QtGui.QMessageBox.warning(self, "Error", exc.message)