You are on page 1of 2

Practice Activity for DD 4.1 – 4.

2
Gery J. Sumual (01123574291-53)

4.1 Supertypes and Subtypes


Vocabulary: Exhaustive, supertype, subtype, mutually exclusive
Try It / Solve It:
1. Amputation = subtype; Visual Impairment = subtype; Hearing Impairment = subtype; Disability
= supertype; Paralysis = subtype.
2. They share common attributes: subtypes; They inherit all attributes and relationships of the
entity: subtypes; It never exists alone: subtypes; It contains the attributes held in common by
all instances: supertypes.
3. There has to be a reason to create them, that is, to show the similarities and differences
between the entity’s instances and there are at least two subtypes; every instance of the
supertype must also be of one and only one subtype; each subtypes combined must
encompass all possible instances of the supertype.
4.
• On the supertype AUTOMOBILE, the subtype 4-DOOR VEHICLE isn’t mutually exclusive with
the other two subtypes, meaning that it’s possible that an instance of the supertype will
be the instance of either SEDAN and 4-DOOR VEHICLE, or, SPORTS UTILITY VEHICLE and 4-
DOOR VEHICLE; 4-DOOR VEHICLE should be removed. Having said that, the remaining
subtypes are not exhaustive, adding OTHER subtype would be preferable conceptually.
• On the supertype BUILDING, there’s only one subtype HOUSE, which is not exhaustive, it
should be either removed or add any number of accompanying subtype(s) along with
OTHER.
4.2 Documenting Business Rules
Vocabulary: structural business rule, business rule, procedural business rule
Try It / Solve It:
1. – Structural rules:
1) Each patient must have a unique number
2) Patients are allocated to rooms in the buildings
3) Each room is identified by a room number along with its building number
4) Each prescription is associated with a patient
5) The issued date of each prescription is tracked
6) The physicians in our hospital must have a license number, and each physician is
identified by a unique ID
7) The physicians are arranged and assigned to patients
8) The Drugs have their own specific name, code, and cost
9) Each type of drug has a label that describe them more
10) Drug labels have distinct numbers and information about the dosage, treatment
duration, and expiration date.
– Procedural rules:
1) Patients must complete administration before they can be checked by physicians
2) Patients must be checked by physicians before they can be allocated to a room
3) Patients must be checked by physicians before then can have a prescription
4) Patients must give their prescription before they can have drugs given to them
5) Patients will have their drugs when they complete the payment
– Programmatic rules:
1) A room must have a capacity to take patients; If a room is fully taken, then no patient
can be assigned to it.
2) The drugs that are near their expiration date have to be disposed
2. – The business rules are:
a. Each Movie in the inventory must have an inventory ID, title, producer, director, and
release date.
b. The Movies must be associated with their starring actors.
c. There must be a list of all the actors that star in any movie in the inventory along with
the information of their “real” birth name and date of birth.
3. – The business rules are:
a. Each customer has a credit counter
b. If a customer has a good credit, then they may be associated with the title of club
member and have the privilege making a rent.
c. Each club member must record their first and last name, current phone number,
current address, and will be given a membership number.
d. Each customer is associated with multiple video tapes that they have currently
checked out.
e. Each video tape must have a tape number and the title of the movie contained in it.
f. A club member may be associated with the video tape(s) that they currently rent.

You might also like