HealthCare is a modern iOS application designed to provide users with access to digital health reports, AI-driven analysis, doctor consultations, and more. The app is built using SwiftUI and integrates Firebase for authentication and real-time data management.
- User and Doctor Registration: Separate registration flows for users and doctors with specialized data capture for doctors (e.g., specialty, address).
- Appointment Booking: Users can book appointments with doctors by selecting consultation dates and times.
- AI Health Reports: Personalized insights based on user health data, powered by AI analysis.
- Doctor Profiles: Detailed doctor profiles with specialties, consultation fees, and contact details.
- Notifications: Push notifications for appointment reminders and health alerts.
.
├── Healthcare
│ ├── AppointmentService.swift
│ ├── Assets.xcassets
│ ├── BookAppointment.swift
│ ├── Details.swift
│ ├── DocHomeView.swift
│ ├── FindDoctor.swift
│ ├── Firebase.swift
│ ├── GenrativeAI.swift
│ ├── HealthArticlesView.swift
│ ├── HealthcareApp.swift
│ ├── Home.swift
│ ├── Info.plist
│ ├── LabTestActivity.swift
│ ├── LoginView.swift
│ ├── MainView.swift
│ ├── Maps.swift
│ ├── Medicine.swift
│ ├── Preview Content
│ ├── Register.swift
│ ├── SwiftUIView.swift
│ ├── Zoom.swift
│ └── apiKey.swift
├── Healthcare.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ └── xcuserdata
├── HealthcareTests
│ └── HealthcareTests.swift
├── HealthcareUITests
│ ├── HealthcareUITests.swift
│ └── HealthcareUITestsLaunchTests.swift
└── README.md
- iOS Development: Swift, SwiftUI
- Backend: Firebase (Firestore, Authentication)
- State Management: SwiftUI's State and Environment Variables
- UI Framework: SwiftUI with custom views, components, and layouts
-
Clone the repository:
git clone https://github.com/yourusername/HealthCare.git
-
Open the project in Xcode:
cd HealthCare open HealthCare.xcodeproj
-
Install the required CocoaPods:
pod install
-
Add your own Firebase configuration:
- Download
GoogleService-Info.plist
from the Firebase Console. - Add the
GoogleService-Info.plist
to the Xcode project (ensure it's part of the app target).
- Download
-
Build and run the project on a simulator or a device.
- Authentication: Email/password authentication for users and doctors.
- Firestore: Used to store user, doctor, and appointment data.
- Firestore Structure:
- Users Collection: Stores user profile details.
- Doctors Collection: Stores doctor information (e.g., specialty, address).
- Appointments Collection: Stores user appointments with details like date, doctor, and fees.
If you wish to contribute:
- Fork the repository.
- Create a new feature branch (
feature/new-feature
). - Commit your changes.
- Open a pull request.
This project is licensed under the MIT License.