|
@@ -149,12 +149,12 @@ 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,studydate')->find();
|
|
|
+ $study_info = DB::table('studies')->where('id',$study_id)->field('id,studyuid,studyid,patient_id,studydate,institution_id')->find();
|
|
|
Log::record($study_info);
|
|
|
} else if($study_uid) {
|
|
|
- $study_info = DB::table('studies')->where('studyuid', $study_uid)->field('id,studyuid,studyid,patient_id,studydate')->find();
|
|
|
+ $study_info = DB::table('studies')->where('studyuid', $study_uid)->field('id,studyuid,studyid,patient_id,studydate,institution_id')->find();
|
|
|
} else if($acc_num) {
|
|
|
- $study_info = DB::table('studies')->where('accession_num', $acc_num)->field('id,studyuid,studyid,patient_id,studydate')->find();
|
|
|
+ $study_info = DB::table('studies')->where('accession_num', $acc_num)->field('id,studyuid,studyid,patient_id,studydate,institution_id')->find();
|
|
|
}
|
|
|
if(!$study_info) {
|
|
|
return json_encode([
|
|
@@ -169,7 +169,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();
|
|
|
- $institution = DB::table('institution')->where('id',$patient_info['institution_id'])->field('name')->find();
|
|
|
+ $institution = DB::table('institution')->where('id',$study_info['institution_id'])->field('name')->find();
|
|
|
$info['patientName'] = $patient_info['name'];
|
|
|
// 根据series_num排序
|
|
|
$series_list = DB::table('series')->where('study_id',$study_info['id'])->where('modality','not in','PR,SR')->field('id,series_num,seriesuid,description,modality')->order('series_num asc')->select();
|