ApiService.class.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. <?php
  2. if (!defined('IS_INITPHP')) exit('Access Denied!');
  3. class ApiService extends BaseService{
  4. //查询二级科室列表(1012)
  5. public function QueryDepartment($appUser){
  6. $req = file_get_contents("php://input"); //接收POST数据
  7. $wsdl = "http://yygh1.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=QueryDepartment&Input=";
  8. $result = file_get_contents($wsdl.$req);
  9. Log::soaphis("QueryDepartment:req\r\n".$req,$appUser);
  10. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  11. Log::soaphis("QueryDepartment:res\r\n".$res,$appUser);
  12. echo $res;
  13. }
  14. //查询医生列表(1013)
  15. public function QueryDoctor($appUser){
  16. $req = file_get_contents("php://input"); //接收POST数据
  17. $wsdl = "http://yygh1.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=QueryDoctor&Input=";
  18. $result = file_get_contents($wsdl.$req);
  19. Log::soaphis("QueryDoctor:req\r\n".$req,$appUser);
  20. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  21. Log::soaphis("QueryDoctor:res\r\n".$res,$appUser);
  22. echo $res;
  23. }
  24. //查询排班记录(1004)
  25. public function QuerySchedule($appUser){
  26. $req = file_get_contents("php://input"); //接收POST数据
  27. $wsdl = "http://yygh1.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=QuerySchedule&Input=";
  28. $result = file_get_contents($wsdl.$req);
  29. Log::soaphis("QuerySchedule:req\r\n".$req,$appUser);
  30. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  31. Log::soaphis("QuerySchedule:res\r\n".$res,$appUser);
  32. echo $res;
  33. }
  34. //查询排班记录(10041)
  35. public function QueryScheduleTimeInfo($appUser){
  36. $req = file_get_contents("php://input"); //接收POST数据
  37. $wsdl = "http://yygh1.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=QueryScheduleTimeInfo&Input=";
  38. $result = file_get_contents($wsdl.$req);
  39. Log::soaphis("QueryScheduleTimeInfo:req\r\n".$req,$appUser);
  40. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  41. Log::soaphis("QueryScheduleTimeInfo:res\r\n".$res,$appUser);
  42. echo $res;
  43. }
  44. //查询排班记录(10041)
  45. public function QueryScheduleToHQTJ($appUser){
  46. $req = file_get_contents("php://input"); //接收POST数据
  47. $wsdl = "http://yygh1.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=QueryScheduleToHQTJ&Input=";
  48. $result = file_get_contents($wsdl.$req);
  49. Log::soaphis("QueryScheduleToHQTJ:req\r\n".$req,$appUser);
  50. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  51. Log::soaphis("QueryScheduleToHQTJ:res\r\n".$res,$appUser);
  52. echo $res;
  53. }
  54. //查询停诊医生信息 (1107)
  55. public function QueryStopDoctorInfo($appUser){
  56. $req = file_get_contents("php://input"); //接收POST数据
  57. $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=QueryStopDoctorInfo&Input=";
  58. $result = file_get_contents($wsdl.$req);
  59. Log::soaphis("QueryStopDoctorInfo:req\r\n".$req,$appUser);
  60. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  61. Log::soaphis("QueryStopDoctorInfo:res\r\n".$res,$appUser);
  62. echo $res;
  63. }
  64. //锁号(10015)
  65. public function LockOrder($appUser){
  66. $req = file_get_contents("php://input"); //接收POST数据
  67. $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=LockOrder&Input=";
  68. $result = file_get_contents($wsdl.$req);
  69. Log::soaphis("LockOrder:req\r\n".$req,$appUser);
  70. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  71. Log::soaphis("LockOrder:res\r\n".$res,$appUser);
  72. echo $res;
  73. }
  74. //取消锁号(10016)
  75. public function UnLockOrder($appUser){
  76. $req = file_get_contents("php://input"); //接收POST数据
  77. $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=UnLockOrder&Input=";
  78. $result = file_get_contents($wsdl.$req);
  79. Log::soaphis("UnLockOrder:req\r\n".$req,$appUser);
  80. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  81. Log::soaphis("UnLockOrder:res\r\n".$res,$appUser);
  82. echo $res;
  83. }
  84. //预约(1000)
  85. public function BookService($appUser){
  86. $req = file_get_contents("php://input"); //接收POST数据
  87. $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=BookService&Input=";
  88. $result = file_get_contents($wsdl.$req);
  89. Log::soaphis("BookService:req\r\n".$req,$appUser);
  90. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  91. Log::soaphis("BookService:res\r\n".$res,$appUser);
  92. echo $res;
  93. }
  94. //取消预约(1108)
  95. public function CancelOrder($appUser){
  96. $req = file_get_contents("php://input"); //接收POST数据
  97. $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=CancelOrder&Input=";
  98. $result = file_get_contents($wsdl.$req);
  99. Log::soaphis("CancelOrder:req\r\n".$req,$appUser);
  100. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  101. Log::soaphis("CancelOrder:res\r\n".$res,$appUser);
  102. echo $res;
  103. }
  104. //病人取号确认(2001)
  105. public function OPAppArrive($appUser){
  106. $req = file_get_contents("php://input"); //接收POST数据
  107. $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=OPAppArrive&Input=";
  108. $result = file_get_contents($wsdl.$req);
  109. Log::soaphis("OPAppArrive:req\r\n".$req,$appUser);
  110. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  111. Log::soaphis("OPAppArrive:res\r\n".$res,$appUser);
  112. echo $res;
  113. }
  114. //挂号-提前挂号(1101)
  115. public function OPRegister($appUser){
  116. $req = file_get_contents("php://input"); //接收POST数据
  117. $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=OPRegister&Input=";
  118. $result = file_get_contents($wsdl.$req);
  119. Log::soaphis("OPRegister:req\r\n".$req,$appUser);
  120. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  121. Log::soaphis("OPRegister:res\r\n".$res,$appUser);
  122. echo $res;
  123. }
  124. //退号(1003)
  125. public function CancelReg($appUser){
  126. $req = file_get_contents("php://input"); //接收POST数据
  127. $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=CancelReg&Input=";
  128. $result = file_get_contents($wsdl.$req);
  129. Log::soaphis("CancelReg:req\r\n".$req,$appUser);
  130. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  131. Log::soaphis("CancelReg:res\r\n".$res,$appUser);
  132. echo $res;
  133. }
  134. //查询挂号记录(1104)
  135. public function QueryAdmOPReg($appUser){
  136. $req = file_get_contents("php://input"); //接收POST数据
  137. $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=QueryAdmOPReg&Input=";
  138. $result = file_get_contents($wsdl.$req);
  139. Log::soaphis("QueryAdmOPReg:req\r\n".$req,$appUser);
  140. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  141. Log::soaphis("QueryAdmOPReg:res\r\n".$res,$appUser);
  142. echo $res;
  143. }
  144. //查询预约记录(1005)
  145. public function QueryOrder($appUser){
  146. $req = file_get_contents("php://input"); //接收POST数据
  147. $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=QueryOrder&Input=";
  148. $result = file_get_contents($wsdl.$req);
  149. Log::soaphis("QueryOrder:req\r\n".$req,$appUser);
  150. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  151. Log::soaphis("QueryOrder:res\r\n".$res,$appUser);
  152. echo $res;
  153. }
  154. //获取患者基本信息(3300)
  155. public function GetPatInfo($appUser){
  156. $req = file_get_contents("php://input"); //接收POST数据
  157. $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=GetPatInfo&Input=";
  158. $result = file_get_contents($wsdl.$req);
  159. Log::soaphis("GetPatInfo:req\r\n".$req,$appUser);
  160. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  161. Log::soaphis("GetPatInfo:res\r\n".$res,$appUser);
  162. echo $res;
  163. }
  164. //新建病人主索引(3014,3011)
  165. public function SavePatientCard($appUser){
  166. $req = file_get_contents("php://input"); //接收POST数据
  167. $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=SavePatientCard&Input=";
  168. $result = file_get_contents($wsdl.$req);
  169. Log::soaphis("SavePatientCard:req\r\n".$req,$appUser);
  170. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  171. Log::soaphis("SavePatientCard:res\r\n".$res,$appUser);
  172. echo $res;
  173. }
  174. //排队候诊(4001)
  175. public function WaitingQueue($appUser){
  176. $req = file_get_contents("php://input"); //接收POST数据
  177. $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=WaitingQueue&Input=";
  178. $result = file_get_contents($wsdl.$req);
  179. Log::soaphis("WaitingQueue:req\r\n".$req,$appUser);
  180. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  181. Log::soaphis("WaitingQueue:res\r\n".$res,$appUser);
  182. echo $res;
  183. }
  184. //检验报告列表查询
  185. public function LISgetReport($appUser){
  186. $req = file_get_contents("php://input"); //接收POST数据
  187. $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=LISgetReport&Input=";
  188. $result = file_get_contents($wsdl.$req);
  189. Log::soaphis("LISgetReport:req\r\n".$req,$appUser);
  190. Log::soaphis("LISgetReport:res\r\n".$result,$appUser);
  191. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  192. Log::soaphis("LISgetReport:res\r\n".$res,$appUser);
  193. echo $res;
  194. }
  195. //检验报告明细内容查询
  196. public function LISgetReportItem($appUser){
  197. $req = file_get_contents("php://input"); //接收POST数据
  198. $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=LISgetReportItem&Input=";
  199. $result = file_get_contents($wsdl.$req);
  200. Log::soaphis("LISgetReportItem:req\r\n".$req,$appUser);
  201. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  202. Log::soaphis("LISgetReportItem:res\r\n".$res,$appUser);
  203. echo $res;
  204. }
  205. //检查报告列表查询接口
  206. public function PACSgetReport($appUser){
  207. $req = file_get_contents("php://input"); //接收POST数据
  208. $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=PACSgetReport&Input=";
  209. $result = file_get_contents($wsdl.$req);
  210. Log::soaphis("PACSgetReport:req\r\n".$req,$appUser);
  211. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  212. Log::soaphis("PACSgetReport:res\r\n".$res,$appUser);
  213. echo $res;
  214. }
  215. //检查报告明细内容查询接口
  216. public function PACSgetReportDetail($appUser){
  217. $req = file_get_contents("php://input"); //接收POST数据
  218. $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=PACSgetReportDetail&Input=";
  219. $result = file_get_contents($wsdl.$req);
  220. Log::soaphis("PACSgetReportDetail:req\r\n".$req,$appUser);
  221. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  222. Log::soaphis("PACSgetReportDetail:res\r\n".$res,$appUser);
  223. echo $res;
  224. }
  225. //查询就诊信息(4002)
  226. public function AdmInfo($appUser){
  227. $req = file_get_contents("php://input"); //接收POST数据
  228. $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=AdmInfo&Input=";
  229. $result = file_get_contents($wsdl.$req);
  230. Log::soaphis("AdmInfo:req\r\n".$req,$appUser);
  231. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  232. Log::soaphis("AdmInfo:res\r\n".$res,$appUser);
  233. echo $res;
  234. }
  235. //处方单查询(3233)
  236. public function GetPresc($appUser){
  237. $req = file_get_contents("php://input"); //接收POST数据
  238. $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=GetPresc&Input=";
  239. $result = file_get_contents($wsdl.$req);
  240. Log::soaphis("GetPresc:req\r\n".$req,$appUser);
  241. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  242. Log::soaphis("GetPresc:res\r\n".$res,$appUser);
  243. echo $res;
  244. }
  245. //第三方对账查询(5001)
  246. public function FindWeChatPayData($appUser){
  247. $req = file_get_contents("php://input"); //接收POST数据
  248. $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=FindWeChatPayData&Input=";
  249. $result = file_get_contents($wsdl.$req);
  250. Log::soaphis("FindWeChatPayData:req\r\n".$req,$appUser);
  251. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  252. Log::soaphis("FindWeChatPayData:res\r\n".$res,$appUser);
  253. echo $res;
  254. }
  255. //HIS对账查询(5002)
  256. public function AccountingConfirm($appUser){
  257. $req = file_get_contents("php://input"); //接收POST数据
  258. $wsdl = "http://yygh2.dept.nfyy.com/csp/oep/DHC.OEP.BS.OEPSTANWebService.cls?soap_method=AccountingConfirm&Input=";
  259. $result = file_get_contents($wsdl.$req);
  260. Log::soaphis("AccountingConfirm:req\r\n".$req,$appUser);
  261. $res = call_user_func(array($_ENV["commonClass"],"SoapToXml"),$result);
  262. Log::soaphis("AccountingConfirm:res\r\n".$res,$appUser);
  263. echo $res;
  264. }
  265. }
  266. ?>