You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Medics: A Medical Information and Appointment System
3
2
4
3
**Medics** is a comprehensive medical software built in Python that helps patients input diagnoses, retrieve medical information, and schedule appointments with doctors. The system also provides a doctor portal to view patient details and manage appointments. All data is stored in an Excel-based database for easy integration and portability.
@@ -39,8 +38,6 @@
39
38
40
39
---
41
40
42
-
<aname="introduction"></a>
43
-
44
41
## 1. Introduction
45
42
46
43
Welcome to the **Medics** repository. This software is designed for medical professionals and patients, making it easier to diagnose conditions, view medical records, and schedule appointments. The system is built using Python, with data stored in Excel files for portability and ease of use. Whether you're a patient seeking medical information or a doctor managing appointments, **Medics** is here to simplify the process.
@@ -52,8 +49,6 @@ Welcome to the **Medics** repository. This software is designed for medical prof
52
49
53
50
---
54
51
55
-
<aname="features"></a>
56
-
57
52
## 2. Features
58
53
59
54
-**Patient Login and Registration**: Secure login system for patients to access their dashboard.
@@ -67,8 +62,6 @@ Welcome to the **Medics** repository. This software is designed for medical prof
67
62
68
63
---
69
64
70
-
<aname="technology-stack"></a>
71
-
72
65
## 3. Technology Stack
73
66
74
67
-**Programming Language**: Python 3.x
@@ -81,8 +74,6 @@ Welcome to the **Medics** repository. This software is designed for medical prof
81
74
82
75
---
83
76
84
-
<aname="system-requirements"></a>
85
-
86
77
## 4. System Requirements
87
78
88
79
-**Python**: Version 3.7 or above.
@@ -93,8 +84,6 @@ Welcome to the **Medics** repository. This software is designed for medical prof
93
84
94
85
---
95
86
96
-
<aname="installation-guide"></a>
97
-
98
87
## 5. Installation Guide
99
88
100
89
Follow these steps to install and run the Medics software on your local machine.
@@ -105,103 +94,65 @@ First, clone the repository to your local machine using the following command:
105
94
106
95
```bash
107
96
git clone https://github.com/username/medics.git
108
-
```
109
-
110
-
### 5.2 Install Dependencies
111
-
97
+
5.2 Install Dependencies
112
98
Navigate into the project directory and install the required Python packages:
113
99
114
-
```bash
100
+
bash
101
+
Copy code
115
102
cd medics
116
103
pip install -r requirements.txt
117
-
```
118
-
119
104
Alternatively, you can manually install dependencies:
120
105
121
-
```bash
106
+
bash
107
+
Copy code
122
108
pip install pandas openpyxl
123
-
```
124
-
125
-
### 5.3 Database Setup
126
-
109
+
5.3 Database Setup
127
110
Ensure that you have the necessary Excel files (patients.xlsx and doctors.xlsx) in the root directory. If not, create them manually or run the following script to generate template files:
128
111
129
-
```bash
112
+
bash
113
+
Copy code
130
114
python setup_database.py
131
-
```
132
-
133
-
---
134
-
135
-
<aname="usage"></a>
136
-
137
-
## 6. Usage
138
-
139
-
### 6.1 Running the Application
140
-
115
+
6. Usage
116
+
6.1 Running the Application
141
117
Once you have installed all dependencies, run the following command to start the application:
142
118
143
-
```bash
119
+
bash
120
+
Copy code
144
121
python medics.py
145
-
```
146
-
147
-
### 6.2 Patient Login
148
-
149
-
- Upon running the program, the user will be prompted to enter their username and password.
150
-
- Once authenticated, patients can access their medical dashboard.
151
-
152
-
### 6.3 Doctor Login
153
-
154
-
- Doctors use a separate login page to access their dashboard, where they can manage patients and appointments.
155
-
156
-
### 6.4 Diagnosis Submission
157
-
158
-
- Patients can input their symptoms or diagnoses in the input fields.
159
-
- After submission, the system will retrieve related medical information from the database.
160
-
161
-
### 6.5 Appointment Scheduling
162
-
163
-
- Patients can view available doctors and schedule appointments directly from their dashboard.
164
-
- Appointments are stored in the Excel database for both patients and doctors.
165
-
166
-
---
167
-
168
-
<aname="excel-database-structure"></a>
169
-
170
-
## 7. Excel Database Structure
171
-
122
+
6.2 Patient Login
123
+
Upon running the program, the user will be prompted to enter their username and password.
124
+
Once authenticated, patients can access their medical dashboard.
125
+
6.3 Doctor Login
126
+
Doctors use a separate login page to access their dashboard, where they can manage patients and appointments.
127
+
6.4 Diagnosis Submission
128
+
Patients can input their symptoms or diagnoses in the input fields.
129
+
After submission, the system will retrieve related medical information from the database.
130
+
6.5 Appointment Scheduling
131
+
Patients can view available doctors and schedule appointments directly from their dashboard.
132
+
Appointments are stored in the Excel database for both patients and doctors.
133
+
7. Excel Database Structure
172
134
The Excel files are critical to how Medics stores and manages data. Below is the structure for both files:
| Doctor Name | String | The full name of the doctor. |
190
-
| Username | String | The doctor's username for login. |
191
-
| Password | String | The doctor's password (encrypted). |
192
-
| Assigned Patients | List | A list of patients assigned to the doctor. |
193
-
194
-
---
195
-
196
-
<aname="code-breakdown"></a>
197
-
198
-
## 8. Code Breakdown
199
-
136
+
7.1 Patient Sheet
137
+
Column Name Data Type Description
138
+
Patient Name String The full name of the patient.
139
+
Username String The patient's username for login.
140
+
Password String The patient's password (encrypted).
141
+
Diagnosis String The diagnosis or symptoms entered by the patient.
142
+
Appointment Date DateTime The date and time of the scheduled appointment.
143
+
Doctor Assigned String The doctor assigned to the patient.
144
+
7.2 Doctor Sheet
145
+
Column Name Data Type Description
146
+
Doctor Name String The full name of the doctor.
147
+
Username String The doctor's username for login.
148
+
Password String The doctor's password (encrypted).
149
+
Assigned Patients List A list of patients assigned to the doctor.
150
+
8. Code Breakdown
200
151
Here is an overview of the important code components in the Medics system.
201
152
202
-
### 8.1 Patient Class
203
-
204
-
```python
153
+
8.1 Patient Class
154
+
python
155
+
Copy code
205
156
class Patient:
206
157
def __init__(self, username, password):
207
158
self.username = username
@@ -220,11 +171,9 @@ class Patient:
220
171
def schedule_appointment(self, doctor, date):
221
172
# Logic to schedule an appointment in the Excel file.
222
173
pass
223
-
```
224
-
225
-
### 8.2 Doctor Class
226
-
227
-
```python
174
+
8.2 Doctor Class
175
+
python
176
+
Copy code
228
177
class Doctor:
229
178
def __init__(self, username, password):
230
179
self.username = username
@@ -239,26 +188,64 @@ class Doctor:
239
188
def view_patients(self):
240
189
# Logic to view all assigned patients.
241
190
pass
242
-
```
243
-
244
-
### 8.3 Appointment Management
245
-
246
-
```python
191
+
8.3 Appointment Management
192
+
python
193
+
Copy code
247
194
def assign_patient_to_doctor(patient, doctor):
248
195
# Logic to assign a patient to a specific doctor in the Excel sheet.
249
196
pass
250
-
```
251
-
252
-
---
253
-
254
-
<aname="error-handling-and-debugging"></a>
255
-
256
-
## 9. Error Handling and Debugging
257
-
197
+
9. Error Handling and Debugging
258
198
To ensure smooth operation, the following error handling mechanisms are implemented:
259
199
260
-
-**Invalid Login**: If a patient or doctor enters incorrect login credentials, the system will prompt an error message.
261
-
-**Empty Diagnosis**: The system will not allow a patient to submit an empty diagnosis field.
262
-
-**Excel File Access**: If the Excel files are inaccessible or corrupted, the system will prompt the user to restore the files.
263
-
264
-
200
+
Invalid Login: If a patient or doctor enters incorrect login credentials, the system will prompt an error message.
201
+
Empty Diagnosis: The system will not allow a patient to submit an empty diagnosis field.
202
+
Excel File Access: If the Excel files are inaccessible or corrupted, the system will prompt the user to restore the files.
203
+
10. Development Guidelines
204
+
Follow Python best practices for writing clean, maintainable code. Avoid hardcoding paths or credentials.
205
+
206
+
11. Unit Testing
207
+
Use pytest or another testing framework to write unit tests for the critical functionality, such as login validation, diagnosis submission, and appointment scheduling.
208
+
209
+
12. Continuous Integration (CI)
210
+
Integrate this repository with GitHub Actions or any other CI/CD tool to automate testing upon new commits.
211
+
212
+
13. Known Issues
213
+
Excel File Corruption: In rare cases, Excel files may become corrupted due to improper shutdowns.
214
+
Login Timeout: Occasional delays in login due to file access speed.
215
+
14. Contribution Guide
216
+
We welcome contributions to the Medics project! If you’d like to contribute, please follow these steps:
217
+
218
+
Fork the Repository: Click on the "Fork" button on the top right of the repository page.
219
+
Clone Your Fork: Use the following command to clone your forked repository to your local machine:
0 commit comments