|
@@ -24,10 +24,10 @@ class NfyyApiController extends BaseController {
|
|
|
//================调用自己WS===============
|
|
|
$postData = "<Request><TradeCode>$TradeCode</TradeCode><ExtOrgCode>$ExtOrgCode</ExtOrgCode><ClientType>$ClientType</ClientType><HospitalId>$HospitalId</HospitalId><DepartmentType>$DepartmentType</DepartmentType><DepartmentCode>$DepartmentCode</DepartmentCode><ExtUserID>$ExtUserID</ExtUserID></Request>";
|
|
|
$postData = str_replace(' ','%20',$postData);
|
|
|
- $wsdl = "http://nfyyhis.test.ywtinfo.com/index.php?soap_method=QueryDepartment&Input=";
|
|
|
+ $wsdl = "http://yygh1.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=QueryDepartment&Input=";
|
|
|
$result = file_get_contents($wsdl.$postData);
|
|
|
Log::soaphis("getDoctorInfo:req\r\n".$postData);
|
|
|
- $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
|
|
|
+ $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result,"QueryDepartment");
|
|
|
Log::soaphis("getDoctorInfo:res\r\n".$res);
|
|
|
$res = simplexml_load_string($res);
|
|
|
|
|
@@ -49,7 +49,7 @@ class NfyyApiController extends BaseController {
|
|
|
$ParentId = $v->ParentId;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
$arr=array_unique($arr);
|
|
|
|
|
|
foreach($arr as $key=>$v){
|
|
@@ -87,10 +87,10 @@ class NfyyApiController extends BaseController {
|
|
|
//================调用自己WS===============
|
|
|
$postData = "<Request><TradeCode>$TradeCode</TradeCode><ExtOrgCode>$ExtOrgCode</ExtOrgCode><ClientType>$ClientType</ClientType><HospitalId>$HospitalId</HospitalId><ExtUserID>$ExtUserID</ExtUserID><DepartmentCode>$DepartmentCode</DepartmentCode><DoctorName>$DoctorName</DoctorName></Request>";
|
|
|
$postData = str_replace(' ','%20',$postData);
|
|
|
- $wsdl = "http://nfyyhis.test.ywtinfo.com/index.php?soap_method=QueryDoctor&Input=";
|
|
|
+ $wsdl = "http://yygh1.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=QueryDoctor&Input=";
|
|
|
$result = file_get_contents($wsdl.$postData);
|
|
|
Log::soaphis("getDoctorInfo:req\r\n".$postData);
|
|
|
- $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
|
|
|
+ $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result,"QueryDoctor");
|
|
|
Log::soaphis("getDoctorInfo:res\r\n".$res);
|
|
|
$res = simplexml_load_string($res);
|
|
|
|
|
@@ -103,7 +103,7 @@ class NfyyApiController extends BaseController {
|
|
|
$refxml .= "<resultCode>".$res->ResultCode."</resultCode><resultDesc>".$res->ResultContent."</resultDesc>";
|
|
|
|
|
|
foreach($xmldata as $key=>$v){
|
|
|
- $refxml .="<doctorInfo><doctorId>".$v->DoctorCode."</doctorId><doctorName>".$v->DoctorName."</doctorName><deptId>".$v->DepartmentCode."</deptId><Title>".$v->DoctorTitleCode."</Title><Fee>100</Fee><Gender></Gender><Desc>".$v->DoctorSpec."</Desc></doctorInfo>";
|
|
|
+ $refxml .="<doctorInfo><doctorId>".$v->DoctorCode."</doctorId><doctorName>".$v->DoctorName."</doctorName><deptId>".$v->DepartmentCode."</deptId><Title>".$v->DoctorTitleCode."</Title><Fee>100</Fee><Gender></Gender><Desc>".$v->DoctorSpec."</Desc><ImageUrl>".$v->ImageUrl."</ImageUrl></doctorInfo>";
|
|
|
}
|
|
|
$refxml .= "</res>";
|
|
|
|
|
@@ -138,10 +138,11 @@ class NfyyApiController extends BaseController {
|
|
|
|
|
|
$postData = "<Request><HospitalId>$HospitalId</HospitalId><ExtOrgCode>$ExtOrgCode</ExtOrgCode><ExtUserID>$ExtUserID</ExtUserID><ClientType>$ClientType</ClientType><TradeCode>$TradeCode</TradeCode><DeptType>$DeptType</DeptType><DoctorCode>$DoctorCode</DoctorCode><SessType>$SessType</SessType><StartDate>$StartDate</StartDate><EndDate>$EndDate</EndDate><RBASSessionCode>$RBASSessionCode</RBASSessionCode><ServiceCode>$ServiceCode</ServiceCode><StopScheduleFlag>$StopScheduleFlag</StopScheduleFlag><DepartmentCode>$DepartmentCode</DepartmentCode><SearchCode>$SearchCode</SearchCode></Request>";
|
|
|
$postData = str_replace(' ','%20',$postData);
|
|
|
- $wsdl = "http://nfyyhis.test.ywtinfo.com/index.php?soap_method=QuerySchedule&Input=";
|
|
|
+ $wsdl = "http://yygh1.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=QuerySchedule&Input=";
|
|
|
$result = file_get_contents($wsdl.$postData);
|
|
|
- Log::soaphis("getRegInfo:req\r\n".$postData);
|
|
|
- $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
|
|
|
+ Log::soaphis("getRegInfo:req\r\n".$postData);
|
|
|
+ Log::soaphis("getRegInfo:req\r\n".$result);
|
|
|
+ $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result,"QuerySchedule");
|
|
|
Log::soaphis("getRegInfo:res\r\n".$res);
|
|
|
$res = simplexml_load_string($res);
|
|
|
|
|
@@ -180,10 +181,10 @@ class NfyyApiController extends BaseController {
|
|
|
|
|
|
$postData = "<Request><TradeCode>$TradeCode</TradeCode><ExtOrgCode>$ExtOrgCode</ExtOrgCode><ClientType>$ClientType</ClientType><HospitalId>$HospitalId</HospitalId><ExtUserID>$ExtUserID</ExtUserID><DepartmentCode>$DepartmentCode</DepartmentCode><DoctorCode>$DoctorCode</DoctorCode><RBASSessionCode>$RBASSessionCode</RBASSessionCode><ScheduleItemCode>$ScheduleItemCode</ScheduleItemCode><ServiceDate>$ServiceDate</ServiceDate></Request>";
|
|
|
$postData = str_replace(' ','%20',$postData);
|
|
|
- $wsdl = "http://nfyyhis.test.ywtinfo.com/index.php?soap_method=QueryScheduleTimeInfo&Input=";
|
|
|
+ $wsdl = "http://yygh1.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=QueryScheduleTimeInfo&Input=";
|
|
|
$result = file_get_contents($wsdl.$postData);
|
|
|
Log::soaphis("getTimeRegInfo:req\r\n".$postData);
|
|
|
- $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
|
|
|
+ $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result,"QueryScheduleTimeInfo");
|
|
|
Log::soaphis("getTimeRegInfo:res\r\n".$res);
|
|
|
$res = simplexml_load_string($res);
|
|
|
|
|
@@ -228,13 +229,14 @@ class NfyyApiController extends BaseController {
|
|
|
$IDNo = $req->userIdCard;
|
|
|
$PatientName = $req->username;
|
|
|
|
|
|
+
|
|
|
//================调用自己WS===============
|
|
|
$postData = "<Request><TradeCode>$TradeCode</TradeCode><ExtOrgCode>$ExtOrgCode</ExtOrgCode><ClientType>$ClientType</ClientType><HospitalId>$HospitalId</HospitalId><ExtUserID>$ExtUserID</ExtUserID><TransactionId>$TransactionId</TransactionId><TerminalID>$TerminalID</TerminalID><PatientCard>$PatientCard</PatientCard><CardType>$CardType</CardType><PatientID>$PatientID</PatientID><Phone>$Phone</Phone><IDCardType>$IDCardType</IDCardType><IDNo>$IDNo</IDNo><PatientName>$PatientName</PatientName></Request>";
|
|
|
$postData = str_replace(' ','%20',$postData);
|
|
|
- $wsdl = "http://nfyyhis.test.ywtinfo.com/index.php?soap_method=GetPatInfo&Input=";
|
|
|
+ $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=GetPatInfo&Input=";
|
|
|
$result = file_get_contents($wsdl.$postData);
|
|
|
Log::soaphis("confirmPatient:req\r\n".$postData);
|
|
|
- $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
|
|
|
+ $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result,"GetPatInfo");
|
|
|
Log::soaphis("confirmPatient:res\r\n".$res);
|
|
|
|
|
|
try{
|
|
@@ -246,16 +248,17 @@ class NfyyApiController extends BaseController {
|
|
|
|
|
|
if($res->ResultCode=="0")
|
|
|
{
|
|
|
- $refxml ="<res><resultCode>0</resultCode><resultDesc>用户存在</resultDesc><patientId>".$res->PatientID."</patientId><cardId>".$res->CardNo."</cardId><phone>".$res->Mobile."</phone><isOk>1</isOk></res>";
|
|
|
+ $refxml ="<res><resultCode>0</resultCode><resultDesc>用户存在</resultDesc><birthDay>".$res->DOB."</birthDay><sex>".$res->Sex."</sex><patientId>".$res->PatientID."</patientId><cardId>".$res->CardNo."</cardId><phone>".$res->Mobile."</phone><isOk>1</isOk></res>";
|
|
|
}else{
|
|
|
$refxml ="<res><resultCode>1</resultCode><resultDesc>输入的身份证号和姓名与医院登记不符</resultDesc><patientId></patientId><cardId></cardId><phone></phone><isOk>0</isOk></res>";
|
|
|
}
|
|
|
}catch(Exception $e) {
|
|
|
$refxml ="<res><resultCode>1</resultCode><resultDesc>输入的身份证号和姓名与医院登记不符</resultDesc><patientId></patientId><cardId></cardId><phone></phone><isOk>0</isOk></res>";
|
|
|
}
|
|
|
+
|
|
|
|
|
|
-
|
|
|
- echo $refxml;
|
|
|
+ /*$refxml ="<res><resultCode>0</resultCode><resultDesc>用户存在</resultDesc><birthDay>1986-02-02</birthDay><sex>男</sex><patientId>12345678</patientId><cardId>123456</cardId><phone>18011770185</phone><isOk>1</isOk></res>";
|
|
|
+ echo $refxml; */
|
|
|
|
|
|
}
|
|
|
|
|
@@ -288,10 +291,10 @@ class NfyyApiController extends BaseController {
|
|
|
//================调用自己WS===============
|
|
|
$postData = "<Request><TradeCode>$TradeCode</TradeCode><ExtOrgCode>$ExtOrgCode</ExtOrgCode><ClientType>$ClientType</ClientType><HospitalId>$HospitalId</HospitalId><ExtUserID>$ExtUserID</ExtUserID><TransactionId>$TransactionId</TransactionId><TerminalID>$TerminalID</TerminalID><PatientCard>$PatientCard</PatientCard><CardType>$CardType</CardType><PatientID>$PatientID</PatientID><Phone>$Phone</Phone><IDCardType>$IDCardType</IDCardType><IDNo>$IDNo</IDNo><PatientName>$PatientName</PatientName></Request>";
|
|
|
$postData = str_replace(' ','%20',$postData);
|
|
|
- $wsdl = "http://nfyyhis.test.ywtinfo.com/index.php?soap_method=GetPatInfo&Input=";
|
|
|
+ $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=GetPatInfo&Input=";
|
|
|
$result = file_get_contents($wsdl.$postData);
|
|
|
Log::soaphis("cardMoney:req\r\n".$postData);
|
|
|
- $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
|
|
|
+ $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result,"GetPatInfo");
|
|
|
Log::soaphis("cardMoney:res\r\n".$res);
|
|
|
|
|
|
try{
|
|
@@ -345,10 +348,10 @@ class NfyyApiController extends BaseController {
|
|
|
//================调用自己WS===============
|
|
|
$postData = "<Request><TradeCode>$TradeCode</TradeCode><ExtOrgCode>$ExtOrgCode</ExtOrgCode><ClientType>$ClientType</ClientType><HospitalId>$HospitalId</HospitalId><ExtUserID>$ExtUserID</ExtUserID><TransactionId>$TransactionId</TransactionId><TerminalID>$TerminalID</TerminalID><PatientCard>$PatientCard</PatientCard><CardType>$CardType</CardType><PatientID>$PatientID</PatientID><Phone>$Phone</Phone><IDCardType>$IDCardType</IDCardType><IDNo>$IDNo</IDNo><PatientName>$PatientName</PatientName></Request>";
|
|
|
$postData = str_replace(' ','%20',$postData);
|
|
|
- $wsdl = "http://nfyyhis.test.ywtinfo.com/index.php?soap_method=GetPatInfo&Input=";
|
|
|
+ $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=GetPatInfo&Input=";
|
|
|
$result = file_get_contents($wsdl.$postData);
|
|
|
Log::soaphis("confirmCard:req\r\n".$postData);
|
|
|
- $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
|
|
|
+ $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result,"GetPatInfo");
|
|
|
Log::soaphis("confirmCard:res\r\n".$res);
|
|
|
|
|
|
try{
|
|
@@ -415,10 +418,10 @@ class NfyyApiController extends BaseController {
|
|
|
//================调用自己WS===============
|
|
|
$postData = "<Request><TradeCode>$TradeCode</TradeCode><ExtUserID>$ExtUserID</ExtUserID><PatientType>$PatientType</PatientType><PatientName>$PatientName</PatientName><Sex>$Sex</Sex><DOB>$DOB</DOB><MaritalStatus>$MaritalStatus</MaritalStatus><Nation>$Nation</Nation><Occupation>$Occupation</Occupation><Nationality>$Nationality</Nationality><IDType>$IDType</IDType><IDNo>$IDNo</IDNo><Address>$Address</Address><AddressLocus>$AddressLocus</AddressLocus><Zip>$Zip</Zip><Company>$Company</Company><CompanyAddr>$CompanyAddr</CompanyAddr><CompanyZip>$CompanyZip</CompanyZip><CompanyTelNo>$CompanyTelNo</CompanyTelNo><TelephoneNo>$TelephoneNo</TelephoneNo><Mobile>$Mobile</Mobile><ContactName>$ContactName</ContactName><ContactAddress>$ContactAddress</ContactAddress><Relation>$Relation</Relation><ContactTelNo>$ContactTelNo</ContactTelNo><InsureCardFlag>$InsureCardFlag</InsureCardFlag><InsureCardNo>$InsureCardNo</InsureCardNo></Request>";
|
|
|
$postData = str_replace(' ','%20',$postData);
|
|
|
- $wsdl = "http://nfyyhis.test.ywtinfo.com/index.php?soap_method=SavePatientCard&Input=";
|
|
|
+ $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=SavePatientCard&Input=";
|
|
|
$result = file_get_contents($wsdl.$postData);
|
|
|
Log::soaphis("createPatient:req\r\n".$postData);
|
|
|
- $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
|
|
|
+ $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result,"SavePatientCard");
|
|
|
Log::soaphis("createPatient:res\r\n".$res);
|
|
|
$res = simplexml_load_string($res);
|
|
|
|
|
@@ -481,16 +484,21 @@ class NfyyApiController extends BaseController {
|
|
|
|
|
|
|
|
|
|
|
|
- //================调用自己WS===============
|
|
|
+ //================调用自己WS===============
|
|
|
$postData = "<Request><TradeCode>$TradeCode</TradeCode><ExtOrgCode>$ExtOrgCode</ExtOrgCode><ClientType>$ClientType</ClientType><HospitalId>$HospitalId</HospitalId><ExtUserID>$ExtUserID</ExtUserID><TransactionId>$TransactionId</TransactionId><ScheduleItemCode>$ScheduleItemCode</ScheduleItemCode><CardNo>$CardNo</CardNo><CardType>$CardType</CardType><CredTypeCode>$CredTypeCode</CredTypeCode><IDCardNo>$IDCardNo</IDCardNo><TelePhoneNo>$TelePhoneNo</TelePhoneNo><MobileNo>$MobileNo</MobileNo><PatientName>$PatientName</PatientName><PayFlag>$PayFlag</PayFlag><PayModeCode>$PayModeCode</PayModeCode><PayBankCode>$PayBankCode</PayBankCode><PayCardNo>$PayCardNo</PayCardNo><PayFee>$PayFee</PayFee><PayInsuFee>$PayInsuFee</PayInsuFee><PayInsuFeeStr>$PayInsuFeeStr</PayInsuFeeStr><PayTradeNo>$PayTradeNo</PayTradeNo><LockQueueNo>$LockQueueNo</LockQueueNo><Gender>$Gender</Gender><Address>$Address</Address><HISApptID>$HISApptID</HISApptID><SeqCode>$SeqCode</SeqCode><AdmitRange>$AdmitRange</AdmitRange><StartTime>$StartTime</StartTime><EndTime>$EndTime</EndTime><PatientID>$PatientID</PatientID></Request>";
|
|
|
$postData = str_replace(' ','%20',$postData);
|
|
|
- $wsdl = "http://nfyyhis.test.ywtinfo.com/index.php?soap_method=BookService&Input=";
|
|
|
+ $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=BookService&Input=";
|
|
|
$result = file_get_contents($wsdl.$postData);
|
|
|
- Log::soaphis("addOrder:req\r\n".$postData);
|
|
|
- $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
|
|
|
- Log::soaphis("addOrder:res\r\n".$res);
|
|
|
- $res = simplexml_load_string($res);
|
|
|
|
|
|
+ Log::soaphis("addOrder:req\r\n".$postData);
|
|
|
+ /*$wsdl = "yygh2.wsdl";//webservice服务的地址
|
|
|
+ $client=new SoapClient($wsdl);
|
|
|
+ $param = array(array("Input"=>$postData));
|
|
|
+ $result = $client->__soapCall('BookService', $param);
|
|
|
+ $res = reset($result); */
|
|
|
+ $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result,"BookService");
|
|
|
+ Log::soaphis("addOrder:res\r\n".$res);
|
|
|
+ $res = simplexml_load_string($res);
|
|
|
//==============处理返回==============
|
|
|
$refxml = "";
|
|
|
$refxml .= "<res>";
|
|
@@ -502,9 +510,15 @@ class NfyyApiController extends BaseController {
|
|
|
}
|
|
|
$refxml .="<resultDesc>".$res->ResultContent."</resultDesc><orderIdHIS>".$res->OrderCode."</orderIdHIS><seqCode>".$res->SeqCode."</seqCode><regFee>".$res->RegFee."</regFee><admitRange>".$res->AdmitRange."</admitRange><admitAddress>".$res->AdmitAddress."</admitAddress><orderContent>".$res->OrderContent."</orderContent><transactionId>".$res->TransactionId."</transactionId>";
|
|
|
$refxml .= "</res>";
|
|
|
- echo $refxml;
|
|
|
- }
|
|
|
-
|
|
|
+ echo $refxml;
|
|
|
+
|
|
|
+ /* $refxml .= "<res>";
|
|
|
+ $refxml .="<resultCode>0</resultCode>";
|
|
|
+ $refxml .="<resultDesc>成功</resultDesc><orderIdHIS>11233</orderIdHIS><seqCode>11</seqCode><regFee>5</regFee><admitRange>1</admitRange><admitAddress>2</admitAddress><orderContent>3</orderContent><transactionId>4</transactionId>";
|
|
|
+ $refxml .= "</res>";
|
|
|
+ echo $refxml; */
|
|
|
+ }
|
|
|
+
|
|
|
//<req><hospitalId>1051</hospitalId><orderId>91303204249270</orderId><orderIdHis>91303204249270</orderIdHis><cancelTime>2013-03-22 10:50:06</cancelTime><cancelReason>临时有事</cancelReason></req>
|
|
|
public function cancelOrderAction(){
|
|
|
//==============获得前台请求==============
|
|
@@ -525,11 +539,19 @@ class NfyyApiController extends BaseController {
|
|
|
//================调用自己WS===============
|
|
|
$postData = "<Request><TradeCode>$TradeCode</TradeCode><ExtOrgCode>$ExtOrgCode</ExtOrgCode><ClientType>$ClientType</ClientType><HospitalId>$HospitalId</HospitalId><ExtUserID>$ExtUserID</ExtUserID><TransactionId>$TransactionId</TransactionId><OrderCode>$OrderCode</OrderCode></Request>";
|
|
|
$postData = str_replace(' ','%20',$postData);
|
|
|
- $wsdl = "http://nfyyhis.test.ywtinfo.com/index.php?soap_method=CancelOrder&Input=";
|
|
|
+ $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=CancelOrder&Input=";
|
|
|
$result = file_get_contents($wsdl.$postData);
|
|
|
Log::soaphis("cancelOrder:req\r\n".$postData);
|
|
|
- $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
|
|
|
+ $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result,"CancelOrder");
|
|
|
Log::soaphis("cancelOrder:res\r\n".$res);
|
|
|
+
|
|
|
+ /* Log::soaphis("cancelOrder:req\r\n".$postData);
|
|
|
+ $wsdl = "yygh2.wsdl";//webservice服务的地址
|
|
|
+ $client=new SoapClient($wsdl);
|
|
|
+ $param = array(array("Input"=>$postData));
|
|
|
+ $result = $client->__soapCall('CancelOrder', $param);
|
|
|
+ $res = reset($result);
|
|
|
+ Log::soaphis("cancelOrder:res\r\n".$res); */
|
|
|
$res = simplexml_load_string($res);
|
|
|
|
|
|
//==============处理返回==============
|
|
@@ -566,7 +588,7 @@ class NfyyApiController extends BaseController {
|
|
|
//<ResultContent></ResultContent><PatientID>33043014</PatientID><PayOrderId>20160923114046</PayOrderId></Request>
|
|
|
|
|
|
//==============封装HIS请求==============
|
|
|
- $TradeCode = "1108";
|
|
|
+ $TradeCode = "2001";
|
|
|
$ExtOrgCode = "南方医务通";
|
|
|
$ExtUserID = "NFYWT";
|
|
|
$ClientType = "";
|
|
@@ -593,16 +615,25 @@ class NfyyApiController extends BaseController {
|
|
|
$PayOrderId = "";
|
|
|
$PayTradeNo = $req->orderIdPAY;
|
|
|
|
|
|
-
|
|
|
+
|
|
|
//================调用自己WS===============
|
|
|
$postData = "<Request><TradeCode>$TradeCode</TradeCode><ExtOrgCode>$ExtOrgCode</ExtOrgCode><ClientType>$ClientType</ClientType><HospitalId>$HospitalId</HospitalId><ExtUserID>$ExtUserID</ExtUserID><OrgHISTradeNo>$OrgHISTradeNo</OrgHISTradeNo><PayCardNo>$PayCardNo</PayCardNo><RevTranFlag>$RevTranFlag</RevTranFlag><BankDate>$BankDate</BankDate><BankAccDate>$BankAccDate</BankAccDate><PayModeCode>$PayModeCode</PayModeCode><TransactionId>$TransactionId</TransactionId><BankTradeNo>$BankTradeNo</BankTradeNo><PayDate>$PayDate</PayDate><PayTime>$PayTime</PayTime><PayTradeStr>$PayTradeStr</PayTradeStr><OrderCode>$OrderCode</OrderCode><BankCode>$BankCode</BankCode><ResultCode>$ResultCode</ResultCode><OrgPaySeqNo>$OrgPaySeqNo</OrgPaySeqNo><PayInsuFeeStr>$PayInsuFeeStr</PayInsuFeeStr><PayAmt>$PayAmt</PayAmt><PayTradeNo>$PayTradeNo</PayTradeNo><ResultContent>$ResultContent</ResultContent><PatientID>$PatientID</PatientID><PayOrderId>$PayOrderId</PayOrderId></Request>";
|
|
|
$postData = str_replace(' ','%20',$postData);
|
|
|
- $wsdl = "http://nfyyhis.test.ywtinfo.com/index.php?soap_method=OPAppArrive&Input=";
|
|
|
+ $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=OPAppArrive&Input=";
|
|
|
$result = file_get_contents($wsdl.$postData);
|
|
|
-
|
|
|
+
|
|
|
Log::soaphis("payOrder:req\r\n".$postData);
|
|
|
- $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
|
|
|
+ $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result,"OPAppArrive");
|
|
|
Log::soaphis("payOrder:res\r\n".$res);
|
|
|
+
|
|
|
+ /* Log::soaphis("payOrder:req\r\n".$postData);
|
|
|
+ $wsdl = "yygh2.wsdl";//webservice服务的地址
|
|
|
+ $client=new SoapClient($wsdl);
|
|
|
+ $param = array(array("Input"=>$postData));
|
|
|
+ $result = $client->__soapCall('OPAppArrive', $param);
|
|
|
+ $res = reset($result);
|
|
|
+ Log::soaphis("payOrder:res\r\n".$res); */
|
|
|
+
|
|
|
$res = simplexml_load_string($res);
|
|
|
//==============处理返回==============
|
|
|
$refxml = "";
|
|
@@ -615,7 +646,14 @@ class NfyyApiController extends BaseController {
|
|
|
}
|
|
|
$refxml .="<resultDesc>".$res->ResultContent."</resultDesc><seqCode>".$res->SeqCode."</seqCode><clinicCode>".$res->AdmNo."</clinicCode>";
|
|
|
$refxml .= "</res>";
|
|
|
- echo $refxml;
|
|
|
+ echo $refxml;
|
|
|
+ /*
|
|
|
+ $refxml = "";
|
|
|
+ $refxml .= "<res>";
|
|
|
+ $refxml .="<resultCode>0</resultCode>";
|
|
|
+ $refxml .="<resultDesc>成功</resultDesc><seqCode>111</seqCode><clinicCode>3333</clinicCode>";
|
|
|
+ $refxml .= "</res>";
|
|
|
+ echo $refxml;*/
|
|
|
}
|
|
|
//
|
|
|
//904 116
|
|
@@ -663,13 +701,19 @@ class NfyyApiController extends BaseController {
|
|
|
//================调用自己WS===============
|
|
|
$postData = "<Request><TradeCode>$TradeCode</TradeCode><ExtOrgCode>$ExtOrgCode</ExtOrgCode><ClientType>$ClientType</ClientType><HospitalId>$HospitalId</HospitalId><ExtUserID>$ExtUserID</ExtUserID><AdmNo>$AdmNo</AdmNo><TransactionId>$TransactionId</TransactionId><RefundType>$RefundType</RefundType><BankCode>$BankCode</BankCode><BankDate>$BankDate</BankDate><BankTradeNo>$BankTradeNo</BankTradeNo><ResultCode>$ResultCode</ResultCode><ResultContent>$ResultContent</ResultContent><PayCardNo>$PayCardNo</PayCardNo><BankAccDate>$BankAccDate</BankAccDate><RevTranFlag>$RevTranFlag</RevTranFlag><PatientID>$PatientID</PatientID><PayAmt>$PayAmt</PayAmt><OrgHISTradeNo>$OrgHISTradeNo</OrgHISTradeNo><OrgPaySeqNo>$OrgPaySeqNo</OrgPaySeqNo><PayOrderId>$PayOrderId</PayOrderId><PayTime>$PayTime</PayTime><PayModeCode>$PayModeCode</PayModeCode></Request>";
|
|
|
$postData = str_replace(' ','%20',$postData);
|
|
|
- $wsdl = "http://nfyyhis.test.ywtinfo.com/index.php?soap_method=CancelReg&Input=";
|
|
|
- $result = file_get_contents($wsdl.$postData);
|
|
|
-
|
|
|
-
|
|
|
+ $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=CancelReg&Input=";
|
|
|
+ $result = file_get_contents($wsdl.$postData);
|
|
|
Log::soaphis("returnPay:req\r\n".$postData);
|
|
|
- $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
|
|
|
+ $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result,"CancelReg");
|
|
|
Log::soaphis("returnPay:res\r\n".$res);
|
|
|
+
|
|
|
+ /*Log::soaphis("returnPay:req\r\n".$postData);
|
|
|
+ $wsdl = "yygh2.wsdl";//webservice服务的地址
|
|
|
+ $client=new SoapClient($wsdl);
|
|
|
+ $param = array(array("Input"=>$postData));
|
|
|
+ $result = $client->__soapCall('CancelReg', $param);
|
|
|
+ $res = reset($result);
|
|
|
+ Log::soaphis("returnPay:res\r\n".$res); */
|
|
|
$res = simplexml_load_string($res);
|
|
|
|
|
|
//==============处理返回==============
|
|
@@ -714,10 +758,10 @@ class NfyyApiController extends BaseController {
|
|
|
//================调用自己WS===============
|
|
|
$postData = "<Request><TradeCode>$TradeCode</TradeCode><ExtOrgCode>$ExtOrgCode</ExtOrgCode><ClientType>$ClientType</ClientType><HospitalId>$HospitalId</HospitalId><ExtUserID>$ExtUserID</ExtUserID><CardType>$CardType</CardType><PatientCard>$PatientCard</PatientCard><PatientID>$PatientID</PatientID><StartDate>$StartDate</StartDate><EndDate>$EndDate</EndDate></Request>";
|
|
|
$postData = str_replace(' ','%20',$postData);
|
|
|
- $wsdl = "http://nfyyhis.test.ywtinfo.com/index.php?soap_method=QueryAdmOPReg&Input=";
|
|
|
+ $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=QueryAdmOPReg&Input=";
|
|
|
$result = file_get_contents($wsdl.$postData);
|
|
|
Log::soaphis("getLastClinicDate:req\r\n".$postData);
|
|
|
- $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
|
|
|
+ $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result,"QueryAdmOPReg");
|
|
|
Log::soaphis("getLastClinicDate:res\r\n".$res);
|
|
|
$res = simplexml_load_string($res);
|
|
|
|
|
@@ -766,12 +810,22 @@ class NfyyApiController extends BaseController {
|
|
|
//================调用自己WS===============
|
|
|
$postData = "<Request><ClinicSeq>$ClinicSeq</ClinicSeq></Request>";
|
|
|
$postData = str_replace(' ','%20',$postData);
|
|
|
- $wsdl = "http://nfyyhis.test.ywtinfo.com/index.php?soap_method=LISgetReport&Input=";
|
|
|
+ $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=LISgetReport&Input=";
|
|
|
$result = file_get_contents($wsdl.$postData);
|
|
|
Log::soaphis("labTestList:req\r\n".$postData);
|
|
|
- $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
|
|
|
+ $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result,"LISgetReport");
|
|
|
Log::soaphis("labTestList:res\r\n".$res);
|
|
|
- $res = simplexml_load_string($res);
|
|
|
+ $res = simplexml_load_string($res);
|
|
|
+
|
|
|
+ /* Log::soaphis("labTestList:req\r\n".$postData);
|
|
|
+ $wsdl = "yygh2.wsdl";//webservice服务的地址
|
|
|
+ $client=new SoapClient($wsdl);
|
|
|
+ $param = array(array("Input"=>$postData));
|
|
|
+ $result = $client->__soapCall('LISgetReport', $param);
|
|
|
+ $res = reset($result);
|
|
|
+ Log::soaphis("labTestList:res\r\n".$res);
|
|
|
+ $res = simplexml_load_string($res); */
|
|
|
+
|
|
|
|
|
|
//==============处理返回==============
|
|
|
|
|
@@ -806,12 +860,22 @@ class NfyyApiController extends BaseController {
|
|
|
//================调用自己WS===============
|
|
|
$postData = "<Request><InspectionId>$InspectionId</InspectionId></Request>";
|
|
|
$postData = str_replace(' ','%20',$postData);
|
|
|
- $wsdl = "http://nfyyhis.test.ywtinfo.com/index.php?soap_method=LISgetReportItem&Input=";
|
|
|
+ $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=LISgetReportItem&Input=";
|
|
|
$result = file_get_contents($wsdl.$postData);
|
|
|
Log::soaphis("labTestInfo:req\r\n".$postData);
|
|
|
- $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
|
|
|
+ $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result,"LISgetReportItem");
|
|
|
Log::soaphis("labTestInfo:res\r\n".$res);
|
|
|
- $res = simplexml_load_string($res);
|
|
|
+ $res = simplexml_load_string($res);
|
|
|
+
|
|
|
+ /*Log::soaphis("labTestInfo:req\r\n".$postData);
|
|
|
+ $wsdl = "yygh2.wsdl";//webservice服务的地址
|
|
|
+ $client=new SoapClient($wsdl);
|
|
|
+ $param = array(array("Input"=>$postData));
|
|
|
+ $result = $client->__soapCall('LISgetReportItem', $param);
|
|
|
+ $res = reset($result);
|
|
|
+ Log::soaphis("labTestInfo:res\r\n".$res);
|
|
|
+ $res = simplexml_load_string($res); */
|
|
|
+
|
|
|
|
|
|
//==============处理返回==============
|
|
|
//$res = "<Response><ResultCode>0</ResultCode><ResultContent>成功</ResultContent><Item><ItemId>AST</ItemId><ItemName>天门冬氨酸氨基转移酶</ItemName><OrderNo>0</OrderNo><TestResult>31</TestResult><Unit>U/L</Unit><ItemRef>15~40</ItemRef><TestDate>2016-09-21 00:11:30</TestDate><ResultFlag>N</ResultFlag><TestEngName>AST</TestEngName><SpecimType>血清</SpecimType></Item> <Item><ItemId>LDH</ItemId><ItemName>乳酸脱氢酶</ItemName><OrderNo>0</OrderNo><TestResult>151</TestResult><Unit>U/L</Unit><ResultFlag>H</ResultFlag><ItemRef>0~248</ItemRef><TestDate>2016-09-21 00:11:30</TestDate><TestEngName>LDH</TestEngName><SpecimType>血清</SpecimType></Item><Item><ItemId>HBDH</ItemId><ItemName>a-羟丁酸脱氢酶</ItemName><OrderNo>0</OrderNo><TestResult>107</TestResult><Unit>U/L</Unit><ResultFlag>H</ResultFlag><ItemRef>90~180</ItemRef><TestDate>2016-09-21 00:11:30</TestDate><TestEngName>HBDH</TestEngName><SpecimType>血清</SpecimType></Item><Item><ItemId>CK</ItemId><ItemName>肌酸激酶</ItemName><OrderNo>0</OrderNo><TestResult>110</TestResult><Unit>U/L</Unit><ResultFlag>H</ResultFlag><ItemRef>38~174</ItemRef><TestDate>2016-09-21 00:11:30</TestDate><TestEngName>CK</TestEngName><SpecimType>血清</SpecimType></Item><Item><ItemId>CK_MB</ItemId><ItemName>心型肌酸激酶</ItemName><OrderNo>0</OrderNo><TestResult>10</TestResult><Unit>U/L</Unit><ResultFlag>H</ResultFlag><ItemRef>0~24</ItemRef><TestDate>2016-09-21 00:11:30</TestDate><TestEngName>CK_MB</TestEngName><SpecimType>血清</SpecimType></Item></Response>";
|
|
@@ -856,10 +920,10 @@ class NfyyApiController extends BaseController {
|
|
|
//================调用自己WS===============
|
|
|
$postData = "<Request><ClinicSeq>$ClinicSeq</ClinicSeq></Request>";
|
|
|
$postData = str_replace(' ','%20',$postData);
|
|
|
- $wsdl = "http://nfyyhis.test.ywtinfo.com/index.php?soap_method=PACSgetReport&Input=";
|
|
|
+ $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=PACSgetReport&Input=";
|
|
|
$result = file_get_contents($wsdl.$postData);
|
|
|
Log::soaphis("examList:req\r\n".$postData);
|
|
|
- $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
|
|
|
+ $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result,"PACSgetReport");
|
|
|
Log::soaphis("examList:res\r\n".$res);
|
|
|
$res = simplexml_load_string($res);
|
|
|
|
|
@@ -869,7 +933,7 @@ class NfyyApiController extends BaseController {
|
|
|
//$res = simplexml_load_string($res);
|
|
|
$refxml = "";
|
|
|
$refxml .= "<res>";
|
|
|
- $xmldata = $res->Report;
|
|
|
+ $xmldata = $res->AdmList->Report;
|
|
|
foreach($xmldata as $key=>$v){
|
|
|
$refxml .="<examList><examNo>".$v->ReportId."</examNo><examClass>".$v->ReportTitle."</examClass><status>".(strval($v->Status) == "1" ? "0":"1")."</status><reqDateTime>".$v->ReportDate."</reqDateTime><reportDateTime>".$v->ReportDate."</reportDateTime></examList>";
|
|
|
}
|
|
@@ -892,17 +956,17 @@ class NfyyApiController extends BaseController {
|
|
|
//================调用自己WS===============
|
|
|
$postData = "<Request><ReportId>$ReportId</ReportId></Request>";
|
|
|
$postData = str_replace(' ','%20',$postData);
|
|
|
- $wsdl = "http://nfyyhis.test.ywtinfo.com/index.php?soap_method=PACSgetReportDetail&Input=";
|
|
|
+ $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=PACSgetReportDetail&Input=";
|
|
|
$result = file_get_contents($wsdl.$postData);
|
|
|
Log::soaphis("examInfo:req\r\n".$postData);
|
|
|
- $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
|
|
|
+ $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result,"PACSgetReportDetail");
|
|
|
Log::soaphis("examInfo:res\r\n".$res);
|
|
|
$res = simplexml_load_string($res);
|
|
|
|
|
|
//==============处理返回==============
|
|
|
|
|
|
- $res = "<Response><ResultCode>0</ResultCode><ResultContent>成功</ResultContent><Item><DeptName>惠侨脊柱骨科门诊</DeptName><ReportDoctorName></ReportDoctorName><CheckParts>()</CheckParts><Examination></Examination><Diagnosis>腰椎生理曲度变直;椎列连续;部分腰椎椎体缘见唇状骨质增生影;第五腰椎横突肥大,左侧与骶骨形成假关节;其余椎体、附件及椎间隙未见异常;软组织未见异常;其它:未见异常。</Diagnosis><CheckDoctorName></CheckDoctorName><ExaminationDate>2016-09-22 16:48:31</ExaminationDate><VerifyDocName></VerifyDocName><VerifyDate>2016-09-22 16:48:31</VerifyDate><AppDocName>张耀旋</AppDocName></Item></Response>";
|
|
|
- $res = simplexml_load_string($res);
|
|
|
+ //$res = "<Response><ResultCode>0</ResultCode><ResultContent>成功</ResultContent><Item><DeptName>惠侨脊柱骨科门诊</DeptName><ReportDoctorName></ReportDoctorName><CheckParts>()</CheckParts><Examination></Examination><Diagnosis>腰椎生理曲度变直;椎列连续;部分腰椎椎体缘见唇状骨质增生影;第五腰椎横突肥大,左侧与骶骨形成假关节;其余椎体、附件及椎间隙未见异常;软组织未见异常;其它:未见异常。</Diagnosis><CheckDoctorName></CheckDoctorName><ExaminationDate>2016-09-22 16:48:31</ExaminationDate><VerifyDocName></VerifyDocName><VerifyDate>2016-09-22 16:48:31</VerifyDate><AppDocName>张耀旋</AppDocName></Item></Response>";
|
|
|
+ //$res = simplexml_load_string($res);
|
|
|
$refxml = "";
|
|
|
$refxml .= "<res>";
|
|
|
$xmldata = $res->Item;
|
|
@@ -927,7 +991,8 @@ class NfyyApiController extends BaseController {
|
|
|
//==============封装HIS请求==============
|
|
|
$TradeCode = "1104";
|
|
|
$TradeCode1 = "90020";
|
|
|
- $ExtOrgCode ="南方医务通";
|
|
|
+ $ExtOrgCode ="南方医务通";
|
|
|
+ $ExtOrgCode1 ="医务通";
|
|
|
$ExtUserID = "HQTJ";
|
|
|
$ExtUserID1 = "NFYWT";
|
|
|
$ClientType = "";
|
|
@@ -941,10 +1006,10 @@ class NfyyApiController extends BaseController {
|
|
|
//================调用自己WS===============
|
|
|
$postData = "<Request><TradeCode>$TradeCode</TradeCode><ExtOrgCode>$ExtOrgCode</ExtOrgCode><ClientType>$ClientType</ClientType><HospitalId>$HospitalId</HospitalId><ExtUserID>$ExtUserID</ExtUserID><CardType>$CardType</CardType><PatientCard>$PatientCard</PatientCard><PatientID>$PatientID</PatientID><StartDate>$StartDate</StartDate><EndDate>$EndDate</EndDate></Request>";
|
|
|
$postData = str_replace(' ','%20',$postData);
|
|
|
- $wsdl = "http://nfyyhis.test.ywtinfo.com/index.php?soap_method=QueryAdmOPReg&Input=";
|
|
|
+ $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=QueryAdmOPReg&Input=";
|
|
|
$result = file_get_contents($wsdl.$postData);
|
|
|
Log::soaphis("getLastClinicDate:req\r\n".$postData);
|
|
|
- $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
|
|
|
+ $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result,"QueryAdmOPReg");
|
|
|
Log::soaphis("getLastClinicDate:res\r\n".$res);
|
|
|
$res = simplexml_load_string($res);
|
|
|
|
|
@@ -969,12 +1034,12 @@ class NfyyApiController extends BaseController {
|
|
|
//$refxml .="<dateTime>".$arr[AdmitDate]."</dateTime><clinicCode>".$arr[RegId]."</clinicCode>";
|
|
|
|
|
|
|
|
|
- $postData = "<Request><TradeCode>$TradeCode1</TradeCode><Adm>".$arr[RegId]."</Adm><InvoiceNO></InvoiceNO></Request>";
|
|
|
+ $postData = "<Request><TradeCode>$TradeCode1</TradeCode><ExtOrgCode>$ExtOrgCode1</ExtOrgCode><Adm>".$arr[RegId]."</Adm><InvoiceNO></InvoiceNO></Request>";
|
|
|
$postData = str_replace(' ','%20',$postData);
|
|
|
- $wsdl = "http://nfyyhis.test.ywtinfo.com/index.php?soap_method=GetDirectListByAdm&Input=";
|
|
|
+ $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=GetDirectListByAdm&Input=";
|
|
|
$result = file_get_contents($wsdl.$postData);
|
|
|
Log::soaphis("GetDirectListByAdm:req\r\n".$postData);
|
|
|
- $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
|
|
|
+ $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result,"GetDirectListByAdm");
|
|
|
Log::soaphis("GetDirectListByAdm:res\r\n".$res);
|
|
|
$res = simplexml_load_string($res);
|
|
|
|
|
@@ -1038,11 +1103,11 @@ class NfyyApiController extends BaseController {
|
|
|
//================调用自己WS===============
|
|
|
$postData = "<Request><TradeCode>$TradeCode</TradeCode><ExtOrgCode>$ExtOrgCode</ExtOrgCode><ClientType>$ClientType</ClientType><HospitalId>$HospitalId</HospitalId><ExtUserID>$ExtUserID</ExtUserID><CardType>$CardType</CardType><PatientCard>$PatientCard</PatientCard><PatientID>$PatientID</PatientID><StartDate>$StartDate</StartDate><EndDate>$EndDate</EndDate></Request>";
|
|
|
$postData = str_replace(' ','%20',$postData);
|
|
|
- $wsdl = "http://nfyyhis.test.ywtinfo.com/index.php?soap_method=QueryAdmOPReg&Input=";
|
|
|
+ $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=QueryAdmOPReg&Input=";
|
|
|
$result = file_get_contents($wsdl.$postData);
|
|
|
//$result = call_user_func(array($_ENV["commonClass"],"sendDataByCurl"),$postUrl,$postData);
|
|
|
Log::soaphis("QueryAdmOPRe:req\r\n".$postData);
|
|
|
- $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
|
|
|
+ $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result,"QueryAdmOPReg");
|
|
|
Log::soaphis("QueryAdmOPRe:res\r\n".$res);
|
|
|
$res = simplexml_load_string($res);
|
|
|
|
|
@@ -1068,19 +1133,18 @@ class NfyyApiController extends BaseController {
|
|
|
if($arr!=null){
|
|
|
$refxml .="<dateTime>".$arr[AdmitDate]."</dateTime><clinicCode>".$arr[RegId]."</clinicCode>";
|
|
|
|
|
|
-
|
|
|
$postData = "<Request><TradeCode>$TradeCode1</TradeCode><AdmNo>".$arr[RegId]."</AdmNo><ExtUserID>$ExtUserID1</ExtUserID></Request>";
|
|
|
$postData = str_replace(' ','%20',$postData);
|
|
|
- $wsdl = "http://nfyyhis.test.ywtinfo.com/index.php?soap_method=WaitingQueue&Input=";
|
|
|
+ $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=WaitingQueue&Input=";
|
|
|
$result = file_get_contents($wsdl.$postData);
|
|
|
Log::soaphis("WaitingQueue:req\r\n".$postData);
|
|
|
- $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
|
|
|
+ $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result,"WaitingQueue");
|
|
|
Log::soaphis("WaitingQueue:res\r\n".$res);
|
|
|
$res = simplexml_load_string($res);
|
|
|
|
|
|
if($res->ResultCode=="0") {
|
|
|
|
|
|
- $refxml .="<patName>".$v->PatName."</patName><admLoc>".$v->AdmLoc."</admLoc><admDoc>".$v->AdmDoc."</admDoc><waitingNumber>".$v->WaitingNumber."</waitingNumber>";
|
|
|
+ $refxml .="<patName>".$res->PatName."</patName><admLoc>".$res->AdmLoc."</admLoc><admDoc>".$res->AdmDoc."</admDoc><waitingNumber>".$res->WaitingNumber."</waitingNumber>";
|
|
|
|
|
|
}else{
|
|
|
$refxml .="<resultCode>1</resultCode>";
|
|
@@ -1109,5 +1173,4 @@ class NfyyApiController extends BaseController {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
}
|