2 releases
0.1.1 | Dec 12, 2022 |
---|---|
0.1.0 | Oct 23, 2022 |
#2273 in Command line utilities
2MB
37K
SLoC
DICOM-rs findscu
This is an implementation of the DICOM Find SCU (C-Find), which can be used to search for study and patient records in a DICOM archive.
This tool is part of the DICOM-rs project.
Usage
Note that this tool is not necessarily a drop-in replacement
for findscu
tools in other DICOM software projects.
Run dicom-findscu --help
for more details.
There are two exclusive ways to specify a DICOM query:
Using the multi-value -q
option
Each value is a text of the form «field_name»=«field_value»
, where:
field_name
is either a standard DICOM tag (in the form(gggg,eeee)
orgggg,eeee
) or a tag keyword name such asPatientName
.field_value
is the respective value or pattern to match against the value of the specified DICOM attribute. It can be empty, which in that case the=
may also be left out.
Basic usage includes searching for a study or patient by a certain attribute. Only patient level and study level queries are supported.
# query application entity STORAGE for a study with the accession number A123
dicom-findscu STORAGE@pacs.example.com:1045 --study -q AccessionNumber=A123
# query application entity PACS for patients born in 1990-12-25
dicom-findscu PACS@pacs.example.com:1045 --patient -q PatientBirthDate=19901225
# wild-card query: grab a list of all study instance UIDs
dicom-findscu PACS@pacs.example.com:1045 -S -q "StudyInstanceUID=*"
Passing a query object file
As an alternative to term queries, you can also provide a DICOM query object as a file. There are currently no tools in DICOM-rs to assist in the process of creating these objects, but one can convert DCMTK DICOM data dumps into compatible DICOM query objects.
# query is defined in file
dicom-findscu PACS@pacs.example.com:1045 --study query.dcm
Dependencies
~11MB
~177K SLoC