Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

Chapter 6

New Century Health Clinic offers preventive medicine and traditional medical care. In your role as an
IT consultant, you will help New Century develop a new information system.

Background

You began the systems analysis phase at New Century Health Clinic by completing a series of
interviews, reviewing existing reports, and observing office operations. Then, in Chapter 5, you
acquired more information and developed a set of DFDs, process descriptions, and a data dictionary.

Now you decide to practice the object modeling skills you learned in this chapter. Before you begin,
go back to Chapter 5 and review the New Century background material and fact-finding results. Also,
your instructor may provide you with a complete set of interview summaries that you can use to
perform your assignments. Then complete the following tasks.

Assignments

1. Identify possible use cases and actors, and create a use case diagram for the New Century Health
Clinic system.

2. Select one of the use cases and create a class diagram.

3. Create a sequence diagram for the use case that you selected.

4. Create a state transition diagram that describes typical patient states and how they change based on
specific actions and events.

SAMPLE SOLUTION
Step 1 of 5

2. Use case diagram of New Century Health Clinic:


This use case diagram is for Remind patient and make or change appointment use cases. In this use
case diagram, there are two actors which are Patient and office staff. There are two use cases which
are Remind patient and make or change appointment.

In clinic system, Patient makes appointment by sending appointment request. The office staff checks
the availability of the appointment and initiates a reminder for patient to notify him about the
appointment.

Use cases of new century health clinic are as shown:

. Gunakan diagram kasus Klinik Kesehatan New Century:


Diagram use case ini adalah untuk Ingatkan pasien dan membuat atau mengubah janji kasus
penggunaan. Dalam penggunaan diagram kasus, ada dua aktor yang Pasien dan staf kantor. Ada dua
kasus penggunaan yang Ingatkan pasien dan membuat atau mengubah janji.
Dalam sistem klinik, pasien membuat janji dengan mengirimkan permintaan janji. Staf kantor
memeriksa ketersediaan pengangkatan dan memulai pengingat bagi pasien untuk memberitahu dia
tentang janji.
Gunakan kasus klinik kesehatan abad baru seperti yang ditunjukkan
Step 2 of 5

3. Class diagram of change appointment use case:


Class diagram is used for representing the relationship between object and class of a use case. Class
diagram is a logical model which includes data objects, code modules and other system components.

A class is represented by rectangle and the name of the class is on top. Lines are used for showing
relationship between classes. In class diagram there are three compartment first compartment shows
the class name, another compartment shows the attribute and third compartment shows the methods.

This class diagram is for make or change appointment use case.

In this class diagram there are four classes which are office staff, patient, appointment and medical
staff. A customer can request zero or many appointments to office staff. The office staff checks
availability for one or many appointments. The appointment can be notified to zero and many medical
officers.

Class diagram of a change appointment use case is as shown:

Langkah 2 dari 5
3. Class diagram kasus perubahan penggunaan janji:
Diagram kelas digunakan untuk mewakili hubungan antara objek dan kelas dari kasus penggunaan.
Diagram kelas adalah model logis yang meliputi objek data, modul kode dan komponen sistem
lainnya.
Sebuah kelas diwakili oleh persegi panjang dan nama kelas adalah di atas. Garis digunakan untuk
menunjukkan hubungan antara kelas. Dalam diagram kelas ada tiga kompartemen pertama
kompartemen menunjukkan nama class, kompartemen lain menunjukkan atribut dan kompartemen
ketiga menunjukkan metode.
Diagram kelas ini adalah untuk membuat atau perubahan penggunaan janji kasus.
Dalam diagram kelas ini ada empat kelas yang staf kantor, pasien, pengangkatan dan staf medis.
Pelanggan dapat meminta nol atau banyak janji untuk staf kantor. Staf kantor cek ketersediaan
untuk satu atau banyak janji. Penunjukan bisa diberitahu ke nol dan banyak petugas medis.
diagram kelas dari kasus penggunaan perubahan penunjukan seperti yang ditunjukkan:
Step 3 of 5

