Uploaded by Habana OhNaNa

Project Part 2 Table Structures and Database Schema

advertisement
Technological Institute of the Philippines
938 Aurora Blvd. Cubao, Quezon City
College of Computer Studies
ITE 014 – Information Management
Midterm Period
Group Number: 1
Date: 3/28/23
Name: Albay, Shaira Joy R.
Sazon, John Joshua B.
Sumayan, Wilfredo Louis P.
Program / Section: IT22S1
Instructor: Ms. Roxanne A. Pagaduan
Assessment Task: Project Part 2: Table Structures and Database Schema
Requirements:
1. Collaborate with your team members and satisfy the following:
●
Provide all the table structure of your approved project (see sample below).
●
Create a database schema/database design of your approved topic using any diagram
software tools like Lucidchart.
Provide a screenshot of your database schema/entity-relationship diagram using the
selected tool.
2. Provide the specific contributions of each member. (use the template provided)
3. Save your file as GroupNo_ProjectPart2.DOCX and .PDF.
●
Sample Table Structure:
Table No: 1
Table Name: Employees
Column Name
Data Type
Not Null?
Constraints
Sample Value
Employee_ID
Number (5)
YES
Primary Key
101011
ANSWER:
Project Title: VitalCare: Enhancing Patient Care and Hospital Operation Management
Table Structure
Table No: 1
Table Name: Patient Table
Column Name
Data Type
Not Null?
Constraints
Sample Value
patient_id
Number (20)
YES
PRIMARY KEY
1
first_name
VARCHAR(50)
YES
John
last_name
VARCHAR(50)
YES
Smith
gender
VARCHAR(6)
YES
Female
date_of_birth
DATE
YES
09/14/02
address
VARCHAR(100)
YES
Quezon City
contact_number
Number (20)
YES
09123456789
Table No: 2
Table Name: Department
Column Name
Data Type
Not Null?
Constraints
Sample Value
department_id
VARCHAR(50)
YES
PRIMARY KEY
CARDIO
department_name
VARCHAR(50)
YES
Cardiology
Table No: 3
Table Name: Appointment Table
Column Name
Data Type
Not Null?
Constraints
Sample Value
appointment_id
Number(5)
YES
PRIMARY KEY
1
patient_id
Number(5)
YES
FOREIGN KEY
1
doctor_id
Number(5)
YES
FOREIGN KEY
1
appointment_date
DATE
YES
2023-03-01
appointment_time
TIME
YES
10:00:00
Table No: 4
Table Name: Payment Table
Column Name
Data Type
Not Null?
Constraints
Sample Value
invoice_id
Number(5)
YES
PRIMARY KEY
1
patient_id
Number(20)
YES
FOREIGN KEY
1
invoice_date
DATE
YES
2023-03-01
total_amount
Number(5)
YES
1000.00
Table No: 5
Table Name: Employee Table
Column Name
Data Type
Not Null?
Constraints
Sample Value
employee_id
Number(6)
YES
PRIMARY KEY
1
em_first_name
VARCHAR(50)
YES
Mary
em_last_name
VARCHAR(50)
YES
Johnson
em_date_of_birth
DATE
YES
1980-01-01
department_id
VARCHAR(50)
YES
FOREIGN KEY
CARDIO
Table No: 6
Table Name: Medical Records
Column Name
Data Type
Not Null?
Constraints
Sample Value
record_id
Number(6)
YES
PRIMARY KEY
1
patient_id
VARCHAR(50)
YES
FOREIGN KEY
1
admission_date
VARCHAR(50)
YES
Johnson
discharge_date
DATE
YES
1980-01-01
diagnosis
VARCHAR(50)
YES
treatment
VARCHAR(550)
YES
doctor_id
Table No: 7
Table Name: Room
FOREIGN KEY
CARDIO
Heart disease
treatment depends
on the cause and
type of heart
damage. Healthy
lifestyle habits —
such as eating a
low-fat, low-salt
diet
FOREIGN KEY
Column Name
Data Type
Not Null?
Constraints
Sample Value
room_no
Number(6)
YES
PRIMARY KEY
1
room_type
VARCHAR(50)
YES
Private
availability
VARCHAR(50)
YES
Available
Table No: 8
Table Name: Medication
Column Name
Data Type
Not Null?
Constraints
Sample Value
medication_id
Number(6)
YES
PRIMARY KEY
1
medication_name
VARCHAR(50)
YES
medication_desc
ription
VARCHAR(50)
YES
unit_price
VARCHAR(50)
YES
Aspirin
prevent blood clots
10,00
Table No: 9
Table Name: Doctor’s Table
Column Name
Data Type
Not Null?
Constraints
Sample Value
doctors_id
Number(3)
YES
PRIMARY KEY
1
doctors_firstnam
e
VARCHAR(50)
YES
doctors_middlen
ame
VARCHAR(50)
YES
doctors_lastnam
e
VARCHAR(50)
YES
department_id
VARCHAR(50)
specialization
Database Schema
Aspirin
prevent blood clots
10,00
Tool Use: ex. Lucidchart
Description:
Patients must make an appointment at the front desk before choosing to visit a medical
facility. Any staff member at the facility can authorize an appointment after it has been set, verifying
that the patient's preferred day and time are available. To make sure the patient receives the
proper care, the appointment is then forwarded to the proper division, such as cardiology or
pediatrics. As the patient's transaction is finished during their session, the system updates the
appointment to reflect the care that was given.
Summary of Assigned Tasks
Name (SN, FN, MI.)
Picture (1x1 formal attire)
Detailed Contributions/Assigned Tasks:
Albay, Shaira Joy R.
Documentation, Database Schema, Lucidchart
making chart flow
Sazon, John Joshua
B.
Documentation, Database Schema,Lucidchart
making chart flow
Sumayan, Wilfredo
Louis P.
Documentation, Database Schema,Lucidchart
making chart flow
Honor Pledge:
"We affirm that we have not given or received any unauthorized help on this assignment and that this work
is our own"
Download