Al-Riyadh Psychiatric & Recovery Medical Center — Saudi Arabia

Al-Riyadh Psychiatric EMR & Telehealth Suite

The specialized clinic required a dedicated psychiatric & addiction EMR with integrated HIPAA-compliant video consultations (no third-party apps like Zoom), 7 role-isolated portals, and sub-200ms medical chart retrieval.

React 19.NET 9MediatR CQRSDaily.co WebRTCSignalRSQL ServerHangfireZustand
Al-Riyadh Psychiatric EMR & Telehealth Suite

Operational Benchmarks

Measurable impact achieved in production.

7 بوابات

Isolated Portals

< 200ms

Record Retrieval Speed

100%

Encrypted Sessions

100%

Paperless Operation

Operational Challenges

Critical bottlenecks prior to system deployment

  • Strict medical data privacy and audit compliance.
  • Coordinating workflows across 7 distinct user roles seamlessly.
  • High-definition, browser-native encrypted telemedicine video rooms.
  • Instantaneous medical record querying under concurrent clinic load.

Operational Transformation

Direct before vs after production benchmarks

Patient Record Management

BeforePaper records, prone to loss
NowSearchable, encrypted digital chart

Remote Consultations

BeforeUnavailable / Unsecure apps
NowOne-click secure WebRTC clinic

Reminders & Triage

BeforeManual calls, high no-show rate
NowAutomated alerts cut no-shows by 50%

Architectural Decisions & Trade-offs

Engineered design choices, technical rationale, and evaluated trade-offs

01

Implemented CQRS with MediatR in .NET 9

Architectural Rationale:

Separated heavy read queries from clinical state updates, ensuring blazing speed and zero concurrency collisions.

Calculated Trade-off:Increased initial boilerplate code for commands and query handlers.
02

Integrated Daily.co WebRTC Infrastructure

Architectural Rationale:

Provided browser-native, encrypted video rooms with zero patient installation friction.

Calculated Trade-off:Variable monthly SaaS consumption fees based on consultation minutes.

Data Flow & Integration Pipeline

Live visual pipeline demonstrating real-time data exchange across services, AI engines, and databases.

B2C Web Portal
Global GDS APIs
WhatsApp Bot
Central Core API
Vector DB (RAG)
Background Tasks
Relational Database
Live Subsystems & Interfaces

Production Interfaces & Modules

Comprehensive architectural walkthrough of live dashboards, portals, and background engines.

Next.js 14 / Tailwind CSS
Al-Ryadh Psychiatric Center Hero & Landing UI
Inspect Full Resolution

Al-Ryadh Psychiatric Center Hero & Landing UI

Public Landing Page

Landing page hero section highlighting clinic branding, comprehensive navigation bar, CTA booking triggers, and direct WhatsApp support integration.

React / Modern Typography
Medical Director's Address & Clinical Philosophy
Inspect Full Resolution

Medical Director's Address & Clinical Philosophy

Public Landing Page

About section presenting Senior Consultant Psychiatrist Dr. Ahmed Al-Ghazawi's medical address, clinic history since 2005, and therapeutic values.

Responsive Grid / Tailwind CSS
Advanced Psychiatric & Psychotherapy Services Catalog
Inspect Full Resolution

Advanced Psychiatric & Psychotherapy Services Catalog

Public Landing Page

Specialized clinical services showcase detailing CBT therapy, ECT brain rhythm modulation sessions, and advanced in-clinic psychiatric pharmacotherapy.

Multi-Step Stepper / State Machine
Patient Booking Wizard - Step 1: Session Type Selection
Inspect Full Resolution

Patient Booking Wizard - Step 1: Session Type Selection

Patient Booking System

Step 1 of the 7-step appointment wizard allowing patients to choose between in-person clinic visits and encrypted online telehealth video sessions.

File Upload / CliQ Integration
Patient Booking Wizard - Step 7: CliQ Payment & Receipt Upload
Inspect Full Resolution

Patient Booking Wizard - Step 7: CliQ Payment & Receipt Upload

Patient Booking System

Final booking step displaying Jordanian CliQ instant banking payment handles and an upload dropzone for transaction receipt verification.

