From 400ff3d6151e303873555feadf3c304c801c8078 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Mon, 6 Apr 2026 16:45:24 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20get=5Fpacientes.php=20soporta=20=3Fid=3D?= =?UTF-8?q?X=20para=20retornar=20paciente=20espec=C3=ADfico=20con=20phone?= =?UTF-8?q?=5Fnumber=20correcto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/lab/get_pacientes.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/api/lab/get_pacientes.php b/api/lab/get_pacientes.php index 9d60f12..6104a38 100644 --- a/api/lab/get_pacientes.php +++ b/api/lab/get_pacientes.php @@ -1,11 +1,18 @@ obtener((int)$_GET['id']); + if (!$row) jsonError('Paciente no encontrado', 404); + jsonOk(['data' => [$row]]); + } + $busqueda = trim($_GET['busqueda'] ?? $_GET['search'] ?? ''); $pagina = max(1, (int)($_GET['page'] ?? $_GET['pagina'] ?? 1)); $por = max(1, min(100, (int)($_GET['limit'] ?? $_GET['por_pagina'] ?? 30)));