Pain Management Support Group Platform
A comprehensive full-stack application for managing an 8-week evidence-based chronic pain management program.
The PMSG Platform provides: - Patient enrollment and demographic tracking - Evidence-based 8-week curriculum delivery - Validated pain assessments (BPI, ODI) - Session scheduling and attendance management - Longitudinal outcome tracking and analytics - RAG-powered clinical knowledge base
pmsg-platform/
โโโ backend/ # FastAPI application
โ โโโ api/ # API route handlers
โ โโโ models/ # SQLAlchemy ORM models
โ โโโ schemas/ # Pydantic validation schemas
โ โโโ services/ # Business logic layer
โ โโโ tests/ # Backend test suite
โ
โโโ frontend/ # React application
โ โโโ src/
โ โโโ components/ # React components
โ โโโ services/ # API client
โ โโโ utils/ # Helper functions
โ
โโโ docs/ # Documentation
โ โโโ curriculum/ # 8-week program content
โ โโโ technical/ # Technical specifications
โ
โโโ deployment/ # Infrastructure configs
โโโ docker/ # Docker compose
โโโ kubernetes/ # K8s manifests
Python 3.9+
Node.js 16+
PostgreSQL 12+
Docker (optional)
cd backend
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
cp .env.example .env # Configure your environment
python init_db.py # Initialize database with sample data
python main.py # Start API server
Access API documentation: http://localhost:8000/api/docs
cd deployment/docker
docker-compose up -d
POST /api/auth/register - User registrationPOST /api/auth/login - Login and JWT tokenGET /api/auth/me - Current user infoGET /api/participants - List participantsPOST /api/participants - Create participantGET /api/participants/{id} - Get participantPUT /api/participants/{id} - Update participantGET /api/participants/{id}/progress - Progress
summaryPOST /api/assessments/bpi - Submit BPI assessmentPOST /api/assessments/odi - Submit ODI assessmentGET /api/assessments/participant/{id}/history -
Assessment historyGET /api/sessions - List sessionsPOST /api/sessions - Create sessionPOST /api/sessions/{id}/attendance - Record
attendanceGET /api/analytics/cohort/{id}/summary - Cohort
statisticsGET /api/analytics/pain-trends - Pain trend
analysisGET /api/analytics/participant/{id}/outcomes -
Individual outcomesEach week includes: - 2 group sessions (2 hours each) - Educational materials - Take-home exercises - Progress assessments
Detailed documentation available in: - /docs/technical/
- Technical specifications - /docs/curriculum/ - Clinical
program content - IMPORT_GUIDE.md - How to import existing
code - Backend README.md - API documentation - Frontend
README.md - Component documentation
# Backend tests
cd backend
pytest
# Frontend tests
cd frontend
npm test
cd deployment/docker
docker-compose up -d
cd deployment/gcp
./deploy.sh
This is a clinical research and development project. Contact the project lead for collaboration opportunities.
Copyright ยฉ 2024-2025 PMSG Platform. All rights reserved.
Darrell - Familcd backend python -m venv venv source venv/bin/activate pip install -r requirements.txt cp .env.example .env # Configure your environment python init_db.py # Initialize database with sample data python main.py # Start API servery Practice Physician (14 years clinical experience) - MSCIS, Boston University - Behavioral Health, Clinical Data Scientist, AI Engineer - Machine Learning Engineer