feat: Change Worklist reference class to suit MPPS
This commit is contained in:
@@ -257,6 +257,7 @@ void GetWorkListDialog::insertPatient(PatientInformationPointer aPatient)
|
||||
mSqlModel->data(mSqlModel->index(i, accessionNumberIndex)) == aPatient->AccessionNumber)
|
||||
{
|
||||
mTableView->selectRow(i);
|
||||
aPatient->PatientUID = mSqlModel->data(mSqlModel->index(i, 0)).toString();
|
||||
EventCenter::Default()->triggerEvent(PatientSelected, nullptr, (QObject*)(aPatient.data()));
|
||||
return;
|
||||
}
|
||||
@@ -269,7 +270,7 @@ void GetWorkListDialog::insertPatient(PatientInformationPointer aPatient)
|
||||
mSqlModel->insertRow(0);
|
||||
#define ADD_PATIENT_PROPERTY(val)\
|
||||
mSqlModel->setData(mSqlModel->index(0, PatientInformationEnum:: val),aPatient->val);
|
||||
EDIT_PATIENT()
|
||||
ADD_PATIENT()
|
||||
#undef ADD_PATIENT_PROPERTY
|
||||
if (!mSqlModel->submitAll())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user