0% found this document useful (0 votes)
32 views18 pages

Micro Project DBMS

This document describes a hospital management system project that uses SQL to create and manage a database. It includes the entity relationship diagram, queries to create tables, insert data, and join tables. The project aims to efficiently manage key hospital processes and data through a database.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views18 pages

Micro Project DBMS

This document describes a hospital management system project that uses SQL to create and manage a database. It includes the entity relationship diagram, queries to create tables, insert data, and join tables. The project aims to efficiently manage key hospital processes and data through a database.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

A

PROJECT REPORT
ON

HOSPITAL MANAGEMENT SYSTEM

SUBMITTED BY

[156]Miss. Shaikh Mariyam Fakaruddin [164]Miss.Sonawane Sakshi Janardhan

[169]Miss.Gawail Siddhi Balasaheb [170]Miss.Gondkar Samiksha Annasaheb

Under guidance of

MR.D.R.CHOLKE

DEPARTMENT COMPUTER TECHNOLOGY

Sanjivani rural education society’s

SANJIVANI K.B.P.POLYTECHNIC

KOPARGOAN-423603,DIST:AHMEDNAGAR

2022-2023
Sanjivani Rural Education Society’s

SANJIVANI K. B. P. POLYTECHNIC
DEPARTMENT OF COMPUTER TECHNOLOGY

CERTIFICATE
This is to certify that the project report entitled

HOSPITAL MANAGEMENT SYSTEM


Submitted By

[156]Miss. Shaikh Mariyam Fakaruddin[164]Miss.Sonawane Sakshi Janardhan

[169]Miss.Gawail Siddhi Balasaheb[170]Miss.Gondkar Samiksha Annasaheb

Under our supervision and guidance for partial fulfillment of the requirement for
Diploma in Computer Technology affiliated to
Maharashtra State Board of Technical Education,
Mumbai For academic year
2021-2022

Prof.D.R.CHOLKE MR.G .N. JORVEKAR


PROF.GUIDE HOD
ACKNOWLEDGMENT

We would take this opportunity to express our sincere thanks and gratitude to our
Project Guide Prof. D. R. Cholke, Department of Computer Technology, Sanjivani
K.B.P.Polytechnic, Kopargaon. For his vital guidance and support in completing
this project. Lots of thanks to the Head of Computer technology Department Mr.
G.N. Jorvekar for providing us with the best support we ever had. We like to
express our sincere gratitude to Mr. A. R. Mirikar, Principal, Sanjivani K. B. P.
Polytechnic, Kopargaon for providing a great platform to complete the project
within the scheduled time.
Last but not the least; we would like to say thanks to our family and friends for
their never-ending love, help, and support in so many ways through all this time. A
big thanks to all who have willingly helped us out with their ability.

Miss. Shaikh Mariyam Fakaruddin[156]

Miss.Sonawane Sakshi Janardhan[164]

Miss.Gawail Siddhi Balasaheb[169]

Miss.Gondkar Samiksha Annasaheb[170]


INDEX

SR .NO TITLE PAGE NO


1. INTRODUCTION 01

2. ER.DIAGRAM 02

3. QUERIES 03

4. OUTPUT 08

5. CONCLUSION 13

6. REFERENCE 14
1.INTRODUTION

The Hospital Management System can be entered using a username and


password. It is accessible either by an administrator or receptionist. Only they can
add data into the database. The data can be retrieved easily. The interface is very
user-friendly. The data are well protected for personal use and makes the data
processing very fast.
Hospital Management System is powerful, flexible, and easy to use and is
designed and developed to deliver real conceivable benefits to hospitals.
Hospital Management System is designed for multispeciality hospitals, to cover a
wide range of hospital administration and management processes. It is an
integrated end-to-end Hospital Management System that provides relevant
information across the hospital to support effective decision making for patient
care, hospital administration and critical financial accounting, in a seamless flow.
Hospital Management System is a software product suite designed to
improve the quality and management of hospital management in the areas of
clinical process analysis and activity-based costing. Hospital Management System
enables you to develop your organization and improve its effectiveness and quality
of work. Managing the key processes efficiently is critical to the success of the
hospital helps you manage your processes.
2.ER DIAGRAM
3.QUERY
Create Database Hms;
Use Hms;
Create Table Patient(
Email Varchar(50) Primary Key,
Password Varchar(30) Not Null,
Name Varchar(50) Not Null,
Address Varchar(60) Not Null,
Gender Varchar(20) Not Null
);
Insert Into Patient(Email,Password,Name,Address,Gender)
Values
('[email protected]','Hrishikesh13','Ramesh','Tamil Nadu', 'Male'),
('[email protected]','Hrishikesh13','Suresh','Karnataka', 'Male'),
('[email protected]','Hrishikesh13','Rakesh','Gujarat', 'Male')
;

Create Table Medicalhistory(


Id Int Primary Key,
Date Date Not Null,
Conditions Varchar(100) Not Null,
Surgeries Varchar(100) Not Null,
Medication Varchar(100) Not Null
);

Insert Into Medicalhistory(Id,Date,Conditions,Surgeries,Medication)


Values
(1,'19-01-14','Pain In Abdomen','Heart Surgery','Crocin'),
(2,'19-01-14','Frequent Indigestion','None','None'),
(3,'19-01-14','Body Pain','None','Iodex')
;

