feat: The gender information which in worklist and local patient table can translate.
This commit is contained in:
@@ -660,7 +660,6 @@ void DialogManager::setFocusToTopDialog()
|
||||
|
||||
void DialogManager::requestEmergencyButtonPushed(bool aIsLeftButton, bool aIsRest)
|
||||
{
|
||||
qDebug()<<"requestEmergencyButtonPushed" << aIsLeftButton<<aIsRest;
|
||||
GUIMessageDialog* dialog;
|
||||
QString message;
|
||||
if(aIsLeftButton)
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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"));
|
||||
|
||||
@@ -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
|
||||
|
||||
21
src/forms/select/LocalTableGenderDelegate.cpp
Normal file
21
src/forms/select/LocalTableGenderDelegate.cpp
Normal 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);
|
||||
}
|
||||
}
|
||||
|
||||
15
src/forms/select/LocalTableGenderDelegate.h
Normal file
15
src/forms/select/LocalTableGenderDelegate.h
Normal 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
|
||||
@@ -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)
|
||||
|
||||
@@ -51,7 +51,6 @@ private:
|
||||
void setEmptyInformation();
|
||||
|
||||
private:
|
||||
QString mCurrentPatientUID;
|
||||
QString mAddDate;
|
||||
PatientInformation mStore;
|
||||
QLabel* mLblPatInfTitle;
|
||||
|
||||
@@ -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(){
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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'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'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 "%1" ?</source>
|
||||
<translation type="unfinished">删除检查对象"%1"?</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'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>
|
||||
|
||||
23
src/utilities/GenderHelper.cpp
Normal file
23
src/utilities/GenderHelper.cpp
Normal 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 "";
|
||||
}
|
||||
14
src/utilities/GenderHelper.h
Normal file
14
src/utilities/GenderHelper.h
Normal 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
|
||||
Reference in New Issue
Block a user