diff --git a/src/forms/select/PatientInformation.h b/src/forms/select/PatientInformation.h index 9a0f02f..c94e30d 100644 --- a/src/forms/select/PatientInformation.h +++ b/src/forms/select/PatientInformation.h @@ -55,6 +55,11 @@ public: this->Comment = other.Comment; this->AccessionNumber = other.AccessionNumber; this->AddDate = other.AddDate; + this->RPID = other.RPID; + this->SPSID = other.SPSID; + this->MPPSUID = other.MPPSUID; + this->StudyUID = other.StudyUID; + this->Modality = other.Modality; } QString ScheduledStartDate; QSharedPointer Copy() @@ -68,6 +73,11 @@ public: n->Comment = this->Comment; n->AccessionNumber = this->AccessionNumber; n->AddDate = this->AddDate; + n->RPID = this->RPID; + n->SPSID = this->SPSID; + n->MPPSUID = this->MPPSUID; + n->StudyUID = this->StudyUID; + n->Modality = this->Modality; return n; } }; diff --git a/src/forms/select/SelectFormWidget.cpp b/src/forms/select/SelectFormWidget.cpp index 248b7aa..8448c45 100644 --- a/src/forms/select/SelectFormWidget.cpp +++ b/src/forms/select/SelectFormWidget.cpp @@ -284,7 +284,7 @@ void SelectFormWidget::setPatientDetail(const SlideTableView *table, const QSqlT PatientInformation pat; #define ADD_PATIENT_PROPERTY(val)\ pat. val = model->data(model->index(table->currentIndex().row(),PatientInformationEnum:: val),Qt::EditRole).toString(); - EDIT_PATIENT() + ADD_PATIENT() #undef ADD_PATIENT_PROPERTY edit_patient->setPatientInformation(&pat); }