Skip to content

πŸ“‹ MedAI is an AI-driven Android app that analyzes and manages medical prescriptions securely from uploaded images.

License

Notifications You must be signed in to change notification settings

aritra-tech/medai-android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


MedAI


API Kotlin Jetpack Compose material

Build Hits
GitHub code size in bytes

πŸ“MedAI is an Android application that leverages AI to streamline the process of analyzing, validating, and managing medical prescriptions. It empowers users to upload prescription images, have them analyzed using advanced generative AI, and securely store and manage prescription data with robust authentication and privacy features. Made with β™₯ for people

I’m building it in public. So the idea is for everyone to contribute, leave comments, suggest ideas, etc. using the Issues tab.


⬇️ Download

Get it on Google Play Get it on GitHub

Features ✨

  • AI-Powered Prescription Analysis: Upload a prescription image, and MedAI will:

    • Validate whether the image is a genuine medical prescription.
    • Extract and summarize key information, including doctor details, patient information, prescribed medications, dosage instructions, and warnings.
    • Provide patient-friendly summaries using layman’s terms, avoiding medical jargon.
  • Prescription Management:

    • Save analyzed prescriptions securely to the cloud, associated with your authenticated account.
    • Retrieve and review a personalized history of saved prescriptions.
  • User Authentication and Security:

    • Sign in with Google and Firebase Authentication.
    • Optional biometric authentication for enhanced privacy.
    • DataStore-backed local preferences for dark mode, biometric auth, and auto-lock.
  • Modern Android Architecture:

    • Built using Jetpack Compose for UI.
    • Hilt for dependency injection.
    • Modular, testable repository and ViewModel pattern.

Built with πŸ› 

  • Programming Language: Kotlin
  • Frameworks & Libraries:
    • Android Jetpack Compose
    • Firebase (Auth, Firestore, Analytics, Crashlytics, Messaging)
    • Hilt (Dependency Injection)
    • Google Gemini (Generative AI for prescription analysis)
    • Coil (Image loading)
    • Timber (Logging)
    • Coroutine (Async operations)
    • Gson (JSON parsing)
    • Biometric API (Enhanced authentication)

Getting Started πŸ“’

Prerequisites

  • Android Studio (latest version recommended)
  • Firebase Project (for Auth, Firestore, etc.)
  • Google Gemini API Key (set as GEMINI_API_KEY)
  • Add your google-services.json to the /app directory.

Installation

  1. Clone the repository

    git clone https://github.com/aritra-tech/MedAI.git
    cd MedAI
  2. Configure API Keys

    • Set your Gemini API Key in your local gradle.properties:
      GEMINI_API_KEY=your_gemini_api_key
      
  3. Setup Firebase

    • Add your google-services.json to the app/ directory.
  4. Open in Android Studio

    • Open the project and let Gradle sync.
  5. Build and Run

    • Connect your Android device or start an emulator.
    • Click "Run".

Project Structure

MedAI/
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ main/
β”‚   β”‚   β”‚   β”œβ”€β”€ java/com/aritradas/medai/
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ data/            # Data sources, repository implementations
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ domain/          # Repository interfaces, models
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ ui/              # Presentation layer (Compose UI, ViewModels)
β”‚   β”‚   β”‚   β”‚   └── di/              # Dependency injection modules
β”‚   β”‚   β”‚   └── res/                 # Resources (layouts, drawables, etc.)
β”‚   └── build.gradle.kts             # App-level build configuration
β”œβ”€β”€ build.gradle.kts                 # Root build configuration
└── settings.gradle.kts               # Gradle settings

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

License

This project is licensed under the MIT License.

Contact

For questions or support, open an issue on the GitHub repository.

About

πŸ“‹ MedAI is an AI-driven Android app that analyzes and manages medical prescriptions securely from uploaded images.

Topics

Resources

License

Stars

Watchers

Forks

Languages