From 44e9b86b27c0d9f4b16176dbd63d8a9680f18f28 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Tue, 21 Jul 2026 16:30:50 -0500 Subject: [PATCH] recepcion: revert patient history to collapsed on load Co-Authored-By: Claude Sonnet 4.6 --- modules/turnero/views/recepcion.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/modules/turnero/views/recepcion.php b/modules/turnero/views/recepcion.php index 182bc45..81b5c4e 100644 --- a/modules/turnero/views/recepcion.php +++ b/modules/turnero/views/recepcion.php @@ -1622,13 +1622,15 @@ function seleccionarPaciente(pac) { document.getElementById('bloque-pac-kiosko').classList.remove('d-none'); } - // Mostrar historial del paciente y cargar automáticamente - document.getElementById('sec-historial-pac').classList.remove('d-none'); - document.getElementById('hist-pac-body').classList.remove('d-none'); - document.getElementById('btn-hist-toggle').classList.add('open'); - _historialPacienteCargado = true; + // Mostrar historial del paciente + const secHist = document.getElementById('sec-historial-pac'); + secHist.classList.remove('d-none'); + // Resetear estado colapsado + document.getElementById('hist-pac-body').classList.add('d-none'); + document.getElementById('btn-hist-toggle').classList.remove('open'); + // Precargar en background (usuario decide si abre) + _historialPacienteCargado = false; _historialPacienteId = pac.id; - cargarHistorialPaciente(pac.id); // Consultar exámenes recientes en RIPS (últimos 5 min) const cedula = (pac.numero_documento || pac.documento || '').toString().trim();