新增自动开具处方。修改ca对接

This commit is contained in:
2023-04-21 13:39:17 +08:00
parent 739286e54a
commit 298283b3fe
13 changed files with 682 additions and 121 deletions
+10 -2
View File
@@ -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();