Sanitized Portfolio Report

How I Designed an Agentic Healthcare Analytics Workflow

A public-safe case study of a multi-agent analytics workflow that translates natural-language healthcare questions into auditable structured-data analysis.

Domain: Healthcare Analytics Focus: Agentic AI Year: 2026 Status: Paraphrased Summary
Portfolio visual showing an agentic healthcare analytics flow from intent routing to clinician review
Hero visual: public-safe overview of the intent router, SQL agent, statistics layer, and review step.

Fast Scan

What this report proves

A recruiter-readable summary of the technical signal, methods, evidence, and public-data boundary.

Signal

Agentic healthcare analytics architecture for auditable natural-language questions over structured clinical data.

Methods

Intent routing, schema grounding, SQL generation, DuckDB execution, ClinicalBERT/FAISS vocabulary resolution, and HITL review.

Evidence

Light-background architecture diagrams, agent workflow notes, user-story distribution, and sanitized capstone design traces.

Boundary

No patient records, partner identifiers, reviewer details, private schemas, credentials, or raw institutional screenshots are published.

PII-Safe Publication Note

This report is a rewritten portfolio version of an academic project. It does not reproduce the raw submission, source data, screenshots, account details, personal names, emails, phone numbers, or institution-specific submission metadata. The emphasis is on system design, trade-offs, and transferable engineering judgment.

Field Note

I treated this less like a chatbot problem and more like an accountability problem. The hard part was deciding where the system should stop, expose uncertainty, and ask for review instead of sounding confident too early. My trade-off was to make the workflow a little slower in exchange for clearer audit trails and safer correction points.

Executive Summary

The project explored how a healthcare analytics assistant could help clinical and research users ask questions over structured health data without hiding the analytical path behind a black-box response. The core design used a multi-agent workflow: one agent interprets the question, another maps the request to a data schema, another proposes SQL or statistical operations, and review steps check whether the output should be revised before a final answer is shown.

The main portfolio value is not simply that the system uses large language models. The stronger signal is the architecture around them: schema grounding, query traceability, human review checkpoints, privacy boundaries, and result explanations that make the analytical process inspectable.

Portfolio framing: This is best presented as an agentic analytics architecture project, not as a claim of clinical deployment or patient-facing decision support.

Portfolio Signal Snapshot

This section is written for fast recruiter review and machine parsing. It foregrounds the technical surface area, architectural judgment, and risk controls without overstating deployment maturity.

Role Signal Agentic AI systems designer for structured healthcare analytics
Core Stack LangGraph, SQL, DuckDB, OMOP CDM, FAISS, ClinicalBERT
Engineering Depth Schema grounding, validation, routing, and audit trails
Business Value Reduces analytics friction while preserving clinical oversight
Agentic AI LLM Orchestration Healthcare Data Natural-Language SQL LangGraph DuckDB OMOP CDM Clinical NLP Human-in-the-Loop Responsible AI

Problem Context

Healthcare datasets are often structured, relational, and highly sensitive. Analysts may understand the clinical question but not the exact schema. Technical users may understand the database but need domain clarification before writing safe queries. A useful assistant therefore has to do more than generate SQL: it must clarify intent, ground terms to known fields, expose assumptions, and preserve auditability.

Data Complexity

Healthcare tables can involve encounters, diagnoses, medications, procedures, measurements, and cohort definitions that must be joined carefully.

Trust Requirements

Users need to see how a result was produced, which assumptions were made, and where uncertainty remains.

Risk Boundaries

Public-facing summaries should avoid raw patient examples, private schemas, operational credentials, or sensitive institutional details.

Sanitized Architecture Diagram

The original report included a high-level architecture view. The public portfolio version below recreates the same design idea without showing private schemas, source screenshots, client references, or raw clinical examples.

Natural-Language Query to Reviewed Analytical Output

User Question Clinical or research query in natural language.
Router Agent Classifies intent and separates clinical terms from structural terms.
Intent Clarifier Checks ambiguity and asks for clarification when confidence is low.
Reasoning Agent Decomposes the request into validated analytical steps.
SQL Agent Generates schema-grounded DuckDB SQL using pruned metadata.
Data Registry Stores query results as lightweight references instead of passing dataframes.
Stats Layer Runs whitelisted descriptive, comparison, trend, or survival functions.
Reviewed Output Returns tables, charts, interpretation, limitations, and suggested follow-ups.

Curated Figure Gallery

These visuals combine light-background recreations of the core architecture with selected extracted planning graphs from the original capstone materials. The public version excludes raw data tables, report cover pages, institution-specific UI screenshots, and research-paper screenshots.

Light-background agentic healthcare analytics pipeline diagram
Agent pipeline figure. Light-background recreation showing the router, clarification, grounding, SQL, feature engineering, stats, review, and answer-composition flow.
Light-background human-in-the-loop workflow diagram
Human-in-the-loop checkpoint design. Contrasts optional HITL with compulsory review points before sensitive analytical steps.
Light-background clinical vocabulary resolution pipeline diagram
Clinical vocabulary resolution. Clarifies the ClinicalBERT, FAISS, ATHENA, and concept-review handoff used to ground natural-language terms before SQL generation.
Extracted user story distribution chart from healthcare capstone report
User-story distribution. Shows how requirements were weighted across clinician, researcher, engineering, analyst, and administrator workflows before implementation.
Extracted impact effort prioritization matrix from healthcare capstone report
Impact-effort prioritization. Documents how features were triaged into quick wins, major features, fill-ins, and reconsider items.
Sanitized sprint burndown chart from healthcare capstone presentation
Sprint burndown chart. Preserves the planned-versus-actual delivery evidence while redacting a source-specific stakeholder label from the original slide.

Short Demo Clip

This silent walkthrough compresses the architecture into a 16-second reviewer-friendly path. It is a storyboard demo, not a recording of private data or a deployed clinical system.

Muted Walkthrough

Question to reviewed answer

Shows the major gates: intake, routing, grounding, SQL, statistics, human review, and traceable answer composition.

Transcript

A healthcare analytics question enters with sensitivity context. The system routes intent, grounds schema and vocabulary, runs SQL and statistics through deterministic checks, then sends the output to human review before the final answer is shown.

Research Connections

These source cards connect the portfolio architecture to published agent-design ideas without copying figures whose reuse rights are unclear.

Cropped ReAct paper Figure 1 comparing standard, chain-of-thought, act-only, and ReAct trajectories
Research Figure

Reasoning plus acting

Source: ReAct: Synergizing Reasoning and Acting in Language Models, Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao, 2023. License: CC BY 4.0. Link. Modified: cropped/resized only.

Connection: informs the router, tool-use, and observation loop in the healthcare analytics workflow.

Cropped Reflexion paper Figure 2 showing actor, evaluator, self-reflection, memory, and environment loop
Research Figure

Feedback and memory loop

Source: Reflexion: Language Agents with Verbal Reinforcement Learning, Noah Shinn, Federico Cassano, Edward Berman, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao, 2023. License: CC BY 4.0. Link. Modified: cropped/resized only.

Connection: frames why review feedback should become durable system memory instead of disappearing after one failed run.

Cite-Only Source

Transformer foundation

Source: Attention Is All You Need, Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin, 2017. License note: arXiv non-exclusive distribution license; no external figure copied. Link.

Connection: cited as background for Transformer-based language models, not presented as a visual asset in this portfolio.

No figure reused

Analytical Objectives

Technical Notes From Source Report

Data Registry Pattern Query outputs are stored behind short references so the LangGraph state does not carry large dataframes between nodes.
Dynamic Schema Pruning The SQL agent receives only relevant table and column context, reducing hallucinated fields and irrelevant joins.
Split-Brain Model Loading Reasoning, coding, clinical consultation, and suggestion tasks are assigned to different local models so limited VRAM is used sequentially.
Deterministic Guardrails Statistical functions are selected from whitelists, pre-aggregated outputs bypass unnecessary LLM calls, and failed JSON outputs trigger retry handling.

System Design

1. Question Intake

The first step classifies the user question by analytical type. Examples include cohort counting, variable comparison, trend analysis, descriptive statistics, and chart requests. The workflow should also detect when a question is underspecified and ask for clarification rather than forcing a query.

2. Schema Grounding

The assistant maps natural-language concepts to known tables, fields, and controlled vocabulary where available. This grounding step is critical because a plausible answer is not useful if it rests on a fabricated column or an invalid join path.

3. Query Planning

A planning agent decomposes the request into operations such as cohort selection, filtering, joins, aggregation, and statistical tests. The plan becomes an intermediate artifact that can be reviewed before execution.

4. SQL Generation and Validation

The SQL component produces a query from the grounded plan. Validation checks should confirm that tables exist, joins are explainable, filters match the user's intent, and the query avoids unsupported fields.

5. Analysis and Visualization

Once the structured result is available, a tool layer can calculate descriptive statistics or generate charts. The final response should include the answer, the method used, and any limitations that affect interpretation.

6. Human Review

Human-in-the-loop checks are included for high-risk or ambiguous outputs. This is especially important for healthcare analytics, where confident language can create false authority if the underlying query is wrong.

Implementation Decisions

Decision Framework

My design thinking centered on a simple rule: use LLMs where ambiguity exists, and deterministic code where correctness can be enforced. The table and chart below make those trade-offs explicit.

Decision Area Option Considered Selected Approach Reasoning
State management Pass full dataframes between graph nodes Data registry with lightweight references Preserves LangGraph reliability and avoids memory pressure from serialized tabular data.
SQL generation Give the model the full schema every time Schema pruning with curated metadata Reduces hallucinated columns, irrelevant joins, and prompt clutter.
Clinical interpretation Return fluent answers directly from an LLM Compute first, explain second Tables and statistics remain deterministic; language is used only to summarize computed results.
Ambiguous user intent Force the system to guess Clarification checkpoint Protects users from confident but wrong analytical paths.

Qualitative Design Priority Chart

Traceability Critical
Privacy Boundaries Critical
SQL Correctness Critical
Latency Managed
Model Ambition Constrained
What I optimized for Auditable SQL and reviewable intermediate states over black-box conversational polish.
What I avoided Publishing raw clinical examples, claiming production readiness, or making unverified accuracy claims.
What I would harden next Regression tests for query plans, schema drift alerts, and reviewer analytics for failed query chains.

Evaluation Approach

The strongest evaluation strategy for this type of project is multi-layered. Instead of grading only the final natural-language answer, the system should be checked at each stage where an error could enter the workflow.

Intent Accuracy

Did the workflow correctly identify the analytical task, required variables, filters, and requested output format?

SQL Validity

Did the query use valid fields, defensible joins, appropriate aggregation, and interpretable filters?

Answer Faithfulness

Did the final explanation reflect the computed result without adding unsupported clinical claims?

Limitations

Recommended Next Improvements

Selected Sources From Original Report

The source report cited papers and technical references that informed the agentic reasoning, clinical NLP, feature engineering, and data-standard choices. The portfolio version keeps a curated source trail rather than reproducing the full bibliography.

Recruiter Signal

This project demonstrates the ability to design LLM systems around real operational constraints: privacy, auditability, structured data access, ambiguous user intent, and human oversight. It is most relevant for roles involving agentic AI, analytics engineering, healthcare data products, and responsible AI implementation.

LangGraph SQL Agentic AI Analytics Architecture Human Review Auditability

Sanitized report prepared for portfolio publication. Raw academic materials and private data are not published.