|
|
|
@ -52,26 +52,46 @@ class SignInController extends Controller
|
|
|
|
}elseif ($mainInfo->patient_type==3){
|
|
|
|
}elseif ($mainInfo->patient_type==3){
|
|
|
|
$mainInfo->patient_type=2;
|
|
|
|
$mainInfo->patient_type=2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$p=[];
|
|
|
|
|
|
|
|
$checkroom=$mainInfo->reservation_sources_name;
|
|
|
|
|
|
|
|
if($mainInfo->RISRAcceptDeptCode=='FY2003.00'){//超声科
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$checkroom_array = explode("_", $checkroom);
|
|
|
|
|
|
|
|
if(count($checkroom_array)!=2) {
|
|
|
|
|
|
|
|
$fail_item[]=$mainInfo->entrust.' 签到失败:未正确关联学组,学组名称:'.$checkroom;
|
|
|
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$p=[
|
|
|
|
|
|
|
|
'isStudyGroupRegistration'=>'Y',
|
|
|
|
|
|
|
|
'studyGroupName'=>$checkroom_array[0],
|
|
|
|
|
|
|
|
'studyGroupCode'=>$checkroom_array[1],
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if($mainInfo->RISRAcceptDeptCode=='FY2004.00'){//放射科
|
|
|
|
|
|
|
|
$p=[
|
|
|
|
|
|
|
|
'videoRoomName'=>$checkroom,
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
}
|
|
|
|
$data=[
|
|
|
|
$data=[
|
|
|
|
'hisId'=>$mainInfo->reg_num,
|
|
|
|
'hisId'=>$mainInfo->reg_num,
|
|
|
|
'yizhuId'=>$mainInfo->entrust_id,
|
|
|
|
'yizhuId'=>$mainInfo->entrust_id,
|
|
|
|
'isAppt'=>'Y',
|
|
|
|
'isAppt'=>'Y',
|
|
|
|
'appointmentTime'=>$mainInfo->reservation_date.' '.$mainInfo->period_begin_time,
|
|
|
|
'appointmentTime'=>$mainInfo->reservation_date.' '.$mainInfo->period_begin_time,
|
|
|
|
'isStudyGroupRegistration'=>null,
|
|
|
|
'enrolDoctorName'=>'医技预约',
|
|
|
|
'enrolDoctorName'=>'测试医生',
|
|
|
|
'enrolDoctorCode'=>'FYYJYY',
|
|
|
|
'enrolDoctorCode'=>'ddddd',
|
|
|
|
|
|
|
|
'admIdIss'=>$mainInfo->patient_type,
|
|
|
|
'admIdIss'=>$mainInfo->patient_type,
|
|
|
|
'patientName'=>$mainInfo->user_name,
|
|
|
|
'patientName'=>$mainInfo->user_name,
|
|
|
|
'accessionNo'=>$mainInfo->app_num,
|
|
|
|
'accessionNo'=>$mainInfo->app_num,
|
|
|
|
'modalityName'=> $mainInfo->entrust_type,
|
|
|
|
'modalityName'=> $mainInfo->entrust_type,
|
|
|
|
'videoRoomName'=> $mainInfo->reservation_sources_name,
|
|
|
|
'hospitalId'=>1
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
$data= array_merge($data,$p);
|
|
|
|
$yg_signin= self::YG_SignIn('/insertRegisterInfo',$data);
|
|
|
|
$yg_signin= self::YG_SignIn('?CfgItem=JH1738预约签到',$data);
|
|
|
|
if($yg_signin['status']==true){
|
|
|
|
if($yg_signin['status']==true){
|
|
|
|
//盈谷返回成功,更新本地状态
|
|
|
|
//盈谷返回成功,更新本地状态
|
|
|
|
$u=DB::table('s_list')->where(['id'=>$mainInfo->id])->update([
|
|
|
|
$u=DB::table('s_list')->where(['id'=>$mainInfo->id])->update([
|
|
|
|
'list_status'=>2
|
|
|
|
'list_status'=>2,
|
|
|
|
|
|
|
|
'check_num'=>$yg_signin['data'][0]['checkNo']
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
if($u){
|
|
|
|
if($u){
|
|
|
|
$success_item[]=$mainInfo->entrust;
|
|
|
|
$success_item[]=$mainInfo->entrust;
|
|
|
|
@ -105,14 +125,16 @@ class SignInController extends Controller
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$baseUrl=config('app.globals.YingGuBaseUrl');
|
|
|
|
$baseUrl=config('app.globals.YingGuBaseUrl');
|
|
|
|
$data=json_encode($data,JSON_UNESCAPED_UNICODE);
|
|
|
|
$data=json_encode($data,JSON_UNESCAPED_UNICODE);
|
|
|
|
$r=\Tools::Post($baseUrl.$url,$data,'盈谷签到');
|
|
|
|
$r=\Tools::PostSoap($baseUrl.$url,$data,'盈谷签到');
|
|
|
|
|
|
|
|
|
|
|
|
if (!json_decode($r, true)) {
|
|
|
|
if (!json_decode($r, true)) {
|
|
|
|
return ['status'=>false,'msg'=>"解析检查系统'签到接口'数据出错"];
|
|
|
|
return ['status'=>false,'msg'=>"解析'删除签到接口'数据出错:".$r];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$r = $r['SendResult'];
|
|
|
|
$res = json_decode($r, true);
|
|
|
|
$res = json_decode($r, true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($res['isSuccess']==true){
|
|
|
|
if($res['isSuccess']==true){
|
|
|
|
return ['status'=>true,''];
|
|
|
|
return ['status'=>true,'msg'=>$res['resultMsg'],'data'=>$res['resultDatas']];
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
return ['status'=>false,'msg'=>$res['resultMsg']];
|
|
|
|
return ['status'=>false,'msg'=>$res['resultMsg']];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -141,10 +163,11 @@ class SignInController extends Controller
|
|
|
|
$fail_item=[];
|
|
|
|
$fail_item=[];
|
|
|
|
foreach ($mainInfos as $key=>$mainInfo) {
|
|
|
|
foreach ($mainInfos as $key=>$mainInfo) {
|
|
|
|
$data=[
|
|
|
|
$data=[
|
|
|
|
'yizhuId'=>$mainInfo->entrust_id,
|
|
|
|
'checkNo'=>$mainInfo->check_num,
|
|
|
|
'hisId '=>$mainInfo->reg_num
|
|
|
|
'hisId '=>$mainInfo->reg_num,
|
|
|
|
|
|
|
|
'hospitalId'=>1
|
|
|
|
];
|
|
|
|
];
|
|
|
|
$yg_cancelsign= self::YG_CancelSign('/deleteRegisterInfo',$data);
|
|
|
|
$yg_cancelsign= self::YG_CancelSign('?CfgItem=JH1739取消预约签到',$data);
|
|
|
|
if($yg_cancelsign['status']==true){
|
|
|
|
if($yg_cancelsign['status']==true){
|
|
|
|
//盈谷返回成功,更新本地状态
|
|
|
|
//盈谷返回成功,更新本地状态
|
|
|
|
$u=DB::table('s_list')->where(['id'=>$mainInfo->id])->update([
|
|
|
|
$u=DB::table('s_list')->where(['id'=>$mainInfo->id])->update([
|
|
|
|
@ -176,11 +199,12 @@ class SignInController extends Controller
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$baseUrl=config('app.globals.YingGuBaseUrl');
|
|
|
|
$baseUrl=config('app.globals.YingGuBaseUrl');
|
|
|
|
$data=json_encode($data,JSON_UNESCAPED_UNICODE);
|
|
|
|
$data=json_encode($data,JSON_UNESCAPED_UNICODE);
|
|
|
|
$r=\Tools::Post($baseUrl.$url,$data,'盈谷删除签到');
|
|
|
|
$r=\Tools::PostSoap($baseUrl.$url,$data,'盈谷删除签到');
|
|
|
|
|
|
|
|
|
|
|
|
if (!json_decode($r, true)) {
|
|
|
|
if (!json_decode($r, true)) {
|
|
|
|
return ['status'=>false,'msg'=>"解析检查系统'删除签到接口'数据出错"];
|
|
|
|
return ['status'=>false,'msg'=>"解析'删除签到接口'数据出错:".$r];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$r = $r['SendResult'];
|
|
|
|
$res = json_decode($r, true);
|
|
|
|
$res = json_decode($r, true);
|
|
|
|
if($res['isSuccess']==true){
|
|
|
|
if($res['isSuccess']==true){
|
|
|
|
return ['status'=>true,''];
|
|
|
|
return ['status'=>true,''];
|
|
|
|
|