You are on page 1of 1

Implement the state machine diagram using state pattern and develop an activity diagram

Dependable Pharmaceutical Order Management System


The Dependable Pharmaceutical Inc. is a private held company that provides pharmacy services to
healthcare delivery organizations (such as small hospitals and nursing homes) that are too small to have
their own in-house pharmacy. As a designer, you are asked to design a new order management system for
Dependable to manage its orders, clients, patients, and drugs.
The new online system will allow personnel at each client organization submit orders online. An order
consists of one or more prescriptions, each for one specific drug and for one specific patient. Each patient
has many prescriptions.
Prescriptions contain basic information such as ID, date of order, drug, unit of dosage (pill, teaspoon,
suppository), size of dosage (milligrams, number of teaspoons), frequency or period of dosage, and
special considerations. Patient information such as name, phone number and address are recorded in this
system.
The system also has basic data about all drugs. Each drug has generic information, such as name,
chemical, and manufacturer.
The order is processed as a batch. At the start of each 12-hour shift, the system generates and prints case
manifests for each client organization automatically. A case manifest identifies each patient and the drugs
he or she has been prescribed according to each client organization. The shift supervisor assigns the case
manifests to pharmacists to fill the orders. The shift supervisor also recorded the assignments in the
system.
System Requirements:
1. When the client organization personnel (doctor, nurse or technician) enters the order into the
system, the order information is recorded and are sent to Dependable at the same time.
2. The client organization personal can add and update patient information in the system.
3. Case manifests are printed at the start of each shift. A case manifest is a group of orders that are
submitted from one client organization. The orders submitted after the case manifest is generated
will be grouped into the next case manifest.
4. After the pharmacist has assembled an order, the pharmacist records the order fulfillment
information (such as the actual quantity of medication, special comments, etc.). A record is also
maintained of which pharmacist fulfilled the order.
5. The system does not include billing, payments, or insurance processing. The information of
physical delivery of the drugs is not included in the system either.
Tasks:

1. Implement the state machine diagram for an order object that you have created in
project phase V using the state pattern approach. You state pattern classes do not need to
contain attributes or operations.
2. Develop an activity diagram for the order processing process. The activity diagram might
include one or more use cases.

You might also like