From d96827db1b05b75336d676c2de6323f197289b9d Mon Sep 17 00:00:00 2001 From: Marcelo Arocha Date: Thu, 26 Dec 2024 09:51:41 -0300 Subject: [PATCH] search names --- routes/names.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/routes/names.py b/routes/names.py index a6f0fb43..33570f8d 100644 --- a/routes/names.py +++ b/routes/names.py @@ -240,7 +240,14 @@ def search_name(term): data = response.json() results = [] for p in data["results"]: - results.append({"name": p["name"], "idPatient": p["idPatient"]}) + results.append( + { + "name": p["name"], + "idPatient": p["idPatient"], + "birthdate": p["dtnascimento"], + "number": p["cpf"], + } + ) return { "status": "success",