feat: Change Worklist reference class to suit MPPS

This commit is contained in:
chenhuijun
2024-06-06 13:37:12 +08:00
parent b864ccff71
commit 268d6f3f5c
3 changed files with 135 additions and 57 deletions

View File

@@ -9,11 +9,19 @@
class QSqlTableModel;
class QTableView;
enum WorklistQueryResult{
InitNetWorkError,
ConnectError,
ContextError,
ResponseError,
Success
};
class WorkListManager
{
public:
static WorkListManager* getInstance();
static QList<PatientInformationPointer> getPatientFromWorkList(const QString& aAccessionNum, const QString& aPatientId);
static int getPatientFromWorkList(const QString& aAccessionNum, const QString& aPatientId, QList<PatientInformationPointer>& aOutPatients);
void setTableModel(QSqlTableModel* aModel);
void setTableView(QTableView* aTableView);
@@ -22,7 +30,6 @@ public:
QSqlTableModel* getTableModel();
QTableView* getTableView();
private:
WorkListManager();
~WorkListManager();