Files
GUI/src/forms/scan/PatientInformationForm.h
2023-09-08 17:10:25 +08:00

33 lines
804 B
C++

#ifndef PATIENTINFORMATIONFORM_H
#define PATIENTINFORMATIONFORM_H
#include <QWidget>
#include "src/forms/select/PatientDetailForm.h"
namespace Ui {
class PatientInformationForm;
}
class PatientInformationForm : public QWidget
{
Q_OBJECT
public:
explicit PatientInformationForm(QWidget *parent = nullptr);
~PatientInformationForm() override;
void setPatientInformation(PatientInformation* information);
PatientInformation* getPatientInformation();
void setProtocol(int type);
int getProtocol();
const char * getCurrentPatientJsonString(bool emptyScan);
QString getPatientID();
private:
Ui::PatientInformationForm *mUI;
PatientInformation* mInfo = nullptr;
int mCurrentProtocol = 0;
char * mJsonStr = nullptr;
};
#endif // PATIENTINFORMATIONFORM_H