Vinay Rathore
unread,Jan 23, 2015, 11:15:21 AM1/23/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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???
}