0% found this document useful (0 votes)
35 views

DBS Presentation

This document outlines the design of a database for a hospital management system. It includes: 1. Entities like patients, doctors, medical tests, prescriptions, medical records, and appointments with their attributes. 2. An ER diagram showing the relationships between entities. 3. The relationships between entities like a patient having multiple medical records and a doctor treating multiple patients. 4. How the ER model is mapped to relational tables. 5. The final database structure with sample data inserted using MySQL.

Uploaded by

Yeeabsira
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views

DBS Presentation

This document outlines the design of a database for a hospital management system. It includes: 1. Entities like patients, doctors, medical tests, prescriptions, medical records, and appointments with their attributes. 2. An ER diagram showing the relationships between entities. 3. The relationships between entities like a patient having multiple medical records and a doctor treating multiple patients. 4. How the ER model is mapped to relational tables. 5. The final database structure with sample data inserted using MySQL.

Uploaded by

Yeeabsira
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 18

Dire Dawa University

Institute of Technology

Electrical and Computer Engineering

Computer Engineering Stream

Database Systems (ECEG-4181)

Submitted to: Haftu Meresa Prepared by: Group 7


Contents
• Overview of Database
• Entities of Hospital Management System and their Attributes
• ER Diagram
• Relationships
• ER to Relational Mapping
• Final Result with Data Inserted
Overview of Database

• Database is a collection of logically related data.


• A software that enables users to define, create, maintain, and control
access to the database is called Database Management System(DBMS).
• MySQL is one example of DBMS.
• Data Model is used to show how data is stored, connected, accessed and
updated in the DBMS.
• Entity Relationship(ER) and Relational Models are widely used Data
Models.
• ER Model uses ER diagrams as a visual tool.
• In Relational Model, the data is maintained in the form of a two-
dimensional table.

• A Primary Key (PK) uniquely identifies a row in a table.


• A foreign key is used to link two tables together by referencing the primary
key of the related table.
Entities of Hospital Management System and
their Attributes
• Entities a real-world things.
• A simple hospital management system can have:
1. sick people who seek treatment (Patients)
2. doctors who treat patients (Doctors)
3. medical tests to make sure the hypothesis of the doctor (MedicalTests)
4. prescriptions which are given to the patient (Prescriptions)
5. medical tests and results which are recorded (MedicalRecords)
6. appointments which are used to check whether the prescription works
or not (Appointments)
Patients have: Medical Tests have:
1. ID
1. ID
2. Name
2. Name(First and Last name)
3. Result
3. Birth date
4. Gender Prescriptions have:
5. Phone number 4. ID
6. Address 5. Text explaining the dosage and other terms

Doctors have: Medical Records have:


7. ID 6. ID
8. Name(First and Last name) 7. Date of record
9. Birth date 8. Diagnosis made
10. Gender Appointments have:
11. Phone number 9. ID
12. Address 10. Date of appointment
13. Specialization 11. Reason for the appointment
ER Diagram
Relationships

1. 1 Patient can have many Medical Records


2. 1 Patient can have many Appointments
3. 1 Doctor can have many Medical Records
4. 1 Doctor can have many Appointments
5. 1 Appointment can have many Medical Test
6. 1 Appointment can have 1 Medical record
7. Every single Prescriptions(Total participation) can have 1 Appointment
8. Every single Medical Records(Total participation) can have 1 Prescription
9. Every single Medical Records(Total participation) can have 1 Medical Test
ER to Relational
Mapping

• Step 1: Mapping of
Regular Entity Types
• Step 2: Mapping of Binary 1:1 Relation Types

• Step 3: Mapping of Binary 1:N Relationship Types


Finally, we'll get these entities with their attributes.
Final Database with Data
Inserted by MySQL DBMS
Thank You!
Group 7 Members ID

1. REHOBOT TAKELE 1201164


2. WONDIMU ASMAMAW 1201497
3. YEABSIRA ASAMINEW 1104615
4. YOSEPH ARJA 1201647

You might also like