Skip to content

aliza-dev/MedSync-Android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿฅ MedSync - Medical Management System

Platform Language Backend Min SDK Target SDK

A role-based Android application for managing clinic appointments, patient histories, and medical billing โ€” powered by Firebase.

Submitted for CS-512 Mobile App Development
University of Agriculture, Faisalabad
Instructor: Prof. Waseem



โœจ Core Features

๐Ÿ‘ค Patient Portal

  • ๐Ÿ” Registration โ€” Secure email/password sign-up via Firebase Authentication
  • ๐Ÿ  Dashboard โ€” Profile overview with quick navigation to all patient features
  • ๐Ÿ“… Book Appointments โ€” Schedule visits with doctor name, date/time picker, and problem description
  • ๐Ÿงพ Bills History โ€” Review itemized medical bills from completed appointments
  • ๐Ÿ’Š Treatment History โ€” Access diagnosis, prescription, and progress records in one place

๐Ÿฉบ Doctor Portal

  • ๐Ÿ  Dashboard โ€” Central hub with profile, specialization, and navigation shortcuts
  • โณ Manage Pending Appointments โ€” Review incoming patient booking requests in real time
  • โœ… Accept / Reject Appointments โ€” Approve or decline scheduled visits with one tap
  • ๐Ÿฉบ Clinical Records โ€” Record diagnosis, prescription, and treatment progress per visit
  • ๐Ÿ’ฐ Automated Billing โ€” Generate itemized bills with consultation and medicine fees

๐Ÿ” Security Features

  • ๐Ÿ”‘ Firebase Authentication โ€” Industry-standard email/password auth with secure session management
  • ๐ŸŽญ Role-Based Routing โ€” Post-login navigation driven by user role (patient or doctor)

๐Ÿ”„ App Flow (High-Level Navigation)

graph TD
    A[๐Ÿš€ LoginRegisterActivity] --> B{Select Role}
    
    B -->|Patient| C[๐Ÿ“„ PatientRegisterActivity]
    B -->|Doctor| D[๐Ÿ“„ DoctorRegisterActivity]
    B -->|Login| E[๐Ÿ” LoginActivity]
    
    E --> F{Read role from Firebase}
    
    F -->|patient| G[๐Ÿ  PatientHomeActivity]
    G --> H[๐Ÿ“… Book Appointment]
    G --> I[๐Ÿ’Š Treatment History]
    G --> J[๐Ÿงพ Bills History]
    
    F -->|doctor| K[๐Ÿ  DoctorProfileActivity]
    K --> L[โณ Pending Appointments]
    K --> M[๐Ÿ“… Today's Appointments]
    K --> N[๐Ÿ“š Patient History]
    
    L --> O[โœ… AppointmentActionActivity]
    M --> O
    
    O -->|Accept| P[๐Ÿ“ AppointmentDetailActivity]
    P --> Q[๐Ÿ’ฐ Complete & Generate Bill]
Loading

๐Ÿ“ธ Visual Showcase

๐Ÿ‘ค Patient Experience

Role Selection Patient Registration Patient Dashboard

๐Ÿฉบ Doctor Workflow

Doctor Registration Doctor Dashboard Appointment Action

๐Ÿฅ Treatment & Records

Today's Appointments Treatment & Billing

๐Ÿ‘ฅ User Roles

Role Access Key Features
๐Ÿ‘ค Patient Patient Home, Booking, History screens Register & login ยท View profile ยท Book appointments ยท Treatment history ยท Bills history
๐Ÿฉบ Doctor Doctor Dashboard, Appointment management, Clinical tools Register & login ยท Pending appointments ยท Accept/reject visits ยท Update treatment ยท Generate bills ยท Patient history

๐Ÿ› ๏ธ Technology Stack

Frontend

  • XML layouts ยท Material Design Components ยท CardView ยท RecyclerView ยท ConstraintLayout

Backend

  • Firebase Authentication (Email/Password) ยท Firebase Realtime Database

Language

  • Java 11

Tools

  • Android Studio ยท Gradle ยท Google Services Plugin

๐Ÿš€ Quick Start

1. Clone the repository

git clone https://github.com/YOUR_USERNAME/MedicalManagementSystem.git
cd MedicalManagementSystem

2. Configure Firebase

  1. Create a project at the Firebase Console
  2. Enable Email/Password sign-in under Authentication
  3. Create a Realtime Database and apply security rules
  4. Register an Android app with package name com.medical.app
  5. Download google-services.json and place it in the app/ directory

3. Build & Run

./gradlew assembleDebug

Open the project in Android Studio, connect a device or launch an emulator, and click Run โ–ถ.

โš ๏ธ Critical: Ensure you place your google-services.json file inside the app/ directory before building.


โš ๏ธ Production Checklist

  • Secure Setup Directory โ€” Confirm google-services.json is in app/ and excluded from version control
  • Update Firebase Rules โ€” Apply authenticated, role-aware security rules in the Realtime Database
  • Test All User Workflows โ€” Verify Patient and Doctor registration, booking, treatment, and billing flows end-to-end

๐ŸŽฏ Learning Outcomes

Through building MedSync, the following academic competencies were demonstrated:

  • ๐Ÿ”ฅ Firebase Integration โ€” End-to-end setup of Authentication and Realtime Database with live data listeners
  • ๐Ÿ“‹ RecyclerView & CardView โ€” Dynamic list rendering for appointments, history, and billing screens
  • ๐ŸŽญ Role-Based Authentication โ€” Dual-portal routing based on user role stored in the cloud
  • ๐ŸŽจ Material Design UI โ€” Consistent theming, input fields, buttons, and card-based layouts in XML

๐Ÿ”ฎ Future Enhancements

  • ๐Ÿ“„ PDF Bill Generation โ€” Export and share itemized medical bills as downloadable PDF documents
  • ๐Ÿ”” Push Notifications โ€” Appointment reminders, accept/reject alerts, and bill confirmations via FCM
  • ๐Ÿ“น Video Consultations โ€” In-app telemedicine sessions between patients and doctors
  • ๐Ÿ’ฌ In-App Messaging โ€” Secure chat channel for pre- and post-appointment communication

๐Ÿ‘จโ€๐Ÿ’ป Author

Aliza Tariq
University of Agriculture, Faisalabad
Department of Computer Science
Course: CS-512 โ€” Mobile App Development
Instructor: Prof. Waseem




Made with โค๏ธ using Android Studio & Firebase

About

A comprehensive, role-based Android application to streamline clinic workflows, patient histories, and medical billing powered by Firebase.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages