Q1: Draw a Class Diagram using MS Visio for the following scenario. A client wants you to
Question:
Q1: Draw a Class Diagram using MS Visio for the following scenario.
A client wants you to develop a Hospital Management System as per the details provided below.
There are a lot of people associated with the hospital. Each Person could be associated with different Hospitals, and a Hospital could employ or serve multiple persons.
Person has derived attributes name and address. Name represents full name and could be combined from title, given (or first) name, middle name, and family (or last) name.
A Person can be a Patient or Staff. The Staff can be Operations Staff and Administrative Staff. Doctors and Nurses come under Operations Staff.
Patient can have a unique patient number, date of admission, blood group, sickness, allergies and prescriptions and a derived attribute age which could be calculated based on her or his birth date. A Patient can take medicine, give blood test or X-ray, or do exercise as per instructions.
Doctor has some specialty, designation and location of his room. A doctor can examine, provide prescription and perform surgery/operation of his patient. A Doctor and a nurse can treat many patients. One patient is treated by 1 or 2 doctors, a senior doctor and a junior doctor.
The hospital consists of wards. Ward is a division of a hospital or a suite of rooms shared by patients who need a similar kind of care. In a hospital, there are a number of wards, each of which may be empty or have on it one or more patients. Each ward has a unique name and fixed capacity. Wards are differentiated by gender of its patients, i.e. male wards and female wards.
Systems analysis and design in a changing world
ISBN: 978-1423902287
5th edition
Authors: John W. Satzinger, Robert B. Jackson, Stephen D. Burd