Next.js / Dashboard Layout
Patient Portal - Dashboard Overview & Quick Actions
Inspect Full Resolution

Patient Portal - Dashboard Overview & Quick Actions

Patient Portal

Patient self-service dashboard showing treatment timeline, completed visits, upcoming appointments, PDF medical reports download, and doctor chat.

Data Table / PDF Generator
Patient Portal - Appointments History & Clinical Reports
Inspect Full Resolution

Patient Portal - Appointments History & Clinical Reports

Patient Portal

History of past and scheduled clinical appointments with timestamps, doctor information, and single-click access to official consultation reports.

SignalR / WebSockets / Real-Time
Patient Portal - Real-Time Clinical Chat Drawer
Inspect Full Resolution

Patient Portal - Real-Time Clinical Chat Drawer

Real-Time Messaging

Encrypted real-time SignalR chat drawer enabling direct instant communication between the patient and clinic staff (physicians, nurses, reception).

Dark Mode UI / Financial Analytics
Admin ERP Dashboard - KPI Analytics & Daily Clinic Queue
Inspect Full Resolution

Admin ERP Dashboard - KPI Analytics & Daily Clinic Queue

Admin ERP & Analytics

Dark-themed executive dashboard monitoring total appointments, active psychiatric patients, staff count, monthly revenue trends, and today's schedule.

Data Grid / Filter & Pagination
Admin Appointments Management & Scheduling Table
Inspect Full Resolution

Admin Appointments Management & Scheduling Table

Appointments Management

Centralized clinical appointment management grid with multi-status selectors, doctor/patient assignment, session mode (in-person/remote), and pricing.

User Management / Dynamic Cards
Admin Medical Staff Directory & Performance Management
Inspect Full Resolution

Admin Medical Staff Directory & Performance Management

Medical Staff Management

Medical directory displaying doctor profiles, psychiatric specialties, active case loads, clinical ratings, and individual revenue performance.

EMR Integration / Search & Filter
Admin Master Patient Registry & EMR Access List
Inspect Full Resolution

Admin Master Patient Registry & EMR Access List

Patient Registry & EMR

Master psychiatric patient registry tracking medical record IDs, contact emails, visit counts, and direct triggers to open the full EMR file.

RBAC / Role Management
Admin Staff Management & Dynamic RBAC Role Assignment
Inspect Full Resolution

Admin Staff Management & Dynamic RBAC Role Assignment

Access Control & Security

User administration console for assigning role-based access control (Admin, Doctor, Receptionist, Nurse) across all clinic employees.

Time-Based Access Control / Security Auditing
Admin Temporary EMR Access Delegation & Audit Trail
Inspect Full Resolution

Admin Temporary EMR Access Delegation & Audit Trail

Access Control & Security

Time-based access delegation system granting temporary patient EMR view/edit rights to nurses/receptionists with automated expiry audit logs.

Granular RBAC / Dynamic Permission Engine
Admin Granular RBAC Permissions Matrix Editor
Inspect Full Resolution

Admin Granular RBAC Permissions Matrix Editor

Access Control & Security

Detailed permission matrix configurator to define granular CRUD rights for each user role across patients, appointments, medical records, and billing.

Financial Analytics / Charting / PDF Export
Admin Advanced Financial Reports & Payment Analytics
Inspect Full Resolution

Admin Advanced Financial Reports & Payment Analytics

Financial & Billing System

Financial analytics dashboard showing monthly growth, daily takings, pending balances, payment breakdown (Cash vs POS), and PDF export capabilities.

Audit Trail / HIPAA Compliance Patterns
Admin Security & Compliance Activity Audit Log
Inspect Full Resolution

Admin Security & Compliance Activity Audit Log

Access Control & Security

Immutable audit logging engine tracking every user action, login events, and psychiatric record modifications to ensure regulatory compliance.

Settings Engine / Validation Form
Admin System Configuration & Clinic Licensing Settings
Inspect Full Resolution

Admin System Configuration & Clinic Licensing Settings

System Settings

System configuration panel managing clinic profile details, official medical licensing numbers, contact channels, notifications, and security rules.

