This commit is contained in:
2023-11-28 13:54:31 +08:00
parent 056de43bc7
commit cc2470a781
8 changed files with 190 additions and 9 deletions
@@ -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);
}