// if (strlen(patientName) != 0)
file->InsertEntryString(patientName.c_str(),0x0010,0x0010, "PN"); // Patient's Name
+ file->InsertEntryString(patientName.c_str(),0x0010,0x0020, "LO"); // Patient's ID
file->InsertEntryString(studyUID, 0x0020, 0x000d, "UI");
file->InsertEntryString(serieUID, 0x0020, 0x000e, "UI");