22 lines
581 B
Bash
Executable File
22 lines
581 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Import all DICOM studies from csmychartuser directories
|
|
|
|
DOWNLOAD_DIR="/Users/johanjongsma/Downloads"
|
|
CONVERTER_DIR="/Users/johanjongsma/dicom/convert"
|
|
|
|
for dir in "$DOWNLOAD_DIR"/csmychartuser_*; do
|
|
if [ -d "$dir/exam" ]; then
|
|
echo ""
|
|
echo "=========================================="
|
|
echo "Importing: $dir"
|
|
echo "=========================================="
|
|
(cd "$CONVERTER_DIR" && go run main.go "$dir/exam")
|
|
else
|
|
echo "Skipping $dir (no exam folder)"
|
|
fi
|
|
done
|
|
|
|
echo ""
|
|
echo "Done importing all studies."
|