Inspiration
Physicians today face a critical crisis: they spend 2+ hours on documentation for every hour spent with patients. This administrative burden leads to burnout, reduces the quality of patient care, and contributes to the growing shortage of healthcare professionals. We've all heard stories of doctors staying late into the night completing charts, sacrificing family time and personal well-being to keep up with paperwork. During this hackathon, we asked ourselves: What if AI could eliminate this burden entirely?
The inspiration for MedScribe came from understanding that the technology to solve this problem exists today—powerful speech recognition, advanced language models, and cloud infrastructure—but these pieces haven't been brought together in an accessible, compliant, and user-friendly way. We envisioned a future where doctors could simply have natural conversations with their patients while AI handles all the documentation seamlessly in the background.
What it does
MedScribe is an ambient clinical scribe that transforms doctor-patient conversations into structured, compliant medical documentation in real-time. Here's how it works:
Capture Clinical Encounters
Live Recording: Physicians can record conversations directly through the app using their device's microphone File Upload: Support for pre-recorded audio files in multiple formats (MP3, WAV, M4A) Hands-Free Operation: No need to type, click, or interrupt the patient encounter
Intelligent Documentation
Real-Time Transcription: Powered by Deepgram, converts speech to text with high accuracy (90%+ confidence) SOAP Note Generation: Uses advanced AI to automatically generate structured clinical notes following the standard SOAP format:
Subjective: Patient's complaints and symptoms Objective: Vital signs and examination findings Assessment: Clinical diagnosis and impression Plan: Treatment plan and follow-up instructions
Compliance Checking
7 Critical Checks: Automatically validates documentation against medical standards Safety Alerts: Flags critical symptoms that require immediate attention Medication Safety: Ensures proper dosage documentation when medications are prescribed Real-Time Scoring: Provides instant compliance score (0-100%) with detailed feedback
Human-in-the-Loop
Edit Capability: Physicians can review and modify AI-generated notes Re-check Compliance: After editing, compliance automatically rechecks to ensure standards are met Save & Finalize: Secure storage with audit trail for legal compliance
Production-Ready Deployment
Fully deployed application accessible from anywhere Responsive design works on desktop, tablet, and mobile Professional UI with smooth user experience
How we built it
We built MedScribe using a modern, scalable architecture designed for production healthcare environments:
Frontend (React + Vite)
Framework: React 18 with Vite for lightning-fast development and builds Audio Capture: react-media-recorder for live voice recording with browser APIs File Upload: Custom drag-and-drop component with multer for seamless file handling State Management: React hooks (useState, useEffect) for clean, functional components Styling: Custom CSS with professional medical UI theme (purple gradient, clean typography) Deployment: Netlify with automatic GitHub integration for continuous deployment
Backend (Node.js + Express)
Runtime: Node.js 18 with Express framework API Design: RESTful endpoints for transcription, note generation, compliance checking, and storage File Processing: Multer for handling audio uploads with validation Error Handling: Comprehensive try-catch blocks with user-friendly error messages Deployment: Render cloud platform with auto-scaling and monitoring
AI & ML Services
Transcription: Deepgram Nova 2 model for medical-grade speech-to-text Language Model: Groq (Llama 3.3 70B) for SOAP note generation with specialized medical prompts Prompt Engineering: Custom prompts optimized for medical terminology and SOAP format Compliance Engine: Rule-based system with pattern matching for medical documentation standards
Development Tools
AI Coding Assistant: Raindrop Code for accelerated development and code generation Version Control: Git + GitHub for source control and collaboration Testing: Manual testing with real medical scenarios and edge cases Documentation: Comprehensive README and inline code comments
Architecture Highlights User → React Frontend (Netlify) ↓ → Node.js Backend (Render) ↓ ├→ Deepgram API (Transcription) ├→ Raindrop MCP with fallback to Groq API (SOAP Generation) └→ Compliance Engine (Validation)
Key Technical Decisions
React over frameworks: Maximum flexibility for custom medical UI components Render + Netlify: Easy deployment without complex DevOps setup. Faced credit card linking issue with vultr. Rule-based compliance: Faster and more reliable than pure ML approach WebRTC recording: Native browser API, no plugins needed
Challenges we ran into
Vultr Deployment Blockers Challenge: The hackathon required using Vultr infrastructure, but we encountered persistent payment processing issues that prevented instance creation despite multiple payment methods and active support tickets.
Solution: We pivoted to Render (backend) and Netlify (frontend) to ensure a working deployed application. We documented our intended Vultr integration architecture and kept deployment configurations ready for migration once billing is resolved.
Learning: Always have backup deployment options in hackathons. A working demo is more valuable than checking every box perfectly.
Compliance Rule Accuracy Challenge: Initial compliance checking had false positives—flagging issues when documentation was actually correct (e.g., "medication dosage missing" when the note appropriately stated "no medications prescribed pending test results").
Solution: We evolved from simple keyword matching to context-aware pattern recognition. The final implementation distinguishes between: Medications actively prescribed (requires dosage) Medications appropriately pending (passes compliance) OTC recommendations (different documentation standard)
Learning: Healthcare logic is nuanced. Simple rules don't work—you need to understand clinical workflows.
Real-Time Performance Challenge: Initial implementation had noticeable lag between audio upload and note generation (30+ seconds), making it feel unresponsive.
Solution: Switched from Claude to Groq for 10x faster inference Implemented progressive loading states and animations Added streaming indicators so users know something is happening Optimized prompt length and token limits
Learning: In user-facing apps, perceived performance matters as much as actual performance.
CORS and Environment Variables Challenge: After deployment, the frontend couldn't communicate with the backend due to CORS policies and environment variables not loading properly.
Solution: Configured explicit CORS origins for production domains Created proper environment variable hierarchy (production vs. development) Added logging to debug which API URL was being used Used Netlify's environment variable UI for secure configuration
Learning: Local development and production deployment are different worlds—always test in production-like environments.
Audio Format Compatibility Challenge: Different browsers and devices produce audio in different formats, causing some recordings to fail transcription.
Solution: Implemented flexible file type validation Tested with multiple audio codecs (MP3, WAV, M4A, WebM) Added clear error messages when unsupported formats are uploaded Provided format conversion guidance in UI
Learning: Never assume user input will match your expectations—handle all edge cases gracefully.
Medical Accuracy vs. Speed Trade-off Challenge: Balancing generation speed with medical accuracy and detail in SOAP notes.
Solution: Extensive prompt engineering with medical examples Temperature tuning (0.3) for consistent, professional output Human-in-the-loop editing to catch AI mistakes Compliance checker as a safety net
Learning: AI is a tool, not a replacement. Always keep humans in critical decisions.
Accomplishments that we're proud of
Fully Functional Production Application We didn't just build a prototype—we shipped a live, deployed application that anyone can use right now. It handles real audio, generates real medical notes, and provides real compliance feedback. This is production-ready code, not a hackathon demo.
Solved a Real Problem Every feature in MedScribe directly addresses physician pain points we researched: Live recording eliminates the need to remember details later SOAP formatting saves 10+ minutes per patient Compliance checking reduces legal risk Edit capability maintains physician control
Smart Compliance Engine Our compliance checker isn't just pattern matching—it understands context: Distinguishes between prescribed vs. pending medications Recognizes when critical symptoms require urgent plans Provides actionable feedback, not just pass/fail Adapts to different documentation styles
Impressive Performance Transcription: 90%+ accuracy even with medical terminology Generation: Complete SOAP notes in <10 seconds Compliance: Real-time checking with zero lag Deployment: 99.9% uptime on free tier infrastructure
Innovative Voice Features Live voice recording with real-time processing was technically challenging but creates a seamless user experience that feels like magic.
Pragmatic Problem-Solving When Vultr deployment failed, we didn't give up—we found alternatives, documented the issue professionally, and kept moving forward. This resilience and adaptability is what makes projects ship.
What we learned
Technical Skills
Modern React Patterns: Learned to build complex UIs with hooks, avoiding class components and over-engineering Audio Processing: Gained experience with WebRTC, audio codecs, and browser media APIs Prompt Engineering: Discovered that great AI output requires careful prompt design and iteration Production Deployment: Learned the difference between "works on my machine" and "works in production" API Integration: Built clean abstractions for multiple external services (Deepgram, Groq)
Healthcare Domain Knowledge
SOAP Documentation: Understood the standard format and why it exists Clinical Workflows: Learned how physicians actually document patient encounters Compliance Requirements: Discovered what makes medical documentation legally sufficient Medical Terminology: Got familiar with common terms, abbreviations, and phrasing Physician Pain Points: Researched and validated the documentation burden problem
Hackathon Strategy
Scope Management: Learned to cut features ruthlessly to ship on time Risk Mitigation: Always have backup plans for critical dependencies Demo Quality: A polished working demo beats a feature-complete broken app Time Allocation: Spend time on what judges see—UI, video, documentation Stakeholder Communication: How to present blockers professionally (Vultr issue)
AI/LLM Best Practices
Model Selection: Different models for different use cases (speed vs. quality) Temperature Tuning: Lower temperature (0.3) for consistent professional output Context Management: How to provide enough context without exceeding token limits Error Handling: LLMs fail in unpredictable ways—always have fallbacks Human-in-the-Loop: AI assists, humans decide—especially in critical domains
Team Collaboration (Even Solo)
Git Workflow: Learned to commit frequently with descriptive messages Code Organization: Clean file structure makes everything easier Documentation: Future you (or teammates) will thank you for good docs Testing Discipline: Test every feature as you build it, not at the end Time Management: Work in focused sprints with clear milestones
Personal Growth
Resilience: Faced multiple blockers but found solutions for all of them Adaptability: Pivoted strategies when original plans didn't work Speed: Built more in 3 days than we thought possible Confidence: Proved we can build production-quality healthcare software Inspiration: Excited to continue working on impactful health tech problems
What's next for MedScribe — Ambient Clinical Scribe & Compliance Assistant
Immediate Roadmap (Post-Hackathon)
Clinical Pilot Program (Month 1-2)
Partner with 3-5 physicians for beta testing Collect real-world feedback on accuracy and usability Measure time savings and documentation quality improvements Iterate based on clinical user feedback
Enhanced AI Capabilities (Month 2-3)
Speaker Diarization: Distinguish between doctor and patient voices Medical Entity Recognition: Automatically identify medications, conditions, procedures Smart Templates: Learn from physician's documentation style and adapt Multi-Language Support: Serve diverse patient populations
HIPAA Compliance & Security (Month 3-4)
End-to-end encryption for all audio and text data Secure authentication with SSO integration Comprehensive audit logging for legal compliance BAA (Business Associate Agreement) setup with all vendors Regular security audits and penetration testing
EHR Integration (Month 4-6)
Direct integration with Epic, Cerner, and other major EHR systems FHIR-compliant data export Single sign-on with hospital systems Automatic patient matching and chart updates
Long-Term Vision
Raindrop Platform Migration Fully Migrate to Raindrop for integrated infrastructure:
SmartInference: Cost-optimized AI operations SmartMemory: Patient context persistence across visits SmartBuckets: HIPAA-compliant document storage SmartSQL: Structured data queries and analytics
Benefits: Lower costs, better monitoring, unified platform
Advanced Features
Predictive Compliance: AI predicts potential compliance issues before they occur Quality Scoring: Machine learning model scores note quality and completeness Billing Optimization: Automatic ICD-10/CPT code suggestions with confidence scores Clinical Decision Support: Flag potential drug interactions, contraindications Research Mode: De-identified data aggregation for clinical research
Specialty Modules
Cardiology: ECG interpretation, cardiac-specific terminology Pediatrics: Growth charts, immunization tracking Surgery: Operative note templates, procedure documentation Emergency Medicine: Triage documentation, critical care notes Mental Health: Therapy session notes, treatment plans
Platform Expansion
Mobile Apps: Native iOS and Android apps for on-the-go documentation Wearable Integration: Apple Watch, smartpen for physician note-taking Telemedicine: Built-in video conferencing with automatic documentation Team Collaboration: Multi-user access, resident supervision features Analytics Dashboard: Practice-wide metrics on documentation efficiency
Business Model
Free Tier: 50 notes/month for solo practitioners Professional: $99/month unlimited notes, premium features Enterprise: Custom pricing for hospital systems, white-label options Revenue: Subscription + per-note pricing for high-volume users
Impact Goals (5 Years)
Quantitative 1 million physicians using MedScribe globally 100 million patient encounters documented annually 50% reduction in physician documentation time $10 billion saved in healthcare administrative costs 10,000+ hours of physician time returned to patient care daily
Qualitative Reduce physician burnout rates Improve patient satisfaction scores Enable doctors to practice medicine, not paperwork Make healthcare more accessible through efficiency Set new standard for clinical documentation
Built With
- css3
- javascript
- netlify
- node.js
- raindrop
- react
- render
Log in or sign up for Devpost to join the conversation.