init: tested on hangtuah to cloud
This commit is contained in:
44
config/settings.py
Normal file
44
config/settings.py
Normal file
@@ -0,0 +1,44 @@
|
||||
"""
|
||||
Configuration settings for DICOM operations.
|
||||
"""
|
||||
|
||||
# DICOM Network Settings
|
||||
SOURCE_AET = "PYNETDICOM" # Our AE Title
|
||||
SOURCE_PORT = 8888 # Our port
|
||||
|
||||
# Source PACS Configuration (where to query/get data from)
|
||||
SOURCE_PACS = {
|
||||
"host": "192.168.22.3",
|
||||
"port": 11112,
|
||||
"aet": "ABPACS"
|
||||
}
|
||||
|
||||
# Destination PACS Configuration (where to send data to)
|
||||
DESTINATION_PACS = {
|
||||
"host": "152.42.173.210",
|
||||
"port": 11112,
|
||||
"aet": "ABPACS"
|
||||
}
|
||||
|
||||
# Network operation timeouts (in seconds)
|
||||
NETWORK_TIMEOUT = 30
|
||||
ASSOCIATION_TIMEOUT = 5
|
||||
|
||||
# Retry configuration
|
||||
MAX_RETRIES = 2
|
||||
RETRY_DELAY = 5 # seconds
|
||||
|
||||
# Logging Configuration
|
||||
LOG_LEVEL = "INFO"
|
||||
LOG_FORMAT = "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
|
||||
LOG_FILE = "logs/dicom_operations.log"
|
||||
MAX_LOG_SIZE = 10 * 1024 * 1024 # 10 MB
|
||||
BACKUP_COUNT = 5
|
||||
|
||||
# Output Configuration
|
||||
JSON_OUTPUT_DIR = "output/json"
|
||||
DICOM_STORE_DIR = "output/dicom"
|
||||
|
||||
# HIS Configuration
|
||||
HIS_HOST = "localhost:8787"
|
||||
HIS_URL = "/result_series"
|
||||
Reference in New Issue
Block a user