feat: The gender information which in worklist and local patient table can translate.

This commit is contained in:
sunwen
2024-09-14 13:44:33 +08:00
parent 031f1a2a47
commit ea6a6e99e4
13 changed files with 245 additions and 188 deletions

View File

@@ -660,7 +660,6 @@ void DialogManager::setFocusToTopDialog()
void DialogManager::requestEmergencyButtonPushed(bool aIsLeftButton, bool aIsRest)
{
qDebug()<<"requestEmergencyButtonPushed" << aIsLeftButton<<aIsRest;
GUIMessageDialog* dialog;
QString message;
if(aIsLeftButton)

View File

@@ -99,6 +99,14 @@ void StartScanProcessDialog::setButtonModeFromPatient(PatientInformation* aPatie
{
return;
}
if(selectedAccession.size() == 2)
{
mUI->mOnlyLeftButton->setEnabled(false);
mUI->mOnlyRightButton->setEnabled(false);
return;
}
if(aPatient->mSelectedScanProtocol == ScanLeftRight)
{
mUI->mOnlyLeftButton->setEnabled(false);

View File

@@ -4,6 +4,7 @@
#include "event/EventCenter.h"
#include "json/ScanJson.h"
#include "models/User.h"
#include "utilities/GenderHelper.h"
PatientInformationForm::PatientInformationForm(QWidget* parent)
: QWidget(parent)
@@ -12,10 +13,13 @@ PatientInformationForm::PatientInformationForm(QWidget* parent)
, mStudyUID()
, mModality()
, mMPPSUID()
, mDicomGender()
{
mUI->setupUi(this);
connect(EventCenter::Default(), &EventCenter::ReloadLanguage, [=]() {
mUI->retranslateUi(this);
if(!mUI->mScanProtocol->text().isEmpty()) setExecuteProtocol(mIsExecuteProtocolLeft);
mUI->mPatientGender->setText(GenderHelper::getStringfromDicomGender(mDicomGender));
});
}
@@ -31,7 +35,8 @@ void PatientInformationForm::setPatientInformation(PatientInformation* informati
mUI->mPatientID->setText(information->ID);
mUI->mPatientBirthday->setText(information->BirthDate);
mUI->mPatientName->setText(information->Name);
mUI->mPatientGender->setText(information->Sex == "F" ? tr("Female") : (information->Sex == "M" ? tr("Male") : tr("Other")));
mDicomGender = information->Sex;
mUI->mPatientGender->setText(GenderHelper::getStringfromDicomGender(mDicomGender));
}
else
{
@@ -43,6 +48,7 @@ void PatientInformationForm::setPatientInformation(PatientInformation* informati
mStudyUID.clear();
mModality.clear();
mMPPSUID.clear();
mDicomGender.clear();
}
}
@@ -67,17 +73,6 @@ int PatientInformationForm::getProtocol()
return mCurrentProtocol;
}
QString PatientInformationForm::getProtocolString(ScanProtocal aProtocal)
{
switch (aProtocal)
{
case RSTAND: return tr("RSTAND");
case LSTAND: return tr("LSTAND");
case LONE: return tr("LONE");
case RONE: return tr("RONE");
}
}
QString PatientInformationForm::getPatientID()
{
return mUI->mPatientID->text();
@@ -107,6 +102,7 @@ void PatientInformationForm::clear()
mStudyUID.clear();
mModality.clear();
mMPPSUID.clear();
mDicomGender.clear();
}
const char* PatientInformationForm::getCurrentPatientJsonString(bool empty)
@@ -115,7 +111,7 @@ const char* PatientInformationForm::getCurrentPatientJsonString(bool empty)
cJSON_AddItemToObject(patientInfoObject, "PatientName", cJSON_CreateString(mUI->mPatientName->text().toStdString().data()));
cJSON_AddItemToObject(patientInfoObject, "PatientID", cJSON_CreateString(mUI->mPatientID->text().toStdString().data()));
cJSON_AddItemToObject(patientInfoObject, "AccessionNumber", cJSON_CreateString(mUI->mPaitenAccessionNumber->text().toStdString().data()));
cJSON_AddItemToObject(patientInfoObject, "PatientSex", cJSON_CreateString(mUI->mPatientGender->text().toStdString().data()));
cJSON_AddItemToObject(patientInfoObject, "PatientSex", cJSON_CreateString(mDicomGender.toStdString().c_str()));
cJSON_AddItemToObject(patientInfoObject, "PatientBirthDate",
cJSON_CreateString(mUI->mPatientBirthday->text().replace("/", "").replace("-", "").replace(' ', '.').toStdString().data()));
cJSON_AddItemToObject(patientInfoObject, "Laterality", cJSON_CreateString(mIsExecuteProtocolLeft ? "L" : "R"));

View File

@@ -22,7 +22,6 @@ public:
void setPatientInformation(PatientInformation* information);
void setAccessionNumber(AccessionInformation* aAccession);
int getProtocol();
QString getProtocolString(ScanProtocal aProtocal);
void setExecuteProtocol(bool aIsLeft);
void clear();
@@ -37,6 +36,7 @@ private:
QString mStudyUID;
QString mModality;
QString mMPPSUID;
QString mDicomGender;
};
#endif // PATIENTINFORMATIONFORM_H

View File

@@ -0,0 +1,21 @@
#include "LocalTableGenderDelegate.h"
#include <QPainter>
#include "utilities/GenderHelper.h"
LocalTableGenderDelegate::LocalTableGenderDelegate(QObject* aParent)
: QStyledItemDelegate(aParent)
{
}
void LocalTableGenderDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const
{
QVariant data = index.data(Qt::DisplayRole);
if (data.isValid())
{
QString gender = GenderHelper::getStringfromDicomGender(data.toString());
painter->drawText(option.rect, Qt::AlignCenter, gender);
}
}

View File

@@ -0,0 +1,15 @@
#ifndef LOCALTABLEGENDERDELEGATE_H
#define LOCALTABLEGENDERDELEGATE_H
#include <QStyledItemDelegate>
class LocalTableGenderDelegate : public QStyledItemDelegate
{
Q_OBJECT
public:
LocalTableGenderDelegate(QObject* aParent);
void paint(QPainter *aPainter, const QStyleOptionViewItem &aOption, const QModelIndex &aIndex) const override;
};
#endif // LOCALTABLEGENDERDELEGATE_H

View File

@@ -11,6 +11,7 @@
#include <qwidget.h>
#include "event/EventCenter.h"
#include "utilities/GenderHelper.h"
PatientDetailLabel::PatientDetailLabel(QLabel* aTitle, QLabel* aText)
: mLayout(new QHBoxLayout)
@@ -107,7 +108,7 @@ void PatientDetailForm::addDetailLabel(QVBoxLayout *layout, const QString& aTitl
void PatientDetailForm::reloadLanguage()
{
mLblSex->setText(mStore.Sex == "F" ? tr("Female") : (mStore.Sex == "M" ? tr("Male") : mStore.Sex == "O" ? tr("Other") : ""));
mLblSex->setText(GenderHelper::getStringfromDicomGender(mStore.Sex));
mLblPatInfTitle->setText(tr("Patient Detail"));
mLblDOB->setTitle(tr("Birth Date")+":");
mLblName->setTitle(tr("Name")+":");
@@ -117,7 +118,7 @@ void PatientDetailForm::reloadLanguage()
mLblProto1->setTitle(tr("Position")+":");
mLblAccno2->setTitle(tr("AccNo")+":");
mLblProto2->setTitle(tr("Position")+":");
mLblAddDate->setTitle(tr("Add Date")+":");
mLblAddDate->setTitle(tr("Add Date")+":");
}
@@ -151,7 +152,6 @@ void PatientDetailForm::setEmptyInformation()
mLblDOB->setText("");
mLblName->setText("");
mLblSex->setText("");
mCurrentPatientUID = "";
mLblAddDate->setText("");
mLblAccno1->hide();
mLblProto1->hide();
@@ -175,8 +175,7 @@ void PatientDetailForm::setPatientInformation(PatientInformation* aInformation)
mLblPatID->setText(aInformation->ID);
mLblDOB->setText(aInformation->BirthDate);
mLblName->setText(aInformation->Name);
mLblSex->setText((aInformation->Sex == "F" ? tr("Female") : (aInformation->Sex == "M" ? tr("Male") : tr("Other"))));
//mCurrentPatientUID = information->PatientUID;
mLblSex->setText(GenderHelper::getStringfromDicomGender(aInformation->Sex));
mLblAddDate->setText(QDateTime::fromString(aInformation->AddDate, Qt::ISODate).toString("yyyy-MM-dd HH:mm:ss"));
int selectAccesionSize = aInformation->mSelectedAccessions.size();
if(selectAccesionSize == 1)

View File

@@ -51,7 +51,6 @@ private:
void setEmptyInformation();
private:
QString mCurrentPatientUID;
QString mAddDate;
PatientInformation mStore;
QLabel* mLblPatInfTitle;

View File

@@ -21,6 +21,7 @@
#include "log/LogManager.h"
#include "components/VerticalTextToolButton.h"
#include "PatientAddDateDelegate.h"
#include "LocalTableGenderDelegate.h"
#include "dicom/WorkListManager.h"
#include "utilities/ScanProcessSequence.h"
#include "WorklistTableView.h"
@@ -302,6 +303,8 @@ void SelectFormWidget::initTableView()
PatientAddDateDelegate* patientAddDateDelegate = new PatientAddDateDelegate(mLocalPatTable);
mLocalPatTable->setItemDelegateForColumn(5, patientAddDateDelegate);
LocalTableGenderDelegate* patientGenderDelegate = new LocalTableGenderDelegate(mLocalPatTable);
mLocalPatTable->setItemDelegateForColumn(4, patientGenderDelegate);
}
void SelectFormWidget::initDataModel() {
@@ -366,6 +369,7 @@ void SelectFormWidget::reloadLanguage(){
mLocalPatientModel->setHeaderData(4, Qt::Horizontal, tr("Gender"));
mLocalPatientModel->setHeaderData(5, Qt::Horizontal, tr("Add Date"));
mLocalPatientModel->setHeaderData(6, Qt::Horizontal, tr("Comment"));
mLocalPatTable->update();
mBtnEdit->setText(tr("Edit"));
mBtnDelete->setText(tr("Delete"));
@@ -376,6 +380,11 @@ void SelectFormWidget::reloadLanguage(){
mTabWidget->setTabText(0,tr("Worklist"));
mTabWidget->setTabText(1, tr("Local"));
if(mTabWidget->currentIndex() == 0)
{
mWorklistTableSelectModel->clearSelect();
}
}
void SelectFormWidget::updateDataByAnonymousMode(){

View File

@@ -1252,18 +1252,6 @@ progress:99%</source>
<source>Name</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Female</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Male</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Other</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Scan with this Patient?</source>
<translation type="unfinished"></translation>
@@ -1350,22 +1338,6 @@ progress:99%</source>
<source>Patient ID:</source>
<translation type="unfinished">ID:</translation>
</message>
<message>
<source>RSTAND</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>LSTAND</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>LONE</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>RONE</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Left</source>
<translation type="unfinished"></translation>
@@ -1374,18 +1346,6 @@ progress:99%</source>
<source>Right</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Female</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Male</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Other</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>QObject</name>
@@ -1429,6 +1389,18 @@ progress:99%</source>
<source>Last 7 days</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Female</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Male</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Other</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ReconFormWidget</name>

View File

@@ -469,27 +469,27 @@
<name>DeviceManager</name>
<message>
<location filename="../device/DeviceManager.cpp" line="168"/>
<location filename="../device/DeviceManager.cpp" line="831"/>
<location filename="../device/DeviceManager.cpp" line="839"/>
<location filename="../device/DeviceManager.cpp" line="1446"/>
<location filename="../device/DeviceManager.cpp" line="832"/>
<location filename="../device/DeviceManager.cpp" line="840"/>
<location filename="../device/DeviceManager.cpp" line="1444"/>
<source>DMS connection error</source>
<translation type="unfinished">DMS失去连接</translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="361"/>
<location filename="../device/DeviceManager.cpp" line="370"/>
<location filename="../device/DeviceManager.cpp" line="362"/>
<location filename="../device/DeviceManager.cpp" line="371"/>
<source>progress:%1%</source>
<translation type="unfinished">:%1%</translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="375"/>
<location filename="../device/DeviceManager.cpp" line="376"/>
<source>Patient can leave.
progress:%1%</source>
<translation type="unfinished">
:%1%</translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="382"/>
<location filename="../device/DeviceManager.cpp" line="383"/>
<source>Data quality assessment in progress
progress:99%</source>
<translation type="unfinished">
@@ -497,8 +497,8 @@ progress:99%</source>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="257"/>
<location filename="../device/DeviceManager.cpp" line="892"/>
<location filename="../device/DeviceManager.cpp" line="900"/>
<location filename="../device/DeviceManager.cpp" line="893"/>
<location filename="../device/DeviceManager.cpp" line="901"/>
<source>Initialize Failed.</source>
<translation type="unfinished"></translation>
</message>
@@ -518,91 +518,91 @@ progress:99%</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="435"/>
<location filename="../device/DeviceManager.cpp" line="436"/>
<source>Scan completed!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="782"/>
<location filename="../device/DeviceManager.cpp" line="783"/>
<source>Error: </source>
<translation type="unfinished">: </translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="866"/>
<location filename="../device/DeviceManager.cpp" line="867"/>
<source>Start scan failed. Reason:time out.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="877"/>
<location filename="../device/DeviceManager.cpp" line="878"/>
<source>Start scan failed. Reason:%1</source>
<translation type="unfinished">%1</translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="902"/>
<location filename="../device/DeviceManager.cpp" line="903"/>
<source>Start CE Scan Failed.</source>
<translation type="unfinished">CE扫查启动失败</translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="936"/>
<location filename="../device/DeviceManager.cpp" line="935"/>
<source>Data is currently being transmitted, please shut down later.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="943"/>
<location filename="../device/DeviceManager.cpp" line="942"/>
<source>Shut down failed, please push emergency button to shutdown.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="1034"/>
<location filename="../device/DeviceManager.cpp" line="1044"/>
<location filename="../device/DeviceManager.cpp" line="1120"/>
<location filename="../device/DeviceManager.cpp" line="1033"/>
<location filename="../device/DeviceManager.cpp" line="1043"/>
<location filename="../device/DeviceManager.cpp" line="1119"/>
<source>Scan data transfer failed.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="1098"/>
<location filename="../device/DeviceManager.cpp" line="1097"/>
<source>Scan data transfer Succeeded!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="1140"/>
<location filename="../device/DeviceManager.cpp" line="1139"/>
<source>Create empty scan data failed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="1162"/>
<location filename="../device/DeviceManager.cpp" line="1161"/>
<source>Create scan data failed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="1229"/>
<location filename="../device/DeviceManager.cpp" line="1228"/>
<source>Recon disconnected.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="1295"/>
<location filename="../device/DeviceManager.cpp" line="1310"/>
<location filename="../device/DeviceManager.cpp" line="1293"/>
<location filename="../device/DeviceManager.cpp" line="1308"/>
<source>Open pump failed.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="1327"/>
<location filename="../device/DeviceManager.cpp" line="1325"/>
<source>Recon error, can&apos;t start scan process</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="1368"/>
<location filename="../device/DeviceManager.cpp" line="1420"/>
<location filename="../device/DeviceManager.cpp" line="1366"/>
<location filename="../device/DeviceManager.cpp" line="1418"/>
<source>Start auto locate failed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="1440"/>
<location filename="../device/DeviceManager.cpp" line="1438"/>
<source>The data quality is low, please restart the data scan.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="1468"/>
<location filename="../device/DeviceManager.cpp" line="1466"/>
<source>Device reset failed, please contact maintenance person</source>
<translation type="unfinished"></translation>
</message>
@@ -622,12 +622,12 @@ progress:99%</source>
<translation type="obsolete">7</translation>
</message>
<message>
<location filename="../dialogs/DialogManager.cpp" line="673"/>
<location filename="../dialogs/DialogManager.cpp" line="672"/>
<source>The left emergency button has been pressed. Please reset left the emergency button before operating the device</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../dialogs/DialogManager.cpp" line="682"/>
<location filename="../dialogs/DialogManager.cpp" line="681"/>
<source>The right emergency button has been pressed. Please reset right the emergency button before operating the device</source>
<translation type="unfinished"></translation>
</message>
@@ -1870,8 +1870,8 @@ progress:99%</source>
<translation type="obsolete">DICOM</translation>
</message>
<message>
<location filename="../forms/select/PatientDetailForm.cpp" line="63"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="113"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="64"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="114"/>
<source>Name</source>
<translation></translation>
</message>
@@ -1884,8 +1884,8 @@ progress:99%</source>
<translation type="vanished"></translation>
</message>
<message>
<location filename="../forms/select/PatientDetailForm.cpp" line="65"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="115"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="66"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="116"/>
<source>Gender</source>
<translation></translation>
</message>
@@ -1898,65 +1898,59 @@ progress:99%</source>
<translation type="obsolete"></translation>
</message>
<message>
<location filename="../forms/select/PatientDetailForm.cpp" line="110"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="178"/>
<source>Female</source>
<translation></translation>
<translation type="vanished"></translation>
</message>
<message>
<location filename="../forms/select/PatientDetailForm.cpp" line="110"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="178"/>
<source>Male</source>
<translation></translation>
<translation type="vanished"></translation>
</message>
<message>
<location filename="../forms/select/PatientDetailForm.cpp" line="110"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="178"/>
<source>Other</source>
<translation type="unfinished"></translation>
<translation type="obsolete"></translation>
</message>
<message>
<location filename="../forms/select/PatientDetailForm.cpp" line="77"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="111"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="78"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="112"/>
<source>Patient Detail</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/select/PatientDetailForm.cpp" line="62"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="112"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="63"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="113"/>
<source>Birth Date</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/select/PatientDetailForm.cpp" line="64"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="114"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="65"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="115"/>
<source>PatientID</source>
<translation type="unfinished">ID</translation>
</message>
<message>
<location filename="../forms/select/PatientDetailForm.cpp" line="66"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="68"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="116"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="118"/>
<source>AccNo</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/select/PatientDetailForm.cpp" line="67"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="69"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="117"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="119"/>
<source>AccNo</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/select/PatientDetailForm.cpp" line="68"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="70"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="118"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="120"/>
<source>Position</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/select/PatientDetailForm.cpp" line="70"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="120"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="71"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="121"/>
<source>Add Date</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/select/PatientDetailForm.cpp" line="143"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="144"/>
<source>Scan with this Patient?</source>
<translation type="unfinished"></translation>
</message>
@@ -1965,12 +1959,12 @@ progress:99%</source>
<translation type="obsolete"></translation>
</message>
<message>
<location filename="../forms/select/PatientDetailForm.cpp" line="144"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="145"/>
<source>Left</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/select/PatientDetailForm.cpp" line="144"/>
<location filename="../forms/select/PatientDetailForm.cpp" line="145"/>
<source>Right</source>
<translation type="unfinished"></translation>
</message>
@@ -2041,47 +2035,40 @@ progress:99%</source>
<translation type="unfinished">:</translation>
</message>
<message>
<location filename="../forms/scan/PatientInformationForm.cpp" line="34"/>
<source>Female</source>
<translation type="unfinished"></translation>
<translation type="obsolete"></translation>
</message>
<message>
<location filename="../forms/scan/PatientInformationForm.cpp" line="34"/>
<source>Male</source>
<translation type="unfinished"></translation>
<translation type="obsolete"></translation>
</message>
<message>
<location filename="../forms/scan/PatientInformationForm.cpp" line="34"/>
<source>Other</source>
<translation type="unfinished"></translation>
<translation type="obsolete"></translation>
</message>
<message>
<location filename="../forms/scan/PatientInformationForm.cpp" line="74"/>
<source>RSTAND</source>
<translation type="unfinished"></translation>
<translation type="obsolete"></translation>
</message>
<message>
<location filename="../forms/scan/PatientInformationForm.cpp" line="75"/>
<source>LSTAND</source>
<translation type="unfinished"></translation>
<translation type="obsolete"></translation>
</message>
<message>
<location filename="../forms/scan/PatientInformationForm.cpp" line="76"/>
<source>LONE</source>
<translation type="unfinished"></translation>
<translation type="obsolete"></translation>
</message>
<message>
<location filename="../forms/scan/PatientInformationForm.cpp" line="77"/>
<source>RONE</source>
<translation type="unfinished"></translation>
<translation type="obsolete"></translation>
</message>
<message>
<location filename="../forms/scan/PatientInformationForm.cpp" line="91"/>
<location filename="../forms/scan/PatientInformationForm.cpp" line="86"/>
<source>Left</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/scan/PatientInformationForm.cpp" line="95"/>
<location filename="../forms/scan/PatientInformationForm.cpp" line="90"/>
<source>Right</source>
<translation type="unfinished"></translation>
</message>
@@ -2154,6 +2141,21 @@ progress:99%</source>
<source>Last 7 days</source>
<translation type="unfinished">7</translation>
</message>
<message>
<location filename="../utilities/GenderHelper.cpp" line="9"/>
<source>Female</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../utilities/GenderHelper.cpp" line="14"/>
<source>Male</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../utilities/GenderHelper.cpp" line="19"/>
<source>Other</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ReconFormWidget</name>
@@ -2166,44 +2168,44 @@ progress:99%</source>
<translation type="obsolete"></translation>
</message>
<message>
<location filename="../forms/recon/ReconFormWidget.cpp" line="108"/>
<location filename="../forms/recon/ReconFormWidget.cpp" line="154"/>
<location filename="../forms/recon/ReconFormWidget.cpp" line="107"/>
<location filename="../forms/recon/ReconFormWidget.cpp" line="153"/>
<source>Patient ID</source>
<translation type="unfinished">ID</translation>
</message>
<message>
<location filename="../forms/recon/ReconFormWidget.cpp" line="109"/>
<location filename="../forms/recon/ReconFormWidget.cpp" line="155"/>
<location filename="../forms/recon/ReconFormWidget.cpp" line="108"/>
<location filename="../forms/recon/ReconFormWidget.cpp" line="154"/>
<source>Accession Number</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/recon/ReconFormWidget.cpp" line="110"/>
<location filename="../forms/recon/ReconFormWidget.cpp" line="156"/>
<location filename="../forms/recon/ReconFormWidget.cpp" line="109"/>
<location filename="../forms/recon/ReconFormWidget.cpp" line="155"/>
<source>Patient Name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/recon/ReconFormWidget.cpp" line="113"/>
<location filename="../forms/recon/ReconFormWidget.cpp" line="159"/>
<location filename="../forms/recon/ReconFormWidget.cpp" line="112"/>
<location filename="../forms/recon/ReconFormWidget.cpp" line="158"/>
<source>Operator Name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/recon/ReconFormWidget.cpp" line="111"/>
<location filename="../forms/recon/ReconFormWidget.cpp" line="157"/>
<location filename="../forms/recon/ReconFormWidget.cpp" line="110"/>
<location filename="../forms/recon/ReconFormWidget.cpp" line="156"/>
<source>Scan Time</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/recon/ReconFormWidget.cpp" line="112"/>
<location filename="../forms/recon/ReconFormWidget.cpp" line="158"/>
<location filename="../forms/recon/ReconFormWidget.cpp" line="111"/>
<location filename="../forms/recon/ReconFormWidget.cpp" line="157"/>
<source>Laterality</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/recon/ReconFormWidget.cpp" line="114"/>
<location filename="../forms/recon/ReconFormWidget.cpp" line="160"/>
<location filename="../forms/recon/ReconFormWidget.cpp" line="113"/>
<location filename="../forms/recon/ReconFormWidget.cpp" line="159"/>
<source>State</source>
<translation type="unfinished"></translation>
</message>
@@ -2546,81 +2548,81 @@ parameters
<translation type="vanished"></translation>
</message>
<message>
<location filename="../forms/select/SelectFormWidget.cpp" line="91"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="377"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="92"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="381"/>
<source>Worklist</source>
<translation>线</translation>
</message>
<message>
<location filename="../forms/select/SelectFormWidget.cpp" line="163"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="372"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="164"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="376"/>
<source>Add</source>
<translation></translation>
</message>
<message>
<location filename="../forms/select/SelectFormWidget.cpp" line="161"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="370"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="162"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="374"/>
<source>Edit</source>
<translation></translation>
</message>
<message>
<location filename="../forms/select/SelectFormWidget.cpp" line="65"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="375"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="66"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="379"/>
<source>Patient Information Manage</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/select/SelectFormWidget.cpp" line="92"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="378"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="93"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="382"/>
<source>Local</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/select/SelectFormWidget.cpp" line="162"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="371"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="163"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="375"/>
<source>Delete</source>
<translation></translation>
</message>
<message>
<location filename="../forms/select/SelectFormWidget.cpp" line="164"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="374"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="165"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="378"/>
<source>Pull</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/select/SelectFormWidget.cpp" line="165"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="373"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="166"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="377"/>
<source>Select</source>
<translation></translation>
</message>
<message>
<location filename="../forms/select/SelectFormWidget.cpp" line="213"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="214"/>
<source>Can&apos;t delete selected Patient !</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/select/SelectFormWidget.cpp" line="213"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="234"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="214"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="235"/>
<source>Alert</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/select/SelectFormWidget.cpp" line="218"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="219"/>
<source>Delete Patient &quot;%1&quot; ?</source>
<translation type="unfinished">&quot;%1&quot;</translation>
</message>
<message>
<location filename="../forms/select/SelectFormWidget.cpp" line="218"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="219"/>
<source>Confirm</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/select/SelectFormWidget.cpp" line="234"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="235"/>
<source>Can&apos;t delete selected Patient , db submit error!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../forms/select/SelectFormWidget.cpp" line="330"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="333"/>
<source>ID</source>
<translation type="unfinished">ID</translation>
</message>
@@ -2629,32 +2631,32 @@ parameters
<translation type="obsolete"></translation>
</message>
<message>
<location filename="../forms/select/SelectFormWidget.cpp" line="331"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="364"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="334"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="367"/>
<source>Name</source>
<translation></translation>
</message>
<message>
<location filename="../forms/select/SelectFormWidget.cpp" line="332"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="365"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="335"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="368"/>
<source>Birth Date</source>
<translation></translation>
</message>
<message>
<location filename="../forms/select/SelectFormWidget.cpp" line="333"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="366"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="336"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="369"/>
<source>Gender</source>
<translation></translation>
</message>
<message>
<location filename="../forms/select/SelectFormWidget.cpp" line="334"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="367"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="337"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="370"/>
<source>Add Date</source>
<translation></translation>
</message>
<message>
<location filename="../forms/select/SelectFormWidget.cpp" line="335"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="368"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="338"/>
<location filename="../forms/select/SelectFormWidget.cpp" line="371"/>
<source>Comment</source>
<translation></translation>
</message>

View File

@@ -0,0 +1,23 @@
#include "GenderHelper.h"
#include <QObject>
QString GenderHelper::getStringfromDicomGender(const QString& aGender)
{
if(aGender.toLower() == "f")
{
return QObject::tr("Female");
}
if(aGender.toLower() == "m")
{
return QObject::tr("Male");
}
if(aGender.toLower() == "o")
{
return QObject::tr("Other");
}
return "";
}

View File

@@ -0,0 +1,14 @@
#ifndef GENDERHELPER_H
#define GENDERHELPER_H
#include <QString>
class GenderHelper
{
public:
GenderHelper() = delete;
static QString getStringfromDicomGender(const QString& aGender);
};
#endif // GENDERHELPER_H