SMMMO04800_의뢰환자리스트.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title/>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <cnstdd/>
  12. <reqflag/>
  13. <orddeptcd/>
  14. <orddrid/>
  15. <replyn/>
  16. <pid/>
  17. <hngnm/>
  18. <fromdd/>
  19. <todd/>
  20. <ioflag>-</ioflag>
  21. <queryflag>orgin</queryflag>
  22. <sortcol/>
  23. <orderby/>
  24. </cond>
  25. <cnstpatinfo>
  26. <cnstpatlist>
  27. <pid/>
  28. <hngnm/>
  29. <orddd/>
  30. <cretno/>
  31. <reqflag/>
  32. <recvdeptcd/>
  33. <recvuserid/>
  34. <recvusernm/>
  35. <replyn/>
  36. <repldd/>
  37. <repltm/>
  38. <reqdeptcd/>
  39. <reqdeptnm/>
  40. <requserid/>
  41. <requsernm/>
  42. <reqdt/>
  43. <eryn/>
  44. <termengnm/>
  45. <ioflag/>
  46. <roomcd/>
  47. <sa/>
  48. <cnstseq/>
  49. </cnstpatlist>
  50. <cnsttotcnt>
  51. <deptreqcnt/>
  52. <deptrecvcnt/>
  53. <patreqcnt/>
  54. </cnsttotcnt>
  55. </cnstpatinfo>
  56. <totcnt>
  57. <totcnt/>
  58. </totcnt>
  59. <patinfo>
  60. <patinfolist/>
  61. </patinfo>
  62. </main>
  63. <send>
  64. <reqdata/>
  65. <savedata/>
  66. </send>
  67. <hidden>
  68. </hidden>
  69. <init>
  70. <orddept/>
  71. <userlist/>
  72. <rsltgetdata>
  73. <getdata/>
  74. </rsltgetdata>
  75. <M0623/>
  76. </init>
  77. <temp/>
  78. <popupmenu>
  79. <menu>
  80. <item>
  81. <name>관심환자등록</name>
  82. <func>fCallWndConcPatRgst</func>
  83. </item>
  84. <item>
  85. <name>주의요망환자관리</name>
  86. <func>fCallWndWarnPat</func>
  87. </item>
  88. <item>
  89. <name>-</name>
  90. <func/>
  91. </item>
  92. <item>
  93. <name>미수행처방관리</name>
  94. <func>fOpenInFinPrcp</func>
  95. </item>
  96. <!--
  97. <item>
  98. <name>RC환자정보</name>
  99. <func>fA</func>
  100. </item>
  101. <item>
  102. <name>-</name>
  103. <func/>
  104. </item>
  105. <item>
  106. <name>V/S조회</name>
  107. <func>fC</func>
  108. </item>
  109. <item>
  110. <name>-</name>
  111. <func/>
  112. </item>
  113. <item>
  114. <name>WORKLIST등록</name>
  115. <func>fD</func>
  116. </item>
  117. -->
  118. </menu>
  119. </popupmenu>
  120. </root>
  121. </instance>
  122. <script type="javascript" ev:event="xforms-ready">
  123. <![CDATA[
  124. fInitialize_SMMMO04800();
  125. ]]>
  126. </script>
  127. <submission id="TRMMB01103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/userscrnenvinfo"/>
  128. <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
  129. <submission id="TRMMO04303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/rsltgetdata"/>
  130. <submission id="TRMMO04801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/cnstpatinfo"/>
  131. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  132. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  133. <submission id="TRMMO04129" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/recinfo"/>
  134. </model>
  135. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  136. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  137. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  138. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  139. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04100.js"/>
  140. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04800.js"/>
  141. </xhtml:head>
  142. <xhtml:body guideline="1,1174;2,716;1,81;2,9;1,946;1,452;2,61;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  143. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1174px; height:84px; background-color:#fffbf2; border-color:#ffd799; "/>
  144. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" maxlength="10" style="left:579px; top:36px; width:90px; height:19px; ">
  145. <script type="javascript" ev:event="onkeypress">
  146. <![CDATA[
  147. inputEnterKey("btn_reqpatnm", "DOMActivate");
  148. ]]>
  149. </script>
  150. </input>
  151. <caption id="caption1" class="search_name" style="left:5px; top:36px; width:76px; height:17px; ">회 신 과</caption>
  152. <caption id="caption2" style="left:96px; top:34px; width:30px; height:20px; font-weight:bold; vertical-align:middle; margin-left:20; margin-top:8; ">명</caption>
  153. <caption id="caption4" class="search_name" style="left:498px; top:36px; width:76px; height:17px; ">등록번호</caption>
  154. <caption id="caption6" class="search_name" style="left:5px; top:9px; width:76px; height:17px; ">의 뢰 일</caption>
  155. <line id="line3" style="x1:1098px; y1:8px; x2:1098px; y2:76px; border-color:#ffe4bb; border-left-style:solid; "/>
  156. <caption id="caption3" class="tit_2" style="left:1px; top:86px; width:126px; height:13px; vertical-align:middle; ">CONSULT</caption>
  157. <line id="line6" class="line_1" style="x1:0px; y1:100px; x2:1175px; y2:100px; "/>
  158. <caption id="caption8" class="search_name" style="left:307px; top:36px; width:76px; height:17px; ">회 신 의</caption>
  159. <caption id="caption9" class="search_name" style="left:685px; top:36px; width:76px; height:17px; ">성 명</caption>
  160. <caption id="caption10" class="search_name" style="left:307px; top:9px; width:76px; height:17px; ">의뢰구분</caption>
  161. <caption id="caption11" class="search_name" style="left:498px; top:9px; width:76px; height:17px; ">회신구분</caption>
  162. <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_default" appearance="minimal" editmode="search" style="left:84px; top:36px; width:150px; height:19px; ">
  163. <choices>
  164. <itemset nodeset="/root/init/orddept/dept">
  165. <label ref="depthngnm"/>
  166. <value ref="deptcd"/>
  167. </itemset>
  168. </choices>
  169. <script type="javascript" ev:event="xforms-value-changed">
  170. <![CDATA[
  171. model.removeNodeset("/root/init/userlist");
  172. model.makeNode("/root/init/userlist/usercombo");
  173. var sOrdDd = model.getValue("/root/main/cond/todd");
  174. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , cmb_orddept.value, "0330", "", "", sOrdDd);
  175. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  176. model.setValue("/root/main/cond/orddrid", "-");
  177. model.refresh();
  178. fReqCnstPatList("orgin");
  179. ]]>
  180. </script>
  181. </select1>
  182. <select1 id="cmb_reqflag" ref="/root/main/cond/reqflag" class="combo_default" appearance="minimal" style="left:386px; top:9px; width:90px; height:19px; ">
  183. <choices>
  184. <item>
  185. <label>전체</label>
  186. <value>-</value>
  187. </item>
  188. <item>
  189. <label>진료의뢰</label>
  190. <value>1</value>
  191. </item>
  192. <item>
  193. <label>협진</label>
  194. <value>2</value>
  195. </item>
  196. <item>
  197. <label>타과의뢰</label>
  198. <value>3</value>
  199. </item>
  200. </choices>
  201. </select1>
  202. <select1 id="cmb_replyn" ref="/root/main/cond/replyn" class="combo_default" appearance="minimal" style="left:579px; top:9px; width:90px; height:19px; ">
  203. <choices>
  204. <item>
  205. <label>전체</label>
  206. <value>-</value>
  207. </item>
  208. <item>
  209. <label>Y</label>
  210. <value>Y</value>
  211. </item>
  212. <item>
  213. <label>N</label>
  214. <value>N</value>
  215. </item>
  216. </choices>
  217. </select1>
  218. <input id="ipt_hngnm" ref="/root/main/cond/hngnm" class="input_search" style="left:764px; top:36px; width:90px; height:19px; ">
  219. <script type="javascript" ev:event="onkeyup">
  220. <![CDATA[
  221. inputEnterKey("btn_patsrch", "DOMActivate");
  222. ]]>
  223. </script>
  224. </input>
  225. <select1 id="cmb_orddrid" ref="/root/main/cond/orddrid" class="combo_default" appearance="minimal" itemcount="30" style="left:386px; top:36px; width:90px; height:19px; ">
  226. <choices>
  227. <itemset nodeset="/root/init/userlist/usercombo">
  228. <label ref="usernm"/>
  229. <value ref="userid"/>
  230. </itemset>
  231. </choices>
  232. </select1>
  233. <input id="ipt_cnstdd" ref="/root/main/cond/fromdd" inputtype="date" style="left:84px; top:9px; width:90px; height:19px; "/>
  234. <datagrid id="grd_cnstpatlist" nodeset="/root/main/cnstpatinfo/cnstpatlist" caption="응급^등록번호^성명^환자명^S/A^의뢰의사^의뢰과^의뢰일시^병실^회신여부^회신일시^진단명^회신의사^formrecseq^acptorddd^acptcretno^orddd^cretno^ioflag" colsep="^" colwidth="45, 75, 0, 100, 45, 60, 131, 110, 50, 60, 110, 285, 60, 0, 0, 0, 0, 0, 0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:105px; width:1174px; height:611px; ">
  235. <col ref="eryn" type="combo" style="text-align:center; ">
  236. <choices>
  237. <item>
  238. <label>Y</label>
  239. <value>Y</value>
  240. </item>
  241. <item>
  242. <label>N</label>
  243. <value>N</value>
  244. </item>
  245. </choices>
  246. </col>
  247. <col ref="pid" style="text-align:center; "/>
  248. <col ref="hngnm" style="text-align:center; "/>
  249. <col ref="dispnm2" style="text-align:center; "/>
  250. <col ref="sa" style="text-align:center; "/>
  251. <col ref="requsernm" style="text-align:center; "/>
  252. <col ref="reqdeptnm" style="text-align:left; "/>
  253. <col ref="reqdt" format="yyyy-mm-dd hh:mm" style="text-align:center; "/>
  254. <col ref="roomcd" style="text-align:center; "/>
  255. <col disabled="true" ref="replyn" type="combo" style="text-align:center; ">
  256. <choices>
  257. <item>
  258. <label>Y</label>
  259. <value>Y</value>
  260. </item>
  261. <item>
  262. <label>N</label>
  263. <value>N</value>
  264. </item>
  265. </choices>
  266. </col>
  267. <col ref="recvtm" format="yyyy-mm-dd hh:mm"/>
  268. <col ref="termengnm"/>
  269. <col ref="recvusernm" style="text-align:center; "/>
  270. <col ref="formrecseq"/>
  271. <col ref="acptorddd"/>
  272. <col ref="acptcretno"/>
  273. <col ref="orddd"/>
  274. <col ref="cretno"/>
  275. <col ref="ioflag"/>
  276. <script type="javascript" ev:event="onmousedown">
  277. <![CDATA[
  278. setPopupMenu("grd_cnstpatlist", false, "/root/popupmenu/menu/item", "name", "func");
  279. ]]>
  280. </script>
  281. <script type="javascript" ev:event="ondblclick">
  282. <![CDATA[
  283. if (isDataCell() == true) {
  284. setGlobalVariable("OrderMainRefresh", "Y"); // 처방 메인 refresh 단일화를 위한 글로벌 변수 셋팅 - 20081212 by Moonsh
  285. fSelectCnstPat();
  286. }
  287. ]]>
  288. </script>
  289. <script type="javascript" ev:event="onaftersort">
  290. <![CDATA[
  291. grd_cnstpatlist.gridToInstance();
  292. ]]>
  293. </script>
  294. <script type="javascript" ev:event="onclick">
  295. <![CDATA[
  296. if(grd_cnstpatlist.isCell(event.target)) {
  297. var currow = grd_cnstpatlist.row;
  298. var curcol = grd_cnstpatlist.col;
  299. if(currow < 1){
  300. if(sORDERBY == "asc"){
  301. sORDERBY = "desc";
  302. }else{
  303. sORDERBY = "asc";
  304. }
  305. model.setValue("/root/main/cond/sortcol", curcol);
  306. model.setValue("/root/main/cond/orderby", sORDERBY);
  307. model.copyNode(opener.root.cond.cnstpatlist, root.main.cond);
  308. //nodeListSort(grd_cnstpatlist.nodeset, grd_cnstpatlist.colAttribute(curcol, "ref"), sORDERBY);
  309. grd_cnstpatlist.refresh();
  310. }else{
  311. var pid = model.getValue("/root/main/cnstpatinfo/cnstpatlist[" + grd_cnstpatlist.row + "]/pid");
  312. model.setValue(opener.root.source.pid, pid);
  313. }
  314. }
  315. ]]>
  316. </script>
  317. </datagrid>
  318. <caption id="caption5" class="search_name" style="left:685px; top:9px; width:76px; height:17px; ">진료구분</caption>
  319. <select1 id="combo1" ref="/root/main/cond/ioflag" class="combo_default" appearance="minimal" style="left:764px; top:9px; width:90px; height:19px; ">
  320. <choices>
  321. <item>
  322. <label>전체</label>
  323. <value>-</value>
  324. </item>
  325. <item>
  326. <label>외래</label>
  327. <value>O</value>
  328. </item>
  329. <item>
  330. <label>입원</label>
  331. <value>I</value>
  332. </item>
  333. <item>
  334. <label>DSC</label>
  335. <value>D</value>
  336. </item>
  337. <item>
  338. <label>응급</label>
  339. <value>E</value>
  340. </item>
  341. </choices>
  342. </select1>
  343. <button id="btn_reqpatnm" style="left:637px; top:59px; width:30px; height:20px; ">
  344. <caption/>
  345. <script type="javascript" ev:event="DOMActivate">
  346. <![CDATA[
  347. fPidTrim("/root/main/cond/pid");
  348. var pid = model.getValue("/root/main/cond/pid");
  349. if(reqPatInfo("pid", "ptbs", pid)==true){
  350. var hngnm = model.getValue("/root/init/patnm/patnm/hngnm");
  351. model.setValue("/root/main/cond/hngnm", hngnm);
  352. model.refresh();
  353. fReqCnstPatList();
  354. }
  355. model.refresh();
  356. ]]>
  357. </script>
  358. </button>
  359. <input id="input1" ref="/root/main/cond/todd" inputtype="date" style="left:193px; top:9px; width:90px; height:19px; ">
  360. <script type="javascript" ev:event="xforms-value-changed">
  361. <![CDATA[
  362. model.removeNodeset("/root/init/orddept");
  363. model.makeNode("/root/init/orddept/dept");
  364. var sOrdDd = model.getValue("/root/main/cond/todd");
  365. var sOrdDeptCd = model.getValue("/root/main/cond/orddeptcd");
  366. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "A", sOrdDd); // 진료일자 기준으로 진료과를 다시 조회
  367. addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "-^전체", "dept"); //부서콤보 Item '전체'추가
  368. if(isNull(model.getValue("/root/init/orddept/dept[deptcd='"+sOrdDeptCd+"']/deptcd"))) {
  369. if(fContainsHardCD("445", sOrdDeptCd)) { // 소아청소년과 분과 이면 소아청소년과로 설정.
  370. model.setValue("/root/main/cond/orddeptcd", "2110000000");
  371. cmb_orddept.dispatch("xforms-value-changed");
  372. } else {
  373. messageBox ( "선택일자에 존재하지 않는 진료과 입니다.\n\n진료과를 다시 선택 하세요.", "I" );
  374. model.setValue("/root/main/cond/orddeptcd", "-");
  375. }
  376. }
  377. model.refresh();
  378. ]]>
  379. </script>
  380. </input>
  381. <caption id="caption7" style="left:177px; top:11px; width:15px; height:20px; ">~</caption>
  382. <button id="btn_prcpclsnm" class="icon_search" style="left:858px; top:37px; width:16px; height:16px; ">
  383. <caption/>
  384. <script type="javascript" ev:event="DOMActivate">
  385. <![CDATA[
  386. fPidTrim("/root/main/cond/pid");
  387. modal("SPPMC02500");
  388. var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  389. var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  390. model.setValue("/root/main/cond/pid", pid);
  391. model.setValue("/root/main/cond/hngnm", hngnm);
  392. model.refresh();
  393. ]]>
  394. </script>
  395. </button>
  396. <button id="btn_patcnt" class="btn1_letter7" visibility="visible" style="left:915px; top:57px; width:116px; height:22px; ">
  397. <caption>환자별보낸건</caption>
  398. <script type="javascript" ev:event="DOMActivate">
  399. <![CDATA[
  400. fReqCnstPatList("pid");
  401. ]]>
  402. </script>
  403. </button>
  404. <input id="ipt_patcnt" ref="/root/main/cnstpatinfo/cnsttotcnt/patreqcnt" visibility="visible" style="left:1035px; top:57px; width:55px; height:19px; text-align:center; "/>
  405. <button id="btn_deptrevcnt" class="btn1_letter7" style="left:915px; top:33px; width:116px; height:22px; ">
  406. <caption>과별 받은건</caption>
  407. <script type="javascript" ev:event="DOMActivate">
  408. <![CDATA[
  409. fReqCnstPatList("recv");
  410. ]]>
  411. </script>
  412. </button>
  413. <input id="ipt_deptrevcnt" ref="/root/main/cnstpatinfo/cnsttotcnt/deptrecvcnt" style="left:1035px; top:33px; width:55px; height:19px; text-align:center; "/>
  414. <input id="ipt_deptreqcnt" ref="/root/main/cnstpatinfo/cnsttotcnt/deptreqcnt" style="left:1035px; top:9px; width:55px; height:19px; text-align:center; "/>
  415. <button id="btn_deptreqcnt" class="btn1_letter7" style="left:915px; top:9px; width:116px; height:22px; ">
  416. <caption>과별 보낸건</caption>
  417. <script type="javascript" ev:event="DOMActivate">
  418. <![CDATA[
  419. fReqCnstPatList("req");
  420. ]]>
  421. </script>
  422. </button>
  423. <line id="line1" style="x1:907px; y1:8px; x2:907px; y2:76px; border-color:#ffe4bb; border-left-style:solid; "/>
  424. <button id="btn_req" class="btn1_letter2" style="left:1110px; top:33px; width:56px; height:22px; ">
  425. <caption>조회</caption>
  426. <script type="javascript" ev:event="DOMActivate">
  427. <![CDATA[
  428. fReqCnstPatList("orgin");
  429. ]]>
  430. </script>
  431. </button>
  432. <button id="btn_patsrch" style="left:825px; top:61px; width:30px; height:20px; ">
  433. <caption/>
  434. <script type="javascript" ev:event="DOMActivate">
  435. <![CDATA[
  436. var pid = model.getValue("/root/main/cond/pid");
  437. var hngnm = model.getValue("/root/main/cond/hngnm");
  438. if((pid =="")&&(hngnm !="")){
  439. fPatSrch(hngnm, "2");
  440. } else if((pid !="")&&(hngnm == "")){
  441. fPatSrch(pid, "1");
  442. } else {
  443. modal("SPPMC02500")
  444. }
  445. model.setValue("/root/main/cond/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  446. model.setValue("/root/main/cond/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  447. model.refresh();
  448. ]]>
  449. </script>
  450. </button>
  451. </xhtml:body>
  452. </xhtml:html>