From 5216b5cd01a0213de42d9fd6039c7ed8f33534d1 Mon Sep 17 00:00:00 2001 From: Krad Date: Thu, 21 Oct 2021 12:33:49 +0800 Subject: [PATCH] Replace space to underline in PatientName and PatientID. --- src/patientinformationform.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/patientinformationform.cpp b/src/patientinformationform.cpp index 6d8c455..822d69c 100644 --- a/src/patientinformationform.cpp +++ b/src/patientinformationform.cpp @@ -39,9 +39,9 @@ void PatientInformationForm::setProtocol(int type) { const char *PatientInformationForm::getCurrentPatientJsonString(bool empty) { cJSON* root=cJSON_CreateObject(); - cJSON_AddItemToObject(root, "PatientName",cJSON_CreateString(ui->lbl_Name->text().replace(' ','.').toStdString().data())); - cJSON_AddItemToObject(root, "PatientID",cJSON_CreateString(ui->lbl_ID->text().replace(' ','.').toStdString().data())); - cJSON_AddItemToObject(root, "PatientSex",cJSON_CreateString(ui->lbl_Sex->text().replace(' ','.').toStdString().data())); + cJSON_AddItemToObject(root, "PatientName",cJSON_CreateString(ui->lbl_Name->text().replace(' ','_').toStdString().data())); + cJSON_AddItemToObject(root, "PatientID",cJSON_CreateString(ui->lbl_ID->text().replace(' ','_').toStdString().data())); + cJSON_AddItemToObject(root, "PatientSex",cJSON_CreateString(ui->lbl_Sex->text().toStdString().data())); cJSON_AddItemToObject(root, "PatientBirthDate", cJSON_CreateString(ui->lbl_Date->text().replace("/","").replace("-","").replace(' ','.').toStdString().data())); cJSON_AddItemToObject(root, "Laterality",cJSON_CreateString(currentProtocol?"R":"L"));