Title: Mountain View Community Hospital Group 5
1Mountain View Community HospitalGroup 5
- Presented By
- Len Gray
- Tristan Erford
- Jan Willems
2Who MVCH depends on
- Employees
- Patients
- Physicians
- Volunteers
3Common Attributes
- All persons (entities) share these common
attributes - personID (identifier)
- name
- address
- city-state-zip
- dateOfBirth
- phone
4Unique Attributes
- Employees - - - - - - dateHired
- Patient - - - - - - - - - dateOfContact
- calc-age
- Physicians - - - - - - specialty
- pagerNumber
- Volunteers - - - - - - skill
5Unique Methods
- Each of the four persons (entities) have at least
one unique method. - Employee - calc-benefits
- Volunteers - assign-to-Center(CareCenter)
- Physicians - treats(Patient)
- Patients - calc-age and 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 - assignToBed(Bed)
- - dateOfAdmission
- - Outpatient - scheduled for zero or more visits
7Visit Entity
- Attributes
- - date (partial identifier)
- - comments
- An instance of Visit cant exist without an
outpatient owner entity. -
8Three Subdivided Groups of Employee
- Name
- - 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)
- Components - 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
- Method - numberOfEmployees
- 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.
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
- The ability to model superclass/subclass
relationships is very important because many of
the classes share common attributes and behavior. - Generalizing much of the common attributes and
behavior makes the process of understanding and
simplifying a system easier. - Thus, the result is an improved system design, if
necessary, and extensions to the system in the
future.
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 Answer 2
- 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 Answer 3
- The Employee class and Care center class both are
complete and serve as an abstract class for
generalizing much of the information needed by
their subclasses.
20Project Exercise 1 question
- Draw a class diagram to accurately represent this
set of requirements carefully following the
notation from this chapter
21(No Transcript)
22Project Exercise 2 question
- Develop definitions for each of the following
types of objects in your class diagram from
Project Exercise 1. - Make reasonable assumptions based on your won
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 nurse_in_charge 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
- The rule can be stated as follows For a nurse
to be appointed nurse-in-charge of a care center,
that nurse must possess a RN certificate.
26Project Exercise 3 Answer Continued
- This relationship was modeled differently for we
created constraint that made it state that a
nurse must possess a certificate to be allowed to
be a nurse-in-charge. - In this diagram the Anchor object is the the
nurse entity, and the corresponding object is the
RN Certificate which is also an entity, the
constraint object is considered and attribute in
the problem.
27Project 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?
28Project Exercise 4 Answer
- The EER shows the entity types, instances, and
relationships. - The ER diagram shows entities as a class object
which shows behavior as well as attributes which
is different than entities. - The Class diagram is easier to read for the
information is more compact.
29Project Exercise 5
- Did you find any examples of aggregation or
composition in the description of the project in
this chapter? Why or why not?
30Project Exercise Answer 5
- We were capable of finding both aggregation and
composition in the description of this project. - Aggregation is involved in the project since some
classes of persons are not enumerated. For
example There are other persons in the hospital
community who do not belong to one of these four
groups.
31Project Exercise 5 Answer Continued
- Composition is demonstrated because there are no
other types of patients or employees other than
those listed. - For example Patients are divided into two
groups residents and outpatients. - Employees are divided into three groups nurse,
staff and technician.
32Lens Question
- In the MVCH case study for this chapter, the
entity Employee is subdivided into three groups.
What are the three groups, what attributes do
they share, what are their unique attributes, and
can an Employee be a member of more than one group
33Jans Question
- As we can see in Project Exercise 1.
- we have 2 different kinds of semantic
constraints. - Explain them?
34Tristans Question
- What are the definitions of aggregation and
composition, and give an example of each use in
the MVCH case study?