C-Move Methdod Response Return status "Pending" and Data set NuLL

61 views
Skip to first unread message

Vinay Rathore

unread,
Jan 23, 2015, 11:15:21 AM1/23/15
to fo-d...@googlegroups.com

Please Help me below code . How  i can get the data set ??

public void GetPatient(string remotehost, Int16 port, string callingAET, string calledAET, string PatientID, string InstanaceUID, string SeriesInsUid)
        {
            //MessageBox.Show(remotehost + " " + port.ToString() + " " + callingAET + " " + calledAET + " " + PatientID + " " + InstanaceUID + " " +  SeriesInsUid);
           
            DicomCFindRequest fr = DicomCFindRequest.CreatePatientQuery(PatientID);
            MessageBox.Show(callingAET + " " + InstanaceUID);
            DicomCMoveRequest mr = new DicomCMoveRequest(callingAET, InstanaceUID); //, SeriesInsUid);
            mr.OnResponseReceived = MoveFinished;

            var client = new DicomClient();
            client.NegotiateAsyncOps(2, 0);
            client.AddRequest(fr);
            client.AddRequest(mr);
            //client.BeginSend(remotehost, port, false, callingAET, calledAET, Done, client);
            client.Send(remotehost, port, false, callingAET, calledAET);
        }

        public void MoveFinished(DicomCMoveRequest request, DicomCMoveResponse response)
        {
           
            MessageBox.Show("MoveFinished " + response.Status.Description);
            //.... No code yet but inside response only a command dataset with 9 items, unsigned ints.. no images anywhere
        }

        public void Done(IAsyncResult result)
        {
            //MessageBox.Show("Done " + result.ToString());
            //...Blank, just made this to get BeginSend to work? Something goes here???
        }
Reply all
Reply to author
Forward
0 new messages