Exemple #1
0
 /**
  * Convenience function to test loading a patient and listing the associated volume UIDS.
  */
 static void loadAndListVolumes(VelocityEngine engine, string patientId)
 {
     if (!engine.loadPatientByPatientId(patientId).isValid())
     {
         Console.WriteLine("Could not load patient id {0}, error: {1}", patientId, engine.getErrorMessage());
     }
     else
     {
         var volumeIds = engine.getPatientVolumeUIDs(patientId);
         Console.WriteLine("Patient id {0} has volume UIDs: {1}", patientId, String.Join(", ", volumeIds));
     }
 }