The Platform
Population health,
made actionable.Population health,
made actionable.|
The brain, engine and interpreter of Jeddah Second Health Cluster's chronic-disease data: 1,201,571 beneficiaries · 37 primary healthcare centres · one government server.
Read the storyPopulation health analytics · Production infrastructureMinistry of Health · Government Network
The Platform — Population Health Analytics
المنصة
صحة السكان.
بيانات تتحوّل إلى عمل.صحة السكان.
بيانات تتحوّل إلى عمل.|
العقل والمحرك والمفسّر لبيانات الأمراض المزمنة في تجمع جدة الصحي الثاني: 1,201,571 مستفيداً · 37 مركز رعاية أولية · خادم حكومي واحد.
اقرأ قصة المشروعتحليلات صحة السكان · بنية تحتية تعمل فعلياًوزارة الصحة · الشبكة الحكومية
المنصة — تحليلات صحة السكان
The population and the data
Layered DuckDB SQL pipeline (L1 raw → L5 dashboard lenses) turns ~60 GB / 4,257 Raqeem Parquet files into a 17.55 GB analytical cache — 87 tables, 175 views — opening read-only in 1.39 seconds.
- beneficiaries in the analytical cache
- 1,201,571
- primary healthcare centres covered
- 37
- cold open of the 17.55 GB cache
- 1.39 s
السكان والبيانات
خط أنابيب DuckDB طبقي يحوّل ~60 جيجابايت / 4,257 ملف Parquet إلى ذاكرة تحليلية 17.55 جيجابايت — 87 جدولاً و175 عرضاً — تُفتح للقراءة في 1.39 ثانية.
- مستفيداً في الذاكرة التحليلية
- 1,201,571
- مركز رعاية أولية مغطى
- 37
- فتح ذاكرة 17.55 جيجابايت
- 1.39 ث
From analytics to daily work
139 API endpoints across 18 route files power dashboards for prevalence, control rates, continuity of care, Control Atlas, Optimal Teams and geo-mapped PHCs — 66 frontend routes, 16 page components.
Excel exports of screening lists and per-team rosters, with every screening explore and export written to an audit table for retrospective review.
- screening accuracy vs the national NMR dashboard
- ±4%
- API endpoints / DuckDB views
- 139 / 175
من التحليلات إلى العمل اليومي
139 نقطة برمجية عبر 18 ملف مسارات تغذي لوحات الانتشار ومعدلات التحكم واستمرارية الرعاية وأطلس التحكم والفرق المثلى — 66 مساراً أمامياً و16 مكوّن صفحة.
تصدير Excel لقوائم الفحص وكشوف الفرق، مع تسجيل كل استكشاف وتصدير فحص في جدول تدقيق للمراجعة.
- دقة الفحص مقابل اللوحة الوطنية
- ±4%
- نقطة برمجية / عرض DuckDB
- 139 / 175
An assistant inside the network
A fully on-premise AI brain on the government server: a bilingual Floating Assistant — streaming chat, function calling, RAG over clinical guidelines — qwen2.5-coder writes the SQL, gemma interprets Arabic, bge-m3 + ChromaDB embed the knowledge. Zero cloud, because PDPL law prohibits it — the architecture bent to the law.
The decision that matters
The same person wrote the clinical definitions and the code that computes them — a consultant physician who, on discovering cloud services were legally prohibited, deleted a working cloud backend and rebuilt the entire AI stack on-premise rather than bend the law.
مساعد داخل الشبكة
عقل ذكاء اصطناعي محلي بالكامل على الخادم الحكومي: مساعد عائم ثنائي اللغة — محادثة متدفقة واستدعاء دوال واسترجاع معزز من الأدلة السريرية — qwen2.5-coder يكتب SQL، وgemma يفسّر العربية، وbge-m3 مع ChromaDB للتضمين. صفر سحابة التزاماً بنظام حماية البيانات.
القرار الذي يصنع الفرق
الشخص نفسه كتب التعريفات السريرية والكود الذي يحسبها — طبيب استشاري حين اكتشف أن السحابة ممنوعة قانوناً، حذف خادماً سحابياً يعمل وأعاد بناء كامل منظومة الذكاء الاصطناعي محلياً بدل أن يحني القانون.
Trust in every rebuild
Standing validation gates: NO PATIENT LEFT BEHIND conservation check, never-hardcode-numbers rule, and atomic side-by-side rebuilds that can never delete the serving cache — a law born from root-causing a 14-hour outage.
Data honesty by design: duplicate lab ingests quantified (3.26×), impossible HbA1c units detected, >90-minute consultations excluded with the count shown on screen.
Built with
- FastAPI
- DuckDB
- React + TypeScript
- Ollama (qwen2.5-coder · gemma · bge-m3)
- ChromaDB
- IIS / Windows Server
- SQLite + JWT
الثقة في كل إعادة بناء
بوابات تحقق دائمة: لا مستفيد يُترك، لا أرقام مثبتة يدوياً، وإعادة بناء ذرّية لا يمكنها أبداً حذف بيانات الخدمة.
صدق البيانات تصميماً: تكرارات المختبر مُقاسة، وحدات HbA1c المستحيلة مكتشفة، والاستشارات فوق 90 دقيقة مستبعدة مع عرض العدد على الشاشة.
التقنيات المستخدمة
- FastAPI
- DuckDB
- React + TypeScript
- Ollama (qwen2.5-coder · gemma · bge-m3)
- ChromaDB
- IIS / Windows Server
- SQLite + JWT
Explore the architecture & interactive example ↗استكشف البنية والمثال التفاعلي ↗
Figures and project status are taken from my supplied project records. The film is a visual interpretation of the system.
الأرقام وحالة المشروع مأخوذة من سجلات أعمالي المقدمة. الفيديو تعبير بصري عن النظام.
