示例#1
0
 private string GetTypeAbbreviation(DICOMFileType type)
 {
     switch (type)
     {
         case DICOMFileType.RT_IMAGE: return "RT";
         case DICOMFileType.CT_IMAGE: return "CT";
         case DICOMFileType.MRI_IMAGE: return "MR";
         case DICOMFileType.PET_IMAGE: return "RT";
         case DICOMFileType.RT_PLAN: return "RTPLAN";
         case DICOMFileType.RT_STRUCT: return "RTSTRUCT";
         case DICOMFileType.RT_DOSE: return "DOSE";
         default: return "STUDY";
     }
 }
示例#2
0
        public void AddDICOMObject(DICOMObject d)
        {
            IDICOMElement id = d.FindFirst(TagHelper.STUDY_ID.CompleteID);

            if (id != null)
            {
                string        studyID = (id as ShortString).Data;
                DICOMFileType type    = GetFileType(d);
                if (!Studies.Exists(s => s.ID == studyID))
                {
                    DICOMStudy study = new DICOMStudy();
                    study.ID   = studyID;
                    study.Type = type;
                    Date dt = d.FindFirst(TagHelper.STUDY_DATE.CompleteID) as Date;
                    study.Date = dt.Data;
                    Studies.Add(study);
                }
            }
        }
示例#3
0
        private string GetTypeAbbreviation(DICOMFileType type)
        {
            switch (type)
            {
            case DICOMFileType.RT_IMAGE: return("RT");

            case DICOMFileType.CT_IMAGE: return("CT");

            case DICOMFileType.MRI_IMAGE: return("MR");

            case DICOMFileType.PET_IMAGE: return("RT");

            case DICOMFileType.RT_PLAN: return("RTPLAN");

            case DICOMFileType.RT_STRUCT: return("RTSTRUCT");

            case DICOMFileType.RT_DOSE: return("DOSE");

            default: return("STUDY");
            }
        }