Contraception Cost-Benefit Analyzer
Your Contraception Analysis
Recommended Contraceptive Methods
Method Comparison
Personalized Considerations
Contraception Cost-Benefit Analysis Report
Generated by DoseWay Contraception Analyzer
Generated by DoseWay Contraception Analyzer
Cons: ${methods[0].cons.join(", ")}
Suitability Score: ${Math.round(methods[0].suitability)}/100
Effectiveness: ${methods[1].effectiveness}%
Duration: ${methods[1].duration}
Pros: ${methods[1].pros.join(", ")}
Cons: ${methods[1].cons.join(", ")}
Suitability Score: ${Math.round(methods[1].suitability)}/100
Effectiveness: ${methods[2].effectiveness}%
Duration: ${methods[2].duration}
Pros: ${methods[2].pros.join(", ")}
Cons: ${methods[2].cons.join(", ")}
Suitability Score: ${Math.round(methods[2].suitability)}/100
Method | Effectiveness | Safety | Cost | Duration |
---|---|---|---|---|
${method.name} | ${method.effectiveness}% | ${method.safety}% | ${method.cost}% | ${method.duration} |
We recommend discussing these options with your healthcare provider to determine the best choice for your individual needs. This analysis is for informational purposes only and should not replace professional medical advice.
`; pdfRecommendations.innerHTML = recommendationsHTML; } // Helper function to get BMI category function getBmiCategory(bmi) { if (bmi < 18.5) return "Underweight"; if (bmi < 25) return "Normal weight"; if (bmi < 30) return "Overweight"; return "Obese"; } // Save as PDF savePdfBtn.addEventListener('click', function() { // Create a new PDF instance const doc = new jsPDF(); // Add logo or title doc.setFontSize(20); doc.setTextColor(74, 111, 165); doc.text('Contraception Cost-Benefit Analysis Report', 105, 20, { align: 'center' }); doc.setFontSize(12); doc.setTextColor(100, 100, 100); doc.text('Generated by DoseWay Contraception Analyzer', 105, 28, { align: 'center' }); // Add horizontal line doc.setDrawColor(74, 111, 165); doc.setLineWidth(0.5); doc.line(20, 32, 190, 32); // Add current date const today = new Date(); const dateStr = today.toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' }); doc.setFontSize(10); doc.text(`Report generated on: ${dateStr}`, 20, 40); // Add patient information section doc.setFontSize(14); doc.setTextColor(74, 111, 165); doc.text('1. Personal Information', 20, 50); doc.setFontSize(10); doc.setTextColor(0, 0, 0); const personalInfo = pdfPersonalInfo.querySelectorAll('.report-row'); let yPos = 60; personalInfo.forEach(row => { const label = row.querySelector('.report-label').textContent; const value = row.querySelector('.report-value').textContent; doc.text(`${label} ${value}`, 20, yPos); yPos += 7; }); // Add medical history section doc.setFontSize(14); doc.setTextColor(74, 111, 165); doc.text('2. Medical History', 20, yPos + 10); doc.setFontSize(10); doc.setTextColor(0, 0, 0); yPos += 20; const medicalHistory = pdfMedicalHistory.querySelectorAll('.report-row'); medicalHistory.forEach(row => { const label = row.querySelector('.report-label').textContent; const value = row.querySelector('.report-value').textContent; doc.text(`${label} ${value}`, 20, yPos); yPos += 7; }); // Add preferences section doc.setFontSize(14); doc.setTextColor(74, 111, 165); doc.text('3. Contraception Preferences', 20, yPos + 10); doc.setFontSize(10); doc.setTextColor(0, 0, 0); yPos += 20; const preferences = pdfPreferences.querySelectorAll('.report-row'); preferences.forEach(row => { const label = row.querySelector('.report-label').textContent; const value = row.querySelector('.report-value').textContent; // Split long values into multiple lines if (value.length > 60 && label !== "Side Effects to Avoid:") { const lines = doc.splitTextToSize(value, 150); doc.text(`${label}`, 20, yPos); doc.text(lines, 30, yPos + 7); yPos += 7 + (lines.length * 7); } else { doc.text(`${label} ${value}`, 20, yPos); yPos += 7; } }); // Add results section doc.setFontSize(14); doc.setTextColor(74, 111, 165); doc.text('4. Analysis Results', 20, yPos + 10); doc.setFontSize(10); doc.setTextColor(0, 0, 0); yPos += 20; const results = pdfResults.querySelectorAll('.report-row'); results.forEach(row => { const label = row.querySelector('.report-label').textContent; const value = row.querySelector('.report-value').textContent; doc.text(`${label} ${value}`, 20, yPos); yPos += 7; }); // Add recommendations section doc.setFontSize(14); doc.setTextColor(74, 111, 165); doc.text('5. Recommendations', 20, yPos + 10); doc.setFontSize(10); doc.setTextColor(0, 0, 0); yPos += 20; // Add top recommended methods doc.setFontSize(12); doc.setTextColor(74, 111, 165); doc.text('Top Recommended Methods:', 20, yPos); doc.setFontSize(10); doc.setTextColor(0, 0, 0); yPos += 10; // Method 1 doc.setFontSize(11); doc.text('1. ' + pdfRecommendations.querySelector('li:nth-child(1) strong').textContent, 20, yPos); doc.setFontSize(10); yPos += 7; const method1Details = pdfRecommendations.querySelector('li:nth-child(1)').textContent.replace(pdfRecommendations.querySelector('li:nth-child(1) strong').textContent, ''); const method1Lines = doc.splitTextToSize(method1Details, 170); doc.text(method1Lines, 25, yPos); yPos += method1Lines.length * 7 + 5; // Method 2 doc.setFontSize(11); doc.text('2. ' + pdfRecommendations.querySelector('li:nth-child(2) strong').textContent, 20, yPos); doc.setFontSize(10); yPos += 7; const method2Details = pdfRecommendations.querySelector('li:nth-child(2)').textContent.replace(pdfRecommendations.querySelector('li:nth-child(2) strong').textContent, ''); const method2Lines = doc.splitTextToSize(method2Details, 170); doc.text(method2Lines, 25, yPos); yPos += method2Lines.length * 7 + 5; // Method 3 doc.setFontSize(11); doc.text('3. ' + pdfRecommendations.querySelector('li:nth-child(3) strong').textContent, 20, yPos); doc.setFontSize(10); yPos += 7; const method3Details = pdfRecommendations.querySelector('li:nth-child(3)').textContent.replace(pdfRecommendations.querySelector('li:nth-child(3) strong').textContent, ''); const method3Lines = doc.splitTextToSize(method3Details, 170); doc.text(method3Lines, 25, yPos); yPos += method3Lines.length * 7 + 10; // Add personalized considerations doc.setFontSize(12); doc.setTextColor(74, 111, 165); doc.text('Personalized Considerations:', 20, yPos); doc.setFontSize(10); doc.setTextColor(0, 0, 0); yPos += 10; const considerations = pdfRecommendations.querySelectorAll('ul li'); considerations.forEach(li => { const text = li.textContent; const lines = doc.splitTextToSize(text, 170); doc.text(lines, 20, yPos); yPos += lines.length * 7 + 5; }); // Add next steps doc.setFontSize(12); doc.setTextColor(74, 111, 165); doc.text('Next Steps:', 20, yPos); doc.setFontSize(10); doc.setTextColor(0, 0, 0); yPos += 10; const nextSteps = pdfRecommendations.querySelector('p').textContent; const nextStepsLines = doc.splitTextToSize(nextSteps, 170); doc.text(nextStepsLines, 20, yPos); yPos += nextStepsLines.length * 7 + 10; // Add footer doc.setFontSize(10); doc.setTextColor(100, 100, 100); doc.setLineWidth(0.5); doc.line(20, 280, 190, 280); doc.text('Website: https://doseway.com/ | Email: support@doseway.com | WhatsApp: +92318-6144650', 105, 285, { align: 'center' }); // Save the PDF const name = document.getElementById('name').value || 'contraception_analysis'; doc.save(`${name}_contraception_analysis.pdf`); }); // Social Sharing document.getElementById('shareFB').addEventListener('click', function(e) { e.preventDefault(); const url = encodeURIComponent(window.location.href); const text = encodeURIComponent(`I used the DoseWay Contraception Cost-Benefit Analyzer and got a score of ${finalScore.textContent}/100. Check it out!`); window.open(`https://www.facebook.com/sharer/sharer.php?u=${url}"e=${text}`, '_blank'); }); document.getElementById('shareTwitter').addEventListener('click', function(e) { e.preventDefault(); const text = encodeURIComponent(`My contraception suitability score is ${finalScore.textContent}/100. Try the DoseWay Contraception Cost-Benefit Analyzer!`); const url = encodeURIComponent(window.location.href); window.open(`https://twitter.com/intent/tweet?text=${text}&url=${url}`, '_blank'); }); document.getElementById('shareLinkedIn').addEventListener('click', function(e) { e.preventDefault(); const url = encodeURIComponent(window.location.href); const title = encodeURIComponent('Contraception Cost-Benefit Analyzer'); const summary = encodeURIComponent(`I used the DoseWay Contraception Cost-Benefit Analyzer and got a score of ${finalScore.textContent}/100.`); window.open(`https://www.linkedin.com/shareArticle?mini=true&url=${url}&title=${title}&summary=${summary}`, '_blank'); }); document.getElementById('shareWhatsApp').addEventListener('click', function(e) { e.preventDefault(); const text = encodeURIComponent(`Check out my contraception analysis results! My suitability score is ${finalScore.textContent}/100. Try the analyzer here: ${window.location.href}`); window.open(`https://wa.me/?text=${text}`, '_blank'); });Try More Free Tools:
Choosing the right contraceptive method is a critical decision that impacts reproductive health, financial planning, and lifestyle. Our Contraception Cost-Benefit Analyzer simplifies this complex process by evaluating medical, financial, and personal factors to recommend optimal birth control solutions.
The effectiveness of a birth control method in preventing pregnancy, measured as a percentage (e.g., 99% for hormonal IUDs).
Individual medical factors (e.g., hypertension, smoking) that influence contraceptive safety.
Comparison of long-term costs (financial, health) versus benefits (convenience, reliability) of contraceptive options.
Likelihood of consistent and correct use (e.g., daily pills vs. long-acting reversible contraceptives).
Method | Perfect Use | Typical Use |
---|---|---|
Hormonal IUD | 99% | 99% |
Birth Control Pill | 99% | 91% |
Condoms | 98% | 85% |
The tool generates a Personalized Contraception Score (0–100) categorized as:
Example Output:
*”Your score of 82/100 suggests the hormonal IUD is ideal. Benefits include high efficacy and minimal maintenance, but monitor for potential side effects like irregular bleeding.”*
The tool uses clinical guidelines from the CDC and WHO to ensure medically valid results.
Yes, but minors should review results with a guardian or physician.
No—this tool focuses on routine/preventive methods.
Add a Comment