Example #1
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);
                }
            }
        }
Example #2
0
        public void AddDICOMObject(DICOMObject d)
        {
            var id = d.FindFirst(TagHelper.Study​ID.CompleteID);

            if (id != null)
            {
                var studyID = (id as ShortString).Data;
                var type    = GetFileType(d);
                if (!Studies.Exists(s => s.ID == studyID))
                {
                    var study = new DICOMStudy();
                    study.ID   = studyID;
                    study.Type = type;
                    var dt = d.FindFirst(TagHelper.Study​Date.CompleteID) as Date;
                    study.Date = dt.Data;
                    Studies.Add(study);
                }
            }
        }