45 lines
1012 B
Python
45 lines
1012 B
Python
"""
|
|
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.2.30",
|
|
"port": 11112,
|
|
"aet": "FREEDOM"
|
|
}
|
|
|
|
# Destination PACS Configuration (where to send data to)
|
|
DESTINATION_PACS = {
|
|
"host": "192.168.1.29",
|
|
"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 = "192.168.1.1:80"
|
|
HIS_URL = "/poapi/api_migrasiclarity.php?name=migrasi_data_pacs"
|