|
@@ -61,7 +61,7 @@ class Writereport extends Base
|
|
|
$institution = DB::table('institution')->where('id',$doctor['institution_id'])->field('name,report_subtitle')->find();
|
|
|
$param = $_REQUEST['param'];
|
|
|
$id = $param['id'];
|
|
|
- $info = DB::table('exams')->where('id',$id)->field(['id','ext','study_id','exam_class','exam_status','exam_datetime','exam_sub_class','body_part','accession_num','patient_id','film_type'])->find();
|
|
|
+ $info = DB::table('exams')->where('id',$id)->field(['id','ext','study_id','exam_class','exam_status','exam_datetime','exam_sub_class','body_part','accession_num','patient_id','film_type','patient_area','bed_no','hopitalized_no'])->find();
|
|
|
$exam_class = DB::table('constant')->where('id',$info['exam_class'])->field('constant_value')->find();
|
|
|
$info['exam_class'] = $exam_class['constant_value'];
|
|
|
$exam_subclass = DB::table('exam_subclass')->where('id',$info['exam_sub_class'])->field('name')->find();
|
|
@@ -114,6 +114,9 @@ class Writereport extends Base
|
|
|
$info['sex'] = isset($cache['sex']) ? $cache['sex'] : '';
|
|
|
$info['age'] = isset($cache['age']) ? $cache['age'] : '';
|
|
|
$info['phone'] = isset($cache['phone']) ? $cache['phone'] : '';
|
|
|
+ $info['patient_area'] = isset($cache['patient_area']) ? $cache['patient_area'] : '';
|
|
|
+ $info['hopitalized_no'] = isset($cache['hopitalized_no']) ? $cache['hopitalized_no'] : '';
|
|
|
+ $info['bed_no'] = isset($cache['bed_no']) ? $cache['bed_no'] : '';
|
|
|
}
|
|
|
return json_encode(['status'=>'ok','code'=>'0000','info'=>$info,'sessionid'=>$sessionid,'is_remote'=>$is_remote]);
|
|
|
}catch(\Exception $e){
|
|
@@ -244,6 +247,9 @@ 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 '男';
|