University of Tabuk
TaifCare ACMS — Final Defense Deck
All Team
00:00
University of Tabuk • College of Computers & IT • Dec 2026

TaifCare — Autism Care Management System (ACMS)

A Full-Stack Arabic-First (RTL) Web & Mobile Platform with Standardized ABLLS-R / VB-MAPP Clinical Workflows, Two-Way Scheduling, and an Admin-Governed Bilingual AI Assistant.

Najeeb Al-Turkmani441010946 • Specialist Portal, AI Agent & Mobile
Maher Al-Amri451008207 • Admin Portal, Intake, Caseloads & QA
Abdullah Al-Khaibari451008017 • Parents Portal, Home Logs & Games
Supervised by Dr. Wassim Almasoudi
University of Tabuk
مركز طيف لرعاية التوحد
Bachelor of Computer Science Graduation Project
67
Verified PHP Files
19
Clean SQL Tables
956
ABLLS-R / VB-MAPP
174
Prepared Queries
Defense Roadmap

Presentation Flow & Clear Engineering Ownership

Our full-stack graduation project spans five structured chapters backed by a live Apache + PHP 8.2 + MariaDB + Flutter deployment.

01. Problem & SOTA

Clinical motivation, 5 operational gaps, and comparative review of 6 platforms.

02. Design & DB

14 Use Cases (Admin AI arrow), UML Class, Split ERDs & 19 clean tables.

03. Admin (Maher)

Admin Portal: KPIs, 3-stage intake, staff CRUD, M:N caseloads & Parent PINs.

04. Specialist & AI (Najeeb)

ABLLS-R/VB-MAPP, IEP math, 2-way booking, AI Engine & Flutter API.

05. Parent (Abdullah)

6 pages: Live charts, Confirm/Decline, Home/Holiday tracking & Games.

Maher Al-Amri

Admin Portal Operations, 3-Stage Intake, Specialist Lifecycle, QA Analytics, M:N Caseloads & Parent PINs.

Najeeb Al-Turkmani

Specialist Portal (16 pages), Weighted IEP Engine, AI Assistant & Knowledge Governance, Security, 6 APIs & Flutter.

Abdullah Al-Khaibari

Parents Portal (6 pages), Live Charts, Two-Way Schedule UI, Daily/Holiday Home Logs, Alerts & Entertainment Games.

Chapter 1 • Background & Problem Statement

Five Operational Failures Solved by TaifCare

WHO estimates ~1 in 127 people globally are autistic (with Riyadh early-screening cohorts near 2.51%), yet regional clinics still run intensive ABA therapy on paper.

Chapter 1 • Aims, Objectives & Scope

Eight Measurable Objectives & Clear Ethical Boundaries

IDObjectiveVerified Deliverable
O1Normalized Arabic Schema19 InnoDB utf8mb4 tables; 956 skills
O2Admin Governance Portal14 Admin pages + AI Knowledge Manager
O3ABA Specialist Portal16 pages: ABLLS-R/VB-MAPP + AJAX IEP
O4Two-Way SchedulingPending → Confirm/Decline → Reschedule
O5Family Engagement Portal6 Parent pages + Home logs + Games
O6Governed Bilingual AIAdmin ai_config.json + Cohere v2 SSE
O7Mobile CompanionFlutter (6 Dart files) + 6 Bearer APIs
O8Defense-in-Depth Security174 prepared SQL, bcrypt, RBAC, lockout

Two Explicit Clinical Boundaries

  • Not Automated Diagnosis: Every mastery score records direct observation by a qualified specialist.
  • Advisory AI Only: Grounded in clinic ABA protocols; prohibits medical diagnosis or medication changes (kb_policy_04).

Deliberately Scoped Exclusions

  • Billing/insurance invoicing & video tele-therapy excluded to keep focus deep on clinical ABA workflows.
  • Zero local LLM GPU weight training — external pre-trained model isolated behind 1 proxy file for future portability.
Chapter 2 • State of the Art & Research Gaps (All Team)

Comparative Review of Existing Clinic Platforms

Constructive evaluation of international ABA suites, general practice tools, and regional outpatient clinics — highlighting strengths and contextual gaps.

