Skip to content

Commit

Permalink
Merge branch 'hotfix-0.13.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Woundorf committed Jun 16, 2016
2 parents 58f0fad + e040cc1 commit db622e0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 26 deletions.
11 changes: 11 additions & 0 deletions starviewer/releasenotes/changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@
</head>
<body>
<h1>Starviewer Changelog</h1>
<div class="minorRelease">
<div class="version">
<span class="versionNumber">Starviewer 0.13.3</span>
<span class="versionDate">(Publicat el 16 de juny de 2016)</span>
</div>
<div class="improved">
<ul>
<li>Les cerques per nom i id de pacient al PACS i a la base de dades es fan sense comodins per defecte. Per fer servir comodins ara cal posar els asteriscs explícitament. <span class="ticket">1752</span></li>
</ul>
</div>
</div>
<div class="minorRelease">
<div class="version">
<span class="versionNumber">Starviewer 0.13.2</span>
Expand Down
4 changes: 2 additions & 2 deletions starviewer/src/core/starviewerapplication.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

namespace udg {

const QString StarviewerVersionString("0.13.2");
const QString StarviewerBuildID("2016050300");
const QString StarviewerVersionString("0.13.3");
const QString StarviewerBuildID("2016061600");

// Indica per aquesta versió d'starviewer quina és la revisió de bd necessària
const int StarviewerDatabaseRevisionRequired(9592);
Expand Down
21 changes: 0 additions & 21 deletions starviewer/src/inputoutput/qbasicsearchwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,18 +97,12 @@ DicomMask QBasicSearchWidget::buildDicomMask()
// DICOM indica que fer una wildcard amb '*' és el mateix que fer Universal Matching. Nosaltres hem optat per fer Universal matching perquè hi ha algun scp
// que si li passem un asterisc sol '*' al fer la cerca no es comportant correctament, per exemple retorna cap resultat.

// Si pel contrari algun dels lineEdit tenen valor, llavors fem wild card matching "*" + valor "*", posant "*" a davant i a darrera del valor indiquem
// que el SCP que ens ha de retornar tots els objectes dicom que per aquell tag alguna part de la seu text coincideix amb el valor que ens han indicat.

// Per més informació consultar el PS 3.4 C.2.2.2

// S'afegeix '*' al patientId i patientName automàticament
QString patientID = m_patientIDText->text().trimmed();
addWildCards(patientID);
mask.setPatientID(patientID);

QString patientName = m_patientNameText->text().trimmed();
addWildCards(patientName);
mask.setPatientName(patientName);

setStudyDateToDICOMMask(&mask);
Expand Down Expand Up @@ -238,21 +232,6 @@ void QBasicSearchWidget::showEvent(QShowEvent *event)
}
}

void QBasicSearchWidget::addWildCards(QString &string)
{
if (!string.isEmpty())
{
if (!string.startsWith("*"))
{
string = "*" + string;
}
if (!string.endsWith("*"))
{
string = string + "*";
}
}
}

QBasicSearchWidget::~QBasicSearchWidget()
{
}
Expand Down
3 changes: 0 additions & 3 deletions starviewer/src/inputoutput/qbasicsearchwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ private slots:
/// S'executa quan es mostra el widget, fa que la primera vegada que es mostri es doni el focus al lineEdit PatientName
void showEvent(QShowEvent *event);

/// Adds wildcards both front and back to the given string
void addWildCards(QString &string);

private:
/// Indica si s'ha mostra el widget
bool m_widgetHasBeenShowed;
Expand Down

0 comments on commit db622e0

Please sign in to comment.