Exemple #1
0
        private void SendStudy(StudyTableItem study, DicomServiceNodeList destinations)
        {
            var client = new DicomSendBridge();

            foreach (var destination in destinations)
            {
                client.SendStudy(destination, study, WorkItemPriorityEnum.High);
            }
        }
Exemple #2
0
        private void AlertStudyDeleted(StudyTableItem study)
        {
            var studyDate = DateParser.Parse(study.StudyDate);

            Context.DesktopWindow.ShowAlert(AlertLevel.Info,
                                            string.Format(SR.MessageFormatDeleteStudyScheduled,
                                                          study.PatientsName.FormattedName,
                                                          studyDate.HasValue ? Format.Date(studyDate.Value) : string.Empty,
                                                          study.AccessionNumber),
                                            SR.LinkOpenActivityMonitor, ActivityMonitorManager.Show, true);
        }
Exemple #3
0
		private void AlertStudyRetrieved(StudyTableItem study)
		{
			DateTime? studyDate = DateParser.Parse(study.StudyDate);
			Context.DesktopWindow.ShowAlert(AlertLevel.Info,
			                                string.Format(SR.MessageFormatRetrieveStudyScheduled,
			                                              study.PatientsName.FormattedName,
			                                              studyDate.HasValue
			                                              	? Format.Date(studyDate.Value)
			                                              	: string.Empty,
			                                              study.AccessionNumber,
			                                              study.Server.Name),
			                                SR.LinkOpenActivityMonitor, ActivityMonitorManager.Show, true);
		}
Exemple #4
0
        private void AlertStudySent(StudyTableItem study, IEnumerable <IDicomServiceNode> destinations)
        {
            var studyDate = DateParser.Parse(study.StudyDate);

            Context.DesktopWindow.ShowAlert(AlertLevel.Info,
                                            string.Format(SR.MessageFormatSendStudyScheduled,
                                                          string.Join(", ", destinations.Select(d => d.Name)),
                                                          study.PatientsName.FormattedName,
                                                          studyDate.HasValue
                                                                                                        ? Format.Date(studyDate.Value)
                                                                                                        : string.Empty,
                                                          study.AccessionNumber),
                                            SR.LinkOpenActivityMonitor, ActivityMonitorManager.Show, true);
        }
            public void Populate()
            {
                var context = (StudyBrowserToolContext)base.Context;
                var items   = new List <StudyTableItem>();
                var now     = DateTime.Now;

                for (int i = 0; i < 10000; ++i)
                {
                    var idString = _nextPatientId.ToString(CultureInfo.InvariantCulture);
                    var entry    = new StudyEntry();
                    var study    = new StudyRootStudyIdentifier
                    {
                        PatientsName                  = String.Format("Test{0}^Patient{0}", idString),
                        PatientId                     = idString,
                        AccessionNumber               = "A" + idString,
                        InstanceAvailability          = "ONLINE",
                        ModalitiesInStudy             = new[] { "MR" },
                        NumberOfStudyRelatedInstances = 10,
                        NumberOfStudyRelatedSeries    = 5,
                        StudyDescription              = "Study" + idString,
                        StudyInstanceUid              = idString,
                        StudyDate                     = now.ToString(DateParser.DicomDateFormat)
                    };

                    if (_dateCount >= 5)
                    {
                        _dateCount = 0;
                    }

                    var deleteOn = now.AddDays(_dateCount);
                    ++_dateCount;

                    entry.Study = study;
                    entry.Data  = new StudyEntryData {
                        DeleteTime = deleteOn
                    };
                    var item = new StudyTableItem(entry);

                    items.Add(item);
                    ++_nextPatientId;
                }

                var searchResult = context.Component.CurrentSearchResult;

                searchResult.SearchEnded(items, false);
            }
Exemple #6
0
		private void AlertStudySent(StudyTableItem study, IEnumerable<IDicomServiceNode> destinations)
		{
			var studyDate = DateParser.Parse(study.StudyDate);
			Context.DesktopWindow.ShowAlert(AlertLevel.Info,
											string.Format(SR.MessageFormatSendStudyScheduled,
											              string.Join(", ", destinations.Select(d => d.Name)),
											              study.PatientsName.FormattedName,
											              studyDate.HasValue
											              	? Format.Date(studyDate.Value)
											              	: string.Empty,
											              study.AccessionNumber),
											SR.LinkOpenActivityMonitor, ActivityMonitorManager.Show, true);
		}
Exemple #7
0
		private void SendStudy(StudyTableItem study, DicomServiceNodeList destinations)
		{
			var client = new DicomSendBridge();
			foreach (var destination in destinations)
			{
				client.SendStudy(destination, study, WorkItemPriorityEnum.High);
			}
		}