Program: gdcm
Module: $RCSfile: gdcmDicomDir.cxx,v $
Language: C++
- Date: $Date: 2007/09/17 12:21:56 $
- Version: $Revision: 1.196 $
+ Date: $Date: 2010/04/09 15:23:40 $
+ Version: $Revision: 1.198 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
std::ofstream *fp = new std::ofstream(fileName.c_str(),
std::ios::out | std::ios::binary);
- if ( !fp )
+ if ( !fp )
{
gdcmWarningMacro("Failed to open(write) File: " << fileName.c_str());
return false;
{
// get the current file characteristics
patCurName = (*it)->GetEntryString(0x0010,0x0010);
+ if (patCurName == "") // to prevent further troubles when wild anonymization was performed
+ patCurName = "gdcm^Patient";
patCurID = (*it)->GetEntryString(0x0010,0x0011);
studCurInstanceUID = (*it)->GetEntryString(0x0020,0x000d);
studCurID = (*it)->GetEntryString(0x0020,0x0010);