|
@@ -917,9 +917,9 @@ class PatientServies
|
|
|
$MEDICAL_INFORMATION_INSERT['create_time'] = $check['EXAM_REPORTS'][0]['create_time'];
|
|
|
$this->patientModel->saveMedical($MEDICAL_INFORMATION_INSERT);
|
|
|
$EXAM_REPORTS = $check['EXAM_REPORTS'];
|
|
|
- $this->saveExamData($EXAM_REPORTS);
|
|
|
+ $EXAM_REPORT_CODE = $this->saveExamData($EXAM_REPORTS);
|
|
|
$this->saveUploadHospitalPatient($MEDICAL_INFORMATION['PATIENT_CODE']);
|
|
|
- return 'success';
|
|
|
+ return $EXAM_REPORT_CODE;
|
|
|
// }catch (\Exception $e)
|
|
|
// {
|
|
|
// return $e->getMessage();
|
|
@@ -930,7 +930,7 @@ class PatientServies
|
|
|
public function postExamReport($params): string
|
|
|
{
|
|
|
$EXAM_REPORTS = $this->makeExamData($params['EXAM_REPORTS']);
|
|
|
- $report = $this->patientModel->getExamReport(['SERIESNUM'=>$EXAM_REPORTS['SERIESNUM']],'*');
|
|
|
+ $report = $this->patientModel->getExamReport(['EXAM_REPORT_CODE'=>$EXAM_REPORTS['EXAM_REPORT_CODE']],'*');
|
|
|
$report->save($EXAM_REPORTS);
|
|
|
return 'success';
|
|
|
}
|
|
@@ -946,8 +946,10 @@ class PatientServies
|
|
|
{
|
|
|
|
|
|
$EXAM_REPORTS_INSERT = [];
|
|
|
+ $CODE = '';
|
|
|
foreach ($EXAM_REPORTS as $k=>$v)
|
|
|
{
|
|
|
+ $CODE = $v['EXAM_REPORT_CODE'];
|
|
|
$report = $this->patientModel->getExamReport(['EXAM_REPORT_CODE'=>$v['EXAM_REPORT_CODE']],'*');
|
|
|
if(!empty($report))
|
|
|
{
|
|
@@ -957,6 +959,7 @@ class PatientServies
|
|
|
$EXAM_REPORTS_INSERT[] = $v;
|
|
|
}
|
|
|
$this->patientModel->saveExamReport($EXAM_REPORTS_INSERT);
|
|
|
+ return $CODE;
|
|
|
}
|
|
|
|
|
|
public function makeUrl($base64_string)
|