]> Creatis software - gdcm.git/commitdiff
2004-02-06 Jean-Pierre Roux
authorjpr <jpr>
Fri, 6 Feb 2004 16:46:09 +0000 (16:46 +0000)
committerjpr <jpr>
Fri, 6 Feb 2004 16:46:09 +0000 (16:46 +0000)
     * ENH : - now gdcmDicomDir::CreateDicomDir() returns also the meta elements
             - GDCM_META added to gdcmDicomDirType
     - class gdcmMeta created
     * ENH : - A brief summary is now displayed at the beginning of 'testDicomDir'
     to help disaster magnitude estimation
     * REM  : Now useless Test/explDICOMDIR.cxx

ChangeLog
Testing/TestDicomDir.cxx

index e30d1a3ded8cfc28cbddb7f8d9a20021af90c78d..8637425f22966fe6a646363c8c19e72bd4948da1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,10 @@
 2004-02-06 Jean-Pierre Roux
-     * ENH : now gdcmDicomDir::CreateDicomDir() returns also the meta elements
-             GDCM_META added to gdcmDicomDirType
-            class gdcmMeta created
+     * ENH : - now gdcmDicomDir::CreateDicomDir() returns also the meta elements
+             - GDCM_META added to gdcmDicomDirType
+            - class gdcmMeta created
+     * ENH : - A brief summary is now displayed at the beginning of 'testDicomDir'
+            to help disaster magnitude estimation
+     * REM  : Now useless Test/explDICOMDIR.cxx
 
 2004-02-05 Benoit Regrain
      * ENH : add methods in gdcmObject to get the hash table or the list of
@@ -13,7 +16,7 @@
      * FIX : even length for some strings when writting the dicom dir
      * FIX : sort the images in the dicom dir
      * FIX : Bug fix for python use of dicom dir
-     * Add a python demo
+     * ADD : a python demo
 
 2004-02-04 Jean-Pierre Roux
      * FIX : Final solution (?) for icone embedded images
index 37f842f1576a6368b61095222845e4e1488da02b..646d23ef5a37b2ad78ab569a2c41a14282e024b4 100644 (file)
@@ -47,10 +47,9 @@ int main(int argc, char* argv[])
    }
 
 // Exemples exploitation de la structure
-
 // DON'T REMOVE neither the folowing code, nor the commented out lines
 
-
+/*
   cout << std::endl << std::endl  
             << " = Liste des PATIENT ==========================================" 
             << std::endl<< std::endl;  
@@ -61,9 +60,9 @@ int main(int argc, char* argv[])
       std::cout << (*itPatient)->GetEntryByNumber(0x0010, 0x0010) << std::endl; // Patient's Name   
       itPatient ++;    
    }
+*/
 
-/*   
-     
+/*        
    cout << std::endl << std::endl  
         << " = Liste des PATIENT/STUDY ==========================================" 
         << std::endl<< std::endl;      
@@ -77,8 +76,7 @@ int main(int argc, char* argv[])
          ++itStudy;            
       }
       itPatient ++;    
-   }
-   
+   }   
  */
  
    cout << std::endl << std::endl  
@@ -87,13 +85,21 @@ int main(int argc, char* argv[])
  
    itPatient = e1->GetPatients().begin();      
    while ( itPatient != e1->GetPatients().end() ) {  // on degouline la liste de PATIENT
-      std::cout << (*itPatient)->GetEntryByNumber(0x0010, 0x0010) << std::endl; // Patient's Name 
+       // Patient's Name, Patient ID 
+      std::cout << (*itPatient)->GetEntryByNumber(0x0010, 0x0010) ;
+      std::cout << " ID : ";
+      std::cout << (*itPatient)->GetEntryByNumber(0x0010, 0x0020) << std::endl;
       itStudy = ((*itPatient)->GetStudies()).begin();  
       while (itStudy != (*itPatient)->GetStudies().end() ) { // on degouline les STUDY de ce patient   
-         std::cout << "--- "<< (*itStudy)->GetEntryByNumber(0x0008, 0x1030) << std::endl; // Study Description 
+         std::cout << "--- "    << (*itStudy)->GetEntryByNumber(0x0008, 0x1030);              // Study Description 
+         std::cout << " Stud ID: ["<< (*itStudy)->GetEntryByNumber(0x0020, 0x0010);  // Study ID
+        std::cout << "]" << std::endl;
          itSerie = ((*itStudy)->GetSeries()).begin();
          while (itSerie != (*itStudy)->GetSeries().end() ) { // on degouline les SERIES de cette study    
-            std::cout << "--- ---  "<< (*itSerie)->GetEntryByNumber(0x0008, 0x103e) << std::endl; // Serie Description
+            std::cout << "--- ---  "<< (*itSerie)->GetEntryByNumber(0x0008, 0x103e);                  // Serie Description
+            std::cout << " Ser nb: [" <<   (*itSerie)->GetEntryByNumber(0x0020, 0x0011)             ; // Serie number
+            std::cout << "] Mod : "    <<   (*itSerie)->GetEntryByNumber(0x0008, 0x0060) << std::endl; // Modality
+           
             ++itSerie;   
          }
          ++itStudy;            
@@ -126,8 +132,7 @@ int main(int argc, char* argv[])
          ++itStudy;            
       }  
       itPatient ++;    
-   }
-   
+   }   
  */  
 
    cout << std::endl << std::endl