0% found this document useful (0 votes)
27 views

Kartik Oosd Assignment 2

This document contains a student's answers to an assignment on modeling a doctor appointment system. It includes a use case diagram with 5 use cases: schedule appointment, cancel appointment, view appointments, manage appointments, and review appointments. It also includes an activity diagram showing the process flow for each use case. Finally, it outlines a state diagram with 3 states - Not Scheduled, Scheduled, and In Progress - and transitions between them for scheduling, canceling, arriving, and completing an appointment.

Uploaded by

Kartik Choudhary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Kartik Oosd Assignment 2

This document contains a student's answers to an assignment on modeling a doctor appointment system. It includes a use case diagram with 5 use cases: schedule appointment, cancel appointment, view appointments, manage appointments, and review appointments. It also includes an activity diagram showing the process flow for each use case. Finally, it outlines a state diagram with 3 states - Not Scheduled, Scheduled, and In Progress - and transitions between them for scheduling, canceling, arriving, and completing an appointment.

Uploaded by

Kartik Choudhary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Name-KARTIK

2100290110071
OOSD ASSIGNMENT 2

AIM- For the problem chosen by you in Assignment 1, draw the


following with explanation a. USE CASE Diagram b. Activity Diagram c.
State Diagram
ANSWER-
A) USE CASE DIAGRAM-
Use cases for the Doctor Appointment System include:

Schedule Appointment: The patient can request an appointment with a doctor.


Cancel Appointment: The patient can cancel a previously scheduled
appointment.
View Appointments: Both doctors and patients can view their upcoming and
past appointments.
Manage Appointments: Doctors can manage their appointment schedules.
Review Appointments: Doctors and patients can review the details of past
appointments.
B)ACTIVITY DIAGRAM-
In this activity diagram:

The process starts, and the system prompts the user to select whether they
are a doctor or a patient.
Based on the user's selection, they are prompted to choose one of the
following actions: Schedule Appointment, Cancel Appointment, View
Appointments, Manage Appointments, or Review Appointments.
Depending on the selected action:
For "Schedule Appointment," the user is guided through the steps of inputting
appointment details, checking availability, and confirming the appointment.
For "Cancel Appointment," the user is prompted to choose the appointment to
cancel and confirm the cancellation.
For "View Appointments," the system displays the user's appointments.
For "Manage Appointments," the user can edit existing appointments or add
availability slots.
For "Review Appointments," the user can select an appointment for review,
and the system displays appointment details.
The process ends after the selected action has been performed, and the
appointment is processed.
C)STATE DIAGRAM-
In this simplified state diagram:

"Not Scheduled" represents the initial state when an appointment is not yet
scheduled.

Transitions:

"Schedule Appt": Move from "Not Scheduled" to "Scheduled" when an


appointment is scheduled.
"Scheduled" represents the state where an appointment is scheduled but has
not started yet.

Transitions:

"Cancel Appt": Move from "Scheduled" to "Not Scheduled" when the


appointment is canceled.
"Arrive": Move from "Scheduled" to "In Progress" when the patient arrives for
the appointment.
"In Progress" represents the state where the appointment is currently taking
place.

Transitions:

"Complete": Move from "In Progress" to "Completed" when the appointment


is completed.

You might also like