3.3.3 Identifying attributes for the classes in the Hospital System
The next task is to identify the attributes of the conceptual classes listed above. We have already identified some of these as a by-product of the process of identifying the classes.
Activity 4
By referring to the System domain and Use cases sections of the requirements document, suggest attributes for each of the classes in the Hospital System.
Discussion
For each of our chosen classes, here are our lists of attributes, together with references to the relevant parts of the requirements document.
-
:
,
,
,
(System domain, use cases A, D, F)
-
:
,
,
,
(System domain, use cases A, F)
-
:
(System domain, use case G)
-
:
(System domain, use case G)
-
:
,
(use case G)
-
:
(use case G)
Having identified a complete set of classes and attributes, they should be described formally, accompanied by short comments, as follows. Such class descriptions form an important part of the conceptual model.
Class |
![]() | A ward in the hospital |
Attributes | ||
![]() | The unique name of the ward | |
![]() | Whether the ward is for male or female (M or F) patients | |
![]() | The maximum number of patients that can be on the ward at any one time | |
![]() | The number of free beds on the ward | |
Class | ![]() | A patient in the hospital |
Attributes | ||
![]() | The name of the patient | |
![]() | The sex (M or F) of the patient | |
![]() | The date of birth of the patient | |
![]() | The age of the patient in years | |
Class | ![]() | A team of doctors |
Attributes | ||
![]() | The unique code of the team | |
Class | ![]() | A doctor at the hospital |
Attributes | ||
![]() | The name of the doctor | |
Class | ![]() | A junior doctor at the hospital |
Attributes | ||
![]() | The name of the junior doctor | |
![]() | The grade (1, 2 or 3) of the junior doctor | |
Class |
![]() | A consultant doctor at the hospital |
Attributes | ||
![]() | The name of the consultant doctor |