-
Notifications
You must be signed in to change notification settings - Fork 7
Adding a readme for dcmtk #224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
chinacat567
wants to merge
4
commits into
main
Choose a base branch
from
readme_update_dctmk
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| # DCMTK Debugging Guide | ||
|
|
||
| This document provides a generic guide for debugging DICOM operations using DCMTK tools. Currently, it includes instructions for performing C-GET operations. | ||
|
|
||
| --- | ||
|
|
||
| ## Debugging DICOM Operations with DCMTK | ||
|
|
||
| ### Prerequisites | ||
|
|
||
| DCMTK is pre-installed in the `adit_prod_web` container and available on the command line. You can use DCMTK tools like `getscu` directly from the terminal after logging into the terminal | ||
|
|
||
| ### C-GET Operations | ||
|
|
||
| The C-GET operation allows you to retrieve DICOM studies or images from a PACS server. Follow the steps below to perform and debug C-GET operations: | ||
|
|
||
| ### Steps | ||
|
|
||
| 1. **SSH into the Server Running ADIT**: | ||
|
|
||
| - Connect to the server running ADIT, which is linked to the PACS server, using the following command: | ||
|
|
||
| ```bash | ||
| ssh <username>@<server_ip> | ||
| ``` | ||
|
|
||
| - Ensure you have access to the PACS server and know its IP address, port, and AE title. | ||
|
|
||
| 2. **Retrieve a Study Using C-GET**: | ||
|
|
||
| - Use the following command to retrieve a study: | ||
|
|
||
| ```bash | ||
| getscu -v -aet <CALLING_AE_TITLE> -aec <CALLED_AE_TITLE> \ | ||
| -k 0008,0052=STUDY \ | ||
| -k 0020,000D=<STUDY_INSTANCE_UID> \ | ||
| -od ./received_files <PACS_IP> <PACS_PORT> | ||
| ``` | ||
|
|
||
| 3. **Retrieve a specfic Series Using C-GET**: | ||
|
|
||
| - Use the following command to retrieve a study: | ||
|
|
||
| ```bash | ||
| getscu -v -aet <CALLING_AE_TITLE> -aec <CALLED_AE_TITLE> \ | ||
| -k 0008,0052=SERIES \ | ||
| -k 0020,000D=<STUDY_INSTANCE_UID> \ | ||
| -k 0020,000E=<SERIES_INSTANCE_UID> \ | ||
| -od ./received_files <PACS_IP> <PACS_PORT> | ||
| ``` | ||
|
|
||
| 4. **Retrieve a Specific Image**: | ||
|
|
||
| - Use this command to retrieve a specific image: | ||
|
|
||
| ```bash | ||
| getscu -v -aet <CALLING_AE_TITLE> -aec <CALLED_AE_TITLE> \ | ||
| -k 0008,0052=IMAGE \ | ||
| -k 0020,000D=<STUDY_INSTANCE_UID> \ | ||
| -k 0020,000E=<SERIES_INSTANCE_UID> \ | ||
| -k 0008,0018=<SOP_INSTANCE_UID> | ||
| -od ./received_files <PACS_IP> <PACS_PORT> | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ### Notes | ||
|
|
||
| - Replace `<CALLING_AE_TITLE>`, `<CALLED_AE_TITLE>`, `<STUDY_INSTANCE_UID>`, `<SOP_INSTANCE_UID>`, `<PACS_IP>`, and `<PACS_PORT>` with the appropriate values for your setup. | ||
| - DCMTK tools like `getscu` are pre-installed and ready to use in the container. | ||
| - Use the `-v` flag for verbose output to help debug issues during the operation. | ||
| - The `-od` option specifies the output directory where the retrieved files will be saved. | ||
|
|
||
| --- | ||
|
|
||
| ### Troubleshooting | ||
|
|
||
| - **Connection Issues**: | ||
|
|
||
| - Verify the PACS server's IP address and port are correct. | ||
| - Ensure the AE titles match the configuration on the PACS server. | ||
|
|
||
| - **Failed Sub-operations**: | ||
|
|
||
| - Check the verbose output for details about failed sub-operations. | ||
| - Inspect the PACS server logs for additional information. | ||
|
|
||
| - **Invalid Query Parameters**: | ||
| - Ensure the DICOM tags used in the query (`0008,0052`, `0020,000D`, `0008,0018`) are correct and match the PACS server's expectations. | ||
|
|
||
| --- | ||
|
|
||
| This guide will be expanded to include other DCMTK tools and operations in the future. | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.