增加首页 我的医生 处方状态
This commit is contained in:
parent
eaebba84ea
commit
c3e331a2b5
@ -652,6 +652,8 @@ class PatientDoctorService extends BaseService
|
|||||||
$params['history_status'] = 1;
|
$params['history_status'] = 1;
|
||||||
$patient_history_doctors = PatientHistoryInquiryModel::getListOrder($params);
|
$patient_history_doctors = PatientHistoryInquiryModel::getListOrder($params);
|
||||||
if (!empty($patient_history_doctors)) {
|
if (!empty($patient_history_doctors)) {
|
||||||
|
$userDoctorService = new UserDoctorService();
|
||||||
|
|
||||||
foreach ($patient_history_doctors as $patient_history_doctor) {
|
foreach ($patient_history_doctors as $patient_history_doctor) {
|
||||||
if (count($results) >= 5){
|
if (count($results) >= 5){
|
||||||
break;
|
break;
|
||||||
@ -679,6 +681,14 @@ class PatientDoctorService extends BaseService
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 获取医生问诊配置
|
||||||
|
$params = array();
|
||||||
|
$params['doctor_id'] = $user_doctor['doctor_id'];
|
||||||
|
$doctor_inquiry_config = DoctorInquiryConfig::getInquiryConfigList($params);
|
||||||
|
if (empty($doctor_inquiry_config)){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// 获取医生医院
|
// 获取医生医院
|
||||||
$hospital_name = "";
|
$hospital_name = "";
|
||||||
if (!empty($user_doctor['hospital_id'])){
|
if (!empty($user_doctor['hospital_id'])){
|
||||||
@ -709,6 +719,11 @@ class PatientDoctorService extends BaseService
|
|||||||
// 在线状态
|
// 在线状态
|
||||||
$data['is_online'] = $user['is_online'];
|
$data['is_online'] = $user['is_online'];
|
||||||
|
|
||||||
|
$data['multi_point_status'] = $user_doctor['multi_point_status']; // 医生多点执业认证状态(0:未认证 1:认证通过 2:审核中 3:认证失败)
|
||||||
|
|
||||||
|
// 是否开启问诊购药
|
||||||
|
$data['multi_point_enable'] = $userDoctorService->getDoctorMultiPointEnable("",$doctor_inquiry_config);
|
||||||
|
|
||||||
$results[] = $data;
|
$results[] = $data;
|
||||||
|
|
||||||
unset($data);
|
unset($data);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user