๐Ÿฅ OpenClinic AI Practice Suite

Official User Manual
๐Ÿ”

1. System Architecture & Practice Operations

Enterprise OpenClinic AI Architecture, Data Flow, and Technology Foundations.

OpenClinic AI is an enterprise, cloud-native practice management suite designed for multi-provider dental practices, oral surgery clinics, and DSO networks. It bridges modern Web UI interfaces, high-performance REST APIs, MariaDB relational persistence, and integrated AI clinical intelligence.

๐Ÿ’ก
Core Ecosystem Architecture:
  • Frontend: Modern vanilla JavaScript, reactive CSS design system, responsive operatory viewports.
  • Backend Gateway: FastAPI (Python 3.10) with asynchronous ASGI worker threads, Pydantic DTO validation, and Starlette routing.
  • Database Persistence: MariaDB Relational Database with real-time transactional integrity across appointments, ledgers, and clinical records.
  • Email Dispatch Engine: Brevo HTTPS API with automated STARTTLS Port 587 / 465 fallback for clinical reports, OTP verification, and patient statements.
Role Permissions & Access Scope Primary Modules Available
Administrator (Admin) Unrestricted access across all operational, clinical, billing, and system preferences. Patients, Appointments, Treatment Plans, Ledger, Perio/Chart, Setup, Test Suite.
Dentist / Provider Full clinical access to patient charts, prescriptions, treatment plans, and notes. Appointments, Tooth Chart, Treatment Plans, Medical History, Clinical Reports.
Hygienist / Assistant Clinical charting, perio charting, medical safety register updates, and vitals. Appointments, Medical History, Perio Chart, Documents.
Billing Specialist Ledger entries, insurance claims, adjustments, payments, and financial statements. Account Ledger, Insurance, Claims, Statements & Billing Email Dispatch.
Patient (Portal User) Restricted self-service view to personal profile, upcoming appointments, and statements. Personal Portal Hub, Treatment Plan Review, Statement Viewer, Appointment Request.

2. Authentication, User Switcher & Password Security

Free-text credential login, Role-Based Access Control, and automated 6-Digit Email OTP password recovery.

2.1 Free-Text Credentials Login

The system enforces strict zero-leakage login interfaces. Free-text inputs allow staff and patients to sign in securely without exposing registered user lists in dropdowns.

1
Open the Login Screen
Click Sign In / Lock in the top navigation bar or access /app/ directly.
2
Enter Username or Registered Email
Type your staff username (e.g., Admin) or your patient portal email (e.g., akshi.mishra.bui@gmail.com).
3
Submit Credentials
Enter your password and click Sign In. The system verifies SHA-256 password hashes against MariaDB.

2.2 Self-Service Password Reset via Email OTP

In case of a forgotten password, users can request a secure 6-digit one-time passcode delivered via transactional email:

๐Ÿ›ก๏ธ
OTP Security Guarantees: Passcodes are cryptographically generated 6-digit tokens valid for exactly 10 minutes. Each code can only be used once. Entering 3 consecutive invalid codes immediately invalidates the OTP session.
// Step 1: Dispatch OTP Request
POST /api/auth/request-otp
{"identifier": "user@example.com"}

// Step 2: Confirm OTP & Change Password
POST /api/auth/reset-password-otp
{"identifier": "user@example.com", "otp": "492817", "new_password": "NewSecurePassword@2026"}

3. Patient Directory & Registration Management

Search, filtering, full international address formats, phone formats, and instant patient switching.

The Patient Directory provides instant sub-second lookup across tens of thousands of records, indexing patient names, charts, phone numbers, and dates of birth.

3.1 International Address & Phone Number Compliance

OpenClinic AI natively accommodates international postal codes, provinces, states, and E.164 phone formats:

Field Supported International Format Validation Rule
Postal / ZIP Code US (90210), UK (SW1A 1AA), Canada (M5V 2T6), India (110001) Alphanumeric with optional spaces and hyphens (3-10 chars).
State / Province US States, Canadian Provinces (ON, BC), Indian States (Delhi, MH) Full name or 2-3 letter international standard ISO codes.
Telephone +1-555-0199, +44 20 7946 0991, +91 98765 43210 E.164 compliant with international country dialing prefixes.

4. Clinical Documentation & 1-Click Email Dispatch

Exporting comprehensive clinical records and delivering formatted statements via Brevo email.

Staff can generate, print, and instantly dispatch complete Clinical Care Summaries directly to the patient's registered email address with a single click:

1
Select Active Patient
Choose the target patient in the Directory or Patient Header banner.
2
Click "๐Ÿ“ง Send Clinical Report via Email"
Located in the Patient Profile Summary panel. The system prompts for email confirmation.
3
Automated Dispatch & Verification
The backend compiles an itemized clinical history (allergies, medical conditions, tooth chart procedures) into an email delivered via Brevo HTTPS API.
๐Ÿ’ก
Billing Statement Delivery: In the Account & Billing tab, clicking ๐Ÿ“ง Send Statement via Email automatically dispatches the latest balance ledger, insurance adjustments, and payment history to the patient.

5. Medical History & Safety Register

Active allergy monitoring, drug interaction alerts, chronic medical conditions, and emergency contacts.

