Пример #1
0
        /// <summary>
        /// Performs an IMAGE level query.
        /// </summary>
        /// <exception cref="FaultException{DataValidationFault}">Thrown when some part of the data in the request is poorly formatted.</exception>
        /// <exception cref="FaultException{QueryFailedFault}">Thrown when the query fails.</exception>
        public IList<ImageIdentifier> ImageQuery(ImageIdentifier queryCriteria)
        {
            var results = _real.ImageQuery(queryCriteria);

            AuditHelper.LogQueryIssued(_remoteServer.AETitle, _remoteServer.ScpParameters.HostName, EventSource.CurrentUser,
                           EventResult.Success, SopClass.StudyRootQueryRetrieveInformationModelFindUid,
                           queryCriteria.ToDicomAttributeCollection());

            return results;
        }
Пример #2
0
        /// <summary>
        /// Performs an IMAGE level query.
        /// </summary>
        /// <exception cref="FaultException{DataValidationFault}">Thrown when some part of the data in the request is poorly formatted.</exception>
        /// <exception cref="FaultException{QueryFailedFault}">Thrown when the query fails.</exception>
        public IList <ImageIdentifier> ImageQuery(ImageIdentifier queryCriteria)
        {
            IList <ImageIdentifier> results = _client.ImageQuery(queryCriteria);

            if (_imageComparer != null)
            {
                results = CollectionUtils.Sort(results, _imageComparer.Compare);
            }

            return(results);
        }
Пример #3
0
        /// <summary>
        /// Performs an IMAGE query for the given Study and Series Instance Uid.
        /// </summary>
        public IList <ImageIdentifier> ImageQuery(string studyInstanceUid, string seriesInstanceUid)
        {
            Platform.CheckForEmptyString(studyInstanceUid, "studyInstanceUid");
            Platform.CheckForEmptyString(seriesInstanceUid, "seriesInstanceUid");

            ImageIdentifier criteria = new ImageIdentifier();

            criteria.StudyInstanceUid  = studyInstanceUid;
            criteria.SeriesInstanceUid = seriesInstanceUid;
            return(ImageQuery(criteria));
        }
Пример #4
0
		public IList<ImageIdentifier> ImageQuery(ImageIdentifier queryCriteria)
		{
			var request = new ImageQueryRequest
			{
				Criteria = queryCriteria,
				LocalApplicationEntity = _localAE,
				RemoteApplicationEntity = new ApplicationEntity(_remoteAE)
			};

			var query = new DicomStudyRootQueryApplication();
			var result = query.ImageQuery(request);
			return result.Results;
		}
Пример #5
0
        public IList <ImageIdentifier> ImageQuery(ImageIdentifier queryCriteria)
        {
            var request = new ImageQueryRequest
            {
                Criteria = queryCriteria,
                LocalApplicationEntity  = _localAE,
                RemoteApplicationEntity = new ApplicationEntity(_remoteAE)
            };

            var query  = new DicomStudyRootQueryApplication();
            var result = query.ImageQuery(request);

            return(result.Results);
        }
Пример #6
0
 private IEnumerable<SopInstance> GetSopInstances(ImageIdentifier criteria)
 {
     return GetSopInstances(new ImageEntry { Image = criteria });
 }
Пример #7
0
 public IList<ImageIdentifier> ImageQuery(ImageIdentifier criteria)
 {
     var entries = GetSopInstances(criteria);
     return entries.Select(e => e.ToStoreEntry().Image).ToList();
 }
Пример #8
0
		public IList<ImageIdentifier> LocateImagesBySeries(string studyInstanceUid, string seriesInstanceUid, out LocateFailureInfo[] failures)
		{
			Platform.CheckForEmptyString(studyInstanceUid, "studyInstanceUid");
			Platform.CheckForEmptyString(seriesInstanceUid, "seriesInstanceUid");

			var criteria = new ImageIdentifier {StudyInstanceUid = studyInstanceUid, SeriesInstanceUid = seriesInstanceUid};
			var result = LocateImages(new LocateImagesRequest {Criteria = criteria});
			failures = result.Failures.ToArray();
			return result.Images;
		}
Пример #9
0
 public System.Collections.Generic.IList<ImageIdentifier> ImageQuery(ImageIdentifier queryCriteria)
 {
     var criteria = new ImageEntry { Image = queryCriteria };
     var result = Real.GetImageEntries(new GetImageEntriesRequest { Criteria = criteria });
     return result.ImageEntries.Select(e => e.Image).ToList();
 }
Пример #10
0
 public IList <ImageIdentifier> ImageQuery(ImageIdentifier queryCriteria)
 {
     return(Query <ImageIdentifier, StudyRootFindScu>(queryCriteria));
 }
Пример #11
0
 /// <summary>
 /// Performs an IMAGE level query.
 /// </summary>
 /// <exception cref="FaultException{DataValidationFault}">Thrown when some part of the data in the request is poorly formatted.</exception>
 /// <exception cref="FaultException{QueryFailedFault}">Thrown when the query fails.</exception>
 public IList <ImageIdentifier> ImageQuery(ImageIdentifier queryCriteria)
 {
     return(base.Channel.ImageQuery(queryCriteria));
 }