This document describes a hospital management system project that aims to reduce paperwork and improve efficiency. It discusses the software and hardware requirements, entity-relationship diagram, relational schema, implementation including sample queries, data normalization, future enhancements, and conclusion. The system allows doctors, nurses, and other staff to access patient information from any connected computer to streamline processes.
2. Contents
1. Introduction
2. Software and Hardware Requirements
3. Entity, Attribute and Relationship
4. ER Diagram
5. Relational Schema
6. Implementation
7. Result of the project
8. Database Normalization
9. Future Scope
10. Conclusion
11. References
4/6/2022 Hospital management system 2
3. INTRODUCTION
ā¢ Hospital Management System is aimed at reducing paper work for a hospital and
hence improving its efficiency and speeding up of all processes.
ā¢ The database can be accessed by the employees from any computer terminal
connected through server. Hence, all the related information about a patient is
available to doctors, pharmacy, reception staff (for bill processing), etc.
ā¢ Thus this software saves the entire patientās hassle. Moreover, all the information
regarding an employee is available to the administration and hence his salary can
be worked out easily. Thus it avoids employeesā trouble.
4/6/2022 Hospital management system 3
4. SOFTWARE AND HARDWARE REQUIREMENTS
4/6/2022 Hospital management system. 4
HARDWARE REQUIREMENTS
ā¢ Minimum 5 GB space in
HDD
ā¢ IBN Net vista Pentium 4 1.7
GHz
ā¢ 256 MB DDR SDRAM
ā¢ GB ULTRA HDD 7200 RPM
ā¢ 48 x CD ROM
ā¢ 15 `` color monitor
SOFTWARE REQUIREMENTS
ā¢ Microsoft Visual Basic 6.0
Windows XP (Professional)
ā¢ ODBC Driver
ā¢ Oracle DBMS with SQL
8.0 Plus
5. ENTITY
ā¢ An entity can be place, person, object, event or a concept, which stores data in the database.
ā¢ There are two types of entities : Strong entity and Weak entity
ā¢ A strong entity set is an entity set that contains sufficient attributes to uniquely identify all its
entities. It is represented by Rectangle in ER diagram.
ā¢ An entity that cannot be uniquely identified by its own attributes and relies on the relationship
with other entity is called weak entity. It is represented by double rectangle in ER diagram.
ā¢ Example (Hospital management system):
ļ¼STRONG ENTITY : Patient, Doctor, Medicine, Rooms, Employee, Record, Receptionist, Visitor,
Trainee, Permanent.
ļ¼WEAK ENTITY: Nurse, Treatment.
4/6/2022 Hospital management system. 5
6. ATTRIBUTES
ā¢ An attribute describes the property of an entity and it is represented as Oval in an ER
diagram.
ā¢ Types of attributes: Simple, Composite, single-valued, multi-valued, derived and key
attribute.
ā¢ Example(Hospital Management System):
ļ¼Patient: Patient ID (Key), Name ( Composite having F_Name, M_Name, L_Name) , Sex,
Address (Composite having Street, City, Country, State), Patient Details ( Composite
having date of admission , date of discharge) , Contact No. ( Multivalued Attribute), Age
( Derived), DOB.
ļ¼Medicine : Price , Quantity, Code
ļ¼Rooms : Room_ID (Key), Time period , Room type (Multivalued Attribute)
ļ¼ Employee : Employee_ID(Key), Sex, Name ( Composite having F_Name, M_Name,
L_Name), Employee address (Composite having Street, City, Country, State), Salary
,History , Contact no (Multivalued Attribute), Email_ID (Multivalued Attribute)
ļ¼ Record : Appointment, Patient_ID, Description, Record no (Key)
4/6/2022 Hospital management system. 6
7. RELATIONSHIP
ā¢ A relationship is represented by diamond shape in ER diagram.
It shows the relationship among entities.
There are four types of relationships:
ā¢ One to One
ā¢ One to Many
ā¢ Many to One
ā¢ Many to Many
ā¢ Example (Hospital Management System):
ļ¼Attends ( One to Many , for Doctor to Patients)
ļ¼Patient Assigned (One to One, for Patient to Room )
ļ¼Bill ( Many to One , For Medicines to Patient)
ļ¼Maintains ( One to Many , For Receptionist to Record)
ļ¼Governs ( One to Many , For Nurse to Rooms)
4/6/2022 Hospital management system. 7
10. IMPLEMENTATION AND RESULT
1).Query to show details of doctor having salary greater than 45,000
SELECT*FROM DOCTOR WHERE Doc_id IN (SELECT Doc_id FROM DOCTOR
WHERE SALARY > 45000) ;
OUTPUT:
4/6/2022 Subject_acronym:Module_No (roman): Module_Name 10
11. 2) Query to show details from the table patient_info whose p_id greater than 102
SELECT * FROM patient_info WHERE p_id IN (SELECT p_id FROM patient_info
WHERE p_id > 102) ;
OUTPUT:
4/6/2022 Subject_acronym:Module_No (roman): Module_Name 11
12. 3) Query to insert into Medical_Record2 Table the contents of Medical_Record_1Table
INSERT INTO Medical_Record2 SELECT *
FROM Medical_Record_1 WHERE record_id IN
(SELECT record_id FROM Medical_Record_1);
OUTPUT:
4/6/2022 Subject_acronym:Module_No (roman): Module_Name 12
13. 4. Query to Update Patient name as CHANDLER using the P_id of MONICA from
patient_info Table
SET SQL_SAFE_UPDATES = 0;
UPDATE patient_info2
SET F_name = 'CHANDLER'
WHERE P_id IN (SELECT P_id FROM patient_info
WHERE P_id = 104);
select *from patient_info2 ;
OUTPUT:
4/6/2022 Subject_acronym:Module_No (roman): Module_Name 13
14. 5).Query to Delete a record from patient_info2 where P_id =103 in the Patient
DELETE FROM patient_info2
WHERE P_id IN (SELECT P_id FROM patient_info WHERE P_id =
103);
select*from patient_info2;
OUTPUT:
4/6/2022 Subject_acronym:Module_No (roman): Module_Name 14
17. FUTURE SCOPE
ā¢ Hospital management system is a computer system that helps manage the
information related to health care and aids in the job completion of health care
providers effectively. They manage the data related to all departments of
healthcare such as, Clinical, Financial, Laboratory, Inpatient, Outpatient,
Operation theater, Materials, Nursing, Pharmaceutical, Radiology, Pathology etc.
ā¢ The future for databases is consolidation around big data with a rationalization
down to 10 core technologies that make data easy to access and leads to more
data-driven analytics and services. Data will be easier to access and use in future.
4/6/2022 Subject_acronym:Module_No (roman): Module_Name 17
18. CONCLUSION
ā¢ The developed system and its evaluation so far have been carried out to improve
the database system and management processes in hospitals.
ā¢ The Hospital database management needs to be improved or upgraded to meet
any situation. It is capable of storing variety and large volume of database. More
so, the software has been designed to include program modules to handle the
Medical Centre information such as patientsā data, supply (drug) management,
patients bill etc.
ā¢ This software contains the database files of hospital and will provide the
necessary information of the hospital and also will be compatible, accurate,
flexible, secured and efficient for the desired purpose it is to serve.
4/6/2022 Subject_acronym:Module_No (roman): Module_Name 18