- if ( gdcm::DataEntry *de = dynamic_cast<gdcm::DataEntry *>(d) )
- {
- if( !de->IsValueCountValid() )
- {
- std::cerr << "Element: " << de->GetKey() <<
- " (" << de->GetName() << ") " <<
- "Contains a wrong VM: " << de->GetValueCount()
- << " should be: " << de->GetVM() << std::endl;;
- }
+ if ( !(de->GetGroup() % 2) ) // Don't check shadow elements. Righ now,
+ // Private Dictionnary are not dealt with
+ {
+ if( !de->IsValueCountValid() )
+ {
+ std::cerr << "Element: " << de->GetKey() <<
+ " (" << de->GetName() << ") " <<
+ "Contains a wrong VM: " << de->GetValueCount()
+ << " should be: " << de->GetVM() << std::endl;;
+ }