From dfe7a1fd0e8a3cdba3eea6782f8b3d46dcfa6f95 Mon Sep 17 00:00:00 2001 From: mahdahar <89adham@gmail.com> Date: Mon, 13 Apr 2026 16:08:54 +0700 Subject: [PATCH] fix: stop mapping isDead label on patient detail Removing the death_indicator transform keeps GET /api/patient/{id} from exposing isDeadLabel while still returning the raw flag. --- app/Models/Patient/PatientModel.php | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/app/Models/Patient/PatientModel.php b/app/Models/Patient/PatientModel.php index 02ca5fb..1310c68 100755 --- a/app/Models/Patient/PatientModel.php +++ b/app/Models/Patient/PatientModel.php @@ -82,15 +82,14 @@ class PatientModel extends BaseModel { unset($patient['Identifier']); unset($patient['Comment']); - $patient = ValueSet::transformLabels([$patient], [ - 'Sex' => 'sex', - 'Country' => 'country', - 'Race' => 'race', - 'Religion' => 'religion', - 'Ethnic' => 'ethnic', - 'isDead' => 'death_indicator', - 'MaritalStatus' => 'marital_status', - ])[0]; + $patient = ValueSet::transformLabels([$patient], [ + 'Sex' => 'sex', + 'Country' => 'country', + 'Race' => 'race', + 'Religion' => 'religion', + 'Ethnic' => 'ethnic', + 'MaritalStatus' => 'marital_status', + ])[0]; $patient['PatIdt'] = null; $patient['PatAtt'] = [];