Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ₯ Healthcare Test Case Generator

An AI-powered agentic system that automatically converts healthcare software requirements (PRD documents) into compliant, traceable test cases and traceability matrices. Built using Google's Agent Development Kit (ADK) for enterprise deployment on Vertex AI Agent Engine.

🎯 Overview

This prototype demonstrates the future of healthcare software validation - where AI agents handle the complexity of regulatory compliance while maintaining full transparency and human oversight.

Key Features

  • Automated PRD Processing: Extracts requirements from PDF documents using Gemini 2.5 Pro
  • Multi-Standard Compliance: Supports FDA, HIPAA, IEC 62304, ISO 13485, ISO 27001
  • Agentic Orchestration: 16 independent, transparent tools working together
  • Professional Outputs: CSV test cases and PDF traceability matrices
  • Enterprise Ready: Built for Google Cloud Agent Engine deployment

πŸš€ Quick Start

Prerequisites

  • Python 3.8+
  • Google Cloud Project with Vertex AI enabled
  • Google Cloud Storage bucket
  • ADK (Agent Development Kit) installed

Installation

  1. Clone the repository
git clone https://github.com/charansatya/GenAIHackathon.git
cd GenAIHackathon
  1. Install dependencies
pip install -r requirements.txt
  1. Set up environment variables
export GOOGLE_CLOUD_PROJECT="your-project-id"
export GOOGLE_CLOUD_LOCATION="us-central1"
export GCS_BUCKET="hackathon-11"
export GOOGLE_APPLICATION_CREDENTIALS="path/to/service-account-key.json"
  1. Run the agent locally
adk run healthcare-test-generator
  1. Access the web interface
adk web --port 8001

πŸ—οΈ Architecture

Agentic Design

The system uses 16 independent tools organized into categories:

  • πŸ“ Document Discovery: list_prd_documents, extract_pdf_text
  • πŸ”„ Processing: analyze_requirements_from_text, process_requirements_document
  • βœ… Validation: validate_compliance_requirements, validate_processing_step
  • πŸ§ͺ Generation: generate_test_cases, generate_test_cases_simple
  • πŸ”— Traceability: create_traceability_matrix, create_traceability_matrix_simple
  • πŸ“Š Monitoring: get_workflow_status
  • πŸ“€ Export: export_test_cases_to_csv, export_traceability_matrix_to_pdf, export_to_jira

Technology Stack

  • Google ADK: Agent framework for enterprise deployment
  • Gemini 2.5 Pro: Large language model for intelligent processing
  • Google Cloud Storage: Document input/output management
  • Pandas: Robust CSV generation and data handling
  • ReportLab: Professional PDF report generation

πŸ“‹ Compliance Standards

  • FDA 21 CFR Part 11: Electronic Records and Signatures
  • HIPAA: Healthcare data privacy and security
  • IEC 62304: Medical device software lifecycle processes
  • ISO 13485: Medical device quality management systems
  • ISO 27001: Information security management

πŸ› οΈ Usage Examples

Basic Workflow

from healthcare_test_generator import root_agent

# The agent will automatically:
# 1. List PRD documents from GCS bucket
# 2. Extract and analyze requirements
# 3. Generate comprehensive test cases
# 4. Create traceability matrix
# 5. Export to CSV and PDF formats

Step-by-Step Processing

# 1. Discover documents
documents = list_prd_documents("hackathon-11")

# 2. Generate test cases
test_cases = generate_test_cases_simple("17", "functional,security", "FDA,HIPAA", "high")

# 3. Create traceability matrix
matrix = create_traceability_matrix_simple("17", "45", "FDA,HIPAA")

# 4. Check workflow status
status = get_workflow_status("hackathon-11")

πŸ“Š Output Structure

Generated Files

hackathon-11/
β”œβ”€β”€ prd_document.pdf (input)
β”œβ”€β”€ output_20250921_143052/
β”‚   β”œβ”€β”€ healthcare_test_cases_20250921_143052.csv
β”‚   β”œβ”€β”€ traceability_matrix_20250921_143052.pdf
β”‚   └── artifacts_20250921_143052.json

CSV Test Cases

  • Test Case ID, Title, Description
  • Test Type, Priority, Requirement ID
  • Test Steps, Expected Results
  • Compliance Standard, Test Data
  • Prerequisites, Risk Level, Status

PDF Traceability Matrix

  • Requirements to test cases mapping
  • Coverage analysis by compliance standard
  • Professional formatting for regulatory submissions

πŸš€ Deployment

Agent Engine Deployment

# Deploy to Vertex AI Agent Engine
adk deploy healthcare-test-generator --project your-project-id --region us-central1

AgentSpace Registration

Once deployed to Agent Engine, the agent can be registered in Google AgentSpace for enterprise discovery and integration.

πŸ’° Business Value

  • 80% Time Reduction: Automated test case generation vs. manual creation
  • 100% Compliance Coverage: Ensures all regulatory requirements are tested
  • Audit-Ready Documentation: Professional reports for regulatory submissions
  • Enterprise Scaling: Handles multiple PRD documents simultaneously
  • Cost Effective: Significantly lower than traditional compliance solutions

πŸ”§ Configuration

Environment Variables

# Required
GOOGLE_CLOUD_PROJECT=your-project-id
GOOGLE_CLOUD_LOCATION=us-central1
GCS_BUCKET=hackathon-11

# Optional: Jira Integration
JIRA_URL=https://your-domain.atlassian.net
JIRA_USERNAME=your-email@company.com
JIRA_API_TOKEN=your-api-token
JIRA_PROJECT_KEY=MED

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“„ License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

πŸ₯ Healthcare Compliance Notice

This tool is designed to assist with healthcare software testing and compliance documentation. It should be used as part of a comprehensive quality assurance process and does not replace professional regulatory guidance.

πŸ“ž Support

For questions, issues, or enterprise deployment assistance:

  • Create an issue in this repository
  • Contact: [Your contact information]

🎯 Roadmap

  • Deploy to Vertex AI Agent Engine
  • Register in Google AgentSpace
  • Add support for additional compliance standards
  • Integration with more healthcare systems
  • Multi-language support for international regulations

Built with ❀️ for the healthcare community using Google AI technologies

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages