Introduction
This document outlines the consultation process flow involving a patient, a tenant healthcare platform, Tenang API, and Nesya (a consultation interface). The goal is to automate the user journey from registration to receiving post-consultation summaries.

Actors (Swimlanes)
| Actor | Description |
|---|---|
| Patient | The end-user seeking consultation |
| Tenant Platform | The partner platform handling patient registration and payment |
| Tenang API | Backend service handling consultation link generation and flow |
| Nesya | Consultation interface (likely AI or human-based communication) |
Step-by-Step Workflow
1. Complete Registration & Payment
- From: Patient ➝ Tenant Platform
- Action: Patient fills out a registration form and completes the payment process for the consultation.
2. Generate Consultation Link
- From: Tenant Platform ➝ Tenang API
- Action: The platform sends a request to the backend to generate a unique consultation session link.
3. Return Unique Consultation Link
- From: Tenang API ➝ Tenant Platform
- Action: Tenang API returns a unique link associated with the consultation session.
4. Redirect to Consultation Link
- From: Tenant Platform ➝ Patient
- Action: The patient is redirected to the provided consultation URL.
5. Start Consultation
- From: Tenang API ➝ Nesya
- Action: Upon accessing the link, the consultation session is initiated through Nesya.
6. Send First Message & Start Timer
- From: Nesya ➝ Tenang API ➝ Patient
- Action: Nesya sends a greeting or opening message; the consultation timer is started.
7. Consultation Ended
- Implicit Action
- Description: The session ends either after time expires or based on user/system action.
8. Send Detailed Consultation
- From: Nesya ➝ Tenang API
- Action: Nesya sends the full transcript or session data to Tenang API for storage/reporting.
9. Display Consultation Summary
- From: Tenang API ➝ Tenant Platform ➝ Patient
- Action: A summarized consultation report is displayed to the patient for their records.
Information Flow
-
Frontend (Patient & Tenant Platform):
- Manages registration, payment, session redirection, and summary display.
-
Backend (Tenang API):
- Handles consultation session lifecycle, API routing, and data hand-off between actors.
-
Consultation Interface (Nesya):
- Engages the patient, tracks time, and returns session results to the backend.
Implicit Decision Points
- Payment Verification: Ensures payment is valid before link is generated.
- Session Completion: Triggers when the consultation time expires or is ended manually.
Objective
To provide an integrated, seamless consultation experience for patients by linking a tenant healthcare platform to the Tenang API and Nesya consultation interface—automating everything from registration to post-session reporting.