Mini PACS – A free PACS server project Beta

Mini PACS – A free PACS server project (Beta). I ‘ve try to develop my own PACS server. After research and development ,PACS retriever and PACS storage manager and PACS database were succeed. This “Mini PACS” be able to work on Raspberry pi and Cubie Board.


Sponsor Link.

– Ubuntu server 12.04 with LAMP installed. – How to install LAMP on Ubuntu
DCMTK (The OFFIS DICOM toolkit)
pydicom
PHP-web pacs viewer from previous post

How To set it up.
Suppose you ‘ve had Ubuntu server with LAMP install already. if not – How to install LAMP on Ubuntu.

1. Install Python-dev and python-pip with Linux command line
sudo apt-get install python-dev python-pip

2. Install DCMTK with Linux command line
sudo apt-get install dcmtk

3. Install pydicom
sudo pip install pydicom

4. Install Python-MySQLdb
sudo apt-get install python2.7-mysqldb

5. Create database (import .sql dump file to your MySQL server)

[wpdm_file id=3]

upacs_user study series

6. Create pacsserver.sh to retrieve DICOM  on /home/your-name directory.
sudo nano pacsserver.sh
Then add this line to the .sh file
storescp +xa -aet yourAEtitle -dhl -od /home/xxxx/bbbbb 104
yourAEtitle = name of AE Title you want to use.
xxxx = your user name on /Home directory
bbbb = DICOM incoming directory (Don’t forget to set permission directory to 0777 )

So you will have “pacsserver.sh” on your /home/xxxx

7. Config “pacsserver.sh” to run at start up with crontab
sudo crontab -e
Then add this line to the end of file.
@reboot /home/xxxx/pacsserver.sh

After reboot you will get “store scp” and ready to retrieve any DICOM file from Modality or other PACS server (Any DICOM file will temporarily stored on this directory). Please  test this step until work before next.

8. Create directory /home/xxxx/cccc to permanently keep DICOM file
sudo mkdir /home/xxxx/cccc  (Don’t forget to set permission directory to 0777 )

9. Create Python script to handle DICOM file that stored on /home/xxxx/bbbbb
Some path of “read-dicom.py” need to change.
db = MySQLdb.connect(host=”localhost”, port=3306, user=”root”, passwd=”your-root-password”, db=”pacsserver”)
source_dir = “/home/xxxx/bbbbb”
dest_dir = “/home/xxxx/cccc”

/home/xxxx/bbbbb = DICOM incoming directory
/home/xxxx/cccc = DICOM will be read and classified by study date, seriesUID,StudyUID then save to this diretory.


Sponsor Link.


[wpdm_file id=4]
Download and put it to /home/xxxx, then test with command “sudo python read-dicom.py”

10. Config “read-dicom.py” to run at start up.
sudo crontab -e
Then add this line to the end of file.
@reboot /home/xxxx/read-dicom.py

After reboot your server ready to work as PACS server

How it work.
pacs
(Next post “PACS viewer”)

ClearCanvas ImageServer : open source PACS server

The ClearCanvas ImageServer is a DICOM Compliant open source PACS server and archive that includes the following features:


Sponsor Link.


  • Support for archival of studies to HSM style archives (such as the EMC DiskXtender software or Sun StorageTek QFS / SAM software) with the ability to function as a temporary cache or a standard archive. The rules engine can be used to determine which studies will be saved to the archive, and which can be deleted.
  • Support for the storage and retrieval of a wide range of DICOM storage objects.
  • A sophisticated rules engine that allows for the scheduling of various disk management activities and auto-routing of DICOM studies
  • Support for partitioning to segment data.
  • Support for multiple filesystems for storage of online DICOM studies.
  • Lossless and lossy compression of online studies using RLE or standard JPEG compression.
  • Support for a single user login, which is set at installation time.
  • Support for JPEG 2000 compression and decompression utilizing the Accusoft Pegasus PicTools library.
  • Support for audit trail logging to a centralized server through the ClearCanvas Enterprise Server.
  • Centralized authorization and authentication support with multiple user logins and authority tokens and groups through the ClearCanvas Enterprise Server.
  • Support for clustering of servers for handling of increased load.
  • Shared logins with the ClearCanvas Workstation and RIS through the ClearCanvas Enterprise Server.

Read more : http://www.clearcanvas.ca/dnn/Home/tabid/37/Default.aspx