修改患者问诊病例民族问题

This commit is contained in:
2023-08-30 11:57:22 +08:00
parent b5739783ad
commit 055bfc09f9
5 changed files with 16 additions and 6 deletions
+2
View File
@@ -689,6 +689,8 @@ class DetectionService extends BaseService
$data['age'] = $patient_family['age'] ?? null; // 患者年龄
$data['height'] = $patient_family['height'] ?: null; // 身高(cm
$data['weight'] = $patient_family['weight'] ?: null;; // 体重(kg
$data['nation_id'] = $order_detection_case['nation_id'] ?: $patient_family['nation_id'] ?: null;; // 民族
$data['nation_name'] = $order_detection_case['nation_id'] ?: $patient_family['nation_name'] ?: null;; // 民族名称
$order_inquiry_case = OrderInquiryCase::addOrderInquiryCase($data);
if (empty($order_inquiry_case)) {
Db::rollBack();
+3 -1
View File
@@ -413,7 +413,9 @@ class InquiryService extends BaseService
if (!empty($patient_family['nation_name'])){
$nation_name = $patient_family['nation_name'];
}else{
// if (!empty($order_inquiry_case['']))
if (!empty($order_inquiry_case['nation_name'])){
$nation_name = $order_inquiry_case['nation_name'];
}
}
}
$order_inquiry_case['height'] = $order_inquiry_case['height'] ?: $patient_family['height'] ?: NULL;