From bd4de74c7d38a23177bd0ab4e5391dad122946b1 Mon Sep 17 00:00:00 2001 From: Arthur Tabbal Date: Tue, 17 Dec 2024 11:27:47 -0300 Subject: [PATCH] Add type casts to big integer fields on get_raw_exam --- services/reports/reports_exams_service.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/reports/reports_exams_service.py b/services/reports/reports_exams_service.py index 32d6a239..0beb79c5 100644 --- a/services/reports/reports_exams_service.py +++ b/services/reports/reports_exams_service.py @@ -22,10 +22,10 @@ def get_raw_exams(id_patient: int, user_context: User): exam: Exams = i results.append( { - "idExam": exam.idExame, + "idExam": str(exam.idExame), "typeExam": exam.typeExam, - "idPatient": exam.idPatient, - "admissionNumber": exam.admissionNumber, + "idPatient": str(exam.idPatient), + "admissionNumber": str(exam.admissionNumber), "dateExam": dateutils.to_iso(exam.date), "value": str(exam.value), "unit": exam.unit,