Escolar Documentos
Profissional Documentos
Cultura Documentos
Database Design
Data Management (MIS 512)
Introduction
Outpatient Clinic Department (OPD) is considered one of the busiest departments in the hospital.
To have an appointment with a doctor: Patients come to the OPD Book through phone. Problems in the current system: Patient may come to OPD, but doctors are fully booked. Receptionists are unable to answer the phone calls Solution Online booking system Convenient for the patients Efficient for the hospital
Outline
Database Planning Requirements Collection and Analysis System Definition Conceptual Database Design Logical Database Design Physical Database Design Conclusion
Database Planning
Mission statement
To create a database system that allows the patients to manage their appointments with their doctors in a convenient way through the internet.
Objectives
Allow the patients to book, organize and cancel their bookings through the internet. Create reports on demand.
System Definition
System Definition
Note: patients should have:
Medical record number. Activated online booking service.
Doctor
Physician
Booking
15 Minute time slot in which the physician examine and treat a patient.
A pre-registered patient in the hospital information system who want to book an appointment with a physician through the Internet.
Appointment
Patient
Outpatients
Entity name
Multiplicity
Relationship
Multiplicity
Entity name
Department
1..1
Has
1..*
Doctor
Doctor
1..1
Has
0..35
Booking
Patient
1..1
Has
1..*
Booking
Connection Traps
No fan trap or chasm trap were found.
Attribute Dep_Code (PK) Dep_Name Doctor_ID (PK) Doctor_fName Doctor_lName Dep_Code (FK)
Description Department code that uniquely identifies each department. Department name (specialty). Doctors ID number that uniquely identifies each doctor (assigned by Human resources). Doctors first name Doctors last name A 3-digit department code. Booking Number that uniquely identifies each appointment Appointment date Appointment time Doctors ID number Patients Medical Record Patients Medical Record number that uniquely identifies each patient. Patients first name Patients last name Date of birth Gender of the patient City where the patient lives Mobile or landline telephone number Email address of the patient
Data Type and length 3-digit Integer number 25 variable characters Integer 15 variable characters 15 variable characters 3-digit Integer number 15-digit integer number Date Time Integer Integer
Nulls NO NO NO NO NO NO NO NO NO NO NO
Multi-value NO NO NO NO NO NO NO NO NO NO NO
Doctor
Booking
Patient
MR_number (PK) Patient_fName Patient_lName DOB Sex Address Contact No. Email
Integer 25 variable characters 25 variable characters Date 1 character (M/F) 10 variable characters 15-digit integer number 25 variable characters
NO NO NO NO NO NO NO YES
NO NO NO NO NO NO NO NO
Doctor
Booking
Patient
Doctors (Doctor_ID, Doctor_fName, Doctor_lName, Dep_Code) Primary key: Doctor_ID Booking (Booking_No, App_Date, App_time, Doctor_ID, MR_Number) Primary key: Booking_No Foreign key: Doctor_ID referencing to Doctors relation. Foreign key: MR_Number referencing to Patient relation.
Final ER Model
Integrity constraints
No . 1. 2. 3. 4. Integrity constraint Status Required data are defined (Null and not Null) Length and data types are defined All primary keys are not null Location
Data dictionary Data dictionary Data dictionary Final logical ER Model Final logical ER Model ---
5. 6.
Future growth
The use of this database is optional.
Base relations
User views
Two users view are required for this database:
Patient view Doctor and admin view
Security mechanisms
System security: username and password to access the database system. Data security: Patients are allowed to access certain attributes (Department, doctor name and appointment date and time). Access to Department and Doctor tables are just read. Patient can update and delete data in the attributes appointment date and time.
Conclusion
Outpatient clinic appointment system is very useful for any hospital.
In our case, the database system we designed were simple and straightforward.