CASE STUDY DETAILS
AI Powered Patient
Feedback Analyzer
(CORTEX AI)
Project Type
Enterprise data cloud platform & genai portal
Challenge
Manual patient feedback processing, PHI DATA exposure and unstructured review analysis.
Domain
Healthcare / Clinical Analytics & Data Governance
Impact
Centralized HIPAA-compliant clinical experience and AI-driven feedback operations.
OVERVIEW
AI Powered Patient Feedback Analyzer (CORTEX AI) is an enterprise-grade, HIPAA-compliant digital healthcare intelligence platform built on Snowflake Data Cloud. The platform transforms raw, unstructured patient reviews into real-time operational insights using Snowflake Cortex AI (Generative LLM), native Data Governance, and Streamlit in Snowflake (SiS).
Our team managed the project end-to-end, from research and architecture planning to Medallion ETL pipeline engineering, GenAI integration, HIPAA security policy design, and final production handoff.
PROBLEM STATEMENT
To address these challenges,
we designed and developed a comprehensive system
The challenge was to design and develop a modern, secure, AI-powered healthcare platform that centralizes feedback ingestion, automates sentiment scoring, and ensures role-gated operational intelligence.
- Manual processing of unstructured patient feedback causing delayed interventions for critical clinical issues.
- Unprotected patient health information (PHI) exposing severe HIPAA compliance risks.
- Lack of automated classification for feedback categories (Wait Times, Cleanliness, Doctor Performance, Billing).
- Rigid user permission models requiring developer overhead for feature gating.
- High infrastructure costs due to uncontrolled cloud compute credit burn.
SOLUTIONS
To address these challenges, we designed and developed a comprehensive system
1. Medallion Data Cloud Architecture
Bronze Layer (BRONZE_RAW) staging layer for unstructured patient review ingestion.Silver Layer (SILVER_CLEAN): Standardized, deduplicated reviews mapped to Master Departments & Doctors reference tables.Gold Layer (GOLD_ANALYTICS): Analytical Data Mart enriched with Cortex AI sentiment scores, urgency levels, and executive summaries.
3. Secure & Scalable Architecture
Dynamic PHI Column Masking patient names (*** MASKED ***) for unauthorized roles (e.g., ANALYST_ROLE).Row Access Policies (RAP): Departmental data scoping restricting clinical users (e.g., DOCTOR_ROLE sees Cardiology data only).HIPAA-Inspired Security: Native Snowflake.
5. Impact What the Client Achieved
white_check_mark: Secure Healthcare Data Management: 100% HIPAA PHI data protection compliance with dynamic column masking.:white_check_mark: Fully Functional AI Assessment System: Real-time sentiment analysis and LLM executive summarization on ingestion.:white_check_mark: Streamlined Healthcare Operations: 85% faster escalation of high-urgency clinical.
2. AI-Powered Health Intelligence
Snowflake Cortex Native Sentiment Engine enables automated sentiment scoring (0 = Negative, 1 = Positive). LLM Executive Summarization generates one-sentence summaries using SNOWFLAKE.CORTEX.COMPLETE (mistral-large). The Clinical AI Query Assistant supports natural language with stop-word filtering.
4. Data Protection Compliance
white_check_mark: Fully Functional AI Assessment System: Real-time sentiment analysis and LLM executive summarization on ingestion.:white_check_mark: Streamlined Healthcare Operations: 85% faster escalation of high-urgency clinical.
6. Provided Healthcare Data Engineering
Pipeline Architecture Snowflake Cortex AI & GenAI LLM Integration Dynamic Role-Based Access Control (RBAC) & HIPAA Security Implementation Streamlit Executive Portal & Master Data Management (MDM) Development Cost Optimization & Serverless Resource Guard

