From 75e71c234357c48207b00b3a9dd2dafc378224d0 Mon Sep 17 00:00:00 2001 From: DevSoftTech Server Date: Mon, 22 Jun 2026 08:30:36 +0530 Subject: [PATCH] Fix new patient create 500 from undefined ABHA lock flag --- app/Controllers/Patient.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/Controllers/Patient.php b/app/Controllers/Patient.php index 6b48a4e..f9aaaa6 100644 --- a/app/Controllers/Patient.php +++ b/app/Controllers/Patient.php @@ -117,13 +117,11 @@ class Patient extends BaseController ]; $this->applyPatientAbhaFieldValues($data, $abhaId, $abhaAddress); - if (!$isAbhaVerifiedLocked) { - if ($chk_age === 'on') { - $data['age'] = $age_year; - $data['age_in_month'] = $age_month; - } else { - $data['dob'] = $this->parseDate($this->request->getPost('datepicker_dob')); - } + if ($chk_age === 'on') { + $data['age'] = $age_year; + $data['age_in_month'] = $age_month; + } else { + $data['dob'] = $this->parseDate($this->request->getPost('datepicker_dob')); } $patientModel = new PatientModel();