PlatformMain Modules / PagesKey StrengthsContextual Shortcomings / GapsArabic RTL & Cost
CentralReachEMR, ABLLS-R/AFLS, billing, CR MobileEnterprise ABA depth; offline tablet captureNo documented Arabic RTL; quote-based seat tiers (+7% escalation); cloud abroadLTR only • Enterprise SaaS
Catalyst / EnsoraProgram setup, tablet runner, graphsFast discrete-trial capture & phase-change chartsOften paired with external PM tool; no Arabic parent portal or AILTR only • Opaque SaaS
Passage HealthOnboarding, programs, runner, claimsModern unified clinical + scheduling UIUS insurance focus; lacks Arabic RTL & parent approval gateLTR only • Quote cloud
SimplePractice / ClinikoCalendar, client portal, generic notesPolished UX; transparent per-seat pricingNo ABA skill hierarchies, prompt weights, or mastery rulesNo Arabic • $49–99/mo
Regional PolyclinicsReception queue, doctor notes, VATNative Arabic RTL; local complianceGeneral outpatient focus; lacks ABA curricula & caregiver AIArabic RTL • Commercial
TaifCare (ACMS)Admin (14 incl. AI), Spec (16), Parent (6+Games+AI), Flutter100% Arabic RTL; ABLLS-R & VB-MAPP; 2-way approval; AJAX IEP; Admin-governed AIAcademic clinic scope (excludes billing/insurance & offline mobile sync)100% RTL • Self-hosted ($0/seat)
Chapter 3 • System Analysis (UML)

Use Case Model (14 UCs) & Sequence Flows

Four Actors & Fourteen Principal Use Cases

  • Administrator (6 UCs): Intake, staff, M:N caseloads, parent PINs, QA KPIs, plus UC-14: Manage AI Prompt & Knowledge (ai_config.json).
  • Specialist (5 UCs): ABLLS-R/VB-MAPP, IEP plans, two-way booking/rescheduling, live IEP scoring, Flutter mobile analytics.
  • Parent (3 UCs): Two-way Confirm/Decline, Progress/Home Tracking/Games, and UC-12: Query Bilingual AI Assistant.
  • TaifCare AI Agent (2 UCs): Managed by Admin & queried by Parents via Cohere Chat API v2.
UML Diagram
Click any UML diagram to zoom fullscreen
Chapter 3 • System & Database Design

Domain Class Model, Split Crow's Foot ERDs & 19-Table Schema

Key Schema Design Decisions

  • Granular Trial Storage: session_goal_data records raw prompt logs & trial counts — every chart computes dynamically.
  • M:N Caseloads: child_assignments lets multiple clinicians co-manage one child without overwriting history.
  • Immutable Master Bank: program_questions (956 items) is never mutated; custom wording lives in treatment_goals.custom_goal_name.
  • Complete Data Dictionary: All 19 tables & 171 attributes documented in Appendix B and shipped in stripped autismdbSubmission.sql.
Design Diagram
Click to inspect full resolution
Chapter 4 • System, Software & Hardware Architecture

Modular 4-Tier Architecture & Unified Secure Gateway

Zero-License Open-Source Stack

  • Server Stack: Apache 2.4 + PHP 8.2.12 + MariaDB 10.4 (utf8mb4) on Ubuntu Linux (ThinkPad T480, i7-8550U, 12 GB RAM, 512 GB NVMe).
  • Web UI: HTML5/CSS3/Vanilla JS, Cairo Arabic RTL, Font Awesome 6, Chart.js 4 — zero Node bundler bloat.
  • Mobile & AI: Flutter 3 (Dart) over 6 Bearer-token APIs + Cohere v2 isolated behind chatbot_api.php.
Architecture
Click to zoom fullscreen
Maher's Portal (1/2) • Operations, Child Intake & Case Assignment

Admin Portal (1/2): Dashboard, Child Intake & Case Assignment

Central Operational Dashboard

  • Live KPIs: Active Specialists, Mastered Goals, Active IEP Plans & Today's Sessions.
  • 3 interactive Chart.js analytics: 7-day trend, top-5 specialist workload, and 6-month enrollment growth.
  • Central command hub linking child intake (add_child.php), M:N case assignment (assign_case.php), and live daily operations.
Admin Screen 1
Live capture from Admin/admin_dashboard.php
Maher's Portal (2/2) • Staff Onboarding, QA, Family Access & Feedback

Admin Portal (2/2): Add Specialist, QA, Parent PINs & Feedback

