修改发送手机号

This commit is contained in:
2023-04-06 15:31:31 +08:00
parent ae9903f48e
commit d984bf0784
7 changed files with 242 additions and 24 deletions
+57 -6
View File
@@ -7,6 +7,7 @@ use App\Amqp\Producer\CancelUnpayOrdersDelayDirectProducer;
use App\Constants\HttpEnumCode;
use App\Exception\BusinessException;
use App\Model\DoctorInquiryTime;
use App\Model\HospitalDepartmentCustom;
use App\Model\OrderPrescriptionProduct;
use App\Model\OrderProduct;
use App\Model\OrderProductItem;
@@ -25,6 +26,7 @@ use App\Utils\Log;
use Extend\Alibaba\Oss;
use Extend\Ca\Ca;
use Extend\Prescription\Prescription;
use Extend\RegulatoryPlatform\regulatoryPlatform;
use Hyperf\Amqp\Producer;
use Hyperf\DbConnection\Db;
use Hyperf\Utils\ApplicationContext;
@@ -47,8 +49,8 @@ class TestController extends AbstractController
// $this->test_11();
// $this->test_5();
// $this->test_1();
$this->test_11();
// $this->test_12();
// $this->test_11();
$this->test_12();
}
// 获取云证书-首次
@@ -581,11 +583,8 @@ class TestController extends AbstractController
}
// 处方上报处方平台
public function test_11(){
$MessagePush = new MessagePush("491923510680424449","501856873607544832");
$MessagePush->patientNoInquiry();
die;
$order_prescription_id = "501751534291394561";
@@ -640,5 +639,57 @@ class TestController extends AbstractController
dump($result);
}
// 上报监管平台
public function test_12(){
$regulatoryPlatform = new regulatoryPlatform();
$order_inquiry_id = "502434942043090944";
// 获取问诊订单数据
$params = array();
$params['order_inquiry_id'] = $order_inquiry_id;
$order_inquiry = OrderInquiry::getOne($params);
if (empty($order_inquiry)) {
throw new BusinessException("处方药品数据错误");
}
// 获取医生数据
$params = array();
$params['doctor_id'] = $order_inquiry['doctor_id'];
$user_doctor = UserDoctor::getOne($params);
if (empty($user_doctor)) {
throw new BusinessException("医生数据错误");
}
// 获取医生自定义科室数据
$params = array();
$params['department_custom_id'] = $user_doctor['department_custom_id'];
$hospital_department_custom = HospitalDepartmentCustom::getOne($params);
if (empty($hospital_department_custom)) {
throw new BusinessException("医生自定义数据错误");
}
// 获取问诊患者数据
$params = array();
$params['family_id'] = $order_inquiry['family_id'];
$patient_family =
$arg = array();
$arg['thirdUniqueid'] = $order_inquiry['order_inquiry_id']; // 唯一标识
$arg['orgName'] = "成都金牛欣欣相照互联网医院"; // 机构名称
$arg['orgCode'] = "MA6CGUDA251010619D2112"; // 机构编码
$arg['channelName'] = "成都金牛欣欣相照互联网医院";//平台名称
$arg['section'] = $hospital_department_custom['department_name'];//科室名称
$arg['sectionCode'] = $hospital_department_custom['department_code'];//科室编码
$arg['docName'] = $user_doctor['user_name'];// 姓名(医师、护师、技师)
$arg['certificateNum'] = ""; // 执业资格证号
$arg['patientName'] = $order_inquiry['patient_name']; // 患者姓名
$arg['patientAge'] = $order_inquiry['patient_age']; // 患者年龄
$arg['patientSex'] = $order_inquiry['patient_sex'] == 0 ?: 1; // 患者性别
$arg['patientIdcardType'] = 1; // 证件类型
$arg['patientIdcardNum'] = 1; // 患者证件号码
$result = $regulatoryPlatform->uploadConsult($arg);
dump($result);
}
}