You are on page 1of 6

Hospital Database Management System

Abstract-My project Hospital Database Management


• Information about Patients is done by just writing
system includes registration of patients, storing their
the Patients name, age, and gender. Whenever the
disease details into the system. It will also contain
Patient comes up his information is stored freshly.
doctor’s information and will digitalize the whole billing
• Bills are generated by recording price for each
system. It has the facility to give a unique id for every
facility provided to Patient on a separate sheet and
patient and stores the details of every patient and staff at last they all are summed up.
automatically. It includes a search facility to know the • Diagnosis information to patients is generally
current status of each room. User can search recorded on the document, which contains Patients
availability of a doctor and the details of a patient using information. It is destroyed after some time period
the id. And the whole process conducted by to decrease the paper load in the office.
Administrator.
• Immunization records of the children are
Keywords- Hospital, Administrator, Patients, Doctor, maintained in pre-formatted sheets, which are kept
Diseases, Staff, Treatments, Test, Lab reports, Schema. in a file.
• Information about various diseases is not kept as
1. BACKGROUND any document. Doctors themselves do this job by
A Hospital Database Management System (HDMS) is a remembering various medicines
computer or web based system that facilities managing the All this work is done manually by the receptionist and
functioning of a hospital or any medical set up. This system other operational staff and lot of papers are needed to
will help in making the whole functioning paperless. be handled and taken care of. Doctors have to
The hospital database includes all the necessary patient remember various medicines available for diagnosis
data. The disease history, test results, prescribed and sometimes miss better alternatives as they can’t
treatment can be accessed by doctors without much delay remember them at that time.
in order to make an accurate diagnosis and monitor the
patient's health. It enables lower risks of mistakes. 2. IDEAS
A hospital is a place where Patients come up for general The hospital database includes all the necessary patient
diseases. Hospitals Provide facilities like: data. The disease history, lab reports, prescribed
treatment can be accessed by doctors without much delay
• Consultation by Doctors on Diseases.
in order to make an accurate diagnosis and monitor the
• Diagnosis for diseases.
patient's health. It enables lower risks of mistakes.
• Providing treatment facility.
• Facility for admitting Patients (providing beds,  The project maintains two levels of users:
nursing, medicines etc.) • Administrator.
• Immunization for Patients/Children. • User Level-Data Entry Operator.
Various operational works that are done in a Hospital are:  Now, I discuss the main facilities in this project are:
• Maintaining records of indoor/outdoor patients.
• Recording information about the Patients that • Maintaining patient’s test and examinations details.
come. • Providing different test facilities to a Doctor for
• Generating bills. doctor for diagnosis of a patients.
• Recording information related to diagnosis given • Maintaining patient’s prescription, medicine and
to Patients. diet advice details.
• Keeping record of the Immunization provided to • Providing billing details for indoor/outdoor
Children/Patients. patients.
• Keeping information about various diseases and • Results of tests, prescription, precautions and diet
medicines available to cure them. advice will be automatically updated in the
These are the various jobs that need to be done in a database.
Hospital by the operational staff and Doctors. All these • In this project collection of data in form different
works are done on papers. pathology labs.
The work is done as follows: • Related test reports, patient’s details report, billing
reports can be generated as per user requirements.
• User or administrator can search a patient’s record  ER Diagram of Hospital Database Management System
by his id.
• Hospital Database Management System Design:
The Hospital database management system design is a
database design use for managing hospital functions
and events. It enables the admin to register a patient
for the hospital, stores their disease details into the
database. Any of the staff members, doctor & admin is
able to add, view, edit, update or delete data.
 Purpose of Hospital Database Management System:
The purpose of the Hospital Management
System database Design is to make a secure and easy
way of storing information of the patient, doctors,
inpatient, outpatient, Rooms, and Bill payment.
 Features of the Hospital Database Management