Specialist Onboarding (add_specialist.php)

  • Registers clinician credentials into users (bcrypt hashed) and 1:1 clinical profile into specialists.
  • Captures specialty (ABA, Special Ed, Speech), license number, years of experience, phone, email & validated CV upload (pdf/doc/docx/jpg/png).
  • Enforces duplicate username/email checks via prepared statements before saving.
Admin Screen 2
Live capture from Admin/add_specialist.php
Najeeb's AI Module • Centralized AI Governance

Admin AI Prompt & Clinic Knowledge-Source Manager

Live Governance (Admin/ai_settings.php)

  • Instant Kill-Switch: Pause parent AI replies anytime with one checkbox.
  • Parameter Control: Configure model, temperature (0.6), max_tokens (450), and bilingual system prompt.
  • Zero Schema Bloat: Atomic UTF-8 JSON (includes/ai_config.json) + system_logs audit trail.

Inspect Active Clinic ABA Sources:

kb_sleep_01 — ABA Sleep Hygiene: Consistent 30-min visual bedtime schedule (warm bath, pajamas, calm story, screens off), dimmed sensory triggers, and immediate morning positive reinforcement.
Admin AI Settings
Live Admin/ai_settings.php — 4/4 active ABA clinic sources
Najeeb's Portal • Specialist Clinical Suite (16 Active Pages)

Specialist Portal: 1st Assessment, Create IEP & View Plan

End-to-End Clinical Pipeline

  • 1st Pre-Assessment (run_session.php): Digital ABLLS-R (544 items) & VB-MAPP (412 items) with read-only history & daily closures.
  • Create IEP (create_treatment_plan.php): Auto-loads failed skills & isolates custom wording in custom_goal_name.
  • View & Migrate Plan (view_plan.php): Formal printable IEP report with live goal badges & one-click plan closure/migration.
Specialist Portal
Live capture from Specialist/specialist_dashboard.php
Najeeb's WOW Feature • Interactive Scoring Engine

Weighted Prompt-Fading vs. Strict Independent Mastery

Live IEP Simulator (Mastery Rule: I ≥ 80%)
Recorded Trials (saveGoalTrials() AJAX Log):
Try clicking 3× G first, then Reset & click 3× I!
Weighted Progress Score0%
Pure Independent Rate (Only I)0%
Status: In Progress
3× G = 80% Weighted, 0% Indep!
Live IEP Workspace
Live Navy/Teal Workspace (Specialist/iep_session.php)
Abdullah's Portal • Parents Portal (All 6 Pages + Games)

Parents Portal: Charts, Alerts, Schedule, Feedback & Games

Live Progress (Zero Cross-Family Leakage)

  • Active IEP completion bar, ABLLS-R / VB-MAPP mastery bar chart, goal doughnut & 10-session trend line.
  • Privacy by Design: Resolves linked_child_id strictly from authenticated $_SESSION — never reads URL child_id.
  • Direct quick-actions panel linking to Notifications, Schedule Approval, Daily Home Reports, Feedback & Games.
Parents Screen
Live capture from Autism_FinalProject/parent_main.php (click to zoom)
End-to-End Integration • Admin ↔ Specialist ↔ Parent

How All 3 Portals Link & Communicate in Real Time

Step 1 • Admin (Maher)
M:N Linking & Parent PIN
Step 2 • Specialist (Najeeb)
Books Slot & Alerts Parent
Step 3 • Parent (Abdullah)
Accepts or Declines (+Reason)
Step 4 • All 3 Portals
Unlocks IEP & Syncs Live

Step 1 (Maher): Admin Creates the Trusted Link

Before any clinical session or message happens, Administration establishes both relational bridges:

  • Links child ↔ multiple specialists in M:N child_assignments (assign_case.php / manage_assignments.php).
  • Provisions the family account locked strictly to linked_child_id (admin_parents.php).
  • Tracks center-wide live session status and QA metrics on admin_dashboard.php.
Linking Screen
Admin/manage_assignments.php — M:N caseload bridge connecting children, specialists & families
All Team Showcase • Live Bilingual AI Verification

AI Assistant in Action: Verified Arabic & English Q&A

Example 1 — Grounded Arabic Query

Parent asked: كيف أهدئ طفلي عند نوبة غضب قبل النوم؟

  • Returns 4 concise, empathetic ABA steps: calm voice, low-sensory safe space, visual bedtime cards, and logging observations in the daily home report.
  • Directly grounded in Admin sources kb_meltdown_02 & kb_sleep_01.