Create Table Doctor(


Email Varchar(50) Primary Key,
Gender Varchar(20) Not Null,
Password Varchar(30) Not Null,
Name Varchar(50) Not Null
);
Insert Into Doctor(Email, Gender, Password, Name)
Values
('[email protected]', 'Male', 'Hrishikesh13', 'Hrishikesh Athalye'),
('[email protected]', 'Male', 'Hrishikesh13', 'Hrishikesh Athalye')
;

Create Table Appointment(


Id Int Primary Key,
Date Date Not Null,
Starttime Time Not Null,
Endtime Time Not Null,
Status Varchar(15) Not Null
);

Insert Into Appointment(Id,Date,Starttime,Endtime,Status)


Values
(1, '19-01-15', '09:00', '10:00', 'Done'),
(2, '19-01-16', '10:00', '11:00', 'Done'),
(3, '19-01-18', '14:00', '15:00', 'Done')
;

Create Table Patientsattendappointments(


Patient Varchar(50) Not Null,
Appt Int Not Null,
Concerns Varchar(40) Not Null,
Symptoms Varchar(40) Not Null,
Foreign Key (Patient) References Patient (Email) On Delete Cascade,
Foreign Key (Appt) References Appointment (Id) On Delete Cascade,
Primary Key (Patient, Appt)
);

Insert Into Patientsattendappointments(Patient,Appt,Concerns,Symptoms)


Values
('[email protected]',1, 'None', 'Itchy Throat'),
('[email protected]',2, 'Infection', 'Fever'),
('[email protected]',3, 'Nausea', 'Fever')
;

Create Table Schedule(


Id Int Not Null,
Starttime Time Not Null,
Endtime Time Not Null,
Breaktime Time Not Null,
Day Varchar(20) Not Null,
Primary Key (Id, Starttime, Endtime, Breaktime, Day)
);

Insert Into Schedule(Id,Starttime,Endtime,Breaktime,Day)


Values
(001,'09:00','17:00','12:00','Tuesday'),
(001,'09:00','17:00','12:00','Friday'),
(001,'09:00','17:00','12:00','Saturday'),
(001,'09:00','17:00','12:00','Sunday'),
(002,'09:00','17:00','12:00','Wednesday'),
(002,'09:00','17:00','12:00','Friday')
;

Create Table Patientsfillhistory(


Patient Varchar(50) Not Null,
History Int Not Null

);

Insert Into Patientsfillhistory(Patient,History)


Values
('[email protected]', 1),
('[email protected]', 2),
('[email protected]', 3)
;

Create Table Diagnose(


Appt Int Not Null,
Doctor Varchar(50) Not Null,
Diagnosis Varchar(40) Not Null,
Prescription Varchar(50) Not Null,
Foreign Key (Appt) References Appointment (Id) On Delete Cascade,
Foreign Key (Doctor) References Doctor (Email) On Delete Cascade,
Primary Key (Appt, Doctor)
);
Insert Into Diagnose(Appt,Doctor,Diagnosis,Prescription)
Values
(1,'[email protected]', 'Bloating', 'Ibuprofen As Needed'),
(2,'[email protected]', 'Muscle Soreness', 'Stretch Morning/Night'),
(3,'[email protected]', 'Vitamin Deficiency', 'Good Diet')
;

Create Table Docshaveschedules(


Sched Int Not Null,
Doctor Varchar(50) Not Null,
Foreign Key (Sched) References Schedule (Id) On Delete Cascade,
Foreign Key (Doctor) References Doctor (Email) On Delete Cascade,
Primary Key (Sched, Doctor)
);

Insert Into Docshaveschedules(Sched,Doctor)


Values
(001,'[email protected]'),
(002,'[email protected]')
;

Create Table Doctorviewshistory(


History Int Not Null,
Doctor Varchar(50) Not Null,
Foreign Key (Doctor) References Doctor (Email) On Delete Cascade,
Foreign Key (History) References Medicalhistory (Id) On Delete Cascade,
Primary Key (History, Doctor)
);

Insert Into Doctorviewshistory(History,Doctor)


Values
(1,'[email protected]'),
(2,'[email protected]'),
(3,'[email protected]'),
;
Select*From Patient;
Select*From Medicalhistory;
Select*From Doctor;
Select*From Appointment;
Select*From Patientsattendappointments;
Select*From Schedule;
Select*From Patientsfillhistory;
Select*From Diagnose;
Select*From Docshaveschedules;
Select*From Doctorviewshistory;

Joins Queries:

Select* From Diagnose Inner Join Docshaveschedules On


Diagnose.Doctor=Docshaveschedules.Doctor;

Select* From Diagnose Inner Join Medicalhistory On


Diagnose.Appt=Medicalhistory.Id;

Index Queries:

Create Index Patient2 On Patient(Email,Name,Address,Gender);

Show Index From Patient;

Create Unique Index Medical history2 On Medicalhistory(Conditions,Medication);

Show Index From Medicalhistory;


4. OUTPUT
5.CONCULSION

SQL database management application which is very well used in the


modern in organising and manipulating a database
Though SQL doesn’t have the GUI interface like microsoft access is having
and they all manage the database comfortable
Depending on the user or users, if an organisation has multiple user then
they should go for SQL server based application.
This project shows how to create table in SQL and how to create simple data
Language and data definition language with how to execute them.
6.REFERENCE

1.https://www.ques10.com/p/9489/draw-e-diagram-for-hospital management-
system-1/

2.https://www.geeksforgeeks.org/introduction-of-er-model/

You might also like