DICOM Server (PACS)¶
RPB integrates with script-able research PACS system - Conquest (1.4.19b) to store all documented medical imaging and treatment planning data in DICOM format. Optionally the Clinical Trial Processor - CTP software is used for flexible configuration of DICOM processing pipelines in particular research projects.
OS | Init | Application Server | Database |
---|---|---|---|
Debian 11 (Bullseye) | System V/ systemd | Apache | PostgreSQL 13 |
PostgreSQL¶
- Port: 5432
- Locale: UTF8
- Root user: postgres
psql -U postgres -c "CREATE ROLE conquest LOGIN ENCRYPTED PASSWORD 'conquest' SUPERUSER NOINHERIT NOCREATEDB NOCREATEROLE"
psql -U postgres -c "CREATE DATABASE conquest WITH ENCODING='UTF8' OWNER=conquest"
Apache¶
Web server will provide Common Gateway Interface (CGI) to Conquest. This can be used as simple DICOM server web interface.
apt-get install apache2
a2enmod cgi
/etc/init.d/apache2 restart
Conquest¶
Download Conquest sources (conquest-14-19b) from official web site.
Build¶
mkdir /opt/conquest-14-19b
cd /opt/conquest-14-19b
groupadd conquest
useradd -g conquest -d /opt/conquest-14-19b conquest
useradd conquest-import
passwd conquest
vi /etc/passwd change /bin/sh conquest user to /bin/false
chown -R conquest:conquest /opt/conquest-14-19b
chown -R conquest-import:conquest /opt/conquest-14-19b/data/incoming
chmod g+w /opt/conquest-14-19b/data/incomming
apt-get install build-essential
cd jpeg-6c
./configure
make install
cd ../jasper-1.900.1-6ct
./configure
make install
vi mymak
export LD_LIBRARY_PATH="/usr/local/pgsql/lib/"
gcc -o lua.o -c lua_5.1.4/all.c -Ilua_5.1.4
g++ -I/usr/include/postgresql -DUNIX -DNATIVE_ENDIAN=1 -DHAVE_LIBJASPER -DHAVE_LIBJPEG -DPOSTGRES -Wno-write-strings total.cpp lua.o -o dgate -lpthread -L/usr/lib -lpq -L/user/local/lib -ljasper -ljpeg -Ijpeg-6c -Ljpeg-6c -Ilua_5.1.4 -Wno-multichar
rm lua.o
pkill -9 dgate
sleep 0.2s
# Replace DICOM server dicom.ini with default config - comment when update or rebuild
cp dicom.ini.postgres dicom.ini
# Replace DICOM server dicom.sql with default config - comment when update or rebuild
cp dicom.sql.postgres dicom.sql
# Copy executable to allow CGI
cp dgate /usr/lib/cgi-bin
# Replace the CGI dicom.ini - comment when update or rebuild
cp dicom.ini.www /usr/lib/cgi-bin/dicom.ini
chmod +x mymak
Configuration¶
DICOM server configuraton (/opt/conquest-14-19b/dicom.ini)
MyACRNema = RPBPacs1
TCPPort = 5678
PACSName = RPBPacs1
SQLHost = localhost
SQLServer = conquest
Username = conquest
Password = conquest
MAGDevice0 = /mnt/data1/
CGI DICOM server configuration (/usr/lib/cgi-bin/dicom.ini)
MyACRNema = RPBPacs1
TCPPort = 5678
ACRNemaMap = /opt/conquest-14-19b/acrnema.map
kFactorFile = /opt/conquest-14-19b/dicom.sql
SOPClassList = /opt/conquest-14-19b/dgatesop.lst
Dictionary = /opt/conquest-14-19b/dgate.dic
WebScriptAddress = http://<server_address>/cgi-bin/dgate
Downloading DICOM studies/series¶
In order to be able to download zipped version of DICOM studies or series it is necessary to install zipping program. Conquest ist using 7zip.
apt-get install p7zip-full
vi /opt/conquest-14-19b/zip.cq
Clinical Trial Processor (CTP)¶
Default installation.