Skip to content
Fluffy-debugerPublic

About

AI-powered prescription assistant built with Jetpack Compose, FastAPI, Gemini, and MongoDB for extraction, history tracking, and medicine reminders.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

SmartRx

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.


Features

  • 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


Project Architecture

Screenshots

Login

Login Screen


Home – Upload Prescription

Home Screen

Home Screen


Active Alarms

Alarm Screen


Medical Details

Medical Details


Prescription History

History Screen


Tech Stack

Android (Frontend)

  • Kotlin
  • Jetpack Compose
  • Retrofit
  • Material Design

Backend

  • FastAPI
  • Gemini API
  • MongoDB
  • Motor

API Endpoints

Upload Prescription

POST /api/upload

Form Data:

file
user_id

Example Response:

{
  "status": "success",
  "data": {
    "diagnosis": "Fever",
    "medicines": [],
    "advice": [],
    "follow_up_date": "2026-04-10"
  }
}

Get History

GET /api/history/{user_id}

Returns previously uploaded prescriptions.


Translate Medical Text

POST /api/translate

Request:

{
  "prescription_text": "...",
  "target_language": "English"
}

Generate Medicine Schedule

POST /api/schedule

Request:

{
  "dosage_string": "1 Morning, 1 Night",
  "duration_days": 8
}

Local Setup

Backend

Install dependencies:

pip install fastapi uvicorn motor pillow google-generativeai python-multipart

Start server:

uvicorn main:app --reload

Server:

http://127.0.0.1:8000

Android

Open the project in Android Studio.

Update base URL:

private const val BASE_URL = "http://10.0.2.2:8000"

Run the app.


Current Limitations

  • Prescription extraction depends on image quality
  • Alarm timing uses simple fixed schedules
  • Medical interpretation is not medical advice

Future Improvements

  • Multiple language support
  • Medicine interaction warnings
  • Smarter reminder schedules

Note

This project does not replace professional medical advice.

About

AI-powered prescription assistant built with Jetpack Compose, FastAPI, Gemini, and MongoDB for extraction, history tracking, and medicine reminders.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages