|
@@ -135,13 +135,13 @@ class Dcquery extends Controller
|
|
|
if($study_id && strlen($study_id) == '16') {
|
|
|
Log::record('study_info');
|
|
|
Log::record($study_id);
|
|
|
- $study_info = DB::table('studies')->where('id',$study_id)->field('id,studyuid,studyid,patient_id')->find();
|
|
|
+ $study_info = DB::table('studies')->where('id',$study_id)->field('id,studyuid,studyid,patient_id,studydate')->find();
|
|
|
|
|
|
Log::record($study_info);
|
|
|
} else if($study_uid) {
|
|
|
- $study_info = DB::table('studies')->where('studyuid', $study_uid)->field('id,studyuid,studyid,patient_id')->find();
|
|
|
+ $study_info = DB::table('studies')->where('studyuid', $study_uid)->field('id,studyuid,studyid,patient_id,studydate')->find();
|
|
|
} else if($acc_num) {
|
|
|
- $study_info = DB::table('studies')->where('accession_num', $acc_num)->field('id,studyuid,studyid,patient_id')->find();
|
|
|
+ $study_info = DB::table('studies')->where('accession_num', $acc_num)->field('id,studyuid,studyid,patient_id,studydate')->find();
|
|
|
}
|
|
|
if(!$study_info) {
|
|
|
return json_encode([
|
|
@@ -155,7 +155,7 @@ class Dcquery extends Controller
|
|
|
// }
|
|
|
$info['studyInstanceUid'] = $study_info['studyuid'];
|
|
|
$patient_info = DB::table('patient_infos')->where('id',$study_info['patient_id'])->field('birthday,institution_id,temp_patient_id,name,age,sex')->find();
|
|
|
- $date = DB::table('exams')->where('patient_id',$study_info['patient_id'])->field('exam_datetime')->find();
|
|
|
+ // $date = DB::table('exams')->where('patient_id',$study_info['patient_id'])->field('exam_datetime')->find();
|
|
|
$institution = DB::table('institution')->where('id',$patient_info['institution_id'])->field('name')->find();
|
|
|
$info['patientName'] = $patient_info['name'];
|
|
|
// 根据series_num排序
|
|
@@ -222,7 +222,7 @@ class Dcquery extends Controller
|
|
|
$info['patientAge'] = '';
|
|
|
}
|
|
|
$info['patientSex'] = $patient_info['sex'];
|
|
|
- $info['studyDate'] = $date['exam_datetime'];
|
|
|
+ $info['studyDate'] = $study_info['studydate']; // $date['exam_datetime'];
|
|
|
$info['studyid'] = $study_info['studyid'];
|
|
|
$info['patientId'] = $patient_info['temp_patient_id'];
|
|
|
$info['institution'] = $institution['name'];
|