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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="es">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 6 |
+
<title>Algoritmo DM2 – Guía Clínica</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link
|
| 9 |
+
rel="stylesheet"
|
| 10 |
+
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
|
| 11 |
+
/>
|
| 12 |
+
<link
|
| 13 |
+
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap"
|
| 14 |
+
rel="stylesheet"
|
| 15 |
+
/>
|
| 16 |
+
<style>
|
| 17 |
+
body {
|
| 18 |
+
background-color: #f8fafc;
|
| 19 |
+
font-family: "Montserrat", sans-serif;
|
| 20 |
+
}
|
| 21 |
+
.custom-select {
|
| 22 |
+
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
|
| 23 |
+
background-position: right 0.5rem center;
|
| 24 |
+
background-repeat: no-repeat;
|
| 25 |
+
background-size: 1.5em 1.5em;
|
| 26 |
+
-webkit-appearance: none;
|
| 27 |
+
-moz-appearance: none;
|
| 28 |
+
appearance: none;
|
| 29 |
+
padding-right: 2.5rem;
|
| 30 |
+
width: 100%;
|
| 31 |
+
padding-top: 0.5rem;
|
| 32 |
+
padding-bottom: 0.5rem;
|
| 33 |
+
padding-left: 0.75rem;
|
| 34 |
+
border-radius: 0.375rem;
|
| 35 |
+
border: 1px solid #d1d5db;
|
| 36 |
+
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
| 37 |
+
transition: border-color 0.2s, box-shadow 0.2s;
|
| 38 |
+
font-size: 0.875rem;
|
| 39 |
+
line-height: 1.25rem;
|
| 40 |
+
}
|
| 41 |
+
.custom-select:focus {
|
| 42 |
+
outline: none;
|
| 43 |
+
border-color: #3b82f6;
|
| 44 |
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
|
| 45 |
+
}
|
| 46 |
+
#algo-display {
|
| 47 |
+
background-color: white;
|
| 48 |
+
border: 1px solid #e5e7eb;
|
| 49 |
+
border-radius: 0.5rem;
|
| 50 |
+
padding: 1.5rem;
|
| 51 |
+
margin-top: 1rem;
|
| 52 |
+
min-height: 300px;
|
| 53 |
+
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
|
| 54 |
+
overflow-y: auto;
|
| 55 |
+
line-height: 1.6;
|
| 56 |
+
}
|
| 57 |
+
</style>
|
| 58 |
+
</head>
|
| 59 |
+
<body class="min-h-screen bg-gray-50">
|
| 60 |
+
<div class="mx-auto max-w-2xl p-6 my-8 bg-white rounded-xl shadow-md">
|
| 61 |
+
<div class="text-center mb-6">
|
| 62 |
+
<h1 class="text-xl font-bold text-pink-800 flex items-center justify-center">
|
| 63 |
+
<i class="fas fa-syringe mr-3 text-teal-600"></i>Algoritmo Tratamiento DM2
|
| 64 |
+
</h1>
|
| 65 |
+
<p class="text-gray-600 mt-2 text-sm leading-relaxed">
|
| 66 |
+
Basado en redGDPS 2023 | Hospital de Alcañiz
|
| 67 |
+
</p>
|
| 68 |
+
</div>
|
| 69 |
+
|
| 70 |
+
<div
|
| 71 |
+
class="bg-pink-50 p-6 rounded-lg mb-6 border border-pink-100 shadow-inner space-y-4"
|
| 72 |
+
>
|
| 73 |
+
<!-- Condición clínica predominante -->
|
| 74 |
+
<div>
|
| 75 |
+
<label
|
| 76 |
+
for="conditionSelector"
|
| 77 |
+
class="block text-xs font-medium text-gray-600 mb-1"
|
| 78 |
+
>Condición clínica predominante (prioritario)</label
|
| 79 |
+
>
|
| 80 |
+
<select id="conditionSelector" class="custom-select text-sm">
|
| 81 |
+
<option value="">-- Ninguna / No aplica --</option>
|
| 82 |
+
<option value="ECV">Enfermedad cardiovascular (ASCVD)</option>
|
| 83 |
+
<option value="IC">Insuficiencia cardiaca</option>
|
| 84 |
+
<option value="ERC">Enfermedad renal crónica</option>
|
| 85 |
+
<option value="RCV">Elevado riesgo cardiovascular (≥3 FRCV)</option>
|
| 86 |
+
<option value="OB">Obesidad (IMC >35 kg/m<sup>2</sup>)</option>
|
| 87 |
+
<option value="FR">Fragilidad geriátrica</option>
|
| 88 |
+
</select>
|
| 89 |
+
</div>
|
| 90 |
+
|
| 91 |
+
<!-- Control glucémico -->
|
| 92 |
+
<div>
|
| 93 |
+
<label
|
| 94 |
+
for="controlSelector"
|
| 95 |
+
class="block text-xs font-medium text-gray-600 mb-1"
|
| 96 |
+
>Grado de control glucémico (HbA1c / GME)</label
|
| 97 |
+
>
|
| 98 |
+
<select id="controlSelector" class="custom-select text-sm">
|
| 99 |
+
<option value="<7">HbA1c <7 % (<154 mg/dl)</option>
|
| 100 |
+
<option value="7-9">HbA1c 7–9 % (154‑212 mg/dl)</option>
|
| 101 |
+
<option value=">9">HbA1c >9 % (>212 mg/dl)</option>
|
| 102 |
+
<option value="SYM">Hiperglucemia sintomática</option>
|
| 103 |
+
</select>
|
| 104 |
+
</div>
|
| 105 |
+
</div>
|
| 106 |
+
|
| 107 |
+
<!-- Resultado -->
|
| 108 |
+
<div id="algo-display" class="text-gray-800">
|
| 109 |
+
<div class="text-center py-10 text-gray-400">
|
| 110 |
+
<i class="fas fa-notes-medical text-4xl mb-3"></i>
|
| 111 |
+
<p>Seleccione una situación clínica y el grado de control.</p>
|
| 112 |
+
</div>
|
| 113 |
+
</div>
|
| 114 |
+
|
| 115 |
+
<!-- Enlace al PDF completo -->
|
| 116 |
+
<div class="text-center mt-6">
|
| 117 |
+
<a
|
| 118 |
+
href="./Algoritmo_DM2_ESP_2023.pdf"
|
| 119 |
+
target="_blank"
|
| 120 |
+
class="text-sm text-pink-700 hover:underline"
|
| 121 |
+
><i class="fas fa-file-pdf mr-1"></i>Ver algoritmo completo (PDF)</a
|
| 122 |
+
>
|
| 123 |
+
</div>
|
| 124 |
+
</div>
|
| 125 |
+
|
| 126 |
+
<script type="module">
|
| 127 |
+
// Mapas simplificados basados en redGDPS 2023
|
| 128 |
+
const conditionMap = {
|
| 129 |
+
"ECV":
|
| 130 |
+
"Añada <span class=\"font-semibold\">iSGLT2</span> y/o <span class=\"font-semibold\">arGLP‑1</span> con evidencia en reducción de eventos cardiovasculares, independientemente de HbA1c. Considere mantener metformina si se tolera.",
|
| 131 |
+
"IC":
|
| 132 |
+
"Priorice <span class=\"font-semibold\">iSGLT2</span> (dapagliflozina, empagliflozina) con o sin metformina. Evite tiazolidinedionas si IC avanzada. Valore añadir arGLP‑1 si HbA1c fuera de objetivo.",
|
| 133 |
+
"ERC":
|
| 134 |
+
"Indique <span class=\"font-semibold\">iSGLT2</span> (FG ≥20 ml/min) y/o <span class=\"font-semibold\">arGLP‑1</span> (FG ≥15 ml/min). Ajuste/retire metformina si FG <45 ml/min.",
|
| 135 |
+
"RCV":
|
| 136 |
+
"Si riesgo cardiovascular elevado, utilice <span class=\"font-semibold\">iSGLT2</span> y/o <span class=\"font-semibold\">arGLP‑1</span> con metformina como base.",
|
| 137 |
+
"OB":
|
| 138 |
+
"Para IMC >35 kg/m<sup>2</sup> prefiera <span class=\"font-semibold\">arGLP‑1</span>; considere cirugía bariátrica. Valore iSGLT2 si esteatosis hepática.",
|
| 139 |
+
"FR":
|
| 140 |
+
"Desintensifique o simplifique. Evite hipoglucemias. Prefiera <span class=\"font-semibold\">iDPP‑4</span>; considere retirar SU y repaglinida."
|
| 141 |
+
};
|
| 142 |
+
|
| 143 |
+
const controlMap = {
|
| 144 |
+
"<7":
|
| 145 |
+
"Refuerce medidas no farmacológicas (alimentación, ejercicio, sueño) y mantenga <span class=\"font-semibold\">metformina</span> si se tolera. Reevaluar en 3–6 meses.",
|
| 146 |
+
"7-9":
|
| 147 |
+
"Inicie <span class=\"font-semibold\">terapia dual</span>: Metformina + otro ADNI según perfil (iSGLT2, arGLP‑1, iDPP‑4, pioglitazona o SU).",
|
| 148 |
+
">9":
|
| 149 |
+
"Considere <span class=\"font-semibold\">terapia triple</span> o <span class=\"font-semibold\">insulinización basal</span> si HbA1c >9 % pese a doble terapia.",
|
| 150 |
+
"SYM":
|
| 151 |
+
"Ante síntomas cardinales (poliuria, polidipsia, pérdida de peso), inicie <span class=\"font-semibold\">insulina</span> ± metformina y añada arGLP‑1 o iSGLT2 según tolerancia."
|
| 152 |
+
};
|
| 153 |
+
|
| 154 |
+
const conditionSelector = document.getElementById("conditionSelector");
|
| 155 |
+
const controlSelector = document.getElementById("controlSelector");
|
| 156 |
+
const display = document.getElementById("algo-display");
|
| 157 |
+
|
| 158 |
+
function updateDisplay() {
|
| 159 |
+
const cond = conditionSelector.value;
|
| 160 |
+
const ctrl = controlSelector.value;
|
| 161 |
+
|
| 162 |
+
let html = "";
|
| 163 |
+
if (cond && conditionMap[cond]) {
|
| 164 |
+
html += `<h2 class='text-base font-bold mb-2 text-pink-700'><i class='fas fa-stethoscope mr-2'></i>Manejo según condición clínica</h2><p class='mb-4'>${conditionMap[cond]}</p>`;
|
| 165 |
+
}
|
| 166 |
+
|
| 167 |
+
if (ctrl && controlMap[ctrl]) {
|
| 168 |
+
html += `<h2 class='text-base font-bold mb-2 text-pink-700'><i class='fas fa-vials mr-2'></i>Manejo según HbA1c / GME</h2><p>${controlMap[ctrl]}</p>`;
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
if (!html) {
|
| 172 |
+
html =
|
| 173 |
+
"<div class='text-center py-10 text-gray-400'><i class='fas fa-notes-medical text-4xl mb-3'></i><p>Seleccione una situación clínica y el grado de control.</p></div>";
|
| 174 |
+
}
|
| 175 |
+
|
| 176 |
+
display.innerHTML = html;
|
| 177 |
+
}
|
| 178 |
+
|
| 179 |
+
conditionSelector.addEventListener("change", updateDisplay);
|
| 180 |
+
controlSelector.addEventListener("change", updateDisplay);
|
| 181 |
+
</script>
|
| 182 |
+
</body>
|
| 183 |
</html>
|