Mountain View Community Hospital - PowerPoint PPT Presentation

1 / 42
About This Presentation
Title:

Mountain View Community Hospital

Description:

These are attributes that these four people (entities) share: Address. City/State/Zip Code ... have been specified, but the list is known to be incomplete. ... – PowerPoint PPT presentation

Number of Views:818
Avg rating:3.0/5.0
Slides: 43
Provided by: marcben
Category:

less

Transcript and Presenter's Notes

Title: Mountain View Community Hospital


1
Mountain ViewCommunity Hospital
  • Laurinda Mitchell
  • Marc Benefield

2
Who MVCH Depends On
  • Employees
  • Patients
  • Physicians
  • Volunteers

3
Common Attributes
  • These are attributes that these four people
    (entities) share
  • Address
  • City/State/Zip Code
  • Date pf Birth
  • Name
  • Phone Number
  • Person_ID

4
Unique Attribute
  • These are the attributes that are peculiar to
    each PERSON (entity)
  • Employees-------Date Hired
  • Volunteers-------Skill
  • Physician--------Specialty Pager
  • Patient------------Calc_Age
  • Contact_Date

5
Unique Methods
  • Each PERSON (entity) has at least one unique
    method
  • Employee Calculate_Benefits
  • Volunteer Assign_to_Center
  • Physician Assign_to_Location
  • Patients Assign_to_Location

6
The Patient
  • Cardinality with PHYSICIANS
  • Each PATEINT has only one PHYSICIAN
  • There are two types of PATIENTs
  • Resident
  • Assigned to bed
  • Date of admission
  • Outpatient
  • Scheduled for zero or more visits
  • Visit
  • Date (partial identifier)
  • Comments

7
The Employee
  • There are three types of employees
  • Nurse
  • Attribute qualification (indicates RN, LPN)
  • Staff
  • Attribute - job class
  • Technician
  • Attribute Skills
  • Relationship assigned to one or more
  • laboratories

8
Care Center
  • Examples of care centers include
  • Maternity
  • Emergency
  • Cardiology
  • Attributes
  • Name
  • Location

9
Care Center
  • Cardinality with NURSEs
  • One or more nurses assigned to Care Center
  • One RN must be in charge
  • Bed Attributes
  • Bed_Id
  • Bed_Number
  • Room_Number
  • Cardinality with PATIENT
  • Each resident patient must be assigned a bed
  • A bed may or may not have a patient assigned to
    it at any given time

10
Buildings
  • Buildings contain Care Centers
  • Attributes include
  • Building_Number
  • Building_Name
  • Building_Code

11
Laboratory
  • Laboratories are housed in only one building, but
    a building can have more than one lab.
  • A laboratory includes employees and equipment and
    has a method call number_of_employees
  • Attributes
  • Name (ID)
  • Location
  • Cardinality with TECHNICIANs
  • LABORATORY has one or more TECHNICIANS
  • TECHNICIANS are assigned to one or more
    LABORATORIES

12
Project Question 1
  • Is the ability to model superclass/subclass
    relationship likely to be important in a hospital
    environment such as Mtn View Community Hospital?
    Why or why not?

13
Project Question 1Answer
  • The ability to model superclass/subclass
    relationships are important in this case study.
    Placing the common attributes and behaviors into
    classes displays a better understanding and it
    simplifies the system. This then leads to
    improved system redesign and the ability to add
    extensions to the system when needed.

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

15
Project Question 2answer
  • There doesnt seem to be any linked objects in
    the system. However, there could be an
    association between the Nurse class and Care
    Center class if another class was added, one that
    would contain information on whether or not the
    nurse was a nurse in charge.

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

17
Project Question 3answer
  • Both the Employee and Care Center classes serve
    as abstract classes. Abstract classes are used
    for generalizing the information needed by their
    subclasses.

18
Project Question 4
  • Are there any derived associations or derived
    relationships that will need to be included in
    the class diagram? If so, what are they?

19
Project Question 4answer
  • Yes. There could be a derived relationship
    (/associated with) between laboratory and care
    center. Also, between physician and care center
    (works in).

20
Project Question 5
  • Each resident patient has a method of assign
    ToBed (Bed), which overrides the assign
    ToLocations method of all patients. What is the
    reason for overriding?

