Assess Pressure Ulcer Risk with Clinical Precision
👁️
Sensory Perception
Ability to respond meaningfully to pressure-related discomfort
💧
Moisture
Degree to which skin is exposed to moisture
🏃
Activity
Degree of physical activity
🔄
Mobility
Ability to change and control body position
🥗
Nutrition
Usual food intake pattern
🛡️
Friction & Shear
Level of assistance needed to move and degree of sliding
--
Total Braden Score
Complete All Categories
📋 Clinical Recommendations
Share Assessment Results
⚕️
Clinical Note: This calculator is for educational purposes. Braden Scale assessment should be performed by trained healthcare professionals. Always consult clinical guidelines and institutional protocols for patient care decisions.
`;
printWindow.document.write(printContent);
printWindow.document.close();
printWindow.focus();
setTimeout(() => {
printWindow.print();
printWindow.close();
}, 250);
showNotification('Print dialog opened successfully!', 'success');
}function shareResult(platform) {
if (!currentResults) {
showNotification('Please complete the assessment first.', 'warning');
return;
}
const score = currentResults.totalScore;
const risk = currentResults.riskCategory;
const scoreCategory = 'Braden Scale';
// Create share text
let shareText = `Braden Scale Assessment Score: ${score}/${risk}`;
shareText += `\nRisk Category: ${risk}`;
shareText += `\nAssessed on: ${new Date().toLocaleDateString()}`;
shareText += `\n\nProfessional pressure ulcer risk assessment tool.`;
shareText += `\n\n🔗 Assess your patient's risk: ${window.location.href}`;
// Platform-specific sharing
switch(platform) {
case 'facebook':
window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(window.location.href)}"e=${encodeURIComponent(shareText)}`, '_blank');
break;
case 'x':
window.open(`https://twitter.com/intent/tweet?text=${encodeURIComponent(shareText)}`, '_blank');
break;
case 'whatsapp':
window.open(`https://wa.me/?text=${encodeURIComponent(shareText)}`, '_blank');
break;
case 'telegram':
window.open(`https://t.me/share/url?url=${encodeURIComponent(window.location.href)}&text=${encodeURIComponent(shareText)}`, '_blank');
break;
case 'reddit':
window.open(`https://reddit.com/submit?url=${encodeURIComponent(window.location.href)}&title=${encodeURIComponent(scoreCategory)}`, '_blank');
break;
case 'pinterest':
window.open(`https://pinterest.com/pin/create/button/?url=${encodeURIComponent(window.location.href)}&description=${encodeURIComponent(shareText)}`, '_blank');
break;
case 'linkedin':
window.open(`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(window.location.href)}`, '_blank');
break;
case 'tiktok':
showNotification('Copy and share your results on TikTok!', 'info');
navigator.clipboard.writeText(shareText);
break;
case 'vk':
window.open(`https://vk.com/share.php?url=${encodeURIComponent(window.location.href)}&title=${encodeURIComponent(scoreCategory)}&comment=${encodeURIComponent(shareText)}`, '_blank');
break;
case 'email':
window.location.href = `mailto:?subject=${encodeURIComponent(scoreCategory)} Assessment Results&body=${encodeURIComponent(shareText)}`;
break;
}
showNotification(`Results ready to share on ${platform.charAt(0).toUpperCase() + platform.slice(1)}!`, 'success');
}function showNotification(message, type = 'info') {
// Create notification element
const notification = document.createElement('div');
notification.style.cssText = `
position: fixed;
top: 20px;
right: 20px;
background: ${type === 'success' ? '#10b981' : type === 'warning' ? '#f59e0b' : '#3b82f6'};
color: white;
padding: 16px 24px;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
z-index: 10000;
font-weight: 600;
transform: translateX(400px);
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
max-width: 350px;
font-size: 16px;
`;
notification.textContent = message;
document.body.appendChild(notification);
// Animate in
setTimeout(() => {
notification.style.transform = 'translateX(0)';
}, 100);
// Remove after 4 seconds
setTimeout(() => {
notification.style.transform = 'translateX(400px)';
setTimeout(() => {
document.body.removeChild(notification);
}, 300);
}, 4000);
}// Keyboard navigation support
document.addEventListener('keydown', function(e) {
if (e.key === 'Enter' && e.target.type === 'radio') {
e.preventDefault();
const currentCard = e.target.closest('.category-card');
const nextCard = currentCard.nextElementSibling;
if (nextCard && nextCard.classList.contains('category-card')) {
const firstOption = nextCard.querySelector('input[type="radio"]');
if (firstOption) firstOption.focus();
}
}
});// Add touch feedback for mobile
if ('ontouchstart' in window) {
const optionLabels = document.querySelectorAll('.option-label');
optionLabels.forEach(label => {
label.addEventListener('touchstart', function() {
this.style.transform = 'scale(0.98)';
});
label.addEventListener('touchend', function() {
this.style.transform = '';
});
});
}