AI Live Q&A
Live Cohere v2 (command-r7b-arabic-02-2025) Arabic response
Chapter 4 • Cross-Platform Mobile Companion

Flutter Specialist App & Stateless Bearer-Token REST API

Flutter App (mobile_app/ — 6 Files, 1,625 LOC)

  • 3 Arabic RTL Screens: Splash, Login (login_screen.dart), Dashboard (dashboard_screen.dart) using fl_chart & Provider.
  • Zero Offline Patient Cache: Protects handset privacy over clinic LAN.
Endpoint (api/)MethodPurpose
auth_login.phpPOSTVerifies bcrypt & issues 7-day 64-hex token
get_dashboard_stats.phpGETAssigned caseload, today's sessions & mastery
get_goal_progress.phpGETPer-goal mastery rates & statuses
get_weekly_sessions.phpGET7-day session distribution for fl_chart
get_recent_activity.phpGETRecent clinical session feed
get_specialist_notes.phpGETClinician session summaries & notes
Mobile API Sequence
Mobile Bearer-Token Login, Parallel Fetch & HTTP 401 Recovery
Chapter 4.4 & Appendix D • Verification & Security Audit

Falsifiable Verification: 13/13 Live Tests & 15-Point Security Audit

67 / 67
php -l Clean Files
13 / 13
End-to-End Tests PASS
174
Prepared SQL Statements
19
Clean Submission Tables

Verified Security Controls (Appendix D)

Password StoragePASS100% bcrypt ($2y$); zero plaintext
SQL Injection DefensePASS174 bound mysqli::prepare() queries
Brute-Force & SessionPASS5 fails → 30-min lockout; session_regenerate_id
Vertical & Horizontal RBACPASSRole guards + strict session linked_child_id
AI Proxy Auth & KeysPASSHTTP 401 unauth; API key never reaches browser
CSRF (Internal Forms)PARTIALEnforced on login.php; internal forms on roadmap
HTTPS / TLSDEPLOYLAN HTTP now; reverse-proxy TLS before public web

Highlights of 13/13 Passed Live Tests

  • TC-01–TC-04: Brute-force lockout, cross-role redirect, inactive account block & parent child scoping.
  • TC-05–TC-07: ABLLS-R/VB-MAPP filtering, read-only history & non-destructive custom goal naming.
  • TC-08–TC-09: Two-way Decline with reason → Reschedule → Confirm unlocking Start Session.
  • TC-10–TC-11: 3× G (80% weighted) NOT mastered vs. 3× I (100% indep.) Mastered + confetti summary.
  • TC-12–TC-13: Live grounded Arabic & English AI replies via SSE, mobile 401 recovery, and Admin AI Manager persistence + audit logging.
Chapter 5 • Conclusion & Recommendations

Verified Outcomes, Honest Limitations & Future Roadmap

Three Core Project Achievements

  • Clinical Arithmetic Integrity: Replaces error-prone manual percentages with live AJAX trial scoring separating weighted prompt fading from strict independent mastery.
  • Zero-Friction Family Handshake: Turns ad-hoc phone calls into an auditable Confirm / Decline-with-reason / Reschedule loop linked directly to session readiness.
  • Governed Arabic Caregiver AI: Gives families 24/7 bilingual ABA support while keeping full control of instructions and clinic sources in the Administrator's hands.

Prioritized Production Roadmap

  • 1. Security Hardening: Extend CSRF tokens across all authenticated internal POST forms & add Apache/Nginx HTTPS (TLS) termination.
  • 2. Multi-Child Families & Local Assets: Add a parent_children junction table for siblings and bundle Chart.js/Font Awesome locally for air-gapped clinics.
  • 3. Offline Mobile Sync & Vacation Reader: Add Flutter SQLite caching + specialist tab for vacation_tracking_reports.
  • 4. Optional Local LLM & Clinical Pilot: Swap in an on-premises Arabic LLM via chatbot_api.php and run a 4-week IRB-governed clinic pilot.
University of Tabuk
Thank You
شكراً لحسن استماعكم
Questions & Live System Demonstration
Najeeb Al-Turkmani• Maher Al-Amri• Abdullah Al-Khaibari
TaifCare — Autism Care Management System (ACMS)  |  Supervised by Dr. Wassim Almasoudi  |  University of Tabuk • 2026
Speaker Cue
Copied!