I know how to find a patient in a DICOM RIS but how to insert/update a patient into it? I use fo-dicom and this is my code for find a Patient. How can I do to insert or update a Patient information? Thank you very mutch!!!
public void FindFinished(DicomCFindRequest rq, DicomCFindResponse rp)
{
if (rp.Dataset != null)
{
string strNewMessage = "";
string strSep = "";
strNewMessage += strSep + "PatientID: " + rp.Dataset.Get<string>(DicomTag.PatientID);
strSep = " ";
strNewMessage += strSep + "PatientName: " + rp.Dataset.Get<string>(DicomTag.PatientName);
strSep = " ";
strNewMessage += strSep + "PatientAge: " + rp.Dataset.Get<int>(DicomTag.PatientAge);
strSep = " ";
strResult += strSepRisultato + strNewMessage;
strSepResult = "\r\n";
}
}
private void btnFetch_Click(object sender, EventArgs e)
{
DicomCFindRequest cfind = DicomCFindRequest.CreatePatientQuery(patientId: "1234");
cfind.OnResponseReceived = FindFinished;
strResult = "";
strSepResult = "";
DicomClient client = new DicomClient();
client.AddRequest(cfind);
client.Send(txtHost.Text, Convert.ToInt16(txtPort.Text), ckTLS.Checked, txtFromAETitle.Text, txtToAETitle.Text);
txtResponse.Text = strRisultato;
}