Tool for retrieving data from a PACS
Project description
DICOM-QR
This program allows you to query and retrieve images from a DICOM node.
This needs a settings.json file with the following data:
{
// Specify either 'dimse' or 'dicom_web' but not both.
"dimse": {
"server_ae_title": "SOMETHING",
"server_ae_ip": "SOMETHING",
"server_ae_port": SOMETHING,
"client_ae_title": "SOMETHING",
"client_ae_port": SOMETHING,
"transfer_method": "move" // or "get", depending on the capabilities of the server.
},
"dicom_web": {
"url": "http://localhost:8042/dicom-web",
"username": "SOME USER", // or environment variable, see below.
"password": "SOME PWD"
},
"base_folder": "dumpdir",
"folder_template": "${PatientID}/${StudyDate}/${StudyDescription}/${Modality}/${FolderUID}_${SeriesDescription}",
"study_columns": [
{"name": "Index"},
{"name": "PatientID"},
{"name": "StudyDate"},
{"name": "StudyDescription", "justify": "left"}
],
"series_columns": [
{"name": "Index"},
{"name": "SeriesInstanceUID", "justify": "left", "no_wrap": true},
{"name": "Modality"},
{"name": "SeriesNumber"},
{"name": "SeriesDescription", "justify": "left"}
]
}
Search strategy for settings file:
- 'DICOM_QR_SETTINGS' environment value
- 'settings.json' in current directory
- ~/.config/dicom_qr/settings.json
If the username and/or password for a DICOM Web server starts and ends with a $, the value between that is interpreted as an environment variable and a lookup is performed.
i.e. $DICOM_WEB_USERNAME$ is replaced by the contents of environment variable DICOM_WEB_USERNAME
Template
Folder template can contain any of the following items:
- PatientName
- PatientID
- StudyDescription
- StudyDate
- StudyTime
- Modality
- SeriesDescription
- SeriesNumber
- SeriesInstanceUID
- FolderUID (Uses the uid_mapping provided to RetrievePacs class)
- StudyInstanceUID
- AccessionNumber
study columns:
names:
- StudyInstanceUID
- PatientID
- PatientName
- PatientSex
- PatientBirthDate
- StudyID
- StudyDate
- StudyDescription
- StudyTime
- AccessionNumber
justify
- default
- left
- center
- right
- full
no_wrap
- true
- false
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dicom_qr-0.2.2-py3-none-any.whl.
File metadata
- Download URL: dicom_qr-0.2.2-py3-none-any.whl
- Upload date:
- Size: 60.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
913a9c213bea61d1b867350f3b94f4f0ed3869faa9c42385e45a53a01bb915f9
|
|
| MD5 |
6c5f625de8eed66915428e0d867f945c
|
|
| BLAKE2b-256 |
5ecba4213ccc9c741322666ddfa68176bfe47f3806bdce4b78b9cd3f5b1c823e
|