1
This commit is contained in:
@@ -5,6 +5,7 @@ namespace app\adminapi\controller\doctor;
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\doctor\AppointmentLists;
|
||||
use app\adminapi\logic\doctor\AppointmentLogic;
|
||||
use app\adminapi\logic\doctor\DoctorNoteLogic;
|
||||
use app\adminapi\validate\doctor\AppointmentValidate;
|
||||
|
||||
/**
|
||||
@@ -104,4 +105,46 @@ class AppointmentController extends BaseAdminController
|
||||
}
|
||||
return $this->success('操作成功');
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 接诊台聚合详情(患者信息 + 诊单病例 + 血糖血压记录)
|
||||
* @return \think\response\Json
|
||||
*/
|
||||
public function reception()
|
||||
{
|
||||
$params = (new AppointmentValidate())->goCheck('reception');
|
||||
$result = AppointmentLogic::reception($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 通知接诊医助(发企业微信)
|
||||
* @return \think\response\Json
|
||||
*/
|
||||
public function notifyAssistant()
|
||||
{
|
||||
$params = (new AppointmentValidate())->post()->goCheck('notifyAssistant');
|
||||
$result = AppointmentLogic::notifyAssistant((int) $params['id']);
|
||||
if (empty($result['ok'])) {
|
||||
return $this->fail($result['message'] ?? '通知失败');
|
||||
}
|
||||
return $this->success('通知已发送');
|
||||
}
|
||||
|
||||
public function addDoctorNote()
|
||||
{
|
||||
$params = (new AppointmentValidate())->post()->goCheck('addDoctorNote');
|
||||
$params['doctor_id'] = $this->adminId;
|
||||
$result = DoctorNoteLogic::addOrAppend($params);
|
||||
if ($result === false) {
|
||||
return $this->fail(DoctorNoteLogic::getError());
|
||||
}
|
||||
return $this->success('保存成功');
|
||||
}
|
||||
|
||||
public function doctorNotes()
|
||||
{
|
||||
$params = (new AppointmentValidate())->goCheck('doctorNotes');
|
||||
return $this->data(DoctorNoteLogic::getByDiagnosis((int) $params['diagnosis_id']));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user