DCMSCU - PresentationContext Question

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
bmeric
Posts: 6
Joined: Tue, 2011-03-22, 10:00

DCMSCU - PresentationContext Question

#1 Post by bmeric »

Hi,

I'm trying to connect a pacs server with dcmscu class. i have no problem with echo and find but i can't get sendstorerequest working.

Here is what i do so far;

Code: Select all

	OFCondition rescond;
	DcmSCU testscu;
	testscu.setPeerHostName("192.168.1.188");
	testscu.setPeerPort(105);
	testscu.setAETitle("baris");
	testscu.setPeerAETitle("Server");
	
	OFList<OFString> tmplist;
	tmplist.push_back(UID_LittleEndianImplicitTransferSyntax);
	testscu.addPresentationContext(UID_StorageServiceClass, tmplist);
result of initnetwork() is EC_NORMAL, but negotiateAssociation() fails and negotiateAssociation().text() is "DUL Association Rejected".

So, my questions are;

1- which abstracktSyntax should i use for sendSTORERequest.(in addPresentationContext);
2- I used UID_VerificationSOPClass for echo and UID_FINDPatientRootQueryRetrieveInformationModel for patient level find. Are they ok or i'm doing this completely wrong.
3- How can i find more information about addPresentationContext(), i googled and searched in the forum but i can't find a simple list like "if you want to do this, you must use uid_something"

Thanks in advance.
Last edited by bmeric on Tue, 2011-03-22, 19:11, edited 1 time in total.

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

Depending on the type of DICOM objects you want to send with C-STORE, you have to negotiate the corresponding SOP Class, e.g. UID_CTImageStorage for CT images.

Regarding your 3rd question: You should definitely start reading the relevant parts of the DICOM standard before implementing anything ...

bmeric
Posts: 6
Joined: Tue, 2011-03-22, 10:00

#3 Post by bmeric »

It works :), thank you very much Jörg.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 1 guest