Chronic Fatigue Syndrome (CFS) Self-Assessment

Chronic Fatigue Syndrome (CFS/ME) Self-Assessment

An informational tool to help you evaluate your symptoms.

Important Information

This self-assessment is designed to help you understand if your symptoms align with the key criteria for Myalgic Encephalomyelitis/Chronic Fatigue Syndrome (ME/CFS).

This is not a diagnostic tool. A diagnosis of ME/CFS can only be made by a qualified healthcare professional after a thorough evaluation to rule out other conditions.

The questions are based on criteria from the 2015 Institute of Medicine (IOM) report. Please answer them as accurately as possible.

When you are ready, click "Next" to begin the assessment.

This assessment is for informational purposes only. Consult a healthcare professional for a diagnosis.

However, any persistent fatigue or other symptoms should be discussed with a healthcare professional to identify the underlying cause.

`; } resultsSummary.innerHTML = summaryHTML; } // --- PDF Generation --- async function generatePdf() { const { jsPDF } = window.jspdf; const doc = new jsPDF({ orientation: 'portrait', unit: 'mm', format: 'a4' }); // --- PDF Styling & Content --- const primaryColor = '#7c3aed'; const textColor = '#374151'; // Header doc.setFont('Inter', 'bold'); doc.setFontSize(22); doc.setTextColor(primaryColor); doc.text('CFS/ME Self-Assessment Report', 105, 25, { align: 'center' }); doc.setFont('Inter', 'normal'); doc.setFontSize(10); doc.setTextColor('#6b7280'); doc.text(`Assessment Date: ${new Date().toLocaleDateString('en-US')}`, 105, 33, { align: 'center' }); doc.setLineWidth(0.5); doc.setDrawColor(primaryColor); doc.line(20, 40, 190, 40); // Responses Section let startY = 55; doc.setFont('Inter', 'bold'); doc.setFontSize(16); doc.setTextColor(textColor); doc.text('Your Responses', 20, startY); startY += 10; const questionsAndAnswers = [ ['Profound, prolonged fatigue:', assessmentData.fatigue], ['Post-Exertional Malaise (PEM):', assessmentData.pem], ['Unrefreshing sleep:', assessmentData.sleep], ['Cognitive impairment ("brain fog"):', assessmentData.cognitive], ['Orthostatic intolerance:', assessmentData.orthostatic] ]; doc.setFontSize(11); questionsAndAnswers.forEach(([question, answer]) => { doc.setFillColor(245, 243, 255); // violet-50 doc.rect(20, startY - 7, 170, 10, 'F'); doc.setFont('Inter', 'bold'); doc.text(question, 22, startY); doc.setFont('Inter', 'normal'); doc.text(answer, 120, startY); startY += 15; }); // Summary Section startY += 10; doc.setFont('Inter', 'bold'); doc.setFontSize(16); doc.setTextColor(textColor); doc.text('Assessment Summary', 20, startY); startY += 8; doc.setFont('Inter', 'normal'); doc.setFontSize(11); const summaryText = resultsSummary.innerText; doc.text(summaryText, 22, startY, { maxWidth: 165, lineHeightFactor: 1.5 }); // Footer startY = 265; doc.setLineWidth(0.2); doc.setDrawColor('#d1d5db'); doc.line(20, startY, 190, startY); startY += 8; doc.setFontSize(9); doc.setTextColor('#6b7280'); doc.text('Disclaimer: This is an informational tool, not a medical diagnosis. The results of this assessment should be discussed with a qualified healthcare professional who can perform a comprehensive evaluation.', 105, startY, { align: 'center', maxWidth: 170 }); // --- Save PDF --- doc.save('CFS_ME_Self_Assessment_Report.pdf'); } // --- Event Listeners --- if (nav.next) nav.next.addEventListener('click', () => navigate(1)); if (nav.prev) nav.prev.addEventListener('click', () => navigate(-1)); if (downloadPdfBtn) downloadPdfBtn.addEventListener('click', generatePdf); // Initial setup setActiveTab('intro'); });
Scroll to Top