2021-10-09 16:38:34 +08:00
|
|
|
#ifndef PATIENTINFORMATIONFORM_H
|
|
|
|
|
#define PATIENTINFORMATIONFORM_H
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
2022-02-14 11:40:40 +08:00
|
|
|
#include "src/forms/select/editpatientform.h"
|
2021-10-09 16:38:34 +08:00
|
|
|
namespace Ui {
|
|
|
|
|
class PatientInformationForm;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class PatientInformationForm : public QWidget
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit PatientInformationForm(QWidget *parent = nullptr);
|
|
|
|
|
~PatientInformationForm();
|
2021-10-12 17:43:12 +08:00
|
|
|
void setPatientInformation(PatientInformation* information);
|
|
|
|
|
void setProtocol(int type);
|
2021-10-14 14:38:31 +08:00
|
|
|
const char * getCurrentPatientJsonString(bool emptyScan);
|
2021-10-09 16:38:34 +08:00
|
|
|
private:
|
|
|
|
|
Ui::PatientInformationForm *ui;
|
2021-10-12 17:43:12 +08:00
|
|
|
PatientInformation* inf = nullptr;
|
2021-10-14 14:38:31 +08:00
|
|
|
int currentProtocol = 0;
|
|
|
|
|
char * jsonstr = nullptr;
|
2021-10-09 16:38:34 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // PATIENTINFORMATIONFORM_H
|