4. Sequence diagram of change appointment use case:


Sequence diagram is defined as a dynamic model for a use case which is used for showing the
interaction between classes for a particular time period. A sequence diagram includes message, time
of the message and the class. The vertical line linked to class is used for showing the lifespan of a
message.

This sequence diagram is for make or change appointment and reminds patient use cases. In this
sequence diagram there are four classes which are Patient, Office Staff, Appointment and Remind.

The Patient class will send a request appointment message to the office staff which in turn checks
availability of the appointment in appointment class.

If available then office staff will schedule an appointment and also tells the patient that the
appointment is available.

Then Patient will select office staff and request for a reminder. When the reminder time reached, then
the patient will be notified.

Sequence diagram of a change appointment use case is as shown:


Langkah 3 dari 5
4. Sequence diagram kasus perubahan penggunaan janji:
diagram urutan didefinisikan sebagai model dinamis untuk kasus penggunaan yang digunakan untuk
menunjukkan interaksi antara kelas untuk jangka waktu tertentu. Sebuah diagram urutan termasuk
pesan, waktu pesan dan kelas. Garis vertikal terkait dengan kelas digunakan untuk menunjukkan
umur dari pesan.
Diagram urutan ini adalah untuk membuat atau mengubah janji dan mengingatkan penggunaan
kasus pasien. Dalam diagram urutan ini ada empat kelas yang Pasien, Staf Kantor, Pengangkatan dan
Ingatkan.
Kelas Pasien akan mengirim pesan permintaan janji untuk staf kantor yang pada ketersediaan cek
pergantian penunjukan di kelas janji.
Jika tersedia maka staf kantor akan menjadwalkan janji dan juga memberitahu pasien bahwa janji
tersedia.
Kemudian Pasien akan memilih staf kantor dan meminta untuk pengingat. Ketika mencapai waktu
pengingat, maka pasien akan diberitahu.
Diagram urutan kasus penggunaan perubahan penunjukan seperti yang ditunjukkan:

Step 4 of 5

State transition diagram for patients:

State transition diagram is used for showing the change of object from one state to another by any
event affecting the object. Rounded rectangles are used for showing state. The lines are used for
showing direction and also for describing the events that cause an object to change its state.

This state transition diagram is for add patient use case. In this diagram there are three states which
are prospective, current and former. When a patient request first appointment, patient is added to
prospective state, when the appointment is accepted by the provider then patient should change his
state to current.

When patient is in current state there can be three situations which are as follows:
If the patient dies then his state will change to former.

If the patient chooses another practice then his state is changed to former.

If the patient completes his treatment then his state will change to former.

Langkah 4 dari 5
Negara diagram transisi untuk pasien:
Negara diagram transisi digunakan untuk menunjukkan perubahan objek dari satu negara ke negara
lain dengan setiap peristiwa yang mempengaruhi objek. persegi panjang bulat digunakan untuk
menunjukkan negara. Garis digunakan untuk menunjukkan arah dan juga untuk menggambarkan
peristiwa yang menyebabkan objek untuk mengubah keadaan.
state transition diagram ini adalah untuk kasus add digunakan pasien. Dalam diagram ini ada tiga
negara yang prospektif, saat ini dan mantan. Ketika permintaan pasien janji pertama, pasien akan
ditambahkan ke calon negara, ketika janji diterima oleh penyedia maka pasien harus mengubah
keadaan untuk saat ini.
Ketika pasien dalam keadaan saat ini bisa ada tiga situasi yang adalah sebagai berikut:
Jika pasien meninggal maka negara itu akan berubah menjadi mantan.
Jika pasien memilih praktek lain maka negara itu berubah menjadi mantan.
Jika pasien menyelesaikan pengobatan nya maka negara itu akan berubah menjadi mantan.
Langkah 5 dari 5

Step 5 of 5

State transition diagram is as shown:


Negara diagram transisi seperti yang ditunjukkan:

You might also like