Title: Group 5 MVCH Presentation
1Group 5MVCH Presentation
- Michael Glover
- Justin Neff
- Amanda Cooper
2Who MVCH depends on
- Employees
- Patients
- Physicians
- Volunteers
3Common Attributes
- personID (identifier)
- name
- address
- cityStateZip
- dateOfBirth
- phone
4Unique Attributes
- Employees
- dateHired
- Physicians
- specialty
- pagerNumber
- Patients
- dateOfContact
- calc-age
- Volunteers
- skill
An Employee or a Physician who is also a Patient
also has an attribute of specialService.
5Unique Methods
- Each of the four persons (entities) have at least
one unique method. - Employees
- calcBenefits()
- Volunteers
- assignToCenter(CareCenter)
- Physicians
- treats(Patient)
- Patients
- CalcAge()
- assignToLocation(Bed)
6Physician-to-Patient Relationships
- Each Patient has one and only one Physician who
is responsible for the Patient. - A Physician may not be responsible for a Patient
at a given time or may be responsible for one or
more Patients. - Patients are divided into two groups
- Resident
- Attribute dateOfAdmission
- Method assignToBed(Bed)
- Outpatient
- Scheduled for zero or more Visits
7Visit Entity
- Attributes
- date (partial identifier)
- comments
- An instance of Visit cannot exist without an
outpatient owner entity.
8Three Groups of Employees
- Nurse
- Attribute certificate (indicates qualification)
- Relationship assigned to one and only one Care
Center - Staff
- Attribute jobClass
- Technician
- Attribute skill
- Relationship assigned to one or more
laboratories
9Care Center Entity
- Attributes
- name (identifier)
- location
- Examples of Care Centers
- Maternity
- Cardiology
- Emergency
10Care Center Relationships
- Relationships
- A Care Center may have one or more nurses
assigned to it. - One of the nurses assigned to a Care Center is
appointed nurseInCharge. - The nurseInCharge must have an RN certificate.
- A Care Center is assigned zero or more Beds.
- Care centers are located in Buildings.
11Bed Entity
- Attribute bedID (composite identifier)
- bedNumber
- roomNumber
- Method utilization
- Relationship to Patients
- Each Resident Patient must be assigned a Bed.
- A Bed may or may not have a Resident Patient
assigned to it at a given time.
12Building Entity
- Attributes
- buildingNumber
- buildingName
- buildingCode
13Laboratory Entity
- Attributes
- name (identifier)
- location
- Relationships
- Each Technician is assigned to one or more
Laboratories. - A Laboratory must have at least one Technician
assigned to it and may have any number of
Technicians assigned. - A Laboratory is housed in only one Building, and
a Building may house many Laboratories. - A Laboratory includes equipment and the employees
who work in that Laboratory. - Method numberOfEmployees
14Project Question 1
- Is the ability to model superclass/subclass
relationships likely to be important in a
hospital environment such as Mountain View
Community Hospital? Why or why not?
15Project Question 1 Answer
- Since many of the classes at MVCH share common
attributes and behaviors, the ability to model
superclass/subclass relationships will very
important to MVCH. - Generalizing much of the common attributes and
behaviors into superclasses facilitates a better
understanding and simplification of the system. - Thus, superclass use leads to improved system
redesign and future extensions to the system.
16Project Question 2
- Do there appear to be any link objects in the
description of the data requirements in this
project segment? If so, what are they?
17Project Question 2 Answer
- There do not appear to be any link objects in the
data requirements. - However, It could be argued that the association
between the Nurse class and Care Center class
could be represented with a class that would
contain information as to whether or not the
nurse is in charge.
18Project Question 3
- Are there any abstract object classes in the
description of this hospital? Why or why not?
19Project Question 3 Answer
- The Employee class and Care Center class are both
complete and serve as an abstract class for
generalizing much of the information needed by
their subclasses.
20Project Exercise 1
- Draw a class diagram to accurately represent this
set of requirements, carefully following the
notation from this chapter.
21(No Transcript)
22Project Exercise 2
- Develop definitions for each of the following
types of object classes in your class diagram
from Project Exercise 1. Make reasonable
assumptions based upon your own knowledge and
experience.
23Project Exercise 2 Answer
- Classes
- A place to store information and actions with
entities in the real world. - Attributes
- A place to store a piece of information.
- Relationships
- The connection or dependence upon other classes
to help define the hospital system. - Methods
- The actions and procedures the classes perform.
24Project Exercise 3
- You should recognize the statement A nurse
cannot be appointed nurseInCharge of a care
center unless he or she has an RN certificate as
a business rule. How did you model this business
rule differently from what you did in Chapter 4?
What is the constraint object? Is it an entity,
an attribute, a relationship, or some other
object?
25Project Exercise 3 Answer
From Chapter 4
26Project Exercise 3 Answer Continued . . .
- We have modeled this relationship of a nurse as a
nurse in charge as a role of the Nurse object. - The constraint object is the attribute of
certificate, that specifies that a nurse must
have a RN certificate to have the role of
nurseInCharge.
27Project Exercise 3 Answer Continued . . .
28Project Exercise 4
- Compare the class diagram you developed in this
chapter with the EER diagram that you developed
in Chapter 4 and with the E-R diagram you
developed in Chapter 3 in Project Exercise 2.
What are the differences between these two
diagrams? Why are there differences?
29Project Exercise 4 Answer
- The Class diagram shows the methods associated
with each object class. - The Class diagram is also more compact and is
also easier to read and follow. - In our Class diagram, Employee and Care Center
are modeled as abstract databases.
30Project Exercise 5
- Did you find any examples of aggregation or
composition in the description of the project in
this chapter? Why or why not?
31Project Exercise 5 Answer
- Yes, both aggregation and composition are
demonstrated in this chapter. - An example of aggregation is in the statement,
There are other persons in the hospital
community who do not belong to one of these four
(Person) groups. Aggregation is demonstrated
since some classes of person are not enumerated.
32Project Exercise 5 Answer continued . . .
- Employee and Patient are two examples of
composition listed in this case study. - The following statements demonstrate composition
- Patients are divided into two groups residents
and outpatients. - Employees are divided into three groups nurse,
staff, and technician. - These statements are considered composition
because there are no other types of Patients or
Employees other than those listed.
33Justins Question
- In the class diagram for this chapter, the entity
Employee is subdivided into three groups. What
are the three groups, what attributes do they
share, what are their individual attributes, and
can an Employee be a member of more than one
group?
34Amandas Question
- In the diagram of Project Exercise 1, what does
the brackets containing the words overlapping,
incomplete representing?
35Michaels Question
- Which two of the following database are in the
abstract class? Care Center, Patient, Physician
or Employee. Explain what they are made up of.