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']; } }