System: There are seven (8) common features of
Hospital Management System Database Design such
as
Managing Administrator, Doctors, laboratory,
Inpatient, Outpatient, Rooms, and Hospital Bills
information.
• Administrator
This table of ER Diagram Hospital Management System
will be used for storing and managing the administrator
information. Administrator manage & maintain the whole
system.
• Manage Doctor
This table will be used for storing and managing the
Doctor information and login account.
• Manage Laboratory The proposed ER diagram for Hospital DBMS with
This table will be used for storing and managing the relationship shows the entity of the proposed Hospital
Laboratory transaction. Management system database, which is presented by
• Manage Inpatient tables; the tables are made to meet the required
This table will be used for storing and managing specification of the system and provide much more specific
the inpatient information and diagnosis. details of each entity within the system.
• Manage Outpatient Data Tables:
This table will be used for storing and managing 1. Administrator Table:
the inpatient information and diagnosis. Fields Data Type Relationships
• Manage Room
a_id int(5) Primary Key
This table will be used for storing and managing
a_name Varchar(20) Not Null
the room information and assigning of patient in
every room. gender Varchar(10) Not Null
• Manage Bills
The billing table will be used for managing the 2. Doctor Table:
statement of accounts per patient and for the
Fields Data Type Relationships
collection of bills.
• Manage Staff Doctor_id int(5) Primary Key
This table will be used for storing and managing Doctor_name Varchar(15) Not Null
the Staff information. Dept Varchar(15) Not Null
a_id Int(5) Foreign Key
3. Staff Table: 8. Bill Table:
Fields Data Type Relationships
Fields Data Type Relationships
s_name Varchar(15) Not Null
s_id Int(5) Primary Key bill_no int(50) Primary Key

NID Int(12) Not Null Patient_id int(5) Foreign Key


salary Int(5) Not Null patient_type Varchar(10) Allow Null
a_id Int(5) Foreign Key doctor_charge int Not Null
medicine_charge int Not Null
4. Lab table: room_charge int Not Null
Fields Data Type Relationships operation_charge int Allow Null
lab_no int(5) Primary Key number_of_days int Allow Null
Patient_id int(5) Not Null nursing_charge int Allow Null
weight int Not Null advance int Allow Null
Doctor_id int(5) Foreign Key health_card Varchar(50) Allow Null
date Date/Time[6] Not Null lab_charge int Allow Null
category Varchar(15) Not Null bill int Not Null

patient_type Varchar(15) Not Null


amount Int(10) Not Null Snapshot:
• Hospital DBMS Tables list in SQL
5. Inpatient Table: Database Server
Fields Data Type Relationships
Patient_id int(5) Primary Key
name Varchar(20) Not Null
gender Varchar(10) Not Null
address Varchar(20) Not Null
room_no int(5) Not Null
date_of_admit Date/Time[ 6] Not Null
date_of_discharge Date/Time[6 ] Not Null
advance Int(10) Not Null
lab_no int(5) Foreign Key • Hospital DBMS SQL Server Database Schema
Doctor_id Int(5) Foreign Key Diagram

disease Varchar(20) Not Null

6. Outpatient Table:
Fields Data Type Relationships
Patient_id int(5) Primary Key
date Date/Time Not Null
lab_no int(5) Foreign Key

7. Room Table:

Fields Data Type Relationships


room_no Int(5) Primary Key
Insert data into all Tables:
room_type Varchar(10) Not Null Now, we can use insert statement for Insert (add) data or
status Varchar(10) Not Null record into tables.
Patient_id Int(5) Foreign Key • For Administrator table:
The statement below enters 2 records or rows into
patient table:
Table: Table:

• For bill Table:


The statement below enters 2 records or rows into
• For doctor table: bill table:
The statement below enters 2 records or rows into
doctor table:
Table:

• For staff Table:


Table: The statement below enters 2 records or rows into
staff table:

Table:
• For lab Table:
The statement below enters 2 records or rows into
lab table:

Note: We will store this kind of record or information by


Table: using above process.

 Search a patient’s record by his id:


To see patient’s record, we will use select
• For inpatient table: statement.
The statement below enters 2 records or rows into I would like to see how much bill, doctor
inpatient table: charge, medicine charge, room charge, operation
charge, nursing charge are came and how much
advance given the first patient's

Table:

• For outpatient table:


The statement below enters 2 records or rows into
outpatient table:

3. Conclusion
The project Hospital Data Management System (MDBS)
Table: is for computerizing the working in a hospital. It takes care
of all the requirements of an average hospital and is
capable to provide easy and effective storage of
information related to patients that come up to the hospital.
It generates test reports, provide medicines prescribed to
• For room table: patient and doctor. It also provides billing facility on the
The statement below enters 2 records or rows into basis of patient’s status whether it is an indoor or outdoor
room table: patient. The system also provide the facility of backup as
per the requirement.
create database HMS1
use HMS1
CREATE TABLE department(
[department_id] [int] NOT NULL PRIMARY KEY,
[dep_name] [varchar](max) NOT NULL,
[dep_head] [varchar](max) NOT NULL,
);
CREATE TABLE employee(
[employee_id] [int] NOT NULL PRIMARY KEY,
[employee_name] [varchar](max) NOT NULL,
[DoB] [date] NOT NULL,
[joinning_date] [date] NOT NULL,
[emp_type] [varchar](max) NOT NULL,
[email] [varchar](max) NOT NULL,
[address] [varchar](max) NOT NULL,
[salary] [int] NOT NULL,
[date_of_leaveing] [date] NOT NULL,
[department_id] [int] NOT NULL foreign key
references [department]);
CREATE TABLE Medicine(
[medicine_id] [int] NOT NULL PRIMARY KEY,
[medicine_name] [varchar](max) NOT NULL,
[quantity] [int] NOT NULL,
[date] [date] NOT NULL,
[medicine_cost] [nchar](10) NOT NULL,
CREATE TABLE patient(
[patient_id] [int] NOT NULL PRIMARY KEY,
[patient_name] [varchar](max) NOT NULL,
[phone_no] [varchar](max) NOT NULL,
[blood_group] [varchar](max) NOT NULL,
[email] [varchar](max) NOT NULL,
[gender] [varchar](max) NOT NULL,
[address] [varchar](max) NOT NULL,
[disease] [varchar](max) NOT NULL,
[arrival_date] [date] NOT NULL,
[discharge_date] [date] NOT NULL,
);
create table Bill
( [payment_id] [int] NOT NULL PRIMARY KEY,
[date] [date] NOT NULL,
[room_cost] [int] NOT NULL,
[othercharge] [int] NULL,
[mcost] [int] NOT NULL,
[Total] [int] NOT NULL,
[patient_id] [int] NOT NULL foreign key references
[patient]);
CREATE TABLE doctor(
[doctor_id] [int] NOT NULL PRIMARY KEY,
[qualification] [varchar](max) NOT NULL,
[patient_id] [int] NOT NULL foreign key references
[patient],
[employee_id] [int] NOT NULL foreign key
references [employee]);
CREATE TABLE nurse(
[nurse_id] [int] NOT NULL PRIMARY KEY,
[patient_id] [int] NOT NULL foreign key references
[patient],
[employee_id] [int] NOT NULL foreign key
references [employee]);
CREATE TABLE reletive(
[reletive_id] [int] NOT NULL PRIMARY KEY,
[reletive_name] [varchar](max) NOT NULL,
[reletive_contact] [varchar](max) NOT NULL,
[relation] [varchar](max) NOT NULL,
[patient_id] [int] NOT NULL foreign key references
[patient]);
CREATE TABLE room(
[room_id] [int] NOT NULL PRIMARY KEY,
[room_type] [varchar](max) NOT NULL,
[patient_id] [int] NOT NULL foreign key references
[patient],
[room_cost] [int] NOT NULL);
CREATE TABLE Test([test_id] [int] NOT NULL
PRIMARY KEY, [test_name] [varchar](max) NOT
NULL, [test_cost] [int] NOT NULL, [date] [date]
NOT NULL, [patient_id] [int] NOT NULL foreign
key references [patient]);

Conclusions

This project has been a rewarding experience in more than one way. The entire project work has enlightened us in the following
areas.

a) We have gained an insight into the working of the HOSPITAL. This represents a typical real
world situation.

b) Our understanding of database design has been strengthened this is because in order to generate the
final reports of database designing has to be properly followed.

c) Scheduling a project and adhering to that schedule creates a strong sense of time management.

d) Sense of teamwork has developed and confidence of handling real life project has increased to a
great extent.

e) Initially, there were problem with the validation but with discussions, we were to implement
validations.

You might also like