|
@@ -133,9 +133,9 @@ class Dcquery extends Controller
|
|
|
if($study_id && strlen($study_id) == '16') {
|
|
|
$study_info = DB::table('studies')->where('id',$study_id)->field('id,studyuid,studyid,patient_id')->find();
|
|
|
} 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')->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')->find();
|
|
|
}
|
|
|
// if(strlen($study_id) == '16'){
|
|
|
// $study_info = DB::table('studies')->where('id',$study_id)->field('id,studyuid,studyid,patient_id')->find();
|
|
@@ -215,7 +215,7 @@ class Dcquery extends Controller
|
|
|
$info['patientId'] = $patient_info['temp_patient_id'];
|
|
|
$info['institution'] = $institution['name'];
|
|
|
$return['studies'][] = $info;
|
|
|
- Cache::set($study_id,json_encode($return), 10800);
|
|
|
+ Cache::set($study_id,json_encode($return), 1800);
|
|
|
return json_encode($return);
|
|
|
}catch(Exception $e){
|
|
|
echo $e->getMessage();
|