Uploaded by davidchebanov1

Assignment 2 Unit-10 Database Development

advertisement
Unit 10 – Databases
Name - David Chebanov (70252678)
Intended Purpose and User Requirement
Intended Purpose (from the scenario)
The purpose of the new appointment system is to modernize the existing paper and
spreadsheet-based systems used by the doctors' surgery. It aims to streamline the process of
storing and managing information about patients and appointments. The upgrade is prompted
by an upcoming reorganization of health services, which will result in an increased number of
patients and doctors. The initial focus is on improving the appointment system to allow staff to
adapt to new technology gradually and minimize risks to patient safety.
Requirements (what the database will achieve)
1.
2.
3.
4.
5.
Efficient in appointment booking.
Accessible by all the users.
Patient data Secured with regular backups.
User-friendly interface.
Reporting capabilities.
Hardware, Software and Other Resources
Hardware
iMac
Apple M3 chip
8-core CPU
8- or 10-core GPU
8GB to 24GB unified memory
256GB to 2TB storage8
4.5K Retina display11
218 ppi
Heade of office
Inspiron Small Desktop
13th Gen Intel® Core™ i5-13400 (20 MB
cache, 10 cores, 16 threads, 2.50 GHz to
4.60 GHz Turbo)
Software
Apple
Windows 11 Home, English, Dutch, French,
German, Italian
Office staff-15 IT staff-2
Inspiron 24 All-in-One
13th Gen Intel® Core™ i5-1335U (12 MB cache,
10 cores, 12 threads, up to 4.60 GHz Turbo)
Receptionist-1
HPE ProLiant DL380 Gen10 Server
Processors 2 x Intel Xeon Gold 5120 2.2GHz
Fourteen-Core CPUs
Windows 11
Windows 10
Memory 128GB (4x32GB) 2400MHz DDR4
RAM
Backplane 8SFF Backplane for up to 8 x 2.5"
SAS or SATA Hot-Swap Drives 8SFF
Backplane for up to 8 x 2.5" NVMe HotSwap Drives Storage 2 x 300GB SAS 15k
2.5" 6Gbps HP Hot-Swap HDDs
Storage Controller
HPE Smart Array
E208i-a Modular RAID Controller
RAID Levels: 0, 1, 5, 10
Networking Embedded HPE 331i 1Gbps
Quad Port RJ-45 Network Integrated Card
(4xPorts)
Additional FlexibleLOM Network Cards Sold
Separately
Power Supply Dual Redundant 500W HotSwap Power Supplies (2xPSUs)
Remote Access
Integrated Lights Out
(iLO 5) Standard Installed
Rack Rails
Sliding Rack Rails Included
Bezel Bezel Sold Separately
Chassis Type 2U Rackmount
HP Officejet Pro 7720 A3 Colour Inkjet 4-in1 Printer with Wireless Printing
TP-Link 24-Port Gigabit Ethernet Switch,
Rackmount/Desktop, Steel Case (TLSG1024D)
Cisco C819G-4G-VZ-K9 12.50Mb/s 4 x LAN 2
Antennas Wireless Router
For printing documents
To connect internet and server to the
computers
To connect to the internet wirelessly
Justification for Hardware and Software
Components
Why is it Needed
19Computer system with Windows 11,
Apple-1 Apple Computer
For work, to access and store data
Server-1
to store data and get data form.
Wireless Access Point-3
to cover all the Belding
Switch-1 with 25 connectors
To connect to the severs and get faster
transferring speed
Printers-3
To have easy throughout the building
Tablets-20
To have space where can work on
computers
Software list - Access, Word
To access the data base and edit the
documents
Database Design (Sample records)
Record for a patient.
Patient
ID
First
Name
Last
Name
Gender
Date of
birth
Phone
number
Address Post
Code
40
Aadit
Yasmeen
F
16/02/2001 02061
987847
159
BV2
Pleasant 2CK
Pioneer
Pike
Record for a Doctor
Doctor ID
First name
Last Name
Consultation Room
50
Allan
Johnson
4
Record for an appointment.
Appointment
ID
Date
Time
Doctor ID
Patient ID
612
31/12/2018
08:50
40
50
Tables & Attributes
Appointment Table
Field Name
Field Type
Attributes & Size
Example
Appointment ID
Numbers
999
164
Patient ID
Numbers
999
154
Doctor ID
Numbers
999
308
Date of Appointment
Date/Time
31/13/9999
20/05/2000
Time of Appointment
Date/Time
31/13/9999
04/10/2001
Field Name
Field Type
Attributes & Size
Example
Doctors ID
Numbers
999
50
First Name
Short Text
A/Z
Arjun
Last Name
Short Text
A/Z
Patel
Consultation Room
Numbers
99
13
Field Name
Field Type
Attributes & Size
Example
Patient ID
Numbers
Primary key/9999
1026
First Name
Short Text
A/Z
David
Last Name
Short Text
A/Z
Qiao
Gender
Short Text
M/F
M
Date of Birth
Date/Time
32/13/9999
10/07/1999
Address
Short Text
A/Z - 1-9
1073 North Bend
River Road
Post Code
Short Text
LL99LL
SE2 7OP
Telephone Number
Short Text
99999 999999
606-260-8753
Doctor Table
Patient Table
Entity Relationship Diagram
Validation and Verification
Appointment Table
Field Name
Field Type
Validation Rule
Validation Text
Number
Is Null Or Not Like
"*[!0-9]*"
Please enter ID!
Number
Is Null Or Not Like
"*[!0-9]*"
Please enter ID!
Doctor ID
Number
Is Null Or Not Like
"*[!0-9]*"
Please enter ID!
Date of Appointment
Date/Time
Time of Appointment
Date/Time
Appointment ID
Patient ID
Is Null Or Not Like
"*[!0-9]*"
Enter Time!
Is Null Or Not Like
"*[!0-9]*"
Enter Time!
Validation Rule
Validation Text
Doctor Table
Field Name
Field Type
Is Null Or Not Like
"*[!0-9]*"
Sate a Primary key
Number!
Is Null Or Not Like
"*[!a-z]*"
Please enter your
First Name!
Is Null Or Not Like
"*[!a-z]*"
Please enter your
Last Name
Number
Is Null Or Not Like
"*[!0-9]*"
Please enter Rooms
Number!
Field Type
Validation Rule
Validation Text
Patient ID
Number
Is Null Or Not Like
"*[!a-z]*"
Sate a Primary key
Number!
First Name
Short Text
Doctor ID
Number
Surname
Short Text
Forename
Room
Short Text
Patient Table
Field Name
Is Null Or Not Like
"*[!a-z]*"
Last Name
Short Text
Is Null Or Not Like
"*[!a-z]*"
Gender
Address
Post Code
State your First
name!
State your Last
name!
Short Text
Short Text
Short Text
Is Null Or "M" Or
"F"
Maley or Female
please fell the box.
"Is Not Null"
State your address!
"Is Not Null"
Enter a valid post
code!
Date Of Birth
Date/Time
Please sate a
Date/Time
Is Not Null
Telephone Number
Short Text
Please state your
Phone Number!
Is Null Or Not Like
"*[!0-9]*"
Alternative Design Ideas
Input and Output Screens
Output Screen - Record
This is the logo I will be using for my
database. It aims to convey professionalism,
clarity of purpose, and attract users through
its distinctive and visually appealing design.
This banner is simple and understandable. It shows that it NHS Surgeons small clinic.
It has simple design to represent government official clinic.
Queries
Name of Query
Purpose of Query
Dr Allan Johnson
To see patients seen by Dr Allan Johnson
Dr Arjun Patel
To see patients seen by Dr Arjun Patel
Dr Samuel Obiekwe
To see patients seen by Dr Samuel Obiekwe
Dr Antonio patients sorted by G
Patients seen by Dr Antonio whose surnames starts with G
Maile group sorted by C
Patients who are Males whose surnames starts with C
Patients who are Males and are older than 10 years
Maile group older than 10
11/01/2019
Patients that were seen on 11/01/2019
24/01/2019 - 03/02/2019
Patients that were seen on 24/01/2019 and 03/02/2019
Maile group older than 25
Patients who are Males and are older than 25 years
Patients sorted by M
Patients whose surnames starts with M
Dr Johnson and Dr Patel Patients
Patients seen by both Dr Johnson and Dr Patel
Female group aged 20 or less
Patients who are Females and aged 20 or less
Menu System
Main Menu
➢ Appointments menu
➢ Doctor menu
➢ Patient menu
➢ Quit
Appointments Menu
➢ Create appointment.
➢ View appointment
➢ Cancel appointment.
➢ View today's appointments
➢ Return to main menu.
Doctors Menu
➢ Add doctor.
➢ Delete doctor.
➢ View all doctors.
➢ Return to main menu.
Patient Menu
➢ Add patient.
➢ Delete patient.
➢ Patients sorted by age.
➢ Patients aged 18-30
➢ Patients aged 18-65
➢ Patients over 35
➢ Patients under 18
➢ Return to main menu.
Test Plan & Test Data
Testing software and navigation
Appointment Table
Field Name
Correct Data
Expected Result
Number of ID
(e.g. 35)
Only numbers accepted, ID inserted in
ascending order
Incorrect
Data
A-Z
Appointments
ID
Date
Blank or
invalid
date
Only numbers accepted, value must be
DD/MM/YYYY inserted, a valid date of appointment
Time
9:79
00:00
Only numbers accepted, value must be inserted,
a valid time of appointment
Patient ID
A-Z
Number of ID
Only numbers accepted, patient ID inserted
Doctors ID
A-Z
Number of ID
Only numbers accepted, doctor ID inserted
Doctor Table
Field Name
Incorrect Data
Correct Data
Doctor ID
Blank, A-Z or
symbols
Number of ID
(e.g. 35)
Blank, numbers or
symbols
A-Z (e.g. Nikola)
Blank, numbers
or
symbols
A-Z (e.g. Reedtz)
First Name
Last Name
Expected Result
Only numbers accepted, ID
inserted in ascending order
Field should not be empty
Field should not be empty
Consultation
Room
Non-existent
room
number
Room number
(e.g. 17)
Only numbers accepted, room
number inserted in ascending
order
Switchboard Navigation
Test Number
Test
Expected Result
1
Appointments menu
Will navigate to appointment menu
2
Doctors’ menu
Will navigate to doctor menu
3
Patient menu
Will navigate to patient menu
4
Quit
Will shut down the database
Patient Table
Field Name
Incorrect Data
Correct Data
Patient ID
Blank, A-Z or
symbols
Number of ID
(e.g. 35)
Blank, numbers
or
symbols
A-Z (e.g. Alex)
First Name
Expected Result
Only numbers accepted, ID
inserted in ascending order
Field should not be empty
Last Name
Blank, numbers or
symbols
A-Z (e.g. Reedtz)
Field should not be empty
Gender
Blank, numbers
or
Symbols, any
letter
M/F
Only M or F accepted, value
must be inserted, a valid
phone number
Except “M” or “F”
Date of Birth
Invalid date
DD/MM/YYYY
Only numbers accepted, value
must be inserted, a valid DOB
Address
Invalid address
A/Z - 1-9
Post Code
Invalid postcode
AB1 2CD
Value must be inserted, a valid
post code
Phone number
Invalid phone
number
(9999) 00090009
Only numbers accepted, value
inserted, a valid phone number
Value must be inserted, a
valid address written in
Patient Table
PatientID
First Name
Gender
Aaditt
Last
Name
Yasmeen
M
Date of
Birth
16/02/2001
40
41
42
43
Adam
Ajoy
Ann
Copker
Carr
Pims
M
M
F
23/09/1998
25/11/1986
03/09/1979
44
45
Beau
Brian
Lytte
Pryce
M
M
19/02/1956
29/07/1996
46
47
Cedric
Clara
Huhn
Cuth
M
F
21/01/1971
07/09/1970
Address
Post Code
Phone
159 Pleasant
Pioneer Pike
119 Devon Way
32 Edward Street
162 Brandon
Road
114 Albert Avenue
341 Pemberley
Road
126 Vane Avenue
232 Kenil Gardens
BV2 2CK
02061 987847
BV8 3ZE
BV0 1UH
BV6 8WZ
02084 987541
02086 987547
02081 124578
BV0 6DJ
BV9 4EZ
02079 987544
02064 981111
BV1 3UN
BV1 2ZT
02087 987111
02075 987522
Design Justification
The alternative design wasn’t used because it not as good as the current one.
Constraints
There are some constraints with the use of my database, one of them being the skill of the
staff.
Download