From 588e7249b5030b469f2f1d141e16a55e29cb8c5f Mon Sep 17 00:00:00 2001 From: Ronald-pro <36841157+Ronald-pro@users.noreply.github.com> Date: Tue, 30 Jul 2024 12:26:46 +0300 Subject: [PATCH] fix on patient data pull --- routes/processes/nishauri_new.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/routes/processes/nishauri_new.js b/routes/processes/nishauri_new.js index a2e8f45..bed79a7 100644 --- a/routes/processes/nishauri_new.js +++ b/routes/processes/nishauri_new.js @@ -4802,9 +4802,6 @@ router.get( if (patient) { patient = patient.toJSON(); patient.gender = patient.gender === 1 ? 'Female' : patient.gender === 2 ? 'Male' : 'Unknown'; - } - - if (patient) { return res.status(200).json({ success: true, message: "Patient data retrieved successfully",