HazCom Plan Builder
The HazCom Plan Builder enables companies to create, manage, and maintain OSHA-compliant Hazard Communication Plans (Written Programs) as required by 29 CFR 1910.1200.
Overview
Every employer with hazardous chemicals in the workplace must have a written Hazard Communication Plan. The Plan Builder provides a guided, two-tier approach:
| Tier | Plans | Description |
|---|---|---|
| Basic | Starter | Template-driven questionnaire with pre-written paragraph options. No AI. |
| Premium | Standard / Pro | AI-powered content generation, dynamic questions tailored to chemical inventory, auto-suggested answers. |
Both tiers include full approval workflows, audit logging, version management, and PDF export.
Key Features
Questionnaire-Based Plan Creation
- 7 OSHA-mandated sections covering all required elements of 29 CFR 1910.1200(e)
- Section-by-section progress tracking with real-time completion percentage
- Pre-written paragraph options for common compliance responses
- Support for text, textarea, select, multi-select, yes/no, and date question types
AI Content Generation (Premium)
- AI Context: Gathers company profile, site info, chemical inventory, SDS coverage, and hazard classes
- Dynamic Questions: AI generates tailored questions based on actual chemical inventory (e.g., specific handling procedures for flammable or corrosive chemicals on-site)
- Auto-Suggested Answers: AI pre-fills answers using company data with accept/dismiss controls
- Confidence Scoring: Each generated section includes a confidence score
- SQS-Based Processing: AI operations run asynchronously via AWS SQS for reliability
PRO Auto-Setup Pipeline (Premium)
When a premium plan is created, a multi-phase background pipeline automatically:
- Gathers company profile and site information
- Fetches chemical inventory with SDS data and hazard classifications
- Builds enriched regulatory context
- Generates dynamic questions tailored to the company's chemicals
- Pre-fills answers for both static and dynamic questions
Users see an animated progress overlay and are automatically transitioned to the questionnaire when setup completes.
Generate Plan
- Basic plans: Synchronous template-based generation from questionnaire answers
- Premium plans: AI generates consultant-grade content using enriched context (company data + chemical inventory + all answers)
- Requires 100% questionnaire completion before generation
Split View Editor
After plan content is generated, users edit in a split view:
- Left panel: Section tabs + monospace markdown editor
- Right panel: Live-rendered HTML preview (updates on every keystroke)
- Debounced auto-save to backend
Approval Workflow
| Status | Actions | Who |
|---|---|---|
| Draft | Edit, Generate Plan, Submit for Approval | Any editor |
| Pending Approval | Approve, Reject (with reason) | Admin, Coordinator, Manager |
| Approved | Publish | Any editor |
| Active | Create New Version | Any editor |
| Archived | Create New Version | Any editor |
Version Management
- Create New Version: Creates a new draft copy from any approved/active/archived plan
- Copies all sections, answers, content, and metadata
- Increments version number; original plan unchanged
- Version history per site with timeline view
Editing Permissions
- Only
draftstatus plans allow editing (questionnaire, content, metadata) - Non-draft plans return 403 Forbidden on edit attempts
- "Create New Version" is the path to making changes on published plans
Audit Logging
- Dedicated
plan_hazcom_audit_logstable with 16 action types - Action categories: general, section, workflow, export, version
- Captures user ID, email, IP, user agent, plan version, and status
- Company-wide and plan-specific log views with pagination and filtering
- CSV export for compliance reporting
PDF Export
- Client-side PDF generation via jsPDF
- Full document rendering with table of contents
OSHA Sections
| # | Section | OSHA Reference | Covers |
|---|---|---|---|
| 1 | Company & Site Information | General | Company name, site address, coordinator details |
| 2 | Chemical Inventory | §1910.1200(e) | Inventory scope, storage locations, update frequency |
| 3 | Container Labeling | §1910.1200(f) | Shipped container checks, workplace labeling, portable containers |
| 4 | Safety Data Sheets | §1910.1200(g) | SDS location, access procedures, maintenance |
| 5 | Employee Training | §1910.1200(h) | Training frequency, topics, competency verification |
| 6 | Non-Routine Tasks | §1910.1200(e)(1)(ii) | Procedures for non-routine chemical tasks |
| 7 | Contractor Coordination | §1910.1200(e)(2) | Multi-employer hazard communication |
Implementation Status
All 5 phases are complete:
| Phase | Feature | Status |
|---|---|---|
| 1 | Basic Plan Builder (MVP) | Complete |
| 2 | Version Management & Audit Logging | Complete |
| 3 | AI Content Generation (SQS-Based) | Complete |
| 4 | PRO Auto-Setup Pipeline | Complete |
| 5 | Restructured Plan Builder | Complete |
Future Enhancements
- Change detection alerts (inventory/personnel changes trigger review reminders)
- E-signature integration for approvals
- DOCX export alongside PDF
- Cross-site plan cloning
- Training auto-generation from plan content
- Webhook notifications for plan events
Related Documentation
- Implementation Plan — Technical implementation details
- Database Schema — Table definitions and relationships