Patient safety is paramount. When an allergy or chronic condition is added to a patient's chart, high-visibility visual badges appear in the top patient header across all operational screens.

โš ๏ธ
Critical Allergy Warning Protocol: Severe drug allergies (such as Penicillin, Latex, or Local Anesthetics) trigger red flashing indicator pills in the operatory header. When logging procedures or writing prescriptions, the system performs real-time contraindication cross-checking.

6. Appointments & Operatory Scheduling Grid

Multi-operatory visual scheduling, drag-and-drop bookings, appointment status transitions, and conflict detection.

The appointment module provides multi-column operatory grid views with color-coded status states:

  • Scheduled (Blue): Confirmed appointment ready for patient check-in.
  • In-Chair (Orange): Patient seated in operatory; doctor actively performing care.
  • Complete (Green): Procedure completed; ledger automatically updated with billing entries.
  • Broken / Cancelled (Red): Missed visit recorded for audit and recall tracking.

7. 3D Interactive Tooth Chart & Treatment Plans

Universal dental numbering, surface restoration charting, CDT procedure logging, and multi-phase treatment planning.

The interactive tooth chart supports the standard Universal Numbering System (Teeth 1 through 32 for permanent dentition, Letters A through T for primary dentition). Clinicians can click individual tooth surfaces (Mesial, Distal, Occlusal, Facial, Lingual) to log restorations, crowns, root canals, and extractions.

8. Invoice, Billing Ledger & Insurance Operations

Itemized ledger transactions, patient copays, primary/secondary insurance claims, write-offs, and statement generation.

The billing ledger offers a complete double-entry financial ledger:

  • Charges: Automatically posted upon procedure completion using ADA CDT code fee schedules.
  • Payments: Credit card, cash, check, or online patient portal payments.
  • Insurance Adjustments: Contractual write-offs and deductible tracking.
  • Statements: Generate itemized PDF billing statements or dispatch via 1-click email.

9. Dedicated Patient Self-Service Portal

Secure patient hub for viewing appointments, checking balances, reviewing clinical treatment plans, and updating demographics.

When a patient logs into /app/ using their registered email and portal password, the system automatically engages Patient Portal Mode. Practice administrative controls and other patients' records are strictly sequestered.

๐Ÿ“ฑ
Patient Features: Patients can inspect upcoming appointment times, view itemized treatment plans with patient portions, download historical billing statements, and initiate password resets securely.

10. System Setup & Administration

Practice preferences, staff account management, operatory configuration, and clinical fee schedule maintenance.

Accessible only by users with role Admin via the โš™๏ธ Setup tab. Administrators can manage practice hours, configure email SMTP credentials (Brevo), customize appointment colors, and maintain provider operatory schedules.

11. Automated Testing & Live Quality Suite

Accessing the executive board audit dashboard, running live viewport playback, and launching headed desktop reproduction.

OpenClinic AI features an automated test suite comprising 33 end-to-end verified test scenarios across all 10 clinical modules.

11.1 Accessing the Quality Dashboard

The test dashboard is deployed and accessible at:

https://clinic-production-43c3.up.railway.app/test/

11.2 Reproducing Scenarios Live in Desktop Chromium

To watch any test scenario execute live on your computer with human-observable pacing (slow motion 900ms):

# Example: Run Staff Authentication Test Live
python run_live_scenario_playwright.py --test TC-AUTH-001 --slowmo 900

# Or double click on Windows:
run_live_test.bat TC-AUTH-001

12. Frequently Asked Questions & Troubleshooting

Instant answers to common operational questions and technical resolution steps.

Q: How do I reset a forgotten password if I don't receive the OTP email? โž•
Check your spam/junk folder. Ensure your email matches your registered practice profile. If using an enterprise domain, verify that Brevo IP addresses (Port 587/465) are whitelisted. Practice administrators can also reset your password directly in Setup > User Accounts.
Q: How do I change the speed of the Live Test Runner? โž•
In the Live Test Runner header (/test/live_test_runner.html), use the โฑ๏ธ PACING dropdown selector to toggle between:
  • ๐Ÿข Slow-Mo (1.5s / step): Best for demonstrations and detailed inspection.
  • โฑ๏ธ Realistic Live (850ms / step): Natural human-paced execution.
  • โšก Fast (400ms / step): Rapid step validation.
  • ๐Ÿš€ Instant (50ms): Immediate throughput execution.
Q: What is the difference between "Live Test Runner" and "Desktop Chrome"? โž•
โ–ถ๏ธ Live Test Runner: Runs directly inside your browser using an embedded live viewport and streaming step console. Works in any browser without installing Python.

๐Ÿ–ฅ๏ธ Desktop Chrome: Spawns a physical, visible Chromium browser window on your local PC via Playwright, controlling the real mouse and keyboard with slow-motion delay.
Q: Can international patients receive statements and clinical reports? โž•
Yes! OpenClinic AI supports international email delivery via Brevo across 190+ countries, as well as international postal codes, provinces, and phone number formatting.
Q: Where can I download the certified Board Audit Spreadsheet? โž•
Click ๐Ÿ“Š Download Excel (.xlsx) in the header of the Quality Dashboard, or directly visit OpenClinic_Board_Test_Cases_and_Results.xlsx.