Back to Dashboard
Document Builder
Generate TJC and CARF-compliant policies, plans, and assessments using AI — pre-populated with your organization's data.
All Documents
TJC — Joint Commission
CARF International
TJC — Behavioral Health Care (Outpatient & Residential)
EC.04.01.01
EM.01.01.01
Hazard Vulnerability Analysis (HVA)
Environment of Care
Identify and score natural, technological, human-caused, and hazardous material threats specific to your facility using the Kaiser HVA model.
EM.02.01.01
Emergency Operations Plan (EOP)
Emergency Management
Comprehensive plan for responding to emergencies with the 6 Critical Functions: communication, resources, safety, utilities, clinical, staff.
PI.01.01.01
Quality Improvement Plan (QIP)
Performance Improvement
Annual QI plan describing your organization's performance improvement activities, measures, goals, and governance structure.
EC.02.01.01
EC Risk Assessment
Environment of Care
Assess risks in the physical environment including safety, security, fire, utilities, medical equipment, and waste management.
IC.02.01.01
Infection Control Risk Assessment (ICRA)
Infection Prevention & Control
Annual assessment of infection control risks and a plan to reduce the likelihood of healthcare-associated infections.
LD.05.01.01
Annual Program Evaluation
Leadership
Annual evaluation of program effectiveness, outcomes, and goal achievement as required by TJC Leadership standards.
CARF International — Behavioral Health
3.A CARF
Person-Centered Plan Policy
CARF Standard 3.A
Policy governing the development, implementation, and review of individualized person-centered plans for all persons served.
1.I CARF
Rights of Persons Served Policy
CARF Standard 1.I
Policy documenting the rights of all persons served, grievance procedures, and how rights are communicated and protected.
1.B CARF
Quality Improvement Plan (CARF)
CARF Standard 1.B — Aspire to Excellence
CARF-format QI plan demonstrating your commitment to continuous quality improvement and performance measurement.
2.B CARF
Crisis Intervention Plan
CARF Standard 2.B
Plan for managing behavioral health crisis situations, including de-escalation protocols, community resources, and staff training.
Document Wizard
${content}`); win.document.close(); setTimeout(() => win.print(), 500); } function copyDocument() { const text = document.getElementById('doc-preview')?.innerText || ''; navigator.clipboard.writeText(text).then(() => alert('✅ Document text copied to clipboard!')); } // // PROMPT BUILDERS //function d(key, fallback='[Not provided]') { return collectedData[key] || fallback; } function checkedList(key) { const v = collectedData[key]; return Array.isArray(v) ? v.join(', ') : (v || 'Not specified'); } function buildHVAPrompt() { return `You are a Joint Commission compliance expert. Generate a complete, professional Hazard Vulnerability Analysis (HVA) document for the following behavioral health facility. FACILITY: ${d('org-name')} — ${d('site-name')} ADDRESS: ${d('site-address') || d('org-address')}, ${d('org-city')} PROGRAM TYPE: ${d('hva-program-type')} COUNTY: ${d('hva-county')} AVERAGE DAILY CENSUS: ${d('hva-census')} clients STAFF: ${d('hva-staff')} FTEs BACKUP GENERATOR: ${d('hva-generator')} EHR: ${d('hva-ehr')} GEOGRAPHIC NOTES: ${d('hva-natural-notes')} HAZARDS TO ANALYZE: ${checkedList('hva-hazards')} DOCUMENT DATE: ${d('doc-date')} PREPARED BY: ${d('site-director') || d('org-ceo')} Generate a complete TJC-compliant HVA document in HTML format (no markdown, use proper HTML tags). Include: 1. Cover page section with facility name, address, date, TJC standard references (EC.04.01.01, EM.01.01.01) 2. Executive Summary (3-4 paragraphs) specific to this facility's location and risk profile 3. Complete HVA matrix table using Kaiser Permanente HVA model with ALL selected hazards. Table columns: Hazard | Category | Probability (0-3) | Human Impact (0-3) | Property Impact (0-3) | Business Impact (0-3) | Preparedness (0-3) | Risk Score % | Priority 4. Use realistic, defensible scores based on the facility location, type, and characteristics provided 5. Top Priorities section listing the 5 highest-risk hazards with brief rationale 6. Mitigation Recommendations section with specific action items for top risks 7. Signature block for approval Use this exact HTML structure with inline styles for the risk badges: - High risk: HIGH - Medium risk: MEDIUM - Low risk: LOW Make the document professional, detailed, and genuinely useful for a TJC survey. Write in formal policy language. Be specific about this California facility's actual risks (wildfire, earthquake, drought as relevant).`; } function buildEOPPrompt() { return `You are a Joint Commission compliance expert. Generate a complete Emergency Operations Plan (EOP) for the following behavioral health facility. FACILITY: ${d('org-name')} — ${d('site-name')} ADDRESS: ${d('site-address') || d('org-address')}, ${d('org-city')} CEO/EXECUTIVE DIRECTOR: ${d('org-ceo')} INCIDENT COMMANDER: ${d('eop-ic')} SAFETY OFFICER: ${d('safety-officer')} LIAISON OFFICER: ${d('eop-liaison')} OPERATIONS CHIEF: ${d('eop-ops')} LOCAL EMERGENCY AGENCY: ${d('eop-ema')} NEAREST HOSPITAL: ${d('eop-hospital')} COMMUNICATION PLAN: ${d('eop-comm')} RESOURCES: ${d('eop-resources')} SAFETY & SECURITY: ${d('eop-safety')} UTILITIES: ${d('eop-utilities')} CLINICAL ACTIVITIES: ${d('eop-clinical')} STAFF RESPONSIBILITIES: ${d('eop-staff')} DATE: ${d('doc-date')} Generate a complete TJC-compliant EOP in HTML format. Include: 1. Cover page with facility info and TJC standard EM.02.01.01 2. Purpose and Scope 3. Incident Command Structure diagram (text-based table showing hierarchy) 4. The 6 Critical Functions — each with detailed procedures: - Communication (internal/external notification, backup communication) - Resources & Assets (medications, supplies, equipment, evacuation) - Safety & Security (lockdown, evacuation, shelter-in-place, visitor management) - Utilities (power, water, HVAC, medical gases — backup procedures) - Clinical Activities (patient care continuity, medication management, discharge criteria) - Staff Roles & Responsibilities (mandatory overtime, alternate staffing, staff notification) 5. Activation Levels (Level 1 — Monitor, Level 2 — Partial Activation, Level 3 — Full Activation) 6. Training & Exercise Requirements 7. Plan Review and Revision Schedule 8. Signature/Approval Block Make it detailed, professional, and genuinely survey-ready.`; } function buildQIPPrompt() { return `You are a Joint Commission compliance expert. Generate a complete Quality Improvement Plan for the following behavioral health organization. ORGANIZATION: ${d('org-name')} SITE: ${d('site-name')}, ${d('org-city')} QI COORDINATOR: ${d('qi-coordinator')} CLINICAL DIRECTOR: ${d('clinical-director')} QI COMMITTEE FREQUENCY: ${d('qi-freq')} FISCAL YEAR: ${d('qi-year')} COMMITTEE MEMBERS: ${d('qi-members')} PERFORMANCE MEASURES: ${checkedList('qi-measures')} DATE: ${d('doc-date')} Generate a complete TJC-compliant QI Plan in HTML format. Include: 1. Cover page with TJC standard PI.01.01.01 2. Purpose and Philosophy of Quality Improvement 3. QI Governance Structure (roles, committee composition, meeting schedule) 4. Quality Improvement Model used (PDSA, Lean, or similar — describe the approach) 5. Performance Measures table — for EACH selected measure include: - Measure name and definition - Data source - Measurement frequency - Baseline (if known — use reasonable estimates) - Target/Goal for this year - Responsible party 6. Data Collection & Analysis processes 7. Reporting Structure (who receives QI reports, at what intervals) 8. Improvement Projects — describe 3 specific PI projects for the year based on the measures selected 9. Annual Evaluation of QI Program effectiveness 10. Signature/Approval Block Write in formal, professional language appropriate for TJC survey review.`; } function buildECRiskPrompt() { return `You are a Joint Commission compliance expert. Generate a complete Environment of Care Risk Assessment for this behavioral health facility. FACILITY: ${d('org-name')} — ${d('site-name')} ADDRESS: ${d('site-address') || d('org-address')}, ${d('org-city')} BUILDING TYPE: ${d('ec-building')} YEAR BUILT/RENOVATED: ${d('ec-year')} SQUARE FOOTAGE: ${d('ec-sqft')} FLOORS: ${d('ec-floors')} SECURITY SYSTEMS: ${d('ec-security')} RISK AREAS: ${checkedList('ec-areas')} DATE: ${d('doc-date')} Generate a complete TJC-compliant EC Risk Assessment in HTML format (TJC standard EC.02.01.01). Include: 1. Cover page and facility information 2. Executive Summary 3. Risk Assessment Matrix table — for EACH selected risk area include: - Risk category - Specific risks identified - Likelihood (1-5) - Severity (1-5) - Risk Score (Likelihood × Severity) - Current controls in place - Priority (High/Medium/Low) - Recommended action 4. Prioritized Action Plan listing top 5 risks with specific corrective actions, responsible party, and target completion date 5. EC Management Plans summary (which of the 8 EC management plans are maintained) 6. Review schedule and signature block Be specific and detailed — this should be genuinely useful for survey preparation.`; } function buildICRAPrompt() { return `You are a Joint Commission infection control expert. Generate a complete Infection Control Risk Assessment (ICRA) for this behavioral health facility. FACILITY: ${d('org-name')} — ${d('site-name')} LOCATION: ${d('org-city')} IC OFFICER: ${d('ic-officer')} MEETING FREQUENCY: ${d('ic-freq')} CURRENT IC POLICIES: ${d('ic-policies')} RECENT EVENTS: ${d('ic-events')} RISK FACTORS PRESENT: ${checkedList('ic-risks')} DATE: ${d('doc-date')} Generate a complete TJC-compliant ICRA in HTML format (TJC standard IC.02.01.01). Include: 1. Cover page with standard reference and facility info 2. Purpose and Scope 3. Infection Control Risk Assessment Matrix — assess each of these infection risk categories: - Healthcare-Associated Infections (HAIs) - Bloodborne Pathogen Exposures - Tuberculosis (TB) Transmission - Respiratory Infections (including COVID-19, influenza) - Gastrointestinal Infections - Skin/Wound Infections - Multi-Drug Resistant Organisms (MDROs) For each: Risk Level (High/Medium/Low), Rationale specific to this facility/population, Current Controls, Recommendations 4. High-Risk Population considerations (specific to SUD/behavioral health clients) 5. IC Program Evaluation — what worked, what needs improvement 6. Annual IC Goals (3-5 specific, measurable goals) 7. IC Training requirements 8. Signature block Make scoring specific to behavioral health/SUD setting — this population has unique infection risk factors.`; } function buildAnnualEvalPrompt() { return `You are a Joint Commission compliance expert. Generate a complete Annual Program Evaluation for this behavioral health program. ORGANIZATION: ${d('org-name')} SITE: ${d('site-name')}, ${d('org-city')} CEO: ${d('org-ceo')} CLINICAL DIRECTOR: ${d('clinical-director')} EVALUATION YEAR: ${d('eval-year')} CLIENTS SERVED: ${d('eval-clients')} TREATMENT COMPLETION RATE: ${d('eval-completion')}% CLIENT SATISFACTION: ${d('eval-sat')}% AVERAGE LENGTH OF STAY: ${d('eval-los')} days CRITICAL INCIDENTS: ${d('eval-incidents')} KEY ACCOMPLISHMENTS: ${d('eval-accomplishments')} PRIOR YEAR GOALS: ${d('eval-prior-goals')} GOALS STATUS: ${d('eval-goals-status')} NEXT YEAR GOALS: ${d('eval-next-goals')} DATE: ${d('doc-date')} Generate a complete TJC-compliant Annual Program Evaluation in HTML format (TJC standard LD.05.01.01). Include: 1. Cover page and program overview 2. Executive Summary 3. Mission and Program Description 4. Scope of Services Provided 5. Program Performance Data section with the metrics provided, formatted in a clear table 6. Analysis of Outcomes — interpret the numbers, what do they mean for quality of care? 7. Prior Year Goals — status and analysis for each goal provided 8. Barriers and Challenges encountered 9. Program Strengths identified 10. Goals for Next Program Year — formatted as SMART goals based on input provided 11. Accreditation and Compliance Status 12. Approval and Signature Block Write in formal, professional language. The document should clearly demonstrate to TJC surveyors that leadership conducts meaningful program evaluation.`; } function buildCarfPCPPrompt() { return `You are a CARF International accreditation expert. Generate a complete Person-Centered Plan Policy and Procedure for this behavioral health organization. ORGANIZATION: ${d('org-name')} SITE: ${d('site-name')}, ${d('org-city')} CARF PROGRAM STANDARDS: ${d('carf-program')} PCP REVIEW FREQUENCY: ${d('pcp-review')} PCP PARTICIPANTS: ${d('pcp-participants')} GOALS IDENTIFICATION PROCESS: ${d('pcp-goals-process')} POPULATION SERVED: ${d('carf-population')} SERVICES PROVIDED: ${d('carf-services')} EHR DOCUMENTATION: ${d('carf-ehr-doc')} DATE: ${d('doc-date')} Generate a complete CARF-compliant Person-Centered Plan Policy in HTML format (CARF Standard 3.A). Include: 1. Policy header with policy number, effective date, review date 2. Purpose 3. Scope 4. Policy Statement 5. Definitions (Person-Centered Plan, Person Served, Support Network, etc.) 6. Procedure — detailed step-by-step: - Initial assessment and PCP development process - Who is involved (with consent procedures for support network) - Identifying person-driven goals, strengths, and preferences - Documenting the plan in the EHR - Implementation, monitoring, and review schedule - Revision procedures when goals change - Discharge planning integration 7. Staff Responsibilities (by role) 8. Documentation Requirements 9. Quality Monitoring (how the organization ensures PCPs are completed and effective) 10. References (CARF Standard 3.A, applicable state regulations) 11. Approval signatures Write in formal policy language appropriate for CARF survey. Demonstrate genuine commitment to person-centered values throughout.`; } function buildCarfRightsPrompt() { return `You are a CARF International accreditation expert. Generate a complete Rights of Persons Served Policy for this behavioral health organization. ORGANIZATION: ${d('org-name')} SITE: ${d('site-name')}, ${d('org-city')} COMMUNICATION OF RIGHTS: ${d('rights-communication')} GRIEVANCE PROCESS: ${d('rights-grievance')} GRIEVANCE COORDINATOR: ${d('compliance-officer')} RESPONSE TIMEFRAME: ${d('rights-timeframe')} RIGHTS PROVIDED: ${checkedList('rights-list')} DATE: ${d('doc-date')} Generate a complete CARF-compliant Rights of Persons Served Policy in HTML format (CARF Standard 1.I). Include: 1. Policy header with number, effective date, review date 2. Purpose and Philosophy statement 3. Scope 4. Policy Statement 5. Rights of Persons Served — formatted as a numbered list with clear, plain-language description of each right, including all rights listed above 6. Communication of Rights — detailed procedure for how rights are explained at admission and ongoing 7. Limitations on Rights — when and how rights may be limited, with due process protections 8. Grievance Procedure — complete step-by-step process including: - How to file (verbal or written) - Who receives grievances - Investigation process - Response timeframe (${d('rights-timeframe')}) - Right to appeal - Protection from retaliation 9. Staff Responsibilities 10. Documentation Requirements 11. Quality Monitoring 12. Legal References (CARF Standard 1.I, 42 CFR Part 2, HIPAA, California law as applicable) 13. Approval block Write in accessible, person-centered language while maintaining professional policy standards appropriate for CARF survey review.`; } function buildCarfQIPrompt() { return `You are a CARF International accreditation expert. Generate a complete Quality Improvement Plan aligned to CARF's Aspire to Excellence framework. ORGANIZATION: ${d('org-name')} SITE: ${d('site-name')}, ${d('org-city')} QI COORDINATOR: ${d('qi-coordinator')} QI REVIEW CYCLE: ${d('carf-qi-cycle')} MISSION: ${d('carf-mission')} VISION: ${d('carf-vision')} PERFORMANCE MEASURES: ${checkedList('carf-measures')} DATE: ${d('doc-date')} Generate a complete CARF-compliant QI Plan in HTML format (CARF Standard 1.B — Aspire to Excellence). Include: 1. Cover page and CARF standard reference 2. Organizational Mission and Vision 3. Quality Improvement Philosophy — commitment to continuous improvement and CARF's Aspire to Excellence model 4. QI Leadership and Governance 5. Performance Measurement System — for each selected measure: - Definition and rationale - Data source and collection method - Measurement frequency - Target - Responsible party 6. Data Analysis and Interpretation process 7. Improvement Actions — how findings lead to action 8. Stakeholder Involvement (persons served, families, staff, community) 9. Annual QI Review process 10. Alignment with Strategic Plan 11. Approval and Signature Block Write in language that demonstrates genuine commitment to CARF's values of quality, value, and optimal outcomes for persons served.`; } function buildCarfCrisisPrompt() { return `You are a CARF International accreditation expert. Generate a complete Crisis Intervention Plan for this behavioral health organization. ORGANIZATION: ${d('org-name')} SITE: ${d('site-name')}, ${d('org-city')} RISK ASSESSMENT TOOL: ${d('crisis-tool')} DE-ESCALATION TECHNIQUES: ${d('crisis-deescalation')} 911 CRITERIA: ${d('crisis-911')} ON-CALL CLINICIAN: ${d('crisis-oncall')} LOCAL CRISIS LINE: ${d('crisis-line')} PSYCHIATRIC EMERGENCY SERVICES: ${d('crisis-pes')} NEAREST ER: ${d('crisis-er')} MOBILE CRISIS TEAM: ${d('crisis-mobile')} STAFF TRAINING: ${d('crisis-training')} DATE: ${d('doc-date')} Generate a complete CARF-compliant Crisis Intervention Plan in HTML format (CARF Standard 2.B). Include: 1. Policy header with standard reference 2. Purpose and Philosophy (recovery-oriented, trauma-informed approach to crisis) 3. Scope and Definitions (crisis, behavioral emergency, psychiatric emergency) 4. Crisis Identification and Assessment: - Warning signs and triggers - Risk assessment tool and procedure (${d('crisis-tool')}) - Risk level classification (Low/Moderate/High/Imminent) 5. Crisis Intervention Procedures by risk level — detailed step-by-step protocols 6. De-escalation Techniques and approaches 7. When to Call 911 — clear, specific criteria 8. Community Crisis Resources table (all resources listed above with contact info) 9. Voluntary vs. Involuntary Hospitalization procedures (5150/5250 in California) 10. Post-Crisis Debriefing for staff and persons served 11. Staff Training Requirements 12. Documentation Requirements 13. Quality Monitoring 14. Approval Block Write detailed, practical procedures that staff can actually follow during a crisis. Use clear, action-oriented language.`; } window.addEventListener("load", () => init().catch(console.error));