Index: sources/storage/TreatmentLog.cpp =================================================================== diff -u -r143bb84e7a23e5dbc9fa5bd29e8aa0407b9a7109 -rc4bd7072571428744e11dd24d5da1d1a3e1d1686 --- sources/storage/TreatmentLog.cpp (.../TreatmentLog.cpp) (revision 143bb84e7a23e5dbc9fa5bd29e8aa0407b9a7109) +++ sources/storage/TreatmentLog.cpp (.../TreatmentLog.cpp) (revision c4bd7072571428744e11dd24d5da1d1a3e1d1686) @@ -59,7 +59,7 @@ * Initializing the model for the constant values. * \param vData - the response model data. */ -void TreatmentLog::initModel(const AdjustTreatmentLogResponseData &vData) +void TreatmentLog::initModel(const AdjustTreatmentLogResponseData &vData, const QString &vPatientID) { // Formatted values QString mStrText = "%1"; @@ -88,6 +88,7 @@ _values.clear(); for (int i = 0; i < eTreatmentLogIndexCount; i++) _values << ""; + _values[ePatientID ] = vPatientID.trimmed() ; _values[eDeviceID ] = mStrText.arg(vData.mDeviceID ); _values[eBloodFlowRate ] = mStrText.arg(vData.mBloodFlowRate ); _values[eDialysateFlowRate ] = mStrText.arg(vData.mDialysateFlowRate ); @@ -207,7 +208,7 @@ uint index = 0 ; ADDTITLE("Title"); - ADDALINE(csv.arg(tr("Patient ID" )) + NONE); + ADDTOLOG( ePatientID ); ADDTOLOG( eDeviceID ); ADDTITLE("Treatment Prescription" );