Skip to content
huytaPublic

About

DICOM IMAGE VIEWER

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

MedDream DICOM Viewer & Orthanc PACS (Docker Setup)

This repository provides a complete, production-ready Docker Compose environment for running MedDream DICOM Viewer integrated with Orthanc PACS.


πŸ“ Directory Structure

MedDream/
β”œβ”€β”€ docker-compose.yml              # Core Docker Compose orchestration
β”œβ”€β”€ .env.example                   # Environment variable template
β”œβ”€β”€ .env                           # Active environment configuration
β”œβ”€β”€ config/
β”‚   β”œβ”€β”€ orthanc.json               # Orthanc PACS server & DICOMweb configuration
β”‚   └── application.properties     # MedDream viewer & PACS backend configuration
β”œβ”€β”€ demo/                          # DICOM Study Management & Viewing Web Application
β”‚   β”œβ”€β”€ package.json               # Demo dependencies & scripts
β”‚   β”œβ”€β”€ server.js                  # Express PACS proxy & API backend
β”‚   β”œβ”€β”€ public/                    # Frontend UI (HTML, CSS, JS)
β”‚   └── README.md                  # Demo guide
β”œβ”€β”€ scripts/
β”‚   └── import_sample.sh           # Script to import DICOM files and output viewer URLs
└── README.md                      # Complete setup & operations guide

πŸ’» DICOM Study Management Demo Web App

A responsive web application is available in demo/ to browse studies, search/filter, and view them directly in MedDream:

cd demo
npm install
npm start

Access at: http://localhost:3000


πŸš€ Quick Start

1. Start Services

docker compose up -d

2. Verify Container Health

docker compose ps

Both containers (meddream-viewer and meddream-orthanc) will display healthy.

3. Upload Sample DICOM

./scripts/import_sample.sh

This automatically fetches a standard test study, uploads it to Orthanc, and outputs the direct MedDream URL.


🌐 Endpoints & URLs

Service Host Port Internal Port Description
MedDream Viewer 8080 8080 Web DICOM Viewer
Orthanc REST API / UI 8042 8042 Orthanc Explorer & REST API
Orthanc DICOM DIMSE 4242 4242 C-STORE / C-FIND / C-MOVE port

Viewing Studies by Study Instance UID

Navigate to:

http://<SERVER_IP>:8080/?study=<STUDY_INSTANCE_UID>

Example with uploaded sample:

http://localhost:8080/?study=1.3.6.1.4.1.5962.1.2.2.20040826185059.5457

πŸ–ΌοΈ Iframe Embedding & LIMS / HIS Integration

To embed MedDream inside an <iframe> within your Laboratory Information Management System (LIMS), Electronic Health Record (EHR), or Hospital Information System (HIS), the security headers are configured in config/application.properties:

# 1. Disable restrictive legacy X-Frame-Options (ALLOW-FROM is deprecated by modern browsers)
security.frameOptionsPolicy=NONE

# 2. Configure Content-Security-Policy (CSP) frame-ancestors for your LIMS origin(s)
# Replace * or append specific origins, e.g., 'self' https://lims.yourdomain.com http://localhost:3000
security.contentSecurityPolicy=frame-ancestors 'self' *; default-src 'self'; base-uri 'self'; object-src 'none'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; img-src 'self' data: blob:; connect-src 'self'; frame-src 'self' blob:; worker-src 'self' blob:; form-action 'self';

# 3. Allow postMessage cross-window communication from your LIMS parent window
security.postMessageWhitelist=*

# 4. Cross-origin authorization
security.authAllowedOrigins=*

HTML Embedding Example

<iframe
  src="http://localhost:8080/?study=1.3.6.1.4.1.5962.1.2.2.20040826185059.5457"
  width="100%"
  height="800px"
  frameborder="0"
  allow="clipboard-read; clipboard-write; fullscreen"
  allowfullscreen>
</iframe>

πŸ—„οΈ Database Scaling & Migration

By default, the stack uses an embedded SQLite engine suitable for testing and development. When scaling up for production:

  • See the complete DATABASE_MIGRATION.md for step-by-step guides on upgrading to PostgreSQL or MySQL/MariaDB, hybrid storage strategies, and backup/restore workflows.

About

DICOM IMAGE VIEWER

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages