diff --git a/app/Command/ReportRegulatoryCommand.php b/app/Command/ReportRegulatoryCommand.php index 371b85c..4badcf4 100644 --- a/app/Command/ReportRegulatoryCommand.php +++ b/app/Command/ReportRegulatoryCommand.php @@ -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']; // 唯一标识