public Patient GetPatientData(string patientId)
        {
            var cfind = DicomCFindRequest.CreatePatientQuery(patientId);

            cfind.OnResponseReceived = (DicomCFindRequest rq, DicomCFindResponse rp) =>
            {
                _patient = GetPatientInformation(rp);
            };
            _client.AddRequest(cfind);
            _client.Send(_host, _port, _useTls, _callingAe, _calledAe);
            return(_patient);
        }
Ejemplo n.º 2
0
        static void ThreadProcess(object state)
        {
            string            clientID = state.ToString();
            DicomCFindRequest cfindReq = DicomCFindRequest.CreatePatientQuery("1111", "test");

            cfindReq.OnResponseReceived += (req, rsp) =>
            {
                System.Console.WriteLine(rsp.ToString() + "ClientID=" + clientID);
            };
            DicomClient client = new DicomClient();

            client.AddRequest(cfindReq);
            client.Send("127.0.0.1", 104, false, "FINDSCU", "FINDSCP");
        }
Ejemplo n.º 3
0
        public List <Study> GetStudiesPatientLevel(RetriveEntity RetriveFrom, string PatientID = null, string PatientName = null)
        {
            var request = DicomCFindRequest.CreatePatientQuery(PatientID, PatientName);

            return(GetStudies(RetriveFrom, request));
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Convenience method for creating a C-FIND patient query.
        /// </summary>
        /// <param name="patientId">Patient ID</param>
        /// <param name="patientName">Patient name.</param>
        /// <returns>C-FIND patient query object.</returns>
        public static DicomCFindRequest CreatePatientQuery(string patientId = null, string patientName = null)
        {
            DicomCFindRequest dimse = DicomCFindRequest.CreatePatientQuery(patientId, patientName);

            return(dimse);
        }