how to request to PACS server

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
moon198831
Posts: 14
Joined: Wed, 2011-03-16, 14:30

how to request to PACS server

#1 Post by moon198831 »

I read this thread
SCU = new DcmSCU (this);

if (SCU != NULL)
{
SCU ->setPeerAETitle(PeerAETitle);
SCU ->setPeerHostName(PeerHostName);
SCU ->setPeerPort(PeerPortNumber);
SCU ->addPresentationContexts(PreferredOutgoingSyntax);
status = SCU ->initNetwork();
status=SCU->negotiateAssociation();
SCU->findPresentationContext(..,..)
//Send Request
...
...

//Close Association
SCU->closeAssociation();
}
then how to request to the server some1 can help me ? regards

omarelgazzar
Posts: 101
Joined: Wed, 2009-07-08, 16:06
Location: Oldenburg, Germany

#2 Post by omarelgazzar »

In the DCMSCU, you will find functions to send requests such as store, find or echo ..etc
For example, to send echo request, you can use the function
virtual OFCondition DcmSCU::sendECHORequest ( const T_ASC_PresentationContextID presID )

and you can use findPresentationContextID to get the ID of the accepted presentation context pair of (abstractSyntax, transferSyntax).

In the same way, you will find other request functions in the DCMSCU class

moon198831
Posts: 14
Joined: Wed, 2011-03-16, 14:30

#3 Post by moon198831 »

you mean just add the request here?

Code: Select all

//Send Request 
... 
... 

//Close Association 
if so, I want to retrieve the data and wanna show them, how to make it.
I mean should I make a new page and write code in the new page?
I hope you can reply fast, Thanks a million [/quote]

Post Reply

Who is online

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