21
Project Question 5answer
  • The override is necessary because the assign
    ToLocation method for all patients could be a bed
    that is not in a care center (such as day
    surgery).

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

23
(No Transcript)
24
Project Exercise 2
  • Develop definitions for each of the following
    types of objects in your class diagram from
    project exercise 1. Make reasonable assumptions
    based on your own knowledge and experience.

25
Project Exercise 2answer
  • Classes - a structure used to store information
    about an entity
  • Attributes - information that identifies a class
    that is stored within the class structure
  • Relationships - the connection between other
    classes to help define the hospital or other
    types of organizations
  • Methods - actions and calculations that the
    classes perform

26
Project Exercise 3
  • You should recognize the statement A nurse
    cannot be appointed nurse_in_charge of the Care
    Center unless she or he has an RN certificate as
    a statement of a business rule. How did you
    model the business rule differently from what you
    did in the project case in chapter 4? What is
    the constrained object? Is it an entity, an
    attribute, a relationship or some other object.

27
Project Exercise 3answer
28
Project Exercise 3answer (cont.)
  • The EER diagram from chapter 4 shows that a nurse
    can be a nurse_in_charge for optional one care
    center. The graph also shows that the
    constrained object is RN Certificate. RN
    Certificate serves as an attribute attached to
    Nurse.

29
Project Exercise 4
  • Compare the class diagram you developed in this
    chapter with the EER diagram that you developed
    in Chapter 4 and ER diagram you developed in
    Chapter 3 in Project Exercise 2. What are the
    differences between these two diagrams? Why are
    there differences.

30
Project Exercise 4answer
  • Differences exists between these diagrams because
    they are different types of diagrams that show
    the same information flow and information
    processing. The object oriented portrays
    entities as a class object. Class objects also
    include behavior of the entities as well as
    attributes. This is one thing that is different
    form entities.

31
Project Exercise 4answer (cont)
  • The object oriented diagrams are more compact
    compared to the other diagrams.
  • Object oriented diagrams also show some entities
    as abstract databases, such as Care Center and
    Employee.

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

33
Project Exercise 5answer
  • Both aggregation and composition are shown within
    the diagrams.
  • An example of aggregation can be seen in the
    Employee abstract class. In it there are only 3
    types of employees listed (Nurse, Staff, and
    Technician). It doesnt account for the other
    employees in the hospital.

34
Project Exercise 5answer (cont)
  • This diagram also shows composition with the
    statement Patients are divided into 2 groups
    outpatient and residents. this statement is
    considered composition because there are no other
    types of patients besides outpatients and
    residents.

35
Marcs Question 1
  • What is a generalization path and how is it used
    in the MVCH Project Case?

36
Marcs 1 Answer
  • A generalization path is shown as a solid line
    from the subclass to the superclass, with a
    hollow triangle at the end and pointing toward
    the superclass.
  • In MVCH Project they are used several times, one
    example is by connecting the subclass employee,
    physician, patient and volunteer to the
    superclass Person

37
Marcs Question 2
  • What does the overlapping and incomplete mean in
    the MVCH diagram?

38

Marcs 2 Answer
  • Overlapping is when a dependent may descend from
    more than one of the subclasses.
  • Incomplete means some subclasses have been
    specified, but the list is known to be
    incomplete. There are additional subclasses that
    are not yet in the model.

39
Laurinda 1 Question
  • What is the database for Person broken down into
    and what calculation(s) are used for each
    division?

40
Laurinda 1 Answer
  • The databases for Person are Employee, which is
    an abstract class for Physician, Patient, and
    Volunteer. Yes, these databases do have
    calculation. Employee is Cal_Benefits(s)
    Physician is used Treats_Patients() Patients
    calculations are Cal_Age() and assign_to_Location
    (bed) Volunteers are assign_To_Center (Care
    Center)

41
Laurinda 2 Question
  • In MVCH class diagram are there any examples of
    composition and if so, what are they.

42
Laurinda 2 Answer
  • There is a composition in the diagram.
    Composition could be used for the class called
    Employee. This is because the class is divided
    up as Nurse, Staff, and Technician. There are no
    other types of employees included in the diagram.
Write a Comment
User Comments (0)
About PowerShow.com