修改上报处方脚本

This commit is contained in:
wucongxing 2023-12-13 17:15:33 +08:00
parent 2ce4aafb01
commit e245758ce5

View File

@ -696,6 +696,11 @@ class ReportRegulatoryCommand extends HyperfCommand
$icd_name = $icd_name_data[0];
}
if (empty($icd_name)){
$this->line("无疾病名称数据");
return [];
}
$icd_code_data = array_column($order_prescription_icd->toArray(), 'icd_code');
if (count($icd_code_data) > 1) {
$icd_code = implode('|', $icd_code_data);
@ -703,6 +708,11 @@ class ReportRegulatoryCommand extends HyperfCommand
$icd_code = $icd_code_data[0];
}
if (empty($icd_code)){
$this->line("无icd编码数据");
return [];
}
// 网络复诊服务
$data = array();
$data['thirdUniqueid'] = $order_inquiry['order_inquiry_id']; // 唯一标识