sawasthya ai
your health care partner
The problem sawasthya ai solves
Swasthya solves the problem of fragmented and delayed healthcare by providing a unified, AI-driven platform. It addresses four core pain points:
-Information Gap: The AI Symptom Checker and Report Analyzer provide immediate medical insights, removing the confusion of complex health data.
-Emergency Delays: The SOS button and GPS-linked Hospital Finder (3km radius) provide instant access to life-saving care during a crisis.
-Medication Neglect: The Medicine Reminder ensures treatment compliance, preventing health setbacks from forgotten doses.
-Inaccessibility: By combining a Medical Store, AI Chatbot, and Diagnostics into one app, it eliminates the need for multiple platforms.
Challenges we ran into
One of the most significant hurdles during the development of Swasthya was the GPS-based Hospital Finder integration.
The Challenge: Accuracy vs. Performance
The goal was to filter hospitals within a strict 3km radius using live GPS coordinates. The initial hurdle was a latency issue—the application would lag while trying to fetch, filter, and render multiple map markers simultaneously, which is dangerous in an emergency scenario.
The Solution
-To overcome this, I implemented client-side geofencing and optimized the backend queries:
Haversine Formula: I used the Haversine formula to calculate distances between the user's coordinates and the hospital database more efficiently.
-Debouncing: I applied a "debounce" to the search input so the API wouldn't get overwhelmed with requests every time the user moved slightly.
-Asynchronous Loading: I moved the map rendering to an asynchronous process so the SOS button and UI remained responsive even while the location data was still loading.
Technologies used