Skip to content

System for storing, indexing and visualizing medical data in DICOM format

Notifications You must be signed in to change notification settings

citec-spbu/MedicalDataService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MedicalDataService

System for storing, indexing and visualizing medical data in DICOM format

Diagrams

  1. Use case diagram
  2. Activity diagram
  3. ER diagram
  4. Sequence diagram

Setup via Docker (Recomended)

  1. docker-compose build
  2. docker-compose up

To stop containers

  1. docker-compose down

Backend setup (May not work)

  1. Install python3.12 interpreter.
  2. Install dependencies with pip install -r requirements.txt.
  3. Create certs directory and go it.
  4. Create RSA256 private certificate openssl genrsa -out jwt-private.pem 2048.
  5. Create RSA256 public certificate based on private openssl rsa -in jwt-private.pem -outform PEM -pubout -out jwt-public.pem.
  6. Go back to root.
  7. Launch postgres and create a database.
  8. Launch minio and create a bucket.
  9. Launch rabbitmq.
  10. Create .env, copy content from to_copy/dot_env.txt and edit if needed.
  11. Run alembic init -t async migration.
  12. Copy content from to_copy/env_py.txt to migration\env.py.
  13. Run alembic revision --autogenerate -m "Initial revision".
  14. Run alembic upgrade head.
  15. Uncomment 3 lines in migration\env.py.
  16. Run alembic revision --autogenerate -m "Initial revision".
  17. Run alembic upgrade head.
  18. For upgrade alternatively you can run alembic upgrade VERSION_ID, where VERSION_ID is id from generated file from folder app/migration/versions which contains a line like Revision ID: VERSION_ID.

Usage

Run fastapi dev app/main.py from root folder of project

To check tokens on the backend, log in with the appropriate token. Tokens can be obtained using the /user/login/ endpoint

/user/me waiting for an access token to enter

/user/me/jwt/refresh_access_token waiting for a refresh token to enter

About

System for storing, indexing and visualizing medical data in DICOM format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published