This Toolkit will provide the Query and Download data from Canmic Database. We can Query and Store DICOM files with dcm4chee API's.
To download the project from GitHub, use the following command:
git clone https://github.com/qurit/dcm4chee-toolkit.gitNavigate to the project directory:
cd dcm4chee-toolkitTo install the required dependencies, use the following command:
pip install -r requirements.txtpython dcm4chee-connector.py
--query: Query to send to DCM4CHEE. Enables the query mode to send queries to the DCM4CHEE server.--download: Download data from DCM4CHEE. Enables the download mode to fetch data from the DCM4CHEE server.
The following parameters can be provided in the .env file:
| Parameter | Description | Usage Example | Details | .env Support |
|---|---|---|---|---|
--out |
Output CSV file for query results | python dcm4chee-connector.py --out |
Specifies that the query results should be saved to a CSV file. | Yes |
--aet |
AET of the DCM4CHEE server | python dcm4chee-connector.py --aet AETitle |
Specifies the Application Entity Title (AET) of the DCM4CHEE server. | Yes |
--clientId |
Client ID of the DCM4CHEE server | python dcm4chee-connector.py --clientId clientID |
Specifies the Client ID for the DCM4CHEE server. | Yes |
--query-csv |
CSV file containing query parameters | python dcm4chee-connector.py --query-csv query.csv |
Specifies the path to a CSV file that contains the query parameters. | Yes |
--dicom-destination |
Destination folder for downloaded data | python dcm4chee-connector.py --dicom-destination /path/to/folder |
Specifies the destination folder where the downloaded DICOM data will be saved. | Yes |
Create a .env file in the root directory of the project with the following content:
QUERY_CSV=data/query.csv
DESTINATION=output/
CLIENT_ID=dcm4chee-arc-ui
AET=TEST
USERNAME=yourUsername
PASSWORD=UserPassword