Sample Solution: Step 1
Sample Solution: Step 1
Sample Solution: Step 1
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.
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
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.
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.
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.
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
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.
Step 4 of 5
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