Shift Management / Workflow Intake
Nurse & Reception Portal - Patient Intake & EMR Status
Inspect Full Resolution

Nurse & Reception Portal - Patient Intake & EMR Status

Nursing & Reception

Reception & nursing workstation monitoring active shift intake, EMR completion status (Filled vs Empty), and file lockdown access triggers.

Clinical Pharmacy / Dispensing Workflow
Nursing Station - Scheduled Medication Dispensing Queue
Inspect Full Resolution

Nursing Station - Scheduled Medication Dispensing Queue

Nursing & Clinical Operations

Nurse medication administration interface for verifying physician-prescribed drug regimens, dosages, frequency, and confirming dispensation.

POS & Cash Register / CSV & PDF Export
Reception Shift Billing & Cash Register Reconciliation
Inspect Full Resolution

Reception Shift Billing & Cash Register Reconciliation

Financial & Billing System

Daily cashier and shift settlement console for receptionists, calculating gross fees, discounts, net collections, with shift reset and export actions.

Financial Reporting / Date Range Filter
Reception Custom Period Revenue Calculator & Ledger
Inspect Full Resolution

Reception Custom Period Revenue Calculator & Ledger

Financial & Billing System

Date-range financial calculator showing aggregate session count, gross fees, discounts, net receipts, and a detailed transaction ledger.

EMR Core / Clinical Data Form
EMR Patient File - Basic Demographics & Vital Intake Form
Inspect Full Resolution

EMR Patient File - Basic Demographics & Vital Intake Form

Electronic Medical Records (EMR)

EMR demographic intake capturing national ID, vital signs (height, weight, blood group), emergency contacts, referral source, and education.

Specialized Psychiatric EMR Suite
EMR Clinical Psychiatric Suite - Modules & Diagnostic Workflow
Inspect Full Resolution

EMR Clinical Psychiatric Suite - Modules & Diagnostic Workflow

Electronic Medical Records (EMR)

Comprehensive psychiatric EMR workspace showcasing clinical tabs including Diagnostics, Psychometrics (GAD/PHQ), ECT Records, and Ketamine Sessions.

Clinical Psychometrics / Diagnostic Tool
EMR - Psychometric Scale & Assessment Scoring Modal
Inspect Full Resolution

EMR - Psychometric Scale & Assessment Scoring Modal

Clinical Psychometrics

Clinical psychometric evaluation modal for standard rating scales (PHQ-9, GAD-7, MMPI, Y-BOCS) with severity scoring and CBT notes.

Psychiatric Interviewing Rubric
EMR - Chief Complaint (C/C) & Psychiatric History (HPI)
Inspect Full Resolution

EMR - Chief Complaint (C/C) & Psychiatric History (HPI)

Electronic Medical Records (EMR)

Structured clinical intake form for capturing Chief Complaint (C/C), History of Present Illness (HPI), past psychiatric treatments, and drug side effects.

Patient Safety & Risk Protocol
EMR - Suicide Risk & Self-Harm Clinical Assessment Protocol
Inspect Full Resolution

EMR - Suicide Risk & Self-Harm Clinical Assessment Protocol

Risk Assessment & Patient Safety

Critical psychiatric safety assessment evaluating physiological biomarkers alongside death wishes, suicidal ideation, suicide planning, and self-harm history.

Digital Signatures / Clinical Governance
EMR - Consultant Digital Signature & Clinical Approval Workflow
Inspect Full Resolution

EMR - Consultant Digital Signature & Clinical Approval Workflow

Clinical Governance & Sign-off

Clinical governance module managing medical approval workflows and legally compliant digital signatures for senior consultant psychiatrists.

Dynamic Delegation / Token-Based Access
EMR - Time-Limited Delegation Key Generator for Patient File
Inspect Full Resolution

EMR - Time-Limited Delegation Key Generator for Patient File

Access Control & Security

Contextual security widget allowing attending doctors to grant temporary time-scoped read/edit delegation keys for specific clinical staff members.

Architectural Lessons Learned
"If rebuilt, I would implement native HL7/FHIR standards early on to simplify future interoperability with national health networks and insurance platforms."

— Mahmoud Talaat, Founder & Lead Systems Architect