feat: The gender information which in worklist and local patient table can translate.
This commit is contained in:
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 "";
|
||||
}
|
||||
Reference in New Issue
Block a user