Basic query/retrieve service class provider example which should be run with the QuerySCU. The Query Port is hardcoded to 10104, and the Move Port is hardcoded to 10105.
Assembly: QuerySCPCallback (in QuerySCPCallback.exe) Version: DCF34 r12431 DCF_3_4_38_20200923 NetFramework
public class Program
Thetype exposes the following members.
Initializes a new instance of theclass
For purposes of this example, we look for images in the QueryImagesPath in the application directory which is created if it does not exist. We also prepopulate it with a few images that we know are supplied with the examples if they exist in the application directory.
Main entry point for QuerySCPCallback.
The Query and Store servers may be run with the following commands in two different command windows:
After the above servers are running, a FIND may be issued by this program with:
StoreSCPExtended -p 10105 QuerySCPCallback
And a MOVE may be issued by this program with: QuerySCU -p 10104 --domove -q 0020,000D=2.16.840.1.113662.4.8796818069641.798806497.93296077602350.10
QuerySCU -p 10104 -q 0010,0010="MINER^STEPHEN"