Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
| Entrambe le parti precedenti la revisioneRevisione precedenteProssima revisione | Revisione precedente | ||
| docuneo:nec_calculator [2025/07/12 11:03] – admin | docuneo:nec_calculator [2025/07/13 09:30] (versione attuale) – eliminata admin | ||
|---|---|---|---|
| Linea 1: | Linea 1: | ||
| - | < | ||
| - | < | ||
| - | <meta charset=" | ||
| - | <meta name=" | ||
| - | < | ||
| - | < | ||
| - | /* Stili compatibili con DokuWiki */ | ||
| - | .nec-calculator { | ||
| - | font-family: | ||
| - | max-width: 900px; | ||
| - | margin: 20px auto; | ||
| - | background: #fff; | ||
| - | border: 1px solid #ccc; | ||
| - | border-radius: | ||
| - | padding: 20px; | ||
| - | } | ||
| - | | ||
| - | .nec-title { | ||
| - | text-align: center; | ||
| - | color: #333; | ||
| - | margin-bottom: | ||
| - | font-size: 24px; | ||
| - | font-weight: | ||
| - | } | ||
| - | | ||
| - | .section { | ||
| - | margin-bottom: | ||
| - | border: 2px solid #666; | ||
| - | border-radius: | ||
| - | overflow: hidden; | ||
| - | } | ||
| - | | ||
| - | .section-header { | ||
| - | padding: 10px 15px; | ||
| - | font-weight: | ||
| - | color: white; | ||
| - | display: flex; | ||
| - | justify-content: | ||
| - | align-items: | ||
| - | font-size: 16px; | ||
| - | } | ||
| - | | ||
| - | .general { background-color: | ||
| - | .abdominal { background-color: | ||
| - | .bilious { background-color: | ||
| - | .investigations { background-color: | ||
| - | .xray { background-color: | ||
| - | | ||
| - | .section-content { | ||
| - | background-color: | ||
| - | } | ||
| - | | ||
| - | .item { | ||
| - | display: flex; | ||
| - | justify-content: | ||
| - | align-items: | ||
| - | padding: 12px 15px; | ||
| - | border-bottom: | ||
| - | background-color: | ||
| - | } | ||
| - | | ||
| - | .item: | ||
| - | background-color: | ||
| - | } | ||
| - | | ||
| - | .item: | ||
| - | border-bottom: | ||
| - | } | ||
| - | | ||
| - | .item-text { | ||
| - | flex: 1; | ||
| - | font-size: 14px; | ||
| - | } | ||
| - | | ||
| - | .item-score { | ||
| - | font-weight: | ||
| - | margin: 0 15px; | ||
| - | min-width: 30px; | ||
| - | text-align: center; | ||
| - | } | ||
| - | | ||
| - | .checkbox-container { | ||
| - | display: flex; | ||
| - | align-items: | ||
| - | } | ||
| - | | ||
| - | .custom-checkbox { | ||
| - | width: 20px; | ||
| - | height: 20px; | ||
| - | cursor: pointer; | ||
| - | transform: scale(1.2); | ||
| - | } | ||
| - | | ||
| - | .scoring-summary { | ||
| - | margin-top: 30px; | ||
| - | padding: 20px; | ||
| - | border: 3px solid #333; | ||
| - | border-radius: | ||
| - | background: linear-gradient(135deg, | ||
| - | } | ||
| - | | ||
| - | .subtotal { | ||
| - | display: flex; | ||
| - | justify-content: | ||
| - | margin: 8px 0; | ||
| - | font-weight: | ||
| - | padding: 5px 10px; | ||
| - | background-color: | ||
| - | border-radius: | ||
| - | } | ||
| - | | ||
| - | .total-score { | ||
| - | font-size: 24px; | ||
| - | text-align: center; | ||
| - | margin: 20px 0; | ||
| - | padding: 15px; | ||
| - | border: 2px solid #333; | ||
| - | border-radius: | ||
| - | background-color: | ||
| - | } | ||
| - | | ||
| - | .interpretation { | ||
| - | text-align: center; | ||
| - | font-size: 18px; | ||
| - | font-weight: | ||
| - | padding: 15px; | ||
| - | border-radius: | ||
| - | margin-top: 15px; | ||
| - | } | ||
| - | | ||
| - | .risk-low { background-color: | ||
| - | .risk-moderate { background-color: | ||
| - | .risk-high { background-color: | ||
| - | .risk-very-high { background-color: | ||
| - | | ||
| - | .special-note { | ||
| - | background-color: | ||
| - | border: 1px solid #ffeaa7; | ||
| - | border-radius: | ||
| - | padding: 10px; | ||
| - | margin: 10px 0; | ||
| - | font-style: italic; | ||
| - | font-size: 13px; | ||
| - | } | ||
| - | | ||
| - | .reset-button { | ||
| - | background-color: | ||
| - | color: white; | ||
| - | border: none; | ||
| - | padding: 10px 20px; | ||
| - | border-radius: | ||
| - | cursor: pointer; | ||
| - | font-size: 16px; | ||
| - | margin-top: 20px; | ||
| - | } | ||
| - | | ||
| - | .reset-button: | ||
| - | background-color: | ||
| - | } | ||
| - | | ||
| - | .print-button { | ||
| - | background-color: | ||
| - | color: white; | ||
| - | border: none; | ||
| - | padding: 10px 20px; | ||
| - | border-radius: | ||
| - | cursor: pointer; | ||
| - | font-size: 16px; | ||
| - | margin-top: 20px; | ||
| - | margin-left: | ||
| - | } | ||
| - | | ||
| - | .print-button: | ||
| - | background-color: | ||
| - | } | ||
| - | </ | ||
| - | </ | ||
| - | < | ||
| - | <div class=" | ||
| - | <h1 class=" | ||
| - | | ||
| - | <!-- Segni Generali --> | ||
| - | <div class=" | ||
| - | <div class=" | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | <div class=" | ||
| - | <div class=" | ||
| - | <span class=" | ||
| - | <span class=" | ||
| - | <div class=" | ||
| - | <input type=" | ||
| - | </ | ||
| - | </ | ||
| - | <div class=" | ||
| - | <span class=" | ||
| - | <span class=" | ||
| - | <div class=" | ||
| - | <input type=" | ||
| - | </ | ||
| - | </ | ||
| - | <div class=" | ||
| - | <span class=" | ||
| - | <span class=" | ||
| - | <div class=" | ||
| - | <input type=" | ||
| - | </ | ||
| - | </ | ||
| - | <div class=" | ||
| - | <span class=" | ||
| - | <span class=" | ||
| - | <div class=" | ||
| - | <input type=" | ||
| - | </ | ||
| - | </ | ||
| - | <div class=" | ||
| - | <span class=" | ||
| - | <span class=" | ||
| - | <div class=" | ||
| - | <input type=" | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | <!-- Segni Addominali --> | ||
| - | <div class=" | ||
| - | <div class=" | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | <div class=" | ||
| - | <div class=" | ||
| - | <span class=" | ||
| - | <span class=" | ||
| - | <div class=" | ||
| - | <input type=" | ||
| - | </ | ||
| - | </ | ||
| - | <div class=" | ||
| - | <span class=" | ||
| - | <span class=" | ||
| - | <div class=" | ||
| - | <input type=" | ||
| - | </ | ||
| - | </ | ||
| - | <div class=" | ||
| - | <span class=" | ||
| - | <span class=" | ||
| - | <div class=" | ||
| - | <input type=" | ||
| - | </ | ||
| - | </ | ||
| - | <div class=" | ||
| - | <span class=" | ||
| - | <span class=" | ||
| - | <div class=" | ||
| - | <input type=" | ||
| - | </ | ||
| - | </ | ||
| - | <div class=" | ||
| - | <span class=" | ||
| - | <span class=" | ||
| - | <div class=" | ||
| - | <input type=" | ||
| - | </ | ||
| - | </ | ||
| - | <div class=" | ||
| - | <span class=" | ||
| - | <span class=" | ||
| - | <div class=" | ||
| - | <input type=" | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | <!-- Vomito Bilioso --> | ||
| - | <div class=" | ||
| - | <div class=" | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | <div class=" | ||
| - | <div class=" | ||
| - | < | ||
| - | </ | ||
| - | <div class=" | ||
| - | <span class=" | ||
| - | <span class=" | ||
| - | <div class=" | ||
| - | <input type=" | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | <!-- Indagini --> | ||
| - | <div class=" | ||
| - | <div class=" | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | <div class=" | ||
| - | <div class=" | ||
| - | <span class=" | ||
| - | <span class=" | ||
| - | <div class=" | ||
| - | <input type=" | ||
| - | </ | ||
| - | </ | ||
| - | <div class=" | ||
| - | <span class=" | ||
| - | <span class=" | ||
| - | <div class=" | ||
| - | <input type=" | ||
| - | </ | ||
| - | </ | ||
| - | <div class=" | ||
| - | <span class=" | ||
| - | <span class=" | ||
| - | <div class=" | ||
| - | <input type=" | ||
| - | </ | ||
| - | </ | ||
| - | <div class=" | ||
| - | <span class=" | ||
| - | <span class=" | ||
| - | <div class=" | ||
| - | <input type=" | ||
| - | </ | ||
| - | </ | ||
| - | <div class=" | ||
| - | <span class=" | ||
| - | <span class=" | ||
| - | <div class=" | ||
| - | <input type=" | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | <!-- Radiografia Addominale --> | ||
| - | <div class=" | ||
| - | <div class=" | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | <div class=" | ||
| - | <div class=" | ||
| - | <span class=" | ||
| - | <span class=" | ||
| - | <div class=" | ||
| - | <input type=" | ||
| - | </ | ||
| - | </ | ||
| - | <div class=" | ||
| - | <span class=" | ||
| - | <span class=" | ||
| - | <div class=" | ||
| - | <input type=" | ||
| - | </ | ||
| - | </ | ||
| - | <div class=" | ||
| - | <span class=" | ||
| - | <span class=" | ||
| - | <div class=" | ||
| - | <input type=" | ||
| - | </ | ||
| - | </ | ||
| - | <div class=" | ||
| - | <span class=" | ||
| - | <span class=" | ||
| - | <div class=" | ||
| - | <input type=" | ||
| - | </ | ||
| - | </ | ||
| - | <div class=" | ||
| - | <span class=" | ||
| - | <span class=" | ||
| - | <div class=" | ||
| - | <input type=" | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | <!-- Riassunto Punteggi --> | ||
| - | <div class=" | ||
| - | <h3 style=" | ||
| - | | ||
| - | <div class=" | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | <div class=" | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | <div class=" | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | <div class=" | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | <div class=" | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | | ||
| - | <div class=" | ||
| - | < | ||
| - | </ | ||
| - | | ||
| - | <div id=" | ||
| - | Inserire i dati per la valutazione | ||
| - | </ | ||
| - | | ||
| - | <div style=" | ||
| - | <button class=" | ||
| - | <button class=" | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | function updateScore() { | ||
| - | // Calcola i subtotali per categoria | ||
| - | const categories = [' | ||
| - | let totalScore = 0; | ||
| - | | ||
| - | categories.forEach(category => { | ||
| - | const checkboxes = document.querySelectorAll(`input[data-category=" | ||
| - | let subtotal = 0; | ||
| - | | ||
| - | checkboxes.forEach(checkbox => { | ||
| - | if (checkbox.checked) { | ||
| - | subtotal += parseInt(checkbox.getAttribute(' | ||
| - | } | ||
| - | }); | ||
| - | | ||
| - | // Aggiorna i subtotali nell' | ||
| - | document.getElementById(`${category}-subtotal`).textContent = subtotal; | ||
| - | document.getElementById(`${category}-total`).textContent = subtotal; | ||
| - | totalScore += subtotal; | ||
| - | }); | ||
| - | | ||
| - | // Aggiorna il punteggio totale | ||
| - | document.getElementById(' | ||
| - | | ||
| - | // Aggiorna l' | ||
| - | updateInterpretation(totalScore); | ||
| - | } | ||
| - | | ||
| - | function updateInterpretation(score) { | ||
| - | const interpretationElement = document.getElementById(' | ||
| - | let interpretation, | ||
| - | | ||
| - | if (score <= 5) { | ||
| - | interpretation = "🟢 BASSO RISCHIO - Monitoraggio di routine"; | ||
| - | className = " | ||
| - | } else if (score <= 10) { | ||
| - | interpretation = "🟡 RISCHIO MODERATO - Monitoraggio stretto consigliato"; | ||
| - | className = " | ||
| - | } else if (score <= 15) { | ||
| - | interpretation = "🟠 ALTO RISCHIO - Considerare terapia intensiva"; | ||
| - | className = " | ||
| - | } else { | ||
| - | interpretation = "🔴 RISCHIO MOLTO ALTO - Valutare urgentemente intervento chirurgico"; | ||
| - | className = " | ||
| - | } | ||
| - | | ||
| - | interpretationElement.textContent = interpretation; | ||
| - | interpretationElement.className = `interpretation ${className}`; | ||
| - | } | ||
| - | | ||
| - | function resetCalculator() { | ||
| - | // Deseleziona tutte le checkbox | ||
| - | const checkboxes = document.querySelectorAll(' | ||
| - | checkboxes.forEach(checkbox => { | ||
| - | checkbox.checked = false; | ||
| - | }); | ||
| - | | ||
| - | // Aggiorna tutti i punteggi | ||
| - | updateScore(); | ||
| - | } | ||
| - | | ||
| - | function printResults() { | ||
| - | window.print(); | ||
| - | } | ||
| - | | ||
| - | // Inizializza il calcolatore | ||
| - | document.addEventListener(' | ||
| - | updateScore(); | ||
| - | }); | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||