Skip to content

Commit

Permalink
search names
Browse files Browse the repository at this point in the history
  • Loading branch information
marceloarocha committed Dec 26, 2024
1 parent 9ee4cdb commit d96827d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion routes/names.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d96827d

Please sign in to comment.