Medicrate: Smart Emergency Healthcare Routing
Inspiration
When facing a sudden medical emergency or requiring specialized treatment, people almost always make a panicked decision: they open a navigation app and drive to the nearest hospital. However, proximity does not equal suitability. The nearest facility may have a 4-hour emergency room wait time, lack trauma care capabilities, or rank poorly for the specific condition at hand.
While modern technology effortlessly optimizes routes for food delivery or ride-shares, critical healthcare navigation remains fragmented and guesswork-driven. We built Medicrate to bridge this gap—creating a smart, data-driven matching system that directs patients not just to the closest hospital, but to the right hospital in the fastest effective time.
What It Does
Medicrate is an intelligent healthcare dispatch and navigation web application that eliminates friction during medical emergencies and specialized care searches.
- Condition-Based Hospital Matching: Users enter their medical situation or symptom, and Medicrate instantly filters facilities based on specialization, survival rate, and equipment readiness.
- Dynamic Travel & Wait-Time Optimization: Computes total transit and queue time to minimize time-to-care.
- Turn-by-Turn Navigation: Integrates directly with Google Maps to provide optimized driving routes and seamless step-by-step guidance.
- Live ER Analytics: Tracks real-time emergency department wait times and capacity status.
Mathematical Foundation
To ensure patients reach the optimal facility, Medicrate evaluates every nearby hospital $i$ using a weighted utility scoring function $U_i$:
$$U_i = w_s \cdot S_i + w_q \cdot Q_i - w_t \cdot E_i$$
Where:
- $S_i \in [0, 100]$ is the hospital's specialization score for the target condition.
- $Q_i \in [0, 100]$ is the clinical quality and outcome rating.
- $E_i$ is the Effective Delay Time in minutes, calculated as:
$$E_i = T_{\text{travel}}(i) + T_{\text{wait}}(i)$$
- $T_{\text{travel}}(i)$ represents real-time driving duration from Google Maps API.
- $T_{\text{wait}}(i)$ is the current estimated ER wait time.
- $w_s, w_q, w_t$ are normalized weights ($\sum w = 1$) dynamically adjusted based on severity.
For critical emergencies, $w_t$ increases rapidly to prioritize minimum $E_i$, whereas for specialized scheduled care, $w_s$ and $w_q$ take precedence.
How We Built It
- Frontend: Built with React and Tailwind CSS to deliver an ultra-responsive, accessible interface designed for rapid decision-making under stress.
- Backend: Powered by Node.js and Express RESTful endpoints that handle algorithmic hospital filtering and weighted scoring.
- Mapping Integration: Embedded Google Maps JavaScript API, Directions API, and Distance Matrix API for real-time traffic updates, distance calculations, and interactive map displays.
- Data Layer: Normalized hospital metrics, specialty ratings, and emergency department queue data stored in a relational PostgreSQL database.
Challenges We Ran Into
- Data Standardization: Aggregating data across disjointed sources (CMS ratings, specialty certifications, and real-time ER tracking) required extensive schema mapping and data sanitization.
- Routing Latency: Calculating real-time traffic for multiple candidate hospitals simultaneously posed speed challenges. We optimized spatial indexing to query only facilities within a dynamic bounding radius before making API distance calls.
- High-Stress UX: Designing an interface that provides maximum information with minimal cognitive load during panic situations required stripping away extraneous UI elements and focusing on clear visual hierarchy.
Accomplishments That We're Proud Of
- Successfully merging real-time geographic routing with clinical outcome data into a single unified recommendation engine.
- Building a working prototype that calculates the mathematically optimal care destination in under 2 seconds.
- Crafting a fully responsive, high-contrast user interface accessible across all mobile and desktop devices.
What We Learned
- Geospatial Optimization: Gained deep experience utilizing Google Maps API services for multi-point distance calculations and live route rendering.
- Healthcare Logistics: Developed a clear understanding of clinical capacity metrics, triage dynamics, and emergency dispatch variables.
- User-Centric Engineering: Reinforced the principle that in emergency-focused applications, speed and simplicity in design are life-saving features.
What's Next for Medicrate
- Live Hospital Telemetry: Partnering with regional hospital networks to ingest direct automated feeds for real-time bed availability and ER wait queues.
- Insurance Matching: Incorporating dynamic insurance network filters to ensure patients avoid out-of-network surprise billing.
- Voice-Activated Triage: Integrating hands-free voice commands so drivers or panicked patients can navigate to care safely without typing.
Log in or sign up for Devpost to join the conversation.