|
@@ -247,9 +247,6 @@ class Writereport extends Base
|
|
|
$patient_info['name'] = isset($param['name']) ? $param['name'] : '';
|
|
|
$patient_info['age'] = isset($param['age']) ? $param['age'] : '';
|
|
|
$patient_info['phone'] = isset($param['phone']) ? $param['phone'] : '';
|
|
|
- $patient_info['patient_area'] = isset($param['patient_area']) ? $param['patient_area'] : '';
|
|
|
- $patient_info['hopitalized_no'] = isset($param['hopitalized_no']) ? $param['hopitalized_no'] : '';
|
|
|
- $patient_info['bed_no'] = isset($param['bed_no']) ? $param['bed_no'] : '';
|
|
|
if(isset($param['sex']) && !empty($param['sex'])){
|
|
|
switch($param['sex']){
|
|
|
case '男';
|
|
@@ -274,12 +271,19 @@ class Writereport extends Base
|
|
|
$info['exam_id'] = $param['id'];
|
|
|
$info['impression'] = isset($param['impression']) ? $param['impression'] : '';
|
|
|
$info['description'] = isset($param['description']) ? $param['description'] : '';
|
|
|
+ $exam_info = [];
|
|
|
+ $exam_info['patient_area'] = isset($param['patient_area']) ? $param['patient_area'] : '';
|
|
|
+ $exam_info['hopitalized_no'] = isset($param['hopitalized_no']) ? $param['hopitalized_no'] : '';
|
|
|
+ $exam_info['bed_no'] = isset($param['bed_no']) ? $param['bed_no'] : '';
|
|
|
+ $exam_info['film_type'] = $film_type;
|
|
|
+ $exam_info['phone'] = isset($param['phone']) ? $param['phone'] : '';
|
|
|
+ $exam_info['exam_report'] = isset($param['report_result']) ? $param['report_result'] : '';
|
|
|
if(isset($param['r_result']) && $param['r_result'] == 'true'){
|
|
|
$info['report_result'] = 2;
|
|
|
}else{
|
|
|
$info['report_result'] = 1;
|
|
|
}
|
|
|
- DB::table('exams')->where('id',$param['id'])->update(['film_type'=>$film_type,'phone'=>isset($param['phone']) ? $param['phone'] : '','exam_report'=>$info['report_result']]);
|
|
|
+ DB::table('exams')->where('id',$param['id'])->update($exam_info);
|
|
|
// 报告的id
|
|
|
$report_id = $param['report_id'];
|
|
|
if(isset($_REQUEST['is_remote']) && !empty($_REQUEST['is_remote'])){
|
|
@@ -1185,6 +1189,7 @@ class Writereport extends Base
|
|
|
}*/
|
|
|
$doctor = Cache::get($sessionid);
|
|
|
$is_remote = $_REQUEST['is_remote'];
|
|
|
+ $param = $_REQUEST['param'];
|
|
|
$patient_info['name'] = isset($param['name']) ? $param['name'] : '';
|
|
|
$patient_info['sex'] = isset($param['sex']) ? $param['sex'] : '';
|
|
|
$patient_info['age'] = isset($param['age']) ? $param['age'] : '';
|