Exemplo n.º 1
0
 public PatientRepositoryDicom(WorklistSource worklistSource)
 {
     this._host      = worklistSource.Host;
     this._port      = Int32.Parse(worklistSource.Port);
     this._useTls    = false;
     this._callingAe = worklistSource.DisplayName;
     this._calledAe  = worklistSource.AETitle;
     _patients       = new List <Patient>();
 }
Exemplo n.º 2
0
        /// <summary>
        /// Проверяет подключени к Dicom серверу
        /// </summary>
        /// <param name="worklistSource"></param>
        /// <returns></returns>
        public bool CheckConnection(WorklistSource worklistSource)
        {
            DicomClient client = new DicomClient();

            client.AddRequest(new DicomCEchoRequest());
            client.Send(worklistSource.Host, Int32.Parse(worklistSource.Port),
                        false, worklistSource.DisplayName, worklistSource.AETitle);

            if (client.IsSendRequired)
            {
                return(true);
            }

            return(false);
        }