- codedName = "g^" + gdcm::Util::ConvertToMD5(patName);
- if (verbose)
- std::cout << patName << " --> " << codedName << std::endl;
+ codedName = "g^" + GDCM_NAME_SPACE::Util::ConvertToMD5(patName);
+ patID = pa->GetEntryString(0x0010, 0x0020);
+ codedID = GDCM_NAME_SPACE::Util::ConvertToMD5(patID);
+
+ if (verbose) {
+ std::cout << "[" << patName << "] --> [" << codedName << "]" << std::endl;
+ std::cout << "[" << patID << "] --> [" << codedID << "]" << std::endl;
+ }