Database Project Documentation by Tole Fikadu Aga, 2022
Database Project Documentation by Tole Fikadu Aga, 2022
1, Introduction
The middle level in the data abstraction is the conceptual level. This level contains
the logical structure of the entire database as seen by the DBA (Database
Administrator). It is a complete view of the data requirements of the organization
that is independent of any storage considerations. The conceptual level represents:
all entities, their attributes, and their relationships;
the constraints on the data;
semantic information about the data;
security and integrity information.
The conceptual level supports each external view, in that any data available to a
user must be contained in, or derivable from, the conceptual level. However, this
level must not contain any storage-dependent details. For instance, the description
of an entity should contain only data types of attributes (for example, integer, real,
character) and their length (such as the maximum number of digits or characters),
but not any storage considerations, such as the number of bytes occupied.
2.1, Entities identification and description
Patient
Doctor
Pharmacist
Clinic Manager
Pathologist
Receptionist
Medical History
Drug
Disease
Schedule
2.2 Attribute’s identification and description
The following templet show the attribute’s identification and descriptions
[Patient]
Patient_Id
Patient_FName
Patient_LName
Patient_Age*(drived attribute) The underlined attribute
Contact_No represents the Primary Key
Patient_Gender
Patient_Birthdate
Dormitory_Block
Dormitory_Room
[Doctor]
Doctor_Id
Doctor_FName
Doctor_LName The underlined attribute
Contact_No represents the Primary Key
Doctor_Gender
Doctor_Email
Specialization
[Pharmacist]
Pharmacist_Id
Pharmacist _FName
Pharmacist _LName The underlined attribute
Contact_No represents the Primary Key
Pharmacist _Gender
Pharmacist _Email
[Clinic_Manager]
Manager_Id
Manager _FName
Manager _LName The underlined attribute
Contact_No represents the Primary Key
Manager_Email
Office_No
Manager_Gender
[Pathologist]
Pathologist_Id
Pathologist _FName The underlined attribute
Pathologist _LName represents the Primary Key
Pathologist_Gender
Contact_No
Pathologist _Email
[Receptionist]
Receptionist_Id
Receptionist_FName The underlined attribute
Receptionist_LName represents the Primary Key
Receptionist_Gender
Contact_No
Receptionist_Email
Office_No
[Medical_History]
Medical_Id
Major_Disease The underlined attribute
Diagnosis_Date represents the Primary Key
Diagnosis_Result
[Drug]
Drug_Id
Drug_Name The underlined attribute
Manufactured_Date represents the Primary Key
Expiration_Date
[Disease]
Disease_Name The underlined attribute
Disease_Cause represents the Primary Key
[Schedule]
Schedule_Day The underlined attribute
Start_Time represents the Primary Keys
End_Time
Contact_No
Patient_Id Contact_No
[Email]
Doctor_Id Email_account
Contact_No
Doctor_Id Contact_No
Contact_No
Pharmacist_Id Contact_No
[Email]
Pharmacist_Id Email_Account
[Pathologist]
Contact_No
Pathologist_Id Contact_No
[Email]
Pathologist_Id Email_Account
Contact_No
Receptionist _Id Contact_No
[Email]
Receptionist t_Id Email_Account
Mapping [Clinic_Manager] Entity
[Clinic_Manager]
Manager _Id Manager_FName Manager_LName Manager_Email Office_No
[Contact_No]
Manager _Id Contact_No
[Email]
Manager_Id Email_Account
Doctor_Id Manager_ID
Pharmacist_Id Manager_ID
Pathologist_Id Manager_ID
Drug_ID Prescribed_Drug_Name
The Following diagram is Drawn from the SQL Query of the project: -