From abbd5bde167d85ce3b310d534e67fd4993239d18 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Mon, 27 Jul 2026 23:30:49 -0500 Subject: [PATCH] Fix: get_especialidades muestra pacientes en_espera_lugar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Antes solo aparecían pacientes con inicio_lugar_at IS NOT NULL (ya llamados). Ahora incluye estado IN ('en_espera_lugar','en_servicio') para mostrar pacientes enviados a ginecología/pediatría antes de ser llamados. Co-Authored-By: Claude Sonnet 4.6 --- modules/turnero/api/get_especialidades.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/turnero/api/get_especialidades.php b/modules/turnero/api/get_especialidades.php index 8886739..259a14a 100644 --- a/modules/turnero/api/get_especialidades.php +++ b/modules/turnero/api/get_especialidades.php @@ -32,7 +32,7 @@ foreach ($lugares as $l) { FROM turnero_turnos t JOIN turnero_solicitudes ts ON ts.turno_id = t.id WHERE t.sesion_id = ? AND t.lugar_destino_id = ? - AND t.inicio_lugar_at IS NOT NULL AND t.fin_lugar_at IS NULL + AND t.estado IN ('en_espera_lugar','en_servicio') AND t.fin_lugar_at IS NULL ORDER BY ts.numero_orden ASC "); $stmt->execute([$sesionId, $lid]);