Skip to content

vanamaeshwar7-web/Medical-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ₯ Medical Health App

A comprehensive AI-powered mobile health application for managing prescriptions, medications, and health monitoring.

πŸ“± Features

πŸ” Authentication

  • Email/Password login and registration
  • Google Sign-In (Android)
  • Apple Sign-In (iOS)
  • Biometric authentication (Face ID/Touch ID)
  • Secure token-based authentication

πŸ“Έ AI-Powered Prescription Scanning

  • Upload prescription images from gallery
  • Capture prescriptions using camera
  • AI-powered OCR to extract medication details
  • Automatic data extraction and validation

⏰ Smart Medication Reminders

  • Google Calendar integration (Android)
  • Apple Calendar integration (iOS)
  • Customizable notification schedules
  • Medication tracking (Taken/Missed/Skipped)

πŸ“Š Health Monitoring

  • Prescription and medication history
  • Health data tracking
  • Progress monitoring
  • Cloud backup and sync

πŸ” Smart Search

  • Search medications by name
  • Search by health conditions/symptoms
  • AI-powered medication suggestions
  • Related prescription recommendations

πŸ›’ Online Pharmacy Integration

  • Medicine availability checking
  • Direct links to pharmacy apps
  • Price comparison features

πŸ›  Technical Stack

Frontend

  • React Native with Expo
  • TypeScript for type safety
  • Redux Toolkit for state management
  • React Navigation for navigation
  • React Native Elements for UI components

Backend & Services

  • Firebase (Authentication, Firestore, Cloud Functions)
  • Google Cloud Vision API for OCR
  • Google Calendar API for calendar integration
  • Apple HealthKit for iOS health data

AI & ML

  • Google ML Kit for on-device text recognition
  • Azure Computer Vision for advanced OCR
  • OpenAI GPT for medication suggestions

Notifications

  • Firebase Cloud Messaging for push notifications
  • React Native Local Notifications for local alerts

πŸ“‹ Prerequisites

Before running this project, ensure you have:

  1. Node.js (v16 or higher) - Download here
  2. Expo CLI - Install globally: npm install -g @expo/cli
  3. Android Studio (for Android development)
  4. Xcode (for iOS development, macOS only)
  5. Expo Go app on your mobile device for testing

πŸš€ Installation & Setup

1. Install Dependencies

# Install Node.js first, then:
npm install -g @expo/cli

2. Create the Project

npx create-expo-app@latest medical-health-app --template blank-typescript
cd medical-health-app

3. Install Required Packages

npm install @reduxjs/toolkit react-redux
npm install @react-navigation/native @react-navigation/stack @react-navigation/bottom-tabs
npm install react-native-elements react-native-vector-icons
npm install expo-camera expo-image-picker expo-file-system
npm install expo-local-notifications expo-notifications
npm install expo-secure-store expo-crypto
npm install @react-native-async-storage/async-storage
npm install expo-calendar expo-contacts
npm install expo-auth-session expo-crypto
npm install expo-device expo-constants
npm install expo-linking expo-web-browser
npm install expo-image-manipulator
npm install expo-media-library
npm install expo-permissions
npm install expo-sensors
npm install expo-haptics
npm install expo-av
npm install expo-barcode-scanner
npm install expo-print
npm install expo-sharing
npm install expo-sqlite
npm install expo-task-manager
npm install expo-background-fetch
npm install expo-location
npm install expo-sensors
npm install expo-battery
npm install expo-network
npm install expo-device
npm install expo-application
npm install expo-screen-orientation
npm install expo-splash-screen
npm install expo-status-bar
npm install expo-system-ui
npm install expo-updates
npm install expo-web-browser
npm install expo-linear-gradient
npm install expo-blur
npm install expo-keep-awake
npm install expo-sensors
npm install expo-haptics
npm install expo-av
npm install expo-barcode-scanner
npm install expo-print
npm install expo-sharing
npm install expo-sqlite
npm install expo-task-manager
npm install expo-background-fetch
npm install expo-location
npm install expo-sensors
npm install expo-battery
npm install expo-network
npm install expo-device
npm install expo-application
npm install expo-screen-orientation
npm install expo-splash-screen
npm install expo-status-bar
npm install expo-system-ui
npm install expo-updates
npm install expo-web-browser
npm install expo-linear-gradient
npm install expo-blur
npm install expo-keep-awake

4. Configure Firebase

  1. Create a Firebase project at Firebase Console
  2. Add your app configuration to src/config/firebase.ts
  3. Enable Authentication, Firestore, and Cloud Functions

5. Configure Google Cloud Vision API

  1. Create a Google Cloud project
  2. Enable Cloud Vision API
  3. Create service account and download credentials
  4. Add credentials to src/config/google-cloud.ts

6. Run the App

npx expo start

πŸ“ Project Structure

medical-health-app/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/          # Reusable UI components
β”‚   β”œβ”€β”€ screens/            # App screens
β”‚   β”œβ”€β”€ navigation/         # Navigation configuration
β”‚   β”œβ”€β”€ store/              # Redux store and slices
β”‚   β”œβ”€β”€ services/           # API services and external integrations
β”‚   β”œβ”€β”€ utils/              # Helper functions and utilities
β”‚   β”œβ”€β”€ types/              # TypeScript type definitions
β”‚   β”œβ”€β”€ constants/          # App constants and configurations
β”‚   β”œβ”€β”€ hooks/              # Custom React hooks
β”‚   └── assets/             # Images, fonts, and other assets
β”œβ”€β”€ app.json               # Expo configuration
β”œβ”€β”€ package.json           # Dependencies
└── tsconfig.json          # TypeScript configuration

πŸ”§ Configuration

Environment Variables

Create a .env file in the root directory:

FIREBASE_API_KEY=your_firebase_api_key
FIREBASE_AUTH_DOMAIN=your_project.firebaseapp.com
FIREBASE_PROJECT_ID=your_project_id
FIREBASE_STORAGE_BUCKET=your_project.appspot.com
FIREBASE_MESSAGING_SENDER_ID=your_sender_id
FIREBASE_APP_ID=your_app_id
GOOGLE_CLOUD_API_KEY=your_google_cloud_api_key
OPENAI_API_KEY=your_openai_api_key

πŸš€ Development Workflow

  1. Setup Development Environment

    • Install Node.js and Expo CLI
    • Clone the repository
    • Install dependencies
    • Configure Firebase and Google Cloud
  2. Development

    • Run npx expo start for development server
    • Use Expo Go app for testing on device
    • Use Android Studio/Xcode for emulator testing
  3. Testing

    • Unit tests with Jest
    • Integration tests with Detox
    • Manual testing on both platforms
  4. Building

    • expo build:android for Android APK
    • expo build:ios for iOS IPA
    • expo publish for OTA updates

πŸ“± Platform-Specific Features

Android

  • Google Sign-In integration
  • Google Calendar sync
  • Android-specific notifications
  • Biometric authentication

iOS

  • Apple Sign-In integration
  • Apple Calendar sync
  • Face ID/Touch ID authentication
  • HealthKit integration

πŸ”’ Security Considerations

  • All sensitive data encrypted at rest
  • Secure API communication with HTTPS
  • Biometric authentication for app access
  • HIPAA compliance for medical data
  • Regular security audits

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests for new features
  5. Submit a pull request

πŸ“ž Support

For support and questions:

  • Create an issue in the repository
  • Contact the development team
  • Check the documentation

Note: This app handles sensitive medical information. Ensure compliance with local healthcare regulations and data protection laws.

About

Building the medical app

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors