+
+
+ // If you want to use this program as a template to create
+ // a 'Single Study UID - Single Serie UID' file set
+ // keep the following lines out of the loop
+
+ // 'Study Instance UID'
+ // The user is allowed to create his own Study,
+ // keeping the same 'Study Instance UID' for various images
+ // The user may add images to a 'Manufacturer Study',
+ // adding new Series to an already existing Study
+ std::string studyUID = gdcm::Util::CreateUniqueUID();
+ fileToBuild->InsertEntryString(studyUID, 0x0020,0x000d,"UI");
+
+ // 'Serie Instance UID'
+ // The user is allowed to create his own Series,
+ // keeping the same 'Serie Instance UID' for various images
+ // The user shouldn't add any image to a 'Manufacturer Serie'
+ // but there is no way no to prevent him for doing that
+ std::string serieUID = gdcm::Util::CreateUniqueUID();
+ fileToBuild->InsertEntryString(serieUID, 0x0020,0x000e,"UI");
+
+ // end of 'keep out of loop lines
+