Files
GUI/src/forms/scan/PatientInformationForm.h

41 lines
1.0 KiB
C
Raw Normal View History

2021-10-09 16:38:34 +08:00
#ifndef PATIENTINFORMATIONFORM_H
#define PATIENTINFORMATIONFORM_H
#include <QWidget>
#include "src/forms/select/PatientDetailForm.h"
2021-10-09 16:38:34 +08:00
namespace Ui {
class PatientInformationForm;
}
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;
void setPatientInformation(PatientInformationPointer information, ScanProtocal aProtocal);
2024-04-29 17:58:17 +08:00
PatientInformationPointer getPatientInformation();
int getProtocol();
QString getProtocolString(ScanProtocal aProtocal);
2024-05-24 13:49:54 +08:00
void setExecuteProtocol(bool aIsLeft);
void clear();
const char * getCurrentPatientJsonString(bool emptyScan);
QString getPatientID();
2021-10-09 16:38:34 +08:00
private:
2022-06-13 11:21:44 +08:00
Ui::PatientInformationForm *mUI;
2024-04-29 17:58:17 +08:00
PatientInformationPointer mInfo;
2024-05-24 13:49:54 +08:00
bool mIsExecuteProtocolLeft = false;
ScanProtocal mCurrentProtocol = LSTAND;
2022-06-13 11:21:44 +08:00
char * mJsonStr = nullptr;
2021-10-09 16:38:34 +08:00
};
#endif // PATIENTINFORMATIONFORM_H