diff --git a/modules/turnero/views/recepcion.php b/modules/turnero/views/recepcion.php index 58a38ef..3b379f3 100644 --- a/modules/turnero/views/recepcion.php +++ b/modules/turnero/views/recepcion.php @@ -471,40 +471,9 @@ async function refrescarConsentimientosLugar() { } catch (_) {} } // ── Formularios del lugar (aparecen al seleccionar lugar) ──── -async function onLugarChange() { - const sec = document.getElementById('sec-consentimientos'); - const lista = document.getElementById('lista-consentimientos'); - const lugarId = parseInt(document.getElementById('sel-lugar').value); - if (!lugarId) { sec.style.display = 'none'; return; } - - try { - const res = await fetch(`${API}get_lugar_formularios.php?lugar_id=${lugarId}`); - const json = await res.json(); - if (!json.ok || !json.formularios?.length) { - sec.style.display = 'none'; - return; - } - - lista.innerHTML = json.formularios.map(f => { - const nom = escHtml(f.nombre); - const disabled = !turnoActivo ? 'disabled title="Llama el turno primero"' : ''; - return ``; - }).join(''); - sec.style.display = ''; - } catch (_) { - sec.style.display = 'none'; - } -} +// El dropdown sel-lugar es solo para elegir destino del paciente. +// Los consentimientos del desk se cargan via cargarConsentimientosDesk() y no dependen de este cambio. +function onLugarChange() {} async function abrirFormularioLugar(formularioId, nombre) { if (!turnoActivo) { mostrarError('Llama un turno primero.'); return; } if (!pacienteActivo) { mostrarError('Vincula el paciente antes de abrir el consentimiento.'); return; }