wlmscp
Runs a Modality Worklist SCP that serves the worklist entries in a directory, one entry per file, to C-FIND queries from modalities.
When to use it
Use wlmscp to test a modality's worklist setup, to run a demo or a
training scanner, or to stand in for a RIS. The directory is read again at
every query, so a file added, changed or removed while the server runs is
served as it is: a script can schedule a patient by writing a file.
It answers Modality Worklist C-FIND and C-ECHO only. It does not take MPPS or store images; for those, see mppsscu and qrscp.
The closest tool is dcmtk's wlmscpfs, which reads one subdirectory per AE
title (wlistdb/OFFIS); here -dir names one directory, and dcmtk's
wlistdb/OFFIS works as it is.
Examples
Serve a directory of entries
go-dicom wlmscp -dir wlist -port 11112 -allow 127.0.0.1,::1Starting DICOM Modality Worklist SCP
AE Title: WLMSCP
Port: 11112
Worklist: wlist (2 entries)
Allow: addresses 127.0.0.1/32, ::1/128
Listening for worklist queries... (Ctrl+C to stop)
Query from FINDSCU: 2 of 2 entries matched
Query from FINDSCU: 1 of 2 entries matchedModalities call it with the AE title WLMSCP unless -aet sets another.
-allow admits only the callers listed, here this machine; it takes AE
titles, addresses, CIDR ranges and TITLE@ADDRESS, as for
storescp, and -allow-file reads them from a file.
Each entry is a DICOM file, with File Meta Information or without, whatever
its name, holding the patient, the requested procedure and a Scheduled
Procedure Step Sequence. A file that is not a worklist entry is not served,
and is reported once.
Query it as a modality would
go-dicom findscu -aec WLMSCP -worklist -modality MR -date 20261204 ris:11112Querying ris:11112 (Modality Worklist)
--- Result 1 ---
Accession Number ACC1001
…
Patient's Name Roe^Richard
Patient ID PID1001
…
Scheduled Procedure Step Sequence
Item 1
Modality MR
Scheduled Station AE Title MR01
Scheduled Procedure Step Start Date 20261204
…
Found 1 result(s)Make an entry
go-dicom create wl1.json wlist/WL1.wl the source has no SOP Instance UID; it is given 2.25.121570866654934341707041272394683475214
Wrote wlist/WL1.wl: from DICOM JSON, 1.2.840.10008.1.2.1wl1.json is a DICOM JSON object with Patient's Name, Patient ID,
Accession Number, Study Instance UID, Requested Procedure ID and
Description, and a Scheduled Procedure Step Sequence item (Modality,
Scheduled Station AE Title, start date and time, step ID and description).
create needs a SOP Class UID in it; the Modality Worklist
Information Model, 1.2.840.10008.5.1.4.31, serves.
Notes
-diris required.- Matching follows PS3.4 K for the keys a query sends; see CONFORMANCE.md, Service classes.
- The server listens on every interface of the machine, on
-port(default 11112), and runs until interrupted.-tlsand-eventswork as for storescp.
See also
Options
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.
qido
Searches a DICOMweb service for studies, series or instances (QIDO-RS, PS3.18 10.6) and prints each match, as a table or as DICOM JSON.