Scalable Quality Assurance for Neuroimaging - (SQAN)
Web based instrumental & protocol quality control for medical imaging
Introduction
SQAN (formerly RADY-SCA) is a full-stack system solution for extracting, translating, and logging (ETL) + modern web portal-based quality-control verification of DICOM-format medical imaging data and metadata. SQAN consists of four principle components:
- Incoming (node.js)
- Watches for and retrieves imaging data from a transfer service (e.g. an Orthanc instance)
- Extracts and compresses metadata and stores in a database
- Quality Control (node.js)
- Performs protocol and exam-level verification on newly arrived data, and on existing data as requested
- API (node.js/ExpressJS)
- Provides authorized access to metadata and QC results
- UI (VueJS)
- Allows authorized users to view stored data, QC results, modify QC templates and access controls, comment on QC issues, alert affected researchers, and re-run QC tests
Requirements
- node.js (>8.0)
- yarn (>1.2)
- MongoDB (>3.4)
- nginx
Deployment
- Clone this repository
cd sqan && yarn install
cd config && ./genkey.sh
- generates public/private keys for JSON Web Token signing/verification
cp index.sample.js index.js
- Modify config/index.js as needed
cd ../ui/src && cp config.sample.js config.js
- Modify ui/src/config.js as needed
yarn install
yarn build
- Launch API
- Configure nginx to serve API/UI
- (optional) Load sample dataset (available upon request)
- (optional) Initiate Incoming and QC processes
npm run incoming
npm run qc
- (optional) Use
pm2
or similar process manager to run API and other required processes listed above.
nginx configuration
Sample nginx configuration to serve UI and API
location / {
alias /usr/local/sqan/ui/dist;
index index.html;
try_files $uri $uri/ /index.html =404;
}
location /api/qc/ {
proxy_pass http://localhost:22340/;
}
Make sure the port for the API matches that set in config/index.js
and the location for the API matches the setting in ui/config.js