新增自动开具处方。修改ca对接
This commit is contained in:
@@ -10,6 +10,7 @@ use App\Model\Hospital;
|
||||
use App\Model\OrderInquiry;
|
||||
use App\Model\OrderInquiryCase;
|
||||
use App\Model\OrderPrescription;
|
||||
use App\Model\OrderPrescriptionFile;
|
||||
use App\Model\OrderPrescriptionProduct;
|
||||
use App\Model\OrderProduct;
|
||||
use App\Model\OrderProductItem;
|
||||
@@ -1199,7 +1200,6 @@ class PatientOrderService extends BaseService
|
||||
$fields = [
|
||||
'order_prescription_id',
|
||||
'prescription_status',
|
||||
'prescription_img',
|
||||
'pharmacist_id',
|
||||
'doctor_id',
|
||||
];
|
||||
@@ -1214,7 +1214,15 @@ class PatientOrderService extends BaseService
|
||||
return fail();
|
||||
}
|
||||
|
||||
$order_prescription['prescription_img'] = addAliyunOssWebsite($order_prescription['prescription_img']);
|
||||
// 获取处方文件数据
|
||||
$params = array();
|
||||
$params['order_prescription_id'] = $order_prescription_id;
|
||||
$order_prescription_file = OrderPrescriptionFile::getOne($params);
|
||||
if (empty($order_prescription_file)){
|
||||
return fail();
|
||||
}
|
||||
|
||||
$order_prescription['prescription_img_oss_path'] = addAliyunOssWebsite($order_prescription_file['prescription_img_oss_path']);
|
||||
|
||||
// 获取处方中医生签名
|
||||
$params = array();
|
||||
|
||||
Reference in New Issue
Block a user