recepcion: revert patient history to collapsed on load
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
89b407f5cc
commit
44e9b86b27
@@ -1622,13 +1622,15 @@ function seleccionarPaciente(pac) {
|
|||||||
document.getElementById('bloque-pac-kiosko').classList.remove('d-none');
|
document.getElementById('bloque-pac-kiosko').classList.remove('d-none');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mostrar historial del paciente y cargar automáticamente
|
// Mostrar historial del paciente
|
||||||
document.getElementById('sec-historial-pac').classList.remove('d-none');
|
const secHist = document.getElementById('sec-historial-pac');
|
||||||
document.getElementById('hist-pac-body').classList.remove('d-none');
|
secHist.classList.remove('d-none');
|
||||||
document.getElementById('btn-hist-toggle').classList.add('open');
|
// Resetear estado colapsado
|
||||||
_historialPacienteCargado = true;
|
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;
|
_historialPacienteId = pac.id;
|
||||||
cargarHistorialPaciente(pac.id);
|
|
||||||
|
|
||||||
// Consultar exámenes recientes en RIPS (últimos 5 min)
|
// Consultar exámenes recientes en RIPS (últimos 5 min)
|
||||||
const cedula = (pac.numero_documento || pac.documento || '').toString().trim();
|
const cedula = (pac.numero_documento || pac.documento || '').toString().trim();
|
||||||
|
|||||||
Reference in New Issue
Block a user