database design
The Expanded Entity Relationship Diagram
LAB OVERVIEW
Scenario and Summary
This lab introduces the next step in creating a data model, the Entity Relationship Diagram (ERD). You will be given a business scenario for a University Medical Center, which is a small community hospital. The business specifications will outline a number of things about the business, some of which will apply directly to the database you are being asked to model. There is a table that lists the entities (tables) that will be needed for the database and related attributes (columns) for each entity. There is also a column that lists specific information about the entity that will be helpful in determining its relationship to other entities within the model.
Be sure to include the minimum and maximum occurrences of each relationship (cardinality) and to supply a name to the relationship that will work in both directions. Make sure to use Crow’s Feet notation in your ERD.
Narrative/Case Study
The University Medical Center is a small, community hospital. A new hospital administrator has recently been hired by the Board of Directors, and directed to right-size patient care and pharmacy services and improve profitability. The hospital operates three clinical facilities: the main hospital, a mid-town clinic, and an Urgent Care location. The hospital also offers selected in-home care services. Many of the patients are repeat or regular patients who receive regular treatment for various conditions, and many utilize the hospital’s pharmacy services for prescription medications.
The pharmacy dispenses about 3,000 different prescription medications of various kinds. Every prescription is associated with one patient, and is logged by the dispensing clinic. The new administrator wants to know which drugs are most prescribed, and also which are the most profitable.
The following is some general information about the organization and its current processes.
· The hospital operates three clinical facilities.
· A healthcare worker logs in at a facility at the start of a shift and logs out at the end.
· The name, address, Social Security number and other information is recorded for every healthcare worker.
· All healthcare workers have one billing rate, which is determined by their job description.
· Each medication dispensed by prescription is linked to both the prescription number and the medication ID number, recording the item price and the quantity dispensed.
The hospital administrator would like to know what home-care visits have been made to whom, by whom, when, and how long they took. There is concern at this point that the cost of providing limited home healthcare is not providing adequate return on investment, and the program should be revised or discontinued.
Requirements
You have been asked to develop a logical data model for University Medical Center based on the information given to you by the new hospital administrator and their staff. Through analysis of the nouns and verbs in the case study above, you have accumulated the following entity, attribute, and relationship information shown in the table below. The attribute list may not be complete. If you determine that additional attributes are needed to better define an entity, then you should add them.
Entities Attributes and Relationships for University Medical Center (Parallel Lab Exercise):
Using an appropriate drawing/data modelling tool, develop an ERD that meets the following guidelines.
· Draw the entities with their attributes.
· Indicate the relationships between the entities using Crow's Foot notation. You will need to determine the cardinality and optionality for each direction of the relationships. Some of the Foreign Key relationships are identified in the graph above but not all. Be sure you identify and account for all Foreign Key relationships.
· Add a name (in both directions) to the relationships. Remember, if you can verbalize the relationship in both directions, then you probably have a valid relationship.
Deliverables
The deliverable for this lab will be your completed ERD as a single MS Word document using copy/paste or imported as an image from your drawing/modelling application, cropped and sized appropriately (it should fit on a single page), and named lab2_solutions_yourname.
LAB STEPS
STEP 1: Drawing Entities and Attributes
Be sure to include all of the entities that have been defined. You need to include at least the primary and foreign key attributes where applicable in your diagram.
STEP 2: Add Relationships
Be sure that you link all entities based on PK to FK relationships. There may be a case where you need to identify a combination PK and if so make sure that all of the relationships involved are defined. Be sure that you have set your drawing/modelling tool set to show Crow's Foot notation. Also, be sure that you are defining the correct cardinality for the relationships.
STEP 3: Naming of relationships
If your drawing/modelling tool creates a default name for relationships, do not simply accept this default without due consideration. There may be some relationships where the default is applicable, but in most cases you will want to explicitly name the relationship. Be sure that you have provided a verb phrase for both directions in the relationship.
This is the end of lab #2
The Expanded Entity Relationship Diagram
LAB OVERVIEW
Scenario and Summary
This lab
introduces the next step in creating a data model, the Entity Relationship Diagram (ERD). You
will be given a business scenario for a
University Medical
Center
, which is a
small community hospital
.
The business specifications will outline a number of things about the business, some of which will apply
directly to the database you are being asked to model. There is a table
that
lists the entities (tables) t
hat
will be needed for the database and related attributes (columns) for each entity. There is also a column
that lists specific information about the entity that will be helpful in determining its relationship to other
entities within the model.
Be sure
to include the minimum and maximum occurrences of each relationship (cardinality) and to
supply a name to the relationship that will work in both directions.
Make sure to use Crow’s Feet
notation in your ERD.
Narrative/Case Study
The
University Medical Ce
nter is a small
,
community hospital
. A new
hospital administrator has recently
been hired by the Board of Directors
,
and directed to
right
-
size
patient care and pharmacy services
and
improve
profit
ability
. The
hospital operates three clinical facilities:
the main hospital, a mid
-
town clini
c,
and an Urgent Care location.
The hospital also offers
selected
in
-
home care
services
.
Many of the
patients
are repeat
or regular patients
who
receive regular treatment for various conditions, and many
utilize the hospi
tal’s pharmacy services for
prescription
medications.
The
pharmacy
dispenses
about 3,000
different
prescription
medications of various kinds
.
Every
prescription is associated with one patient, and is logged b
y the dispensing clinic.
The new
administrator
wants to know which
drugs are most prescribed, and also which
are the most profitable.
The following is some general information about the
organization
and its current processes.
·
The
hospital operates
three
clinical facilities
.
·
A
h
ealthcare
w
orker
logs i
n
at a facility
at the start of a shift and logs out at the end.
·
The name, address, Social Security number and other information is recorded for every
h
ealthcare
w
orker
.
·
All
h
ealthcare
w
orkers
have one billing rate,
which
is determined by
their job descri
ption.
·
Each
medication dispensed by prescription is linked to both the prescription number and the
medication ID number, recording the item price and the quantity dispensed.
As a convenien
t and affordable means of
providing
hospice care, palliative care, and convalesc
ent care
to
patients that need occasional/intermittent skilled nursing, but do not require hospitalization,
the
hospital
offer
s
limited in
-
home care
.
Recording of in
-
home care includes
the
h
ealthcare
w
orker ID,
their
The Expanded Entity Relationship Diagram
LAB OVERVIEW
Scenario and Summary
This lab introduces the next step in creating a data model, the Entity Relationship Diagram (ERD). You
will be given a business scenario for a University Medical Center, which is a small community hospital.
The business specifications will outline a number of things about the business, some of which will apply
directly to the database you are being asked to model. There is a table that lists the entities (tables) that
will be needed for the database and related attributes (columns) for each entity. There is also a column
that lists specific information about the entity that will be helpful in determining its relationship to other
entities within the model.
Be sure to include the minimum and maximum occurrences of each relationship (cardinality) and to
supply a name to the relationship that will work in both directions. Make sure to use Crow’s Feet
notation in your ERD.
Narrative/Case Study
The University Medical Center is a small, community hospital. A new hospital administrator has recently
been hired by the Board of Directors, and directed to right-size patient care and pharmacy services and
improve profitability. The hospital operates three clinical facilities: the main hospital, a mid-town clinic,
and an Urgent Care location. The hospital also offers selected in-home care services. Many of the
patients are repeat or regular patients who receive regular treatment for various conditions, and many
utilize the hospital’s pharmacy services for prescription medications.
The pharmacy dispenses about 3,000 different prescription medications of various kinds. Every
prescription is associated with one patient, and is logged by the dispensing clinic. The new administrator
wants to know which drugs are most prescribed, and also which are the most profitable.
The following is some general information about the organization and its current processes.
The hospital operates three clinical facilities.
A healthcare worker logs in at a facility at the start of a shift and logs out at the end.
The name, address, Social Security number and other information is recorded for every
healthcare worker.
All healthcare workers have one billing rate, which is determined by their job description.
Each medication dispensed by prescription is linked to both the prescription number and the
medication ID number, recording the item price and the quantity dispensed.
As a convenient and affordable means of providing hospice care, palliative care, and convalescent care
to patients that need occasional/intermittent skilled nursing, but do not require hospitalization, the
hospital offers limited in-home care. Recording of in-home care includes the healthcare worker ID, their