How pradeepkumar673/skin_cancer_detetion-drist_hackathon- works
SkinSentry is a skin-screening and lesion decision-support product with patient and clinician workflows. Patients submit cases for image assessment, review results, and can seek clinician consultations; clinicians manage cases and appointments. The API handles accounts, case and appointment operations, persistence, and integrations, while a separate AI service performs quality gating, model-based analysis, and explanatory reporting. The README emphasizes that results are decision support, not a diagnosis. Some case, appointment, and frontend-to-API links are inferred from product structure and remain unverified because those implementation excerpts were not provided.
Main entry points: orchestrator.py Analysis orchestrator · server.js HTTP API · service.py Explanation generation · main.py AI service endpoints
Components 34
Patient and clinician app
- Case workflows
web/src/app/cases - Assessment and reports
web/src/app/cases/[id] - Doctor discovery
web/src/app/doctors - Appointments and consults
web/src/app/appointments - Doctor workspace
web/src/app/doctor
Application API
- HTTP API
api/src/server.js - Authentication
api/src/routes/auth.js - Case operations
api/src/routes/cases.js - Appointment operations
api/src/routes/appointments.js - Doctor directory
api/src/routes/doctors.js - Payments
api/src/routes/payments.js
Clinical screening
- AI service endpoints
ai-service/app/main.py - Image quality gate
ai-service/app/pipeline/quality.py - Analysis orchestrator
ai-service/app/pipeline/orchestrator.py - Feature extraction
ai-service/app/pipeline/backbone.py - Domain triage
ai-service/app/pipeline/nurses.py - Cancer assessment
ai-service/app/pipeline/cancer.py - Ulcer assessment
ai-service/app/pipeline/ulcer.py - Disease assessment
ai-service/app/pipeline/disease.py - Team arbitration
ai-service/app/pipeline/arbitration.py - Visual artifacts
ai-service/app/pipeline/artifacts.py
Explanations and safety
- Safety checks
ai-service/app/pipeline/safety.py - Explanation generation
ai-service/app/llm/service.py - Explanation validation
ai-service/app/llm/validator.py - Clinical templates
ai-service/app/llm/templates.py - Groq client
ai-service/app/llm/groq_client.py
Persistence and services
- MongoDB
api/src/config/db.js - Domain records
api/src/models - Image storage
api/src/services/storage.js - Realtime consultation
api/src/services/socket.js - Email delivery
api/src/services/mailer.js
Other components
- Patient
- Clinician
- Groq API
Connections 37
- Patient → Case workflows: submits cases
- Case workflows → Assessment and reports: reviews assessment
web/src/app/cases/[id]/page.tsx - Clinician → Doctor workspace: manages care
- Doctor discovery → Appointments and consults: books consultation
- Appointments and consults → Case workflows: views cases
- Case workflows → Case operations: requests case APIs
- Appointments and consults → Appointment operations: requests bookings
- Doctor workspace → Doctor directory: requests doctor APIs
- HTTP API → Authentication: routes requests
api/src/server.js - HTTP API → Case operations: routes requests
api/src/server.js - HTTP API → Appointment operations: routes requests
api/src/server.js - HTTP API → Doctor directory: routes requests
api/src/server.js - HTTP API → Payments: routes requests
api/src/server.js - HTTP API → MongoDB: connects database
api/src/server.js - HTTP API → Realtime consultation: initializes realtime
api/src/server.js - HTTP API → Email delivery: verifies mailer
api/src/server.js - Authentication → Domain records: loads user records
api/src/routes/auth.js - Case operations → Image storage: stores images
- Case operations → AI service endpoints: requests analysis
- Appointment operations → Realtime consultation: coordinates consultation
- Payments → Email delivery: sends receipts
- AI service endpoints → Image quality gate: assesses quality
ai-service/app/main.py - AI service endpoints → Analysis orchestrator: runs analysis
ai-service/app/main.py - AI service endpoints → Explanation generation: generates explanation
ai-service/app/main.py - Analysis orchestrator → Feature extraction: extracts features
ai-service/app/pipeline/orchestrator.py - Analysis orchestrator → Domain triage: triages domains
ai-service/app/pipeline/orchestrator.py - Analysis orchestrator → Cancer assessment: runs cancer team
ai-service/app/pipeline/orchestrator.py - Analysis orchestrator → Ulcer assessment: runs ulcer team
ai-service/app/pipeline/orchestrator.py - Analysis orchestrator → Disease assessment: runs disease team
ai-service/app/pipeline/orchestrator.py - Analysis orchestrator → Team arbitration: arbitrates teams
ai-service/app/pipeline/orchestrator.py - Analysis orchestrator → Visual artifacts: generates artifacts
ai-service/app/pipeline/orchestrator.py - Analysis orchestrator → Safety checks: applies safety checks
ai-service/app/pipeline/orchestrator.py - Analysis orchestrator → Explanation generation: requests explanation
ai-service/app/pipeline/orchestrator.py - Explanation generation → Explanation validation: validates output
ai-service/app/llm/service.py - Explanation generation → Clinical templates: formats fallback
ai-service/app/llm/service.py - Explanation generation → Groq client: requests generation
ai-service/app/llm/service.py - Groq client → Groq API: calls model API
ai-service/app/llm/groq_client.py