SmartRx is a small Android project that helps users read and manage doctor prescriptions more easily.
The app allows users to upload a prescription image, extracts useful information using AI, stores records, and creates medicine reminders.
-
Upload prescription images
-
Extract structured information from prescriptions using AI
-
Display:
- Diagnosis
- Prescribed medicines
- Dosage
- Duration
- Doctor advice
- Follow-up date
-
Generate medicine reminder schedules
-
View prescription history
-
Translate medical text into simpler language
- Kotlin
- Jetpack Compose
- Retrofit
- Material Design
- FastAPI
- Gemini API
- MongoDB
- Motor
POST /api/uploadForm Data:
file
user_id
Example Response:
{
"status": "success",
"data": {
"diagnosis": "Fever",
"medicines": [],
"advice": [],
"follow_up_date": "2026-04-10"
}
}GET /api/history/{user_id}Returns previously uploaded prescriptions.
POST /api/translateRequest:
{
"prescription_text": "...",
"target_language": "English"
}POST /api/scheduleRequest:
{
"dosage_string": "1 Morning, 1 Night",
"duration_days": 8
}Install dependencies:
pip install fastapi uvicorn motor pillow google-generativeai python-multipartStart server:
uvicorn main:app --reloadServer:
http://127.0.0.1:8000
Open the project in Android Studio.
Update base URL:
private const val BASE_URL = "http://10.0.2.2:8000"Run the app.
- Prescription extraction depends on image quality
- Alarm timing uses simple fixed schedules
- Medical interpretation is not medical advice
- Multiple language support
- Medicine interaction warnings
- Smarter reminder schedules
This project does not replace professional medical advice.






