我知道如何在 DICOM RIS 中找到患者,但如何在其中插入/更新患者?我使用 fo-dicom,这是我查找患者的代码。如何插入或更新患者信息?非常感谢!!!
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;
}