diff --git a/src/dialogs/EditPatientDialog.cpp b/src/dialogs/EditPatientDialog.cpp index c05175f..9204a6b 100644 --- a/src/dialogs/EditPatientDialog.cpp +++ b/src/dialogs/EditPatientDialog.cpp @@ -44,7 +44,7 @@ EditPatientDialog::EditPatientDialog(QWidget* parent, Qt::WindowFlags f) : GUIFo //add old password QLabel* lbl_id = new QLabel(this); - lbl_id->setText(tr("ID")); + lbl_id->setText(tr("ID ") + QString("*")); le_id = new ULineEdit(this); layout->addWidget(lbl_id); layout->addWidget(le_id); @@ -64,7 +64,7 @@ EditPatientDialog::EditPatientDialog(QWidget* parent, Qt::WindowFlags f) : GUIFo layout->addWidget(accessionNumber_endline1); QLabel* lbl_name = new QLabel(this); - lbl_name->setText(tr("Name")); + lbl_name->setText(tr("Name") + QString("*")); le_name = new ULineEdit(this); layout->addWidget(lbl_name); layout->addWidget(le_name); diff --git a/src/forms/select/PatientDetailForm.cpp b/src/forms/select/PatientDetailForm.cpp index d22cf4f..ec8509f 100644 --- a/src/forms/select/PatientDetailForm.cpp +++ b/src/forms/select/PatientDetailForm.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include #include #include @@ -69,7 +70,7 @@ void PatientDetailForm::setPatientInformation(PatientInformation* information) { mUI->lbl_Name->setText(" "+information->Name); mUI->lbl_Sex->setText(" "+ (information->Sex == "F" ? tr("Female") : (information->Sex == "M" ? tr("Male") : tr("Other")))); mCurrentPatientUID = information->PatientUID; - mUI->lblAddDate->setText(tr("Add Date: ")+information->AddDate); + mUI->lblAddDate->setText(tr("Add Date: ")+ QDateTime::fromString(information->AddDate, Qt::ISODate).toString("yyyy-MM-dd HH:mm:ss")); mUI->lblAccno->setText(tr("AccNo: ")+information->AccessionNumber); mStore = *information;