How shridhar-1/medikiosk works
MediKiosk is a hospital self-check-in and clinical handoff product. Patients identify themselves and complete a consented, multilingual kiosk intake; the system prepares a structured summary and emergency alerts, places the visit in a queue, and lets a physician review it and share advice through the patient portal. The source index confirms several module dependencies, while the README documents the larger product flow and optional integrations; unsampled route internals are represented only where the README supports their role.
Main entry points: kiosk-app.tsx Kiosk Intake · summary-engine.ts Summary Engine · schema.ts PostgreSQL Records · route.ts Intake Submission
Components 21
Patient Intake
- Kiosk Intake
src/components/kiosk/kiosk-app.tsx - Phone OTP
src/components/PhoneAuth.tsx - Interview Flow
src/lib/interview.ts - Language Support
src/lib/i18n.ts - Session API
src/app/api/sessions/route.ts
Clinical Processing
- Chat Extraction
src/lib/chat-extract.ts - Document OCR
src/lib/ocr.ts - Summary Engine
src/lib/summary-engine.ts - AI Routing
src/lib/ai-router.ts - Emergency Checks
src/lib/redflags.ts - Drug Safety
src/lib/drug-safety.ts - Intake Submission
src/app/api/sessions/[id]/submit/route.ts - Alert Delivery
src/lib/notify.ts
Care Delivery
- Queue API
src/app/api/queue/route.ts - Physician Review
src/components/physician/review-workspace.tsx - Patient Portal
src/app/portal/page.tsx
Identity and Records
- Patient API
src/app/api/patients/route.ts - PostgreSQL Records
src/db/schema.ts - Session Auth
src/lib/auth.ts
Other components
- Patient
- Hospital System
Connections 26
- Patient → Kiosk Intake: starts intake
README.md - Kiosk Intake → Phone OTP: uses OTP
README.md - Kiosk Intake → Interview Flow: runs interview
src/components/kiosk/kiosk-app.tsx - Kiosk Intake → Language Support: uses translations
src/components/kiosk/kiosk-app.tsx - Kiosk Intake → Chat Extraction: uses extraction
src/components/kiosk/kiosk-app.tsx - Kiosk Intake → Session API: creates sessions
README.md - Kiosk Intake → Patient API: registers patients
README.md - Patient API → PostgreSQL Records: reads and writes
src/app/api/patients/route.ts - Session API → PostgreSQL Records: reads and writes
src/app/api/sessions/route.ts - Session API → Session Auth: uses identity
- Intake Submission → Summary Engine: generates summary
README.md - Summary Engine → AI Routing: selects engine
src/lib/summary-engine.ts - Summary Engine → Document OCR: summarizes documents
src/lib/summary-engine.ts - Summary Engine → Emergency Checks: checks red flags
src/lib/summary-engine.ts - Summary Engine → Drug Safety: checks medications
src/lib/summary-engine.ts - Summary Engine → PostgreSQL Records: persists summary
src/lib/summary-engine.ts - Intake Submission → Alert Delivery: sends alerts
src/app/api/sessions/[id]/submit/route.ts - Intake Submission → PostgreSQL Records: updates visit
src/app/api/sessions/[id]/submit/route.ts - Intake Submission → Queue API: sets queue status
- Patient → Queue API: checks queue
README.md - Queue API → PostgreSQL Records: reads and updates
src/app/api/queue/route.ts - Physician Review → PostgreSQL Records: reviews visit data
src/components/physician/review-workspace.tsx - Physician Review → Hospital System: confirms record
README.md - Patient → Patient Portal: views advice
README.md - Patient Portal → PostgreSQL Records: loads visit history
- Intake Submission → Hospital System: prepares FHIR handoff
src/app/api/sessions/[id]/submit/route.ts