';
document.querySelector('#copytext').value = textContent;
modal.showModal();
});
// Modal close functionality
const modal = document.querySelector('.republish-modal');
const closeBtn = document.querySelector('.republish-modal-close');
// Close button click
closeBtn.addEventListener('click', function() {
modal.close();
});
// Close on backdrop click
modal.addEventListener('click', function(e) {
if (e.target === modal) {
modal.close();
}
});
// Close on ESC key (this is usually built-in, but adding for safety)
modal.addEventListener('keydown', function(e) {
if (e.key === 'Escape') {
modal.close();
}
});
// Copy text button functionality
document.querySelector('.copy-text-button').addEventListener('click', async function() {
const textarea = document.querySelector('#copytext');
const text = textarea.value;
try {
// Try modern Clipboard API first
if (navigator.clipboard && window.isSecureContext) {
await navigator.clipboard.writeText(text);
this.textContent = 'Copied!';
} else {
// Fallback for older browsers
textarea.select();
document.execCommand('copy');
this.textContent = 'Copied!';
}
// Reset button text after 2 seconds
setTimeout(() => {
this.textContent = 'Copy text';
}, 2000);
} catch (err) {
console.error('Failed to copy text: ', err);
// Fallback to selection if copying fails
textarea.select();
this.textContent = 'Text selected';
setTimeout(() => {
this.textContent = 'Copy text';
}, 2000);
}
});
});
Peter Korn of The Portland Tribune released an interesting article revealing that Oregon hospitals, nursing homes and pharmacies are reporting few of their medical blunders, according to a recent Oregon Public Health report. The article arrives not long after Hearst Newspapers released an extensive review of the nation's inconsistent reporting of medical errors, which they found contributes to thousands of preventable deaths and injuries every year.
Oregon's unique system for reporting health care mistakes relies on voluntary participation. While nearly every hospital is a member of the patient safety commission, less than 10 percent of Oregon's pharmacies have agreed to participate and the commission has yet to request reports from them.
But while the statistics show that hospitals are still reluctant to confess to their boo-boos -- with 27 percent of hospitals yet to report a mistake to the commission -- the number of reported events did increase, by 14, from 2007 to 2008.
Grant Higginson, Oregon's public health officer representative to the patient safety commission, believes that the commission is making headway:
This really is a culture change, a shift from people being afraid because they’re going to get punished for making a mistake, to a culture where you learn from mistakes and you use the information to change systems, rather than reprimand people... It’s going to take some time.