上报监管平台新增ca签名值数据
This commit is contained in:
parent
bada93d649
commit
ddf59a58c5
@ -14,6 +14,7 @@ use App\Model\OrderPrescriptionProduct;
|
|||||||
use App\Model\PatientFamily;
|
use App\Model\PatientFamily;
|
||||||
use App\Model\Product;
|
use App\Model\Product;
|
||||||
use App\Model\ReportRegulatory;
|
use App\Model\ReportRegulatory;
|
||||||
|
use App\Model\UserCaCert;
|
||||||
use App\Model\UserDoctor;
|
use App\Model\UserDoctor;
|
||||||
use App\Model\UserDoctorInfo;
|
use App\Model\UserDoctorInfo;
|
||||||
use App\Model\UserPharmacist;
|
use App\Model\UserPharmacist;
|
||||||
@ -418,6 +419,26 @@ class ReportRegulatoryCommand extends HyperfCommand
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 获取医生ca数据
|
||||||
|
$params = array();
|
||||||
|
$params['user_id'] = $user_doctor['user_id'];
|
||||||
|
$params['type'] = 2;
|
||||||
|
$doctor_user_ca_cert = UserCaCert::getOne($params);
|
||||||
|
if (empty($doctor_user_ca_cert)){
|
||||||
|
$this->line("错误:无医生ca数据");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取药师ca数据
|
||||||
|
$params = array();
|
||||||
|
$params['user_id'] = $user_pharmacist['user_id'];
|
||||||
|
$params['type'] = 2;
|
||||||
|
$pharmacist_user_ca_cert = UserCaCert::getOne($params);
|
||||||
|
if (empty($pharmacist_user_ca_cert)){
|
||||||
|
$this->line("错误:无药师ca数据");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$data = array();
|
$data = array();
|
||||||
$data['thirdUniqueid'] = $order_inquiry['order_inquiry_id']; // 唯一标识
|
$data['thirdUniqueid'] = $order_inquiry['order_inquiry_id']; // 唯一标识
|
||||||
$data['orgName'] = "成都金牛欣欣相照互联网医院"; // 机构名称
|
$data['orgName'] = "成都金牛欣欣相照互联网医院"; // 机构名称
|
||||||
@ -455,6 +476,8 @@ class ReportRegulatoryCommand extends HyperfCommand
|
|||||||
$data['drugPackage'] = $order_prescription_product['drug_package']; // 药品包装
|
$data['drugPackage'] = $order_prescription_product['drug_package']; // 药品包装
|
||||||
$data['recipeAllPrice'] = $order_prescription_product['amount_total']; // 处方总价
|
$data['recipeAllPrice'] = $order_prescription_product['amount_total']; // 处方总价
|
||||||
$data['uploadTime'] = date("Y-m-d H:i:s",time()); // 上传时间
|
$data['uploadTime'] = date("Y-m-d H:i:s",time()); // 上传时间
|
||||||
|
$data['docCaSign'] = $doctor_user_ca_cert['cert_base64']; // 医师ca签名值
|
||||||
|
$data['pharmacistCaSign'] = $pharmacist_user_ca_cert['cert_base64']; // 药师ca签名值
|
||||||
$data['recipeNo'] = $order_prescription['order_prescription_id']; // 医院处方编号
|
$data['recipeNo'] = $order_prescription['order_prescription_id']; // 医院处方编号
|
||||||
$data['cityId'] = "510100"; // 城市ID(参考地区字段)
|
$data['cityId'] = "510100"; // 城市ID(参考地区字段)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user