1
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services;
|
||||
|
||||
/**
|
||||
* 患者家庭成员病例
|
||||
*/
|
||||
class PatientCaseService extends BaseService
|
||||
{
|
||||
|
||||
}
|
||||
@@ -58,6 +58,9 @@ class PatientPathographyService extends BaseService
|
||||
// 获取病情记录列表
|
||||
$fields = [
|
||||
"pathography_id",
|
||||
"name",
|
||||
"sex",
|
||||
"age",
|
||||
"created_at",
|
||||
"disease_class_name",
|
||||
"disease_desc"
|
||||
@@ -70,6 +73,16 @@ class PatientPathographyService extends BaseService
|
||||
$params['status'] = 1;
|
||||
$patient_pathographys = PatientPathography::getPatientPathographyPage($params, $fields, $page, $per_page);
|
||||
|
||||
foreach ($patient_pathographys['data'] as &$patient_pathography){
|
||||
$patient_pathography['reception_time'] = null;
|
||||
if (!empty($patient_pathography['order_inquiry'])){
|
||||
// 接诊时间
|
||||
$patient_pathography['reception_time'] = $patient_pathography['order_inquiry']['reception_time'];
|
||||
}
|
||||
|
||||
unset($patient_pathography['OrderInquiry']);
|
||||
}
|
||||
|
||||
return success($patient_pathographys);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user