Hello!I Am completly new in programming and in Dicom.
First i would like to say a big thx for Fellow Oak DICOM Team. realy awesome instrument!
-------
Please help me to understand how to set encoding in C-FIND.
i know how to Add DicomTag with Cyrillic encoding, but cant understand how to Get with C-FIND.
for example:
rename patient and send to Orthanc:
var file = Dicom.DicomFile.Open(@"file.dcm");
file.Dataset.Remove(Dicom.DicomTag.PatientName);
file.Dataset.Add( new DicomPersonName(
DicomTag.PatientName, DicomEncoding.GetEncoding(
"ISO 2022 IR 144"), "Иванов Иван Иванович")
);
file.Save(@"file_renamed.dcm");
var client = new DicomClient();
client.AddRequest(new DicomCStoreRequest(@"file_renamed.dcm"));
client.Send("127.0.0.1", 12345, false, "SCU", "ANY-SCP");
C-FIND:
var cfind = DicomCFindRequest.CreateStudyQuery(patientId: "*");
cfind.OnResponseReceived = (DicomCFindRequest rq, DicomCFindResponse rp) =>
{
Console.WriteLine("PatientName: {0}\n", rp.Dataset.Get<string>(DicomTag.PatientName));
var client = new DicomClient();
client.AddRequest(cfind);
client.Send("127.0.0.1", 12345, false, "SCU", "ANY-SCP");
and i got something like "?????? ???? ????????"
How can i Get PatientName with right encoding?
thx a lot.