From 788eaabed3abf97db3298c3821cfa1dbef357923 Mon Sep 17 00:00:00 2001 From: sunwen Date: Thu, 6 Jun 2024 16:33:43 +0800 Subject: [PATCH] feat: Add patienInformation with RPID,SPSID,MPPSUID,StudyUID,Modality --- src/forms/select/PatientInformation.h | 10 ++++++++++ src/forms/select/SelectFormWidget.cpp | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) 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); }