MedLoop is an AI-powered medical report analyzer. Users can upload or paste medical reports, receive instant summaries, emergency detection, and suggestions for nearby hospitals.
- Upload or paste medical reports
- AI-generated summaries
- Emergency detection and response
- Find nearby hospitals using geolocation
- Modern React frontend with Lucide icons and gradient background
- Frontend: React, Tailwind CSS, Lucide Icons
- Backend: Node.js, Express, OpenAI API
- Database: (see below)
- Geolocation & Hospital Search: OpenStreetMap Nominatim API
npm installcd backend
npm install
npm startcd ..
npm startOpen http://localhost:3000 in your browser.
MedLoop uses MongoDB to store medical reports and user data.
-
Install MongoDB and the
mongoosepackage:npm install mongoose
-
Connect to MongoDB in your backend (
backend/server.js):const mongoose = require('mongoose'); mongoose.connect(process.env.MONGO_URI, { useNewUrlParser: true, useUnifiedTopology: true });
-
Create models for reports and users in
backend/models/. -
Update your analysis route to save analyzed reports to the database.
- Add your OpenAI API key and MongoDB URI to
backend/.env:OPENAI_API_KEY=your_openai_api_key MONGO_URI=mongodb://localhost:27017/medloop
- For demo/testing, all analysis is done in-memory.
- To store reports or user data, integrate a database as described above.