Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CGet for RTSTRUCT files #86

Open
mikhail-rozum opened this issue Jan 20, 2023 · 1 comment
Open

CGet for RTSTRUCT files #86

mikhail-rozum opened this issue Jan 20, 2023 · 1 comment

Comments

@mikhail-rozum
Copy link

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
Copy link
Contributor

gofal commented Dec 22, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants