Shahnawaz Alam
Shahnawaz Alam
2020 Spring
Group: L1N9
I confirm that I understand my coursework needs to be submitted online via Google Classroom under the
relevant module page before the deadline in order for my assignment to be accepted and marked. I am
fully aware that late submissions will be treated as non-submission and a mark of zero will be awarded.
SHAHNAWAZ ALAM 1
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
Table of Content
Chapter 1 Introduction ..................................................................................................... 6
1.1 Why is there need of database system for the organization you have selected.
6
1.2 What are the aims and objectives? .................................................................... 7
Chapter 2 Model .............................................................................................................. 8
2.1 Table (Entity) Description ...................................................................................... 8
Doctor Table (Entity). ................................................................................................. 10
Medical report Table (Entity). ..................................................................................... 13
Patient Table (Entity). ................................................................................................ 16
Staff Table (Entity). .................................................................................................... 19
Hospital Table (Entity). .............................................................................................. 22
2.2 ENTITY RELATIONSHIP DIAGRAM. .................................................................. 25
Hospital Management System entities and their Attributes. ....................................... 26
2.3 REALATIONAL DIAGRAM. ................................................................................. 27
Chapter 3 Data Dictionary ............................................................................................. 29
Data dictionary of Doctor Table (Entity). .................................................................... 30
Data dictionary of Medical report Table. .................................................................... 31
Data Dictionary of Patient. ......................................................................................... 32
Data Dictionary of Staff. ............................................................................................. 33
Data Dictionary of Hospital. ....................................................................................... 34
Chapter 4 Queries ......................................................................................................... 35
4.1 Show Right join query. ......................................................................................... 36
4.2 Show the Distinct query. ...................................................................................... 37
4.3 Show the Order by query. .................................................................................... 38
4.4 Show the Count query. ........................................................................................ 39
4.5 Show the Limit query. .......................................................................................... 40
SHAHNAWAZ ALAM 2
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
SHAHNAWAZ ALAM 3
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
List of Figures
Figure 1: Create statement of Doctor. ........................................................................... 10
Figure 2: Insert Statement of doctor values................................................................... 11
Figure 3: Insert statement of Doctor. ............................................................................. 12
Figure 4: Create statement of Medical report. ............................................................... 13
Figure 6: Select statement of Medical report. ................................................................ 15
Figure 8: Insert statement of Patient. ............................................................................ 17
Figure 9: Select statement of Patient. ........................................................................... 18
Figure 10: Create statement of Staff. ............................................................................ 19
Figure 11: Insert statement of Staff. .............................................................................. 20
Figure 12: Select statement of Staff. ............................................................................. 21
Figure 13: Create statement of Hospital. ....................................................................... 22
Figure 15: Select statement of Hospital......................................................................... 24
Figure 16: ERD of Hospital management system.......................................................... 25
Figure 17: Relational diagram of hospitals management system. ................................. 27
Figure 18: Right Join Query. ......................................................................................... 36
Figure 19: Distinct Query............................................................................................... 37
Figure 20: Order by Query. ........................................................................................... 38
Figure 21: Count Query. ................................................................................................ 39
Figure 22: Limit Query. .................................................................................................. 40
Figure 23: Where Query. ............................................................................................... 41
Figure 24: Between Query. ........................................................................................... 42
Figure 25: IN Query. ...................................................................................................... 43
Figure 26: Like Query. ................................................................................................... 44
Figure 27: Left Join Query. ............................................................................................ 45
SHAHNAWAZ ALAM 4
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
List of Table
Table 1: Hospital ............................................................................................................. 8
Table 2: Patient ............................................................................................................... 8
Table 3: Doctor ............................................................................................................... 8
Table 4: Staff ................................................................................................................... 9
Table 5: Medical report.................................................................................................... 9
Table 6: Data dictionary of Doctor. ................................................................................ 30
Table 7: Data Dictionary of Medical report. ................................................................... 31
Table 8: Data Dictionary of Patient. ............................................................................... 32
Table 9: Data Dictionary of Staff.................................................................................... 33
Table 10: Data Dictionary of Patient. ............................................................................. 34
SHAHNAWAZ ALAM 5
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
Chapter 1 Introduction
The project is about “Hospitals management system”.
Hospitals are the essential part of our lives. Providing first-class medical services to
people suffering from various ailments, which can also additionally be due to alternate in
local weather, multiplied work-load, emotion trauma stress etc. hospitals are the group
imparting clinical and surgical cure and nursing care for any unwell or human beings.
Hospitals are the section of social system which one more have subsystem like medical
services. Diagnostic service, therapeutic service, supportive and utility services with
heterogeneous team of people like Doctors, Nurse, Paramedics, Administration staffs all
working together to supply scientific care to patients..(“Introduction to hospital & its
challenges,” n.d.)
1.1 Why is there need of database system for the organization you have
selected.
It is necessary for the hospitals to maintain records of its day-to-day activities and
documents of its patients, doctors, nurse, ward boys and other staff personals that
maintain the hospital walking smoothly and successfully. Database management
system is used in every hospital, clinic or dispensary for maintaining patient details and
their results.
All the large enterprises need the database systems for handing the information. One of
those enterprises in the hospital. Because of large number of patients, doctors, and staff
in hospitals, data processing becomes more crucial. Data management in hospital in
hospital can be used for achieving and accounting business. Doctors should access the
patients. On the other hands patient can access their lab results and all kinds of
SHAHNAWAZ ALAM 6
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
information that doctors indicate. Database hospital help to control the accounting
business easily.
In the database management system all information including prescription, survey,
diagnosis of patients can be carried out. The patients and the doctor can take care of all
information. Patients can take appointment time for visiting and can access their
information via interested if the organization is online. Administration can access the
statistics about the hospitals such as patient capacity, numbers of employees etc.
(Amaechi James C., Agbasonu Valerian C., and Nwawudu Sixtus E., February 2018)
Hospital records are available from a myriad of source, such as a person hospitals and
clinic association, state and regional data organization, health planning or health data
organization at the state level, departments of health and federal agencies. Many
hospital quality measures are created using hospitals administrative discharge
data.(“Databases Used for Hospital Quality Measures,” n.d.)
The project “Hospitals management system” is aimed to develop to maintain the day-to
day ‘state of admission/discharge of patients’, list of doctors, reviews generation, and
etc. it is designed to attain following targets.
1. To computerize all the details regarding patient details and hospital details.
3. If the medical store issues medicines to patient, it should reduce the stock status
of the medical store and vice-versa.
4. It should be able to handle the test reports of patients conducted in the pathology
lab of the hospital.
SHAHNAWAZ ALAM 7
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
Chapter 2 Model
1. Hospitals entity: The attributes of hospitals are hospital-id, name, city, address
and phone.
2. Patient entity: The attributes of patients are patient-id, name, address, dob and
phone.
SHAHNAWAZ ALAM 8
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
4.Staff entity: the attributes of staff are staff-id, name, address, salary and Dob.
Table 4: Staff
5. Medical report entity: the attributes of medical report are report-id, problems and
date of examination.
SHAHNAWAZ ALAM 9
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
SHAHNAWAZ ALAM 10
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
INSERT STATEMENT.
INSERT INTO Doctor VALUES(1,"Sujan","Kathmadu",50000,"Mbbs",1990-01-02);
INSERT INTO Doctor VALUES(2,"Sampada","Pokhara",40000,"Dentist",1991-05-12);
INSERT INTO Doctor VALUES(3,"Aalok","Chitwan",85000,"Surgeon",1995-07-20);
INSERT INTO Doctor VALUES(4,"Suyoban","Bitatnagar",90000,"Cardiologist",1985-11-
25);
INSERT INTO Doctor VALUES(5,"Binit","Janakpur",60000,"Gastroenterologists",1994-
04-18);
SHAHNAWAZ ALAM 11
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
SELECT STATEMENT
SELECT * FROM Doctor;
SHAHNAWAZ ALAM 12
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
SHAHNAWAZ ALAM 13
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
INSERT STATEMENT.
INSERT INTO Medical report VALUES(1,"Cancer","2020-01-10");
INSERT INTO Medical report VALUES(2,"Corona","2020-03-25");
INSERT INTO Medical report VALUES(3,"Typhoid","2020-01-05");
INSERT INTO Medical report VALUES(4,"Cholera","2020-2-18");
INSERT INTO Medical report VALUES(5,"Malaria","2020-04-09");
SHAHNAWAZ ALAM 14
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
SELECT STATEMENT.
SELECT * FROM Medical report.
SHAHNAWAZ ALAM 15
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
SHAHNAWAZ ALAM 16
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
INSERT STATEMENT.
INSERT INTO Patient VALUES(1,"Amit","Siraha","9807765678","2007-04-09",1,1);
INSERT INTO Patient VALUES(2,"Dipak","Madar","9866765434","2005-05-02",2,2);
INSERT INTO Patient VALUES(3,"Roshan","Makhnaha","9876543212","2000-01-
08",3,3);
INSERT INTO Patient VALUES(4,"Seema","Lahan","9809876543","2010-11-12",4,4);
INSERT INTO Patient VALUES(5,"Rijan","Janakpur","9843124345","2009-12-10",5,5);
SHAHNAWAZ ALAM 17
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
SELECT STATEMENT.
SELECT * FROM Patient.
SHAHNAWAZ ALAM 18
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
SHAHNAWAZ ALAM 19
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
INSERT STATEMENT.
INSERT INTO Staff VALUES(1,"Mukesh","Banepa",10000,"2002-01-03");
INSERT INTO Staff VALUES(2,"Suresh","Tinkune",9000,"1998-05-15");
INSERT INTO Staff VALUES(3,"Rajan","Sarlahi",13000,"1995-10-11");
INSERT INTO Staff VALUES(4,"Modi","Hetauda",20000,"2000-08-12");
INSERT INTO Staff VALUES(5,"Arnab","Bagbazar",15000,"1999-06-06");
SHAHNAWAZ ALAM 20
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
SELECT STATEMENT.
SELECT * FROM Staff.
SHAHNAWAZ ALAM 21
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
SHAHNAWAZ ALAM 22
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
INSERT STATEMENT.
INSERT INTO Hospital
VALUES(1,"NorvicHospital","Kathmandu","Thapathali","9805937377",1,1,1);
INSERT INTO Hospital
VALUES(2,"EverestHospital","Chitwan","Gairigao","9805935355",2,2,2);
INSERT INTO Hospital
VALUES(3,"CivilHospital","Janakpur","Sarlahi","9807785065",3,3,3);
INSERT INTO Hospital
VALUES(4,"KantipurHospital","Biratnagar","Parsa","9866262165",4,4,4);
INSERT INTO Hospital VALUES(5,"BirHospital","Lahan","Siraha","9825775688",5,5,5);
SHAHNAWAZ ALAM 23
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
SELECT STATEMENT.
SELECT * FROM Hospital.
SHAHNAWAZ ALAM 24
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
SHAHNAWAZ ALAM 25
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
This ERD (Entity Relationship Diagram) represents the model of Hospital Management
System Entity. The entity-relationship diagram of Hospital Management System shows
all the visual instrument of database entity (table) and the relation between patient,
doctor, hospitals, medical report and staff etc. it used structured data groups of Hospital
Management System functionalities. The main entities of the Hospital Management
System are Hospitals, Patient, Doctors, staff and Medical report.
SHAHNAWAZ ALAM 26
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
SHAHNAWAZ ALAM 27
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
This relational diagram is for ‘hospitals management system’. There are five entities in
this data management system. The entities are patient, hospital, doctor, staff and
medica report. The description of entities is given,
I. Patient Entities: the attributes of patient are patient-ID primary key, name,
address, phone, dob. Doctor and record are attributes with foreign key in the
patient table. So. The relationship between patient, doctor and medical report
one to many.
II. Hospital entities: the attributes of hospital are hospital-ID primary key, name,
address, phone, city and doctor, patient, and staff are attributes with foreign key
in the table. So, the relationship between hospital, doctor, patient and staff are
one to many.
III. Doctor entities: the attributes of doctor are doctor-ID primary key, name, address,
qualification and salary. The relationship between doctor and hospital are one to
many.
IV. Staff entities: the attributes of staff are staff-ID primary key, name address, dob
and salary, the relationship between staff and hospital are one to many.
V. Medical report: the attributes of medical report are record-ID primary key,
problems and date of examination. The relationship between medical report and
patient are one to many.
SHAHNAWAZ ALAM 28
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
A data dictionary contains metadata ex, data about the database. The data dictionary is
very important as it contains information such as what is in the database, who is allowed
to access it, where is the database physically stored etc. The users of the database
normally don't interact with the data dictionary, it is only handled by the database
administrators.
• Details about all the tables in the database, such as their owners, their safety
constraints, when they had been created etc.
• Physical information about the tables such as the place they are saved and how.
• Table constraints such as primary key attributes, foreign key data etc.
• Information about the database views that are visible.(“What is Data Dictionary,”
n.d.)
SHAHNAWAZ ALAM 29
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
Entity Entity Column Column Data Length Primary Foreign Nullable Unique Notes
Name Description Name Description Type Key Key
Doctor A doctor is Doctor- Doctor-ID of INT 11 True False False True Auto-Incremented
someone ID the Doctor,
who work for the
in hospital unique
and give identifier of
treatment each
to patient. Doctor.
Name Name of VAR 255 False False False False
Doctor.
SHAHNAWAZ ALAM 30
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
SHAHNAWAZ ALAM 31
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
Entity Entity Column Column Data Length Primary Foreign Nullable Unique Notes
Name Description Name Description Type Key Key
Patient Patient is Patient- Patient-ID INT 11 True False False True Auto-
the person ID Of the Incremented
who Patient, for
admitted in the unique
the identifier of
hospital for Patient.
the
treatment
of
problems,
SHAHNAWAZ ALAM 32
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
Entity Entity Column Column Data Length Primary Foreign Nullable Unique Notes
Name Description Name Description Type Key Key
Staff Staff is Staff-ID Staff-ID of INT 11 True False False True Auto-
someone the Staff, Increment
who work for the
in the unique
Hospital identifier of
for helping each Staff
the doctors
and patient
Name Name of VAR 255 False False False False
Staff
Address Address of VAR 255 False False False False
Staff
Salary Monthly INT 11 False False False False
income of
Staff
Dob Date birth DATE False False False False
of Staff
Table 9: Data Dictionary of Staff.
SHAHNAWAZ ALAM 33
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
SHAHNAWAZ ALAM 34
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
Chapter 4 Queries
A query is a request for facts or information from a database desk or aggregate of
tables. This statistic may additional be generated as effects by using Structured Query
Language (SQL) or as pictorials, graphs or complex results, e.g., style analyses from
data-mining tools.
One of countless one of a kind of query languages might also use to function a range of
easy to complicated database queries. SQL, the most everyday widely-used query
language, is acquainted to most database administrators (DBAs).
Query languages generate unique data kinds in accordance to function. For example,
SQL returns data in neat rows and columns and is very similar to Microsoft Excel in
appearance.
SHAHNAWAZ ALAM 35
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
The query was successful and this query used to join between two tables by Right side.
SHAHNAWAZ ALAM 36
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
SHAHNAWAZ ALAM 37
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
SHAHNAWAZ ALAM 38
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
SHAHNAWAZ ALAM 39
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
SHAHNAWAZ ALAM 40
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
SHAHNAWAZ ALAM 41
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
SHAHNAWAZ ALAM 42
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
SHAHNAWAZ ALAM 43
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
SHAHNAWAZ ALAM 44
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
SHAHNAWAZ ALAM 45
CC4057NI INTRODUCTION TO INFORMATION TO SYSTEMS
Chapter 5 Conclusion
Taking into account all the mentioned details, we can make the conclusion that the
hospital management system is the inevitable part of the lifecycle of the modern medical
institution. It automates numerous daily operations and enables smooth interactions of
the users. Developing the hospital system software is a great opportunity to create the
distinct, efficient and fast delivering healthcare model. Implementation of hospital
management system project helps to store all the kinds of records, provide coordination
and user communication, implement policies, improve day-to-day operations, arrange
the supply chain, manage financial and human resources, and market hospital services.
This beneficial decision covers the needs of the patients, staff and hospital authorities
and simplifies their interactions. It has become the usual approach to manage the
hospital. Many clinics have already experienced its advantages and continue
developing new hospital management system project modules.
Chapter 6 References
Databases Used for Hospital Quality Measures [WWW Document], n.d. URL
http://www.ahrq.gov/talkingquality/measures/setting/hospitals/databases.html
(accessed 3.9.20).
Einstein, A., n.d. Hospital Management System DATABASE DESIGN.
Himani Chopra, 06:50:37 UTC. Hospital management system project.
Introduction to hospital & its challenges [WWW Document], n.d. URL
https://www.slideshare.net/sharrygajuryalnepal/introduction-to-hospital-its-
challenges (accessed 4.5.20).
What is Data Dictionary [WWW Document], n.d. URL
https://www.tutorialspoint.com/What-is-Data-Dictionary (accessed 4.13.20).
What is Query? - Definition from Techopedia [WWW Document], n.d. . Techopedia.com.
URL https://www.techopedia.com/definition/5736/query (accessed 4.15.20).
SHAHNAWAZ ALAM 46