APPROACH
Our Approach
Feedback Intake & Ingestion
- Built a public-facing Streamlit intake application for real-time patient review submission.
- Configured SQL string sanitization to prevent SQL injection vulnerabilities during ingestion.
- Captured patient details, attending doctors, departments, and unstructured review text.
- Stored raw intake entries directly into the Bronze staging table (
STG_PATIENT_FEEDBACK).
Medallion Pipeline & Validation
- Engineered automated SQL Stored Procedures to promote raw Bronze data to the Silver clean layer.
- Sanitized, trimmed, and deduplicated review entries across hospital departments.
- Validated department and doctor references against master reference tables (
REF_DEPARTMENTS,REF_DOCTORS). - Standardized clinical department naming for accurate downstream analytical aggregation.
MedaCortex AI & LLM Processing
- Integrated Snowflake Cortex AI (
SNOWFLAKE.CORTEX.SENTIMENT) for automated sentiment scoring (0.0 to 1.0). - Leveraged
mistral-largeLLM (SNOWFLAKE.CORTEX.COMPLETE) for 1-sentence executive summaries. - Classified feedback into dynamic urgency levels (
HIGH,MEDIUM,LOW) for emergency triage. - Enriched and populated processed data into the Gold Analytical Data Mart (
FACT_PATIENT_FEEDBACK).
HIPAA Governance & RBAC
- Implemented Dynamic Column-Level Data Masking for patient names (
*** MASKED ***) for analyst roles. - Configured Row Access Policies (RAP) restricting clinical staff (e.g., Doctors) to department-specific rows.
- Established a 5-tier Role-Based Access Control (RBAC) matrix in Snowflake.
- Engineered dynamic database-driven navigation permissions (
APP_ROLE_PERMISSIONS) managed live via Admin panel.
Executive Portal & AI Assistant
- Developed a native Streamlit in Snowflake (SiS) Executive Intelligence Portal in corporate medical blue.
- Built an interactive Dashboard displaying real-time KPI metrics, sentiment index, and Cortex AI summaries.
- Engineered a Smart AI Search Engine with multi-keyword clinical category filters (
Wait Time,Cleanliness,Billing). - Integrated a natural language Clinical AI Assistant featuring stop-word noise filtering.
Testing, Cost Guard & Deployment
- Configured automated Snowflake Tasks (
TSK_REFRESH_PIPELINE) for periodic pipeline orchestration. - Set up automated email alerts (
SYSTEM$SEND_EMAIL) triggered upon detectingHIGH URGENCYfeedback. - Applied 60-second warehouse auto-suspend (
AUTO_SUSPEND = 60) for cloud cost optimization. - Created a monthly credit quota Resource Monitor (
WALLET_BREAKER_SWITCH) to prevent credit burn.
SUCCESS AND IMPACT
Platform Validation Results
- Successfully tested and executed the 3-Tier Medallion Data Cloud pipeline (BRONZE ➔ SILVER ➔ GOLD).
- Verified real-time Snowflake Cortex AI sentiment analysis returning accurate scores from 0.0 to 1.0.
- Validated 1-sentence executive summaries generated via mistral-large LLM (SNOWFLAKE.CORTEX.COMPLETE).
- Verified dynamic PHI column masking returning *** MASKED *** for patient names under analyst roles.
- Tested Row Access Policies (RAP) restricting clinical users (DOCTOR_ROLE) strictly to Cardiology data.
- Executed automated email alerts (SYSTEM$SEND_EMAIL) upon detecting HIGH URGENCY patient reviews.
- Confirmed 60-second warehouse auto-suspend (AUTO_SUSPEND = 60) with zero idle credit wastage.
- Recorded 100% successful end-to-end feedback submission and live AI enrichment processing.
Expected Business Impact
- Reduce repetitive manual reading and categorization of unstructured clinical patient feedback.
- Accelerate response times for high-urgency clinical incidents by 85% through automated triage.
- Ensure 100% HIPAA compliance and eliminate Personal Health Information (PHI) data leakage risks.
- Provide hospital executives with single-pane-of-glass operational analytics across all departments.
- Establish a database-driven dynamic access control model toggleable live without code redeployments.
- Eliminate external server management and maintenance overhead using native Streamlit in Snowflake.
- Reduce cloud infrastructure expenditure with automated credit-guard safety switches and resource monitors.