Case study: Modeling a clinic appointment system with Visual Paradigm

Read this post in:

Executive summary

A community clinic wants to replace phone-and-spreadsheet appointment booking with a system patients and staff can use to find, book, change, and cancel appointments. The clinic needs clear requirements for a first release, a model developers can refine, and documentation that staff and reviewers can understand.

Case study: Modeling a clinic appointment system with Visual Paradigm

This case study uses four parts of the Visual Paradigm ecosystem:

The example is illustrative. It does not assume a particular clinic’s policies, legal obligations, or technical architecture.

1. Project brief

System name: Clinic Appointment Systemuml
Purpose: Enable patients and clinic staff to coordinate appointments and receive status updates.
Primary audience: Patients, reception staff, clinic managers, product and engineering teams.
Initial release goal: Support appointment booking and basic appointment management.

Scope boundary

The Clinic Appointment System is responsible for:

  • Showing appointment availability.

  • Booking, rescheduling, and canceling appointments.

  • Maintaining appointment status.

  • Sending appointment confirmations and reminders.

  • Allowing staff to manage schedules and appointment records.

External services remain outside the boundary:

  • The Notification Service sends messages.

  • A Patient provides information and manages their appointments.

  • A Receptionist assists patients and manages bookings.

  • A Clinician reviews their schedule and appointment details.

The boundary helps distinguish the system’s responsibilities from those of people and external services. Actors represent roles or external entities that interact with the system; they are not internal software components.

Assumptions to validate with clinic stakeholders

  1. Patients can book either through self-service or with receptionist assistance.

  2. The system displays only appointment slots approved for booking.

  3. A booking is confirmed only after the system successfully reserves the slot.

  4. Reminder timing and delivery channels are clinic policies still to be agreed.

  5. The first release does not define clinical triage, diagnosis, or treatment.

These are working assumptions—not requirements until the clinic confirms them.

2. Stakeholders and actors

Actor Role in the system
Patient Finds, books, reschedules, or cancels an appointment
Receptionist Books or changes appointments on a patient’s behalf and maintains appointment records
Clinician Views their schedule and relevant appointment details
Notification Service Sends confirmations, reminders, and cancellation notices

A person can play different roles in different contexts. The model should use roles that clarify the interaction, rather than naming individual staff members. Visual Paradigm’s use case guidance also treats actors as potentially human, software, hardware, or time-triggered entities.

3. Use case inventory

ID Use case Main actor Purpose
UC-01 Find Available Appointments Patient, Receptionist Find bookable slots matching the request
UC-02 Book Appointment Patient, Receptionist Reserve a selected slot
UC-03 Reschedule Appointment Patient, Receptionist Move an existing appointment to another slot
UC-04 Cancel Appointment Patient, Receptionist Cancel an existing appointment
UC-05 View Appointment Schedule Clinician, Receptionist Review appointments for a time period
UC-06 Maintain Clinic Schedule Receptionist Add or change the slots available for booking
UC-07 Send Appointment Notification Notification Service Deliver a confirmation, reminder, or cancellation notice

These names express actor goals and outcomes. They deliberately avoid low-level interface actions such as “Click Calendar” or “Enter Phone Number.” A use case diagram should focus on what the system does for actors, not the implementation details.

4. High-level use case diagram

The following PlantUML is a working diagram source. It can be entered in VPasCode for rendering and refinement, or used as a reference while constructing the UML model in Visual Paradigm Desktop.

@startuml
left to right direction

actor Patient
actor Receptionist
actor Clinician
actor "Notification Service" as Notification

rectangle "Clinic Appointment System" {
  usecase "Find Available\nAppointments" as UC1
  usecase "Book Appointment" as UC2
  usecase "Reschedule Appointment" as UC3
  usecase "Cancel Appointment" as UC4
  usecase "View Appointment\nSchedule" as UC5
  usecase "Maintain Clinic\nSchedule" as UC6
  usecase "Send Appointment\nNotification" as UC7
}

Patient -- UC1
Patient -- UC2
Patient -- UC3
Patient -- UC4

Receptionist -- UC1
Receptionist -- UC2
Receptionist -- UC3
Receptionist -- UC4
Receptionist -- UC5
Receptionist -- UC6

Clinician -- UC5

Notification -- UC7

UC2 ..> UC1 : <<include>>
UC3 ..> UC1 : <<include>>
UC2 ..> UC7 : <<include>>

@enduml

 

The <<include>> relationships above are deliberate modeling choices: booking and rescheduling require finding an available appointment; booking also requires a notification step in this version of the example. If notification delivery is asynchronous or not necessary to complete the booking, the team should represent that differently—for example, as a separate optional or follow-up behavior rather than implying it is a blocking part of the booking.

In UML, an include arrow points from the base use case to the included use case. Use include for required behavior; use extend for conditional behavior added under a stated condition. Neither relationship is a way to show chronological order.

5. Detailed specification: UC-02 Book Appointment

Primary actor: Patient
Supporting actors: Receptionist, Notification Service
Trigger: Patient chooses to book an appointment, or a receptionist begins a booking on the patient’s behalf.

Preconditions

  • The clinic has published bookable appointment slots.

  • The patient has provided the information required by clinic policy.

  • The system is available to accept booking requests.

Main success flow

  1. Patient requests appointments matching their preferred date range and appointment type.

  2. System displays matching available slots.

  3. Patient selects a slot.

  4. System checks that the slot is still available.

  5. System collects or confirms the information required to make the booking.

  6. Patient reviews and submits the request.

  7. System reserves the slot and records the appointment.

  8. System displays the appointment details and confirmation status.

  9. System requests a confirmation notification.

  10. Notification Service reports whether the notification was accepted for delivery.

Alternative flows

A1: No matching slots are available

  1. System informs the patient that no matching slots were found.

  2. System offers available alternatives, such as a different date range or appointment type, if clinic policy permits.

  3. Patient changes the search or ends the interaction.

A2: Slot is taken before confirmation

  1. System detects that the selected slot is no longer available.

  2. System informs the patient that the slot cannot be booked.

  3. System presents updated availability.

  4. Patient selects another slot or ends the interaction.

A3: Receptionist books for a patient

  1. Receptionist provides the patient’s identifying and appointment information.

  2. System validates the required information.

  3. The flow resumes at step 2 of the main success flow.

Exception flow

E1: Notification service is unavailable

  1. System records the appointment and its confirmed status if the booking itself succeeded.

  2. System records that the notification was not delivered or is pending retry.

  3. System displays the appointment details so the patient or receptionist can confirm them through the system.

This exception makes the system behavior explicit: inability to send a message does not silently undo an otherwise successful booking.

Postconditions

On success

  • The appointment is recorded.

  • The slot is no longer available for another booking.

  • The system displays a confirmation state.

  • Notification status is recorded separately from appointment status.

On failure

  • No appointment is presented as confirmed unless the slot was successfully reserved.

  • The patient can retry, choose another slot, or leave the flow.

Business rules to confirm

  • Which appointment types can be booked online?

  • What information is required to identify a patient?

  • How far in advance can an appointment be booked?

  • Are there limits on changing or canceling an appointment?

  • What happens when two users request the same slot at nearly the same time?

  • Which notification channels and retry rules apply?

A use case specification can include flows, preconditions, postconditions, requirements, test plans, and references. Visual Paradigm Desktop’s use case details feature supports documenting these types of information and linking requirements or related diagrams.

6. AI-assisted modeling workflow

AI is most useful here as a drafting and review aid—not as the authority on clinic policy.

Step 1: Generate a first draft

In the Use Case Modeling Studio, enter the system name, purpose, audience, and an initial goal such as:

“A patient books an available clinic appointment, receives confirmation, and can review the appointment details.”

The studio can produce a structured description with preconditions, postconditions, and flows. It can also generate use case diagrams and supporting activity, sequence, class, and ER diagrams, plus test cases and reports.

Step 2: Compare the draft against the project brief

The analyst and clinic stakeholders should check:

  • Are the actors genuine external roles or systems?

  • Does each use case express a real goal?

  • Are clinic policies being invented by the AI?

  • Are failure cases and alternatives present?

  • Does the booking outcome clearly distinguish “requested,” “reserved,” and “confirmed”?

  • Are external service responsibilities modeled outside the system boundary?

Step 3: Ask AI focused questions

Instead of asking for a whole system redesign, use narrow requests such as:

  • “List missing failure paths for booking an appointment; do not invent clinic policy.”

  • “Identify ambiguous terms in this flow.”

  • “Draft test scenarios from the alternative flows.”

  • “Check whether each use case name describes an actor goal.”

Keep the AI’s proposed changes only when the project team can justify them from stakeholder input or an agreed requirement.

Step 4: Validate generated diagrams and tests

AI-generated diagrams and test cases can expose gaps, but they may also misinterpret the narrative. Review them against the approved specification. Visual Paradigm describes its studio as generating test cases from use case descriptions and providing an editor to manage them.

7. Modeling in Visual Paradigm Desktop

Use Desktop as the project’s formal UML model and requirements repository:

  1. Create a project and add a Use Case Diagram for the Clinic Appointment System.

  2. Add the system boundary, actors, use cases, and associations.

  3. Add only those include and extend relationships whose semantics are justified.

  4. Open use case details for UC-02 and enter its flows, preconditions, postconditions, assumptions, and test plan.

  5. Link the use case to related requirements and supporting diagrams where appropriate.

  6. Add an activity diagram for the booking flow if the team needs to examine decisions and alternate paths.

  7. Review the model with business stakeholders before using it as a development baseline.

Visual Paradigm’s documentation explains that use case details can hold event flows, requirements, test plans, and related references, and that use case diagrams can be elaborated with sub-diagrams.

8. Refining the diagram in VPasCode

VPasCode is useful when the team wants a text-first diagram workflow, a quick preview, or a diagram definition that can be reviewed as text. It supports diagram syntaxes such as PlantUML, Mermaid, D2, and Graphviz, with live rendering; AI features can help generate or modify diagram code, subject to the selected edition and feature availability.

A practical sequence is:

  1. Paste the PlantUML example into VPasCode.

  2. Check that the rendered boundary, actors, labels, and arrows communicate the intended model.

  3. Adjust layout and wording in the source.

  4. Use AI modification for a targeted change, such as adding “Clinic Manager” and “Approve Schedule,” if that role and goal have been confirmed.

  5. Review the generated source and preview together; correct any relationship directions or labels that are wrong.

  6. Save the diagram source with the project’s agreed naming and revision conventions.

  7. Send the approved diagram to the OpenDocs Pipeline if that integration is available in the team’s edition.

VPasCode’s ecosystem documentation describes sending a finished diagram to OpenDocs and inserting it into a document through the Pipeline. Sending an asset to the Pipeline does not necessarily place it automatically in a page; the document editor must insert it.

9. Publishing the case study in OpenDocs

OpenDocs is the publication and knowledge-sharing layer for the agreed model. Build a page that gives readers the context they need, not just a diagram.

Suggested OpenDocs page structure

  1. Overview — system purpose, project status, and audience.

  2. Scope and boundary — included responsibilities and external systems.

  3. Actors — roles, responsibilities, and any unresolved questions.

  4. Use case inventory — identifiers, names, actors, and status.

  5. Use case specifications — UC-02 and other detailed cases.

  6. Diagrams — the approved high-level diagram and relevant behavior diagrams.

  7. Business rules and assumptions — confirmed policies versus open decisions.

  8. Test scenarios — scenarios mapped back to flows and requirements.

  9. Change notes — what changed, when, and why.

Send the approved VPasCode diagram through the Pipeline, insert it into the appropriate OpenDocs page, and place a short explanation beside it. When the model changes, revise the source, render and review it again, then replace or update the published artifact so the page does not retain an obsolete version.

10. Sample acceptance tests

ID Scenario Expected result
AT-01 Patient books a slot that remains available Appointment is recorded, slot is reserved, and confirmation status is shown
AT-02 Patient searches with no matching slots System reports no matching availability and does not create an appointment
AT-03 Another booking takes the selected slot first System rejects the stale selection and presents current availability
AT-04 Notification service is unavailable after booking Appointment remains recorded if reservation succeeded; notification status is shown separately
AT-05 Receptionist books for a patient System records the appointment using the receptionist-assisted path
AT-06 Patient requests a reschedule System requires an available replacement slot before changing the existing appointment

These are examples, not a complete test plan. Stakeholders should confirm expected behavior, especially around concurrent slot requests, identity checks, and clinic-specific cancellation rules.

11. Deliverables and ownership

Deliverable Primary owner Tooling
Scope, actor list, and use case inventory Business analyst / product owner Desktop; AI-assisted drafting
Formal UML model and use case details Analyst / systems designer Visual Paradigm Desktop
Text-based diagram source and rendered preview Analyst / developer VPasCode
Published project narrative and approved visuals Analyst / technical writer OpenDocs
Reviewed scenarios and acceptance criteria QA and product team Desktop, AI-assisted test drafting, OpenDocs

The Desktop project should be treated as the structured model; the VPasCode source is an alternative or complementary text-based diagram artifact; OpenDocs is the readable project publication. Teams should agree which copy is authoritative for each artifact and how changes are synchronized.

12. Definition of done

The case study is ready for handoff when:

  • The system boundary and external actors are agreed.

  • Each top-level use case has a clear actor goal and outcome.

  • UC-02 covers the main path, meaningful alternatives, and relevant exceptions.

  • Business rules and unresolved assumptions are visibly separated.

  • include and extend are used only where their UML meanings fit.

  • Generated AI content has been reviewed and edited by accountable people.

  • Tests cover the important flows and expected outcomes.

  • Desktop model, VPasCode diagram, and OpenDocs page are consistent.

  • A named owner and update procedure exist for each deliverable.

This combined workflow uses AI to accelerate the first draft, Desktop to maintain a structured model, VPasCode to refine text-based diagrams, and OpenDocs to communicate the reviewed result. The key control is human validation at each transition: generated artifacts are proposals until the clinic and delivery team accept them.

Leave a Reply