2021-10-09 16:38:34 +08:00
|
|
|
#ifndef PATIENTINFORMATIONFORM_H
|
|
|
|
|
#define PATIENTINFORMATIONFORM_H
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
2022-06-14 14:43:41 +08:00
|
|
|
#include "src/forms/select/PatientDetailForm.h"
|
2021-10-09 16:38:34 +08:00
|
|
|
namespace Ui {
|
|
|
|
|
class PatientInformationForm;
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-10 15:23:39 +08:00
|
|
|
enum ScanProtocal
|
|
|
|
|
{
|
|
|
|
|
LSTAND = 0, RSTAND, LONE, RONE
|
|
|
|
|
};
|
|
|
|
|
|
2021-10-09 16:38:34 +08:00
|
|
|
class PatientInformationForm : public QWidget
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit PatientInformationForm(QWidget *parent = nullptr);
|
2022-06-13 11:21:44 +08:00
|
|
|
~PatientInformationForm() override;
|
2024-09-06 17:29:25 +08:00
|
|
|
void setPatientInformation(PatientInformation* information);
|
|
|
|
|
void setAccessionNumber(AccessionInformation* aAccession);
|
2023-09-08 17:09:49 +08:00
|
|
|
int getProtocol();
|
2024-05-10 15:23:39 +08:00
|
|
|
QString getProtocolString(ScanProtocal aProtocal);
|
2024-05-24 13:49:54 +08:00
|
|
|
void setExecuteProtocol(bool aIsLeft);
|
|
|
|
|
void clear();
|
2023-09-08 17:09:49 +08:00
|
|
|
|
2021-10-14 14:38:31 +08:00
|
|
|
const char * getCurrentPatientJsonString(bool emptyScan);
|
2024-05-10 15:23:39 +08:00
|
|
|
QString getPatientID();
|
2023-09-08 17:09:49 +08:00
|
|
|
|
2021-10-09 16:38:34 +08:00
|
|
|
private:
|
2022-06-13 11:21:44 +08:00
|
|
|
Ui::PatientInformationForm *mUI;
|
2024-05-24 13:49:54 +08:00
|
|
|
bool mIsExecuteProtocolLeft = false;
|
2024-05-10 15:23:39 +08:00
|
|
|
ScanProtocal mCurrentProtocol = LSTAND;
|
2022-06-13 11:21:44 +08:00
|
|
|
char * mJsonStr = nullptr;
|
2024-09-06 17:29:25 +08:00
|
|
|
QString mStudyUID;
|
|
|
|
|
QString mModality;
|
|
|
|
|
QString mMPPSUID;
|
2021-10-09 16:38:34 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // PATIENTINFORMATIONFORM_H
|