Project File
Project File
SECONDARY
SCHOOL
SESSION: 2025-26
PROJECT REPORT
ON
INFORMATICS PRACTICES
SESSION: 2025-2026
CLASS-XII
DIRECTED BY
CERTIFICATE
2
INDEX
2 PREFACE
6 DATABASE
7 OUTPUT
8 CONCLUSION
9 REMARKS
10 BIBLIOGRAPHY
3
ACKNOWLEDGEMENT
First of all, we would like to express our deep sense of gratitude and
heartfelt thanks to our honorable guide Mr. Nikhil Kumar for his
valuable guidance, keen interest, and constant encouragement
throughout the development of our project. His continuous support and
motivation helped us bring our project “Medical Management system”
to life successfully.
We are extremely grateful to Mr. Nikhil Kumar and all the faculty
members of Bharat Mata Senior Secondary School (BMSSS) for
their immense support, relevant guidance, and the extra lab time
provided during the completion of this project.
We also extend our sincere thanks to the school management for their
cooperation and support throughout the project development process.
4
PREFACE
The software for this project has been developed using Python, with the
help of libraries such as Pandas, CSV, and Matplotlib, which make the
user interface simple, efficient, and user-friendly. All the tools used are
open-source and freely available.
1.
5
INTRODUCTION TO MySQL
The MySQL Development Project has made its source code available
under the GNU General Public License (GPL), as well as through
various proprietary licenses.
Originally owned and sponsored by the Swedish company MySQL AB,
the project is now maintained and owned by Oracle Corporation.
6
MySQL is a popular choice of database for use in web applications
and serves as a central component of the widely used LAMP open-
source web application software stack (and other “AMP” stacks).
7
THEORETICAL BACKGROUND
1. PYTHON
Features of Python:
2. PANDAS
8
Features of Pandas:
3. MATPLOTLIB
Features of Matplotlib:
9
The CSV format is one of the simplest and most widely used formats for
storing and exchanging tabular data.
10
SYSTEM IMPLEMENTATION
Hardware Used
Software Used
The following software tools and platforms were utilized during the
design and development process:
11
SOURCE CODE
import pandas as pd
import matplotlib.pyplot as plt
import mysql.connector
cursor = db.cursor()
def view_patients():
cursor.execute("SELECT * FROM patients")
result = cursor.fetchall()
df = pd.DataFrame(result, columns=[ 'Name', 'Age', 'Gender',
'Diagnosis','ID'])
print(df)
def plot_age_distribution():
cursor.execute("SELECT age FROM patients")
result = cursor.fetchall()
ages = [row[0] for row in result]
12
plt.hist(ages, bins=10, edgecolor='black')
plt.title('Age Distribution of Patients')
plt.xlabel('Age')
plt.ylabel('Number of Patients')
plt.show()
def main():
while True:
print("\nMedical Software")
print("1. Add Patient")
print("2. View Patients")
print("3. Plot Age Distribution")
print("4. Exit")
if choice == '1':
name = input("Enter name: ")
age = int(input("Enter age: "))
gender = input("Enter gender: ")
diagnosis = input("Enter diagnosis: ")
add_patient(name, age, gender, diagnosis)
elif choice == '2':
view_patients()
elif choice == '3':
plot_age_distribution()
elif choice == '4':
break
else:
print("Invalid choice. Please try again.")
if __name__ == "__main__":
main()
13
DATABASE
/*!40101 SET
@OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI
ENT */;
/*!40101 SET
@OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RE
SULTS */;
/*!40101 SET
@OLD_COLLATION_CONNECTION=@@COLLATION_CONNEC
TION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `medical_db`
--
-- --------------------------------------------------------
14
--
-- Table structure for table `patients`
--
--
-- Dumping data for table `patients`
--
--
-- Indexes for dumped tables
--
--
-- Indexes for table `patients`
--
ALTER TABLE `patients`
ADD PRIMARY KEY (`ID`);
--
15
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `patients`
--
ALTER TABLE `patients`
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=5;
COMMIT;
/*!40101 SET
CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT
*/;
/*!40101 SET
CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESUL
TS */;
/*!40101 SET
COLLATION_CONNECTION=@OLD_COLLATION_CONNECTIO
N */;
16
OUTPUT
1. I chose 1 and as soon as I hit enter it asked me enter
your name and again press enter then after again it ask
me for amount and after pressing enter again my
account is created successfully.
17
As soon as it shows account created it immediately updated
the database,
18
2. I chose 2 and as soon as I hit enter it asked me enter
you’ll will see all patients.
19
3. I chose 3 and as soon as I hit enter it asked me enter
and you’ll see age distribution.
20
4. I chose 4 and as soon as I hit enter it asked me enter
and you’ll exit.
21
CONCLUSION
From the work and observations carried out during the development of
this project, we conclude that the Medical management softwareis
technically feasible, user-friendly, and valuable.
22
REMARKS
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________
23
BIBLIOGRAPHY
W3school.com
24