π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.
-
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.
- 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)
- Android Studio (latest version recommended)
- Firebase Project (for Auth, Firestore, etc.)
- Google Gemini API Key (set as
GEMINI_API_KEY) - Add your
google-services.jsonto the/appdirectory.
-
Clone the repository
git clone https://github.com/aritra-tech/MedAI.git cd MedAI -
Configure API Keys
- Set your Gemini API Key in your local
gradle.properties:GEMINI_API_KEY=your_gemini_api_key
- Set your Gemini API Key in your local
-
Setup Firebase
- Add your
google-services.jsonto theapp/directory.
- Add your
-
Open in Android Studio
- Open the project and let Gradle sync.
-
Build and Run
- Connect your Android device or start an emulator.
- Click "Run".
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
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
This project is licensed under the MIT License.
For questions or support, open an issue on the GitHub repository.

