From 1dff52e25e84f2539f9ff4270535c860cefcf4f6 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Tue, 25 Apr 2023 14:08:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=B6=E5=BA=AD=E6=88=90?= =?UTF-8?q?=E5=91=98-=E4=B8=AA=E4=BA=BA=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/PatientFamilyService.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/Services/PatientFamilyService.php b/app/Services/PatientFamilyService.php index 2f56dfe..c66a463 100644 --- a/app/Services/PatientFamilyService.php +++ b/app/Services/PatientFamilyService.php @@ -588,6 +588,9 @@ class PatientFamilyService extends BaseService if ($request_params['is_allergy_history'] != $patient_family_personal['is_allergy_history']){ // 是否存在过敏史(0:否 1:是) $data['is_allergy_history'] = $request_params['is_allergy_history']; + } + + if ($request_params['allergy_history'] != $patient_family_personal['allergy_history']){ $data['allergy_history'] = $request_params['allergy_history']; } } @@ -596,6 +599,9 @@ class PatientFamilyService extends BaseService if ($request_params['is_family_history'] != $patient_family_personal['is_family_history']){ // 是否存在家族病史(0:否 1:是) $data['is_family_history'] = $request_params['is_family_history']; + } + + if ($request_params['family_history'] != $patient_family_personal['family_history']){ $data['family_history'] = $request_params['family_history']; } } @@ -604,6 +610,9 @@ class PatientFamilyService extends BaseService if ($request_params['is_pregnant'] != $patient_family_personal['is_pregnant']){ // 是否备孕、妊娠、哺乳期(0:否 1:是) $data['is_pregnant'] = $request_params['is_pregnant']; + } + + if ($request_params['pregnant'] != $patient_family_personal['pregnant']){ $data['pregnant'] = $request_params['pregnant']; } } @@ -612,6 +621,9 @@ class PatientFamilyService extends BaseService if ($request_params['is_operation'] != $patient_family_personal['is_operation']){ // 是否存在手术(0:否 1:是) $data['is_operation'] = $request_params['is_operation']; + } + + if ($request_params['operation'] != $patient_family_personal['operation']){ $data['operation'] = $request_params['operation']; } } @@ -634,6 +646,9 @@ class PatientFamilyService extends BaseService if ($request_params['chemical_compound_status'] != $patient_family_personal['chemical_compound_status']){ // 化合物状态(1:从不 2:偶尔 3:经常 4:每天) $data['chemical_compound_status'] = $request_params['chemical_compound_status']; + } + + if ($request_params['chemical_compound_describe'] != $patient_family_personal['chemical_compound_describe']){ $data['chemical_compound_describe'] = $request_params['chemical_compound_describe']; } }