recepcion: auto-check RIPS when turn has a cedula as patient name
If the kiosk captured a numeric document number as paciente_nombre, fire consultarExamenesRips immediately on turn open without waiting for the receptionist to manually search the patient. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
44e9b86b27
commit
d46c983776
@@ -1515,6 +1515,9 @@ function abrirFicha(turno) {
|
||||
if (data && !pacienteActivo) seleccionarPaciente(data);
|
||||
})
|
||||
.catch(() => {});
|
||||
} else if (turno.paciente_nombre && /^\d{5,15}$/.test(turno.paciente_nombre.trim())) {
|
||||
// El kiosko capturó una cédula como nombre — consultar RIPS de inmediato
|
||||
consultarExamenesRips(turno.paciente_nombre.trim());
|
||||
}
|
||||
|
||||
// Cargar consentimientos del desk actual para este turno
|
||||
|
||||
Reference in New Issue
Block a user