Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

Project

Database Design – Entity Relationship Modeling (ERD)

After completing the database management course, you have been hired for a summer position by Queensway    Carleton Hospital - Ottawa. You have to work as apart of 2 persons-team to develop a high-level Database E-R diagram for the hospital. You conduct interviews with a number of hospital administrators and staff to identify   the key entities in the hospital. After a short time, your team has identified the following possible entities:

•    Care center - a treatment center within the hospital. Examples of care centers are maternity and

emergency care. Each care center has a care center ID (identifier) and name (there are 4 centers in the hospital-shown in the excel sheet).

•    Patient - a person who is either admitted to the hospital or is registered in an outpatient program. Each patient has a patient number (identifier) name, address and tel number.

•    Physician - A member of the hospital medical staff who may admit patients to the hospital and who may administer medical treatments. Each physician has a physician ID (identifier), name, address, &Tel

Number.

•    Bed - a hospital bed that maybe assigned to a patient who is admitted to the hospital. Each bed has abed number (identifier) a room number and a care center ID.

•    Item - any medical or surgical item that maybe used in treating a patient. Each item has an item number (identifier) description and unit cost.

•    Employee - any person employed as part of the hospital staff. Each employee has an employee number and name.

•    Treatment - any test or procedure performed by a physician on behalf of a patient. Each treatment has a treatment ID that consists of two parts: treatment number and treatment name.

•     You have to add the intersection tables to your ERD

The hospital used an Excel workbook to gather and manipulate data for reporting and other planning (Given).  The team next recorded the following information concerning relationships:

•    Each hospital employee is assigned to work in one or more care centers. Each care centre has at least one employee, and may have any numbers of employees. The hospital records the number of hours per week  that a given employee works in a particular care center.

•    A given patient may or may not be assigned to abed (since some patients are outpatients). A bed may or may not be assigned to a patient.

•    A patient must be referred to the hospital by exactly one physician. A physician may refer any number of patients or may not refer any patients.  Patients are admitted on a specific date and a specific week (1 -

52).

To find the number of Stay_days in the hospital simple do the following: Dispatch Date – Admission Date.

To find the week number use the following formula as example (depend where you include the start date):

SELECT DatePart('ww',PATIENT_CARE.StartDate) AS TreatmentStartWeek………

•    Physicians may perform any number of treatments on behalf of any number of patients or may not  perform any on behalf of patients. A patient may have the treatments performed by any number of  physicians. For each treatment performed on behalf of a given patient by a particular physician, the hospital records the following information: treatment date, treatment time, and results.

•    A patient may consume any number of items. A given item maybe consumed by one or more patients, or may not be consumed. For each item consumed by a patient, the hospital records the following: date,

time, quantity, and total cost.

•    Total cost for one night for inpatient is $ 450 (including food and items)

Questions:

•    Develop an Entity-Relationship model using MS ACCESS relationship tool for the Queensway Carleton Hospital. Your ER Model must be intelligent enough to answer user’s queries (1 to 9).

•    Fill each entity by with data from the given Excel sheet (You have to add the data to the new field suggested by you as DB designer).

•    The following are couple (but not all) of queries that could be answered by your  ERD Model:

1.  Weekly Report of the number of patients assigned to a specific doctor (doctor number given by the user)

2.  Number of in-patients assigned in the period: week 21 – week50 (Inclusive).

3.  How many patients treated by a specific physician (the physician Id given by the user)? The name of the physician must appear in the result of your SQL.

4.  List the patient(s) (all patient info) treated by a specific physician (the physician Id given by the user)? The name of the physician must appear in the result of your SQL.

Help Note:

Use the following formula to get the total days: Sum((DATE()-STAY.AdmissionDate), where DATE is the current date, and in the WHERE check for dispatch date is NULL. (google for more).

Deliverables:

a) ERD Diagram, must be MS ACCESS ERD (use the tool relationships; accessed from the menu option: database tools  and the ribbon option: Relationships.

b) Create MS ACCESS tables; accessed from the menu option: Create  and the ribbon option: Table Design.  Fill each table (Entity) with data from the given Excel workbook.

c) SQL code designed and run via the MS ACCESS SQL tool of the queries 1 -9 above.

d) MS Access DB File includes the above deliverables.

Use this link to learn how to create ERD:

http://www.youtube.com/watch?v=OGZTseZNJQk

More of Access function:

http://www.techonthenet.com/access/functions/date/datepart.php