Production-grade dimensional data warehouse and ML platform for Employee Assistance Programme analytics โ built on Snowflake with SCD Type 2, 1.4M+ rows, and three predictive models.
A complete end-to-end analytics solution for an EAP (Employee Assistance Programme) provider, modelled after Lyra Health's corporate wellbeing platform.
Lyra Health operates a B2B EAP model โ corporate clients contract Lyra to provide mental health support to their employees. The analytics platform tracks session outcomes, employee wellbeing trends, clinical risk, and commercial performance across 16 corporate clients spanning Financial Services, Telecommunications, Healthcare, and the Public Sector.
16-table Kimball star schema with two SCD Type 2 dimensions for GDPR/POPIA-compliant change tracking.
DimDate โโฌโ FactCounsellingSessions โโ DimServiceType โโ DimIssueCategory โ โโโ DimClientCompany โโ DimCountry โโ DimCurrency โ โโโ DimFacilityGeography (767 global locations) โ โโโ DimCounsellor โ โโโ DimEmployee_SCD2 โ SCD Type 2 โ role/dept history โ โโโ DimConsent_SCD2 โ SCD Type 2 โ GDPR audit trail โโ FactMedicationSales โโโโโโโโ DimMedication (750K rows) โโ FactPatientExperience โโโโโโโ DimServiceType (20K rows)
| Table | Layer | Rows | Description | Key Design Choice |
|---|---|---|---|---|
| FactCounsellingSessions | FACT | 668,293 | Core EAP session grain | Includes RiskScore, RevenueZAR, escalation flags |
| FactMedicationSales | FACT | 750,000 | Pharmacy transactions | Supports formulary cost analysis |
| FactPatientExperience | FACT | 20,000 | NPS + satisfaction surveys | Linked to service type for quality scoring |
| DimEmployee_SCD2 | SCD2 | 95,168 | Employee history | Tracks job role / department changes over time |
| DimConsent_SCD2 | SCD2 | 475,840 | GDPR consent audit | Full EffectiveFrom/To chain for compliance |
| DimFacilityGeography | GEO | 767 | Global facility locations | Lat/lon + LyraFacilityType + PrivacyRegime |
| DimClientCompany | DIM | 16 | Corporate EAP clients | ContractPackage drives revenue recognition |
| DimIssueCategory | DIM | 15 | Mental health taxonomy | IssueGroup enables cross-category trending |
Three sklearn models trained on session-level data to support clinical triage, resource planning, and early intervention.
16 corporate clients across 5 countries on 4 contract packages โ from Digital First to Integrated Wellbeing.
Financial Services ยท ZA ยท Enterprise EWP
Financial Services ยท ZA ยท Integrated Wellbeing
Telecommunications ยท ZA ยท Enterprise EWP
Telecommunications ยท ZA ยท Enterprise EWP
Energy ยท ZA ยท Critical Incident Plus
Public Sector ยท ZA ยท Integrated Wellbeing
Derived from 668,293 counselling sessions across 16 corporate clients and 5 countries.
40.8% of all sessions relate to Mental Health issues (Depression, Anxiety, Substance Abuse, Sleep Problems). Burnout and Work Conflict account for a further 25.4% under Workplace Wellbeing โ together representing two-thirds of total session volume.
Crisis cases (Trauma, Critical Incident Trauma) represent 6.4% of sessions but trigger 100% of emergency escalations. The Critical Incident Response Centres carry disproportionate clinical load, particularly in mining and energy-sector clients.
DimEmployee_SCD2 tracks 95,168 employee records with full history. Analysis shows that employees who changed departments within 12 months have a 23% higher burnout presentation rate โ a finding not possible without SCD2 tracking.
Digital Care Hubs (154 globally) now handle 28% of sessions โ up from 11% in 2020. Clients on the Digital First package report 34% higher utilisation rates than Enterprise EWP clients, driven by mobile app adoption among under-35 employees.