Scan tab Patient information logic and protocol logic.

This commit is contained in:
Krad
2021-10-12 17:43:12 +08:00
parent 68a7f32027
commit 14169b3072
4 changed files with 48 additions and 4 deletions

View File

@@ -11,4 +11,26 @@ PatientInformationForm::PatientInformationForm(QWidget *parent) :
PatientInformationForm::~PatientInformationForm()
{
delete ui;
if (inf) delete inf;
}
void PatientInformationForm::setPatientInformation(PatientInformation* information) {
ui->lbl_ID->setText(information->ID);
ui->lbl_Date->setText(information->BirthDate);
ui->lbl_Name->setText(information->Name);
ui->lbl_Sex->setText(information->Sex);
inf = information;
}
void PatientInformationForm::setProtocol(int type) {
switch(type)
{
case 0:
ui->lbl_Protocol->setText("LEFT ONLY");
break;
case 1:
default:
ui->lbl_Protocol->setText("RIGHT ONLY");
break;
}
}