+ if ( !sqi )
+ {
+ std::cout << "Sequence 0088|0200 has no SQItem" << std::endl
+ << " ... Failed" << std::endl;
+ f->Delete();
+ return 1;
+ }
+
+ std::cout << "First Item found" << std::endl;
+
+ // Test for entry 0028|0010
+ if ( !sqi->GetDataEntry(0x0028,0x0010) )
+ {
+ std::cout << "GetDataEntry 0028|0010 not found" << std::endl
+ << " ... Failed" << std::endl;
+ f->Delete();
+ return 1;
+ }
+ std::cout << "First Item ->DataEntry 0028|0010 found" << std::endl;
+ if ( sqi->GetDataEntry(0x0028,0x0010)->GetString() != "128" )
+ {
+ std::cout << "Value 0028|0010 don't match" << std::endl
+ << "Read : " << sqi->GetDataEntry(0x0028,0x0010)->GetString()
+ << " - Expected : 128" << std::endl
+ << " ... Failed" << std::endl;
+ f->Delete();
+ return 1;
+ }
+
+ // Test for entry 0028|0011
+ if ( !sqi->GetDataEntry(0x0028,0x0011) )
+ {
+ std::cout << "GetDataEntry 0028|0011 not found" << std::endl
+ << " ... Failed" << std::endl;
+ f->Delete();
+ return 1;
+ }
+ std::cout << "First Item ->DataEntry 0028|0011 found" << std::endl;
+ if ( sqi->GetDataEntry(0x0028,0x0011)->GetString() != "128" )
+ {
+ std::cout << "Value 0028|0011 don't match" << std::endl
+ << "Read : " << sqi->GetDataEntry(0x0028,0x0011)->GetString()
+ << " - Expected : 128" << std::endl
+ << " ... Failed" << std::endl;
+ f->Delete();
+ return 1;
+ }
+
+ // Test for entry 0028|0100
+ if ( !sqi->GetDataEntry(0x0028,0x0100) )
+ {
+ std::cout << "GetDataEntry 0028|0100 not found" << std::endl
+ << " ... Failed" << std::endl;
+ f->Delete();