Abstract
This project presents a multi-stage clinical summarization system that addresses critical security vulnerabilities in healthcare AI while providing patient-focused output generation. The system integrates four specialized stages defense, RAG, solver, and sanitizer to create a pipeline that protects against prompt injection attacks, maintains HIPAA compliance, and generates simplified clinical summaries designed to be understood by patients. Built on finetuned LLaMA-3-8B with LoRA adapters and FAISS-based retrieval augmented generation, the system processes MIMIC-IV discharge summaries and implements a comprehensive prompt injection defense mechanism with 104 security patterns across seven threat categories. The defense stage represents a novel application of adversarial defense in clinical AI. Patient-focused summarization translates complex dis-charge notes into plain language explanations, directly addressing the well-documented problem that over half of U.S. patients cannot understand standard medical documentation. The system addresses a critical gap in healthcare AI security while improving clinical communication for patients, making it suitable for healthcare settings.