1: The front desk receptionist will be creating new appointments upon customer requests. In order to schedule appointments effectively the receptionist needs to know what appointments are already schedule for a given week. The scheduling system will provide a start date to search for the week, the date provided will be a Sunday. Appointments retrieved should be through Saturday. The appointment needs to show the start and end times, the dentist name, and assistant name. The scheduling system will show a calendar view of the appointments for the given week. Create a Query that should return the requested information.   2: Before a bill is sent to a customer it first needs to be sent to Insurance. This test case will prove that the database design can produce the proper billing information. In order to submit an insurance claim a bill will be created which shows the Patients information, each active insurance with contact information, along with a list of the services for the appointment and cost. The billing department can then contact each insurance company to determine their coverage. The covered amount will be updated and a final bill sent to the customer if a balance remains. Create a Query that should return the requested information.   3: A central computer screen will be mounted in an employee area near the treatment rooms for the assistants and dentists to see what the current days schedule is. The schedule needs to show all appointments by time, listing the patients name, dentists name, and assistants name. Create a Query that should return the requested information.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

1:

The front desk receptionist will be creating new appointments upon customer requests. In order to schedule appointments effectively the receptionist needs to know what appointments are already schedule for a given week. The scheduling system will provide a start date to search for the week, the date provided will be a Sunday. Appointments retrieved should be through Saturday. The appointment needs to show the start and end times, the dentist name, and assistant name. The scheduling system will show a calendar view of the appointments for the given week.

Create a Query that should return the requested information.

 

2:

Before a bill is sent to a customer it first needs to be sent to Insurance. This test case will prove that the database design can produce the proper billing information. In order to submit an insurance claim a bill will be created which shows the Patients information, each active insurance with contact information, along with a list of the services for the appointment and cost. The billing department can then contact each insurance company to determine their coverage. The covered amount will be updated and a final bill sent to the customer if a balance remains.

Create a Query that should return the requested information.

 

3:

A central computer screen will be mounted in an employee area near the treatment rooms for the assistants and dentists to see what the current days schedule is. The schedule needs to show all appointments by time, listing the patients name, dentists name, and assistants name.

Create a Query that should return the requested information.

 

4:

Make your own for the 4th query. Use comment lines in your script to define what the test case should accomplish.

 

5:

Now that you are confident in the design of your database it is time to develop the initial creation script. In MySQL Workbench use a new sql script tab to develop your script. Your script should include:

Comment block at top showing What, Who, and When

CREATE and USE statements for the database

CREATE statements for each table

  • Make sure proper data types and Primary Keys are defined
  • Make sure Foreign Key fields are added to the tables but do not specify any Foreign Key Constraints (We will learn about them later and apply when needed). Adding them now will cause errors on your data insert scripts in the next Module.

Insert statements for any known information provided depending on your topic (such as services)

Patient
PK PatientID
FirstName
LastName
Address
INT
VarChar (25)
VarChar (25)
VarChar(30)
VarChar(30)
VarChar(30)
VarChar(15)
Region
Country
VarChar(30)
PhoneHome
VarChar (15)
PhoneMobile VarChar(15)
BirthDate
City
State
Date
Insurance
PK InsurancelD INT
FK PatientID
INT
PolicyID
VarChar(20)
Company Name VarChar(30)
ContactPhone VarChar(15)
Expiration Date Date
PriorityLevel INT
+
DB2 Dentist Office Rel Mod
Shawn Creviston
DentalAppointment
PK AppointmentID INT
FK
PatientID
INT
FK DentistID
INT
FK AssistantID
INT
INT
InsuranceID
StartTime
Date Time
End Time
Date Time
Optional complexity to allow
multiple insurances per
appointment. Would replace
InsuranceID in appointment
table
Appolnsurance
PKFK InsurancelD
INT
PKFK AppointmentID INT
CoveredAmt
Decimal(6,2)
Service
PK
ServicelD
Description
Cost
AppoService
PKFK AppointmentID
PKFK ServiceID
Cost
Employee
PK
FK
EmplD
RolelD
FirstName
LastName
Address
City
State
Region
Country
PhoneHome
PhoneMobile
Salary
INT
Description
VarChar(400)
Decimal(6,2)
INT
INT
Decimal(6,2)
INT
INT
VarChar(25)
VarChar(25)
VarChar(30)
VarChar(30)
VarChar(30)
VarChar(15)
VarChar(30)
VarChar(15)
VarChar(15)
Desimal(8,2)
Optional complexity, a Title field would work as well
EmpPrimaryRole
PK RoleID
INT
VarChar(255)
Transcribed Image Text:Patient PK PatientID FirstName LastName Address INT VarChar (25) VarChar (25) VarChar(30) VarChar(30) VarChar(30) VarChar(15) Region Country VarChar(30) PhoneHome VarChar (15) PhoneMobile VarChar(15) BirthDate City State Date Insurance PK InsurancelD INT FK PatientID INT PolicyID VarChar(20) Company Name VarChar(30) ContactPhone VarChar(15) Expiration Date Date PriorityLevel INT + DB2 Dentist Office Rel Mod Shawn Creviston DentalAppointment PK AppointmentID INT FK PatientID INT FK DentistID INT FK AssistantID INT INT InsuranceID StartTime Date Time End Time Date Time Optional complexity to allow multiple insurances per appointment. Would replace InsuranceID in appointment table Appolnsurance PKFK InsurancelD INT PKFK AppointmentID INT CoveredAmt Decimal(6,2) Service PK ServicelD Description Cost AppoService PKFK AppointmentID PKFK ServiceID Cost Employee PK FK EmplD RolelD FirstName LastName Address City State Region Country PhoneHome PhoneMobile Salary INT Description VarChar(400) Decimal(6,2) INT INT Decimal(6,2) INT INT VarChar(25) VarChar(25) VarChar(30) VarChar(30) VarChar(30) VarChar(15) VarChar(30) VarChar(15) VarChar(15) Desimal(8,2) Optional complexity, a Title field would work as well EmpPrimaryRole PK RoleID INT VarChar(255)
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps

Blurred answer
Knowledge Booster
Parallel and Distributed Storage
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education