fo-dicom / fo-dicom-samples

Sample applications associated with the fo-dicom framework
Other
152 stars 144 forks source link

CGet for RTSTRUCT files #86

Open mikhail-rozum opened 1 year ago

mikhail-rozum commented 1 year ago

Hello! I have a DICOM Server (Orthanc) and I need to download structure set dicom file from there(RTSTRUCT modality). I use this code ` ... var request = new DicomCGetRequest(studyInstanceId, seriesInstanceId);

        client.OnCStoreRequest += request =>
        {
            result.Add(request.Dataset);
            return Task.FromResult(new DicomCStoreResponse(request, DicomStatus.Success));
        };

        await client.AddRequestAsync(request);
        await client.SendAsync();

.... ` But I get an error: image How can I get RTSTRUCT dicom file from dicom server?

gofal commented 10 months ago

The CGetRequest that you add to the client does have an OnCGetResponse eventhandler. add a breakpoint there and inspect the details of the response. I had "cannot understand" as response in some cases where the server did not know the requested UID.