getscu
Retrieves a study or a series from a Query/Retrieve SCP with C-GET, and writes each instance it receives to a directory as <SOP Instance UID>.dcm. The instances come back on the same association.
When to use it
Use getscu to fetch a study to this machine when the PACS has no entry
for you as a move destination, or a firewall keeps it from connecting back:
C-GET needs only the one connection you open. The PACS must support C-GET,
which not every one does; if it does not, use movescu with a
storescp running here.
Find the UIDs first with findscu. Over HTTP the job is wado.
The closest tools are dcmtk's getscu and pynetdicom's python -m pynetdicom getscu.
Examples
Retrieve a study
go-dicom getscu -aec QRSCP -study 1.3.6.1.4.1.5962.1.2.1.20040119072730.12322 -output retrieved pacs:11112C-GET from pacs:11112 (level: STUDY)
Received: 1.3.6.1.4.1.5962.1.1.1.1.1.20040119072730.12322 -> retrieved/1.3.6.1.4.1.5962.1.1.1.1.1.20040119072730.12322.dcm
C-GET completed: 1 instance(s) retrieved to retrievedThe output directory is made if it is not there (default: the current directory).
Retrieve one series
go-dicom getscu -aec QRSCP -level SERIES -study 1.3.6.1.4.1.5962.1.2.4.20040826185059.5457 -series 1.3.6.1.4.1.5962.1.3.4.1.20040826185059.5457 -output retrieved pacs:11112At SERIES level give both -study and -series.
Nothing matched
go-dicom getscu -aec QRSCP -study 1.2.3.4 -output retrieved pacs:11112C-GET from pacs:11112 (level: STUDY)
C-GET completed: 0 instance(s) retrieved to retrievedExit status 0: the count is the answer.
Notes
getscuproposes the storage SOP classes of common images (CT, enhanced CT, MR, enhanced MR, ultrasound, secondary capture, CR, DX, XA). An instance of another class, a structured report for example, cannot be sent back to it, and the C-GET fails:Error: C-GET failed: DIMSE error [GET_FAILED]: C-GET failed with status 0xA702 (status=0xA702). Retrieve such instances with movescu or wado.- Exit status is 0 when the SCP reports Success, 1 on a failure status or a failed association.
- An instance received twice is written over.
-timeoutis in seconds (default 120) and bounds the whole retrieval. The-tls…options are those of echoscu;-eventsrecords the association (Events).- See CONFORMANCE.md, Retrieve responses and statuses.
See also
Options
movescu
Asks a Query/Retrieve SCP, with C-MOVE, to send a study or a series to a destination AE title. The SCP opens its own association to that destination and stores the instances there.
commitscu
Asks a peer, with Storage Commitment (N-ACTION), to take responsibility for instances you sent it, and with -wait receives the answer (N-EVENT-REPORT) on the same association: which instances are committed and which failed.