This tool can help you understand and articulate your symptoms. It is not a substitute for professional medical advice.
Part 1: Symptom Description
1. Which of the following best describes your primary sensation?
2. Where do you feel these sensations most often? (Select all that apply)
Part 2: Symptom Severity & Impact
5
4. How often do you experience these symptoms?
5. How much do these symptoms interfere with your daily activities (e.g., walking, sleeping, working)?
This self-assessment is for informational purposes only and is NOT a medical diagnosis. Nerve pain can have many causes. It is essential to consult with a qualified healthcare professional for an accurate diagnosis and treatment plan.
Next Steps & Preparing for Your Appointment
Schedule an Appointment: Share this summary with your doctor, neurologist, or other healthcare provider.
Keep a Symptom Diary: Note what your symptoms feel like, when they occur, what makes them better or worse, and how they affect you.
List Your Questions: Write down any questions you have for your doctor before your visit.
`;
steps['3'].innerHTML = resultsHTML;
document.getElementById('download-pdf-btn').addEventListener('click', downloadPdf);
}
function downloadPdf() {
const { jsPDF } = window.jspdf;
const doc = new jsPDF();
// Header
doc.setFontSize(22);
doc.setFont('helvetica', 'bold');
doc.text('Nerve Pain Self-Assessment Summary', 105, 20, { align: 'center' });
doc.setFontSize(11);
doc.text(`Assessment Date: ${new Date().toLocaleDateString()}`, 105, 28, { align: 'center' });
// Summary Table
const tableBody = [
['Primary Sensation', userAnswers.sensation],
['Affected Locations', userAnswers.locations.join(', ') || 'Not specified'],
['Average Intensity (0-10)', userAnswers.intensity.toString()],
['Symptom Frequency', userAnswers.frequency.text],
['Impact on Daily Life', userAnswers.impact.text]
];
doc.autoTable({
startY: 40,
head: [['Question', 'Your Answer']],
body: tableBody,
theme: 'grid',
headStyles: { fillColor: [79, 70, 229] }
});
let finalY = doc.autoTable.previous.finalY;
// Disclaimer
doc.setFontSize(12);
doc.setFont('helvetica', 'bold');
doc.text('Important Disclaimer', 14, finalY + 15);
doc.setFontSize(10);
doc.setFont('helvetica', 'normal');
const disclaimerText = doc.splitTextToSize("This self-assessment is for informational purposes only and is NOT a medical diagnosis. It is essential to consult with a qualified healthcare professional for an accurate diagnosis and treatment plan.", 180);
doc.text(disclaimerText, 14, finalY + 22);
doc.save('Nerve-Pain-Assessment-Summary.pdf');
}
// --- INITIALIZATION ---
// No init needed for this tool
});