修正获取处方详情接口返回数据
This commit is contained in:
@@ -18,6 +18,7 @@ use App\Model\OrderEvaluation;
|
||||
use App\Model\OrderInquiry;
|
||||
use App\Model\OrderInquiryCase;
|
||||
use App\Model\OrderPrescription;
|
||||
use App\Model\OrderPrescriptionIcd;
|
||||
use App\Model\OrderProductItem;
|
||||
use App\Model\User;
|
||||
use App\Model\UserDoctor;
|
||||
@@ -851,17 +852,39 @@ class UserDoctorService extends BaseService
|
||||
$order_prescription_product = $OrderPrescriptionService->getproductList($order_inquiry_id,$order_prescription_id);
|
||||
|
||||
// 获取处方关联疾病表
|
||||
$fields = [
|
||||
'prescription_icd_id',
|
||||
'icd_id',
|
||||
'icd_name',
|
||||
];
|
||||
$params = array();
|
||||
$params['order_prescription_id'] = $order_prescription_id;
|
||||
$order_prescription_icd = OrderPrescriptionIcd::getList($params,$fields);
|
||||
}
|
||||
|
||||
$result = array();
|
||||
$result['inquiry_case_product'] = $inquiry_case_product;// 用药意向
|
||||
$result['order_prescription_product'] = $order_prescription_product ?? [];// 开方药品
|
||||
$result['prescription_product'] = $order_prescription_product ?? [];// 开方药品
|
||||
$result['case'] = $order_inquiry_case;// 病例数据
|
||||
$result['prescription_icd'] = $order_prescription_icd ?? [];// 处方诊断疾病
|
||||
$result['prescription']['doctor_advice'] = $order_prescription['doctor_advice'] ?? "";// 医嘱
|
||||
|
||||
return success($result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改处方
|
||||
* @return array
|
||||
*/
|
||||
public function putPrescription(): array
|
||||
{
|
||||
$user_info = $this->request->getAttribute("userInfo") ?? [];
|
||||
|
||||
$order_inquiry_id = $this->request->input('order_inquiry_id');
|
||||
$order_prescription_id = $this->request->input('order_prescription_id');
|
||||
return success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 检测医生身份认证
|
||||
* @param object|array $user_doctor 医生表数据
|
||||
|
||||
Reference in New Issue
Block a user