예제 #1
0
 public DicomSeries(string patientID, DicomStudy parentStudy, DicomImage dicomImage)
 {
     PatientID = patientID;
     if (parentStudy != null)
     {
         ParentStudy = parentStudy;
         StudyID     = parentStudy.StudyId;
     }
     InitializeFromDicom(dicomImage);
 }
예제 #2
0
 public static int CompareDates(DicomStudy x, DicomSeries y)
 {
     if (x.StudyDate == null && y.SeriesDate == null)
     {
         return(0);
     }
     else if (x.StudyDate == null)
     {
         return(1);
     }
     else if (y.SeriesDate == null)
     {
         return(-1);
     }
     else
     {
         return(y.SeriesDate.CompareTo(x.StudyDate));
     }
 }