Group 5 MVCH Presentation - PowerPoint PPT Presentation

1 / 35
About This Presentation
Title:

Group 5 MVCH Presentation

Description:

A Care Center may have one or more nurses assigned to it. ... Generalizing much of the common attributes and behaviors into superclasses ... Project Exercise #1 ... – PowerPoint PPT presentation

Number of Views:37
Avg rating:3.0/5.0
Slides: 36
Provided by: Mich1089
Category:

less

Transcript and Presenter's Notes

Title: Group 5 MVCH Presentation


1
Group 5MVCH Presentation
  • Michael Glover
  • Justin Neff
  • Amanda Cooper

2
Who MVCH depends on
  • Employees
  • Patients
  • Physicians
  • Volunteers

3
Common Attributes
  • personID (identifier)
  • name
  • address
  • cityStateZip
  • dateOfBirth
  • phone

4
Unique 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.
5
Unique 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)

6
Physician-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

7
Visit Entity
  • Attributes
  • date (partial identifier)
  • comments
  • An instance of Visit cannot exist without an
    outpatient owner entity.

8
Three 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

9
Care Center Entity
  • Attributes
  • name (identifier)
  • location
  • Examples of Care Centers
  • Maternity
  • Cardiology
  • Emergency

10
Care 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.

11
Bed 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.

12
Building Entity
  • Attributes
  • buildingNumber
  • buildingName
  • buildingCode

13
Laboratory 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

14
Project 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?

15
Project 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.

16
Project 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?

17
Project 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.

18
Project Question 3
  • Are there any abstract object classes in the
    description of this hospital? Why or why not?

19
Project 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.

20
Project Exercise 1
  • Draw a class diagram to accurately represent this
    set of requirements, carefully following the
    notation from this chapter.

21
(No Transcript)
22
Project 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.

23
Project 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.

24
Project 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?

25
Project Exercise 3 Answer
From Chapter 4
26
Project 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.

27
Project Exercise 3 Answer Continued . . .
28
Project 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?

29
Project 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.

30
Project Exercise 5
  • Did you find any examples of aggregation or
    composition in the description of the project in
    this chapter? Why or why not?

31
Project 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.

32
Project 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.

33
Justins 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?

34
Amandas Question
  • In the diagram of Project Exercise 1, what does
    the brackets containing the words overlapping,
    incomplete representing?

35
Michaels 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.
Write a Comment
User Comments (0)
About PowerShow.com