qrscp
Runs a small DICOM archive: it stores what it is sent (C-STORE), indexes it, answers C-FIND, C-MOVE and C-GET against what it holds, commits instances (Storage Commitment), and with -web serves the same store over DICOMweb.
When to use it
Use qrscp as a test PACS for an SCU, a modality simulator or a viewer; as
a local archive for a study set; or as the DICOMweb server behind
qido, wado and stow. It needs no
configuration file: point -output at a directory, name the C-MOVE
destinations with -move-dest, and it runs.
It is one process with one store on disk. It keeps instances as they arrive (it transcodes only when a DICOMweb client asks for another transfer syntax), does not route, has no web viewer, and does not serve Modality Worklist (use wlmscp), MPPS or UPS.
The closest tools are dcmtk's dcmqrscp (which needs dcmqrscp.cfg) and
pynetdicom's qrscp application.
Examples
Run an archive
go-dicom qrscp -port 11112 -output archive -move-dest DEST=workstation:11113 -web 8080 -allow 127.0.0.1,::1Starting DICOM Query/Retrieve SCP
AE Title: QRSCP
Port: 11112
Storage: archive
Allow: addresses 127.0.0.1/32, ::1/128
Indexed: 0 instance(s) already present
Services: Verification, Storage, Query/Retrieve
SOP Classes: 203
DICOMweb: http://127.0.0.1:8080/dicom-web
Listening for associations... (Ctrl+C to stop)Callers use the called AE title QRSCP unless -aet sets another.
-move-dest maps each C-MOVE destination's AE title to its host and port,
comma separated; a destination not listed is refused with A801. -allow
admits only the callers listed, here this machine; it works as for
storescp, with -allow-file for a list in a file.
Fill it, then query it
go-dicom storescu -aec QRSCP pacs:11112 ct.dcm mr.dcm report.dcm j2k.dcmThe archive prints each instance as it stores it:
Stored: 1.3.6.1.4.1.5962.1.1.1.1.1.20040119072730.12322 -> 1.3.6.1.4.1.5962.1.2.1.20040119072730.12322/1.3.6.1.4.1.5962.1.3.1.1.20040119072730.12322/1.3.6.1.4.1.5962.1.1.1.1.1.20040119072730.12322.dcm
…Files are kept as study/series/instance.dcm under -output, as they
arrived (compressed or not), with an index beside them (index.json,
index.log). On the next start the index is read back
(Indexed: 6 instance(s) already present).
go-dicom findscu -aec QRSCP -patient-name 'Compressed*' pacs:11112
go-dicom movescu -aec QRSCP -dest DEST -study 1.3.6.1.4.1.5962.1.2.1.20040119072730.12322 pacs:11112
go-dicom getscu -aec QRSCP -study 1.3.6.1.4.1.5962.1.2.1.20040119072730.12322 -output retrieved pacs:11112
go-dicom commitscu -aec QRSCP -wait -instance 1.2.840.10008.5.1.4.1.1.2:1.3.6.1.4.1.5962.1.1.1.1.1.20040119072730.12322 pacs:11112Each of these is shown with its output on its own page.
DICOMweb with a token
DICOMWEB_TOKEN=s3cret go-dicom qrscp -port 11112 -output archive -move-dest DEST=workstation:11113 -web 8080 -allow 127.0.0.1,::1…
DICOMweb: http://127.0.0.1:8080/dicom-web (bearer token required)A request without the token is answered 401. -web 8080 (a port alone)
listens on this machine only; -web host:port listens beyond it and needs a
token. DICOMWEB_TOKEN keeps the token out of the process list, where
-web-token would show it.
Notes
- Matching follows PS3.4 C.2.2; where the standard leaves a choice (case of names, accents, character sets), see CONFORMANCE.md, Matching in the archive.
- Storage Commitment is answered on the same association; an instance is committed only if the store holds it under the SOP class named and its file is on disk. See Storage commitment.
-max-opslets one association run several C-FIND, C-MOVE and C-ECHO operations at once (default 1); C-GET always runs alone.- With
-tls,-tls-outboundmakes the C-MOVE and commitment associations qrscp opens use TLS too. - The DIMSE port listens on every interface of the machine. The server runs until interrupted (Ctrl+C or SIGTERM).
- What the DICOMweb side serves: CONFORMANCE.md, DICOMweb.
See also
- storescu, findscu, movescu, getscu, commitscu
- qido, wado, stow, storescp
- Running an SCP
- Query and retrieve
- DICOMweb server
- TLS and security
- Examples
Options
upsscu
Works with Unified Procedure Steps on a UPS SCP: creates a step, reads it, claims it, updates it, completes or cancels it, asks for its cancellation, queries steps, and watches for their event reports.
wlmscp
Runs a Modality Worklist SCP that serves the worklist entries in a directory, one entry per file, to C-FIND queries from modalities.