SMMMO04700_환자검색.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  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>환자검색</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <patsrchinfo>
  11. <patsrchlist>
  12. <pid/>
  13. <hngnm/>
  14. <sa/>
  15. <orddd/>
  16. <orddeptcd/>
  17. <orddeptnm/>
  18. <orddrid/>
  19. <orddrnm/>
  20. <insukind/>
  21. <diagnm/>
  22. <serdiag/>
  23. <cnst/>
  24. <roomcd/>
  25. <cretno/>
  26. <ioflag/>
  27. <instcd/>
  28. <rsrv/>
  29. <stat/>
  30. <conctypenm/>
  31. <preworkup/>
  32. <hsctpredd/>
  33. <trnpttype/>
  34. <hsctday/>
  35. <postcxday/>
  36. <dschdd/>
  37. </patsrchlist>
  38. </patsrchinfo>
  39. <cond>
  40. <fromdd/>
  41. <todd/>
  42. <orddeptcd/>
  43. <orddrid/>
  44. <patflagcd>O</patflagcd>
  45. <pid/>
  46. <hngnm/>
  47. <sortcol/>
  48. <orderby/>
  49. <prid/>
  50. </cond>
  51. <totcnt>
  52. <totcnt/>
  53. </totcnt>
  54. <patinfo>
  55. <patinfolist/>
  56. </patinfo>
  57. </main>
  58. <send>
  59. <reqdata/>
  60. <savedata/>
  61. </send>
  62. <hidden>
  63. </hidden>
  64. <init>
  65. <userlist/>
  66. <orddept/>
  67. <P0008/>
  68. </init>
  69. <popupmenu>
  70. <menu>
  71. <!--
  72. <item>
  73. <name>진료의뢰조회</name>
  74. <func>a</func>
  75. </item>
  76. -->
  77. <item>
  78. <name>관심환자등록</name>
  79. <func>fCallWndConcPatRgst</func>
  80. </item>
  81. <item>
  82. <name>주의요망환자관리</name>
  83. <func>fCallWndWarnPat</func>
  84. </item>
  85. <!--
  86. <item>
  87. <name>RC환자정보</name>
  88. <func>a</func>
  89. </item>
  90. <item>
  91. <label/>
  92. <func/>
  93. </item>
  94. <item>
  95. <name>인터넷예약정보</name>
  96. <func>a</func>
  97. </item>
  98. <item>
  99. <name>WorkList등록</name>
  100. <func>c</func>
  101. </item>
  102. -->
  103. </menu>
  104. </popupmenu>
  105. </root>
  106. </instance>
  107. <script type="javascript" ev:event="xforms-ready">
  108. <![CDATA[
  109. fInitialize_SMMMO04700();
  110. ]]>
  111. </script>
  112. <submission id="TRMMO04701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/patsrchinfo"/>
  113. <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
  114. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  115. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  116. <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
  117. <submission id="TRMMB01103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/userscrnenvinfo"/>
  118. <submission id="TRMMO04303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/rsltgetdata"/>
  119. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  120. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  121. <submission id="TRMMO04129" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/recinfo"/>
  122. <submission id="TRMMO02705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/aftcert" resultref="/root/hidden/aftcert"/>
  123. </model>
  124. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  125. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  126. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  127. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  128. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  129. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  130. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  131. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04100.js"/>
  132. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04700.js"/>
  133. </xhtml:head>
  134. <xhtml:body guideline="1,1174;2,716;2,8;1,213;1,622;1,949;2,61;2,9;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  135. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1174px; height:62px; background-color:#fffbf2; border-color:#ffd799; "/>
  136. <caption id="caption7" class="search_name" style="left:5px; top:9px; width:50px; height:17px; ">총</caption>
  137. <line id="line3" style="x1:1096px; y1:6px; x2:1096px; y2:55px; border-color:#ffe4bb; border-left-style:solid; "/>
  138. <caption id="caption2" style="left:96px; top:9px; width:30px; height:20px; font-weight:bold; vertical-align:middle; ">명</caption>
  139. <output id="input3" ref="/root/main/totcnt/totcnt" format="yyyy-mm-dd" appearance="output" style="left:55px; top:9px; width:35px; height:19px; text-align:center; "/>
  140. <caption id="caption3" class="tit_2" style="left:0px; top:64px; width:126px; height:13px; vertical-align:middle; ">환자검색 리스트</caption>
  141. <line id="line6" class="line_1" style="x1:0px; y1:79px; x2:1174px; y2:79px; "/>
  142. <caption id="caption5" class="search_name" style="left:138px; top:9px; width:76px; height:17px; ">진 료 일</caption>
  143. <caption id="caption8" class="search_name" style="left:547px; top:9px; width:76px; height:17px; ">진 료 과</caption>
  144. <input id="input4" ref="/root/main/cond/fromdd" class="input" inputtype="date" style="left:216px; top:9px; width:90px; height:19px; "/>
  145. <caption id="caption29" class="search_name" style="left:873px; top:10px; width:76px; height:17px; ">진 료 의</caption>
  146. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" maxlength="10" style="left:625px; top:36px; width:90px; height:19px; ">
  147. <script type="javascript" ev:event="onkeypress">
  148. <![CDATA[
  149. inputEnterKey("btn_reqpatnm", "DOMActivate");
  150. ]]>
  151. </script>
  152. </input>
  153. <caption id="caption4" class="search_name" style="left:873px; top:36px; width:76px; height:17px; ">환 자 명</caption>
  154. <input id="input1" ref="/root/main/cond/hngnm" class="input_search" style="left:952px; top:36px; width:90px; height:19px; ">
  155. <script type="javascript" ev:event="onkeyup">
  156. <![CDATA[
  157. inputEnterKey("btn_patsrch", "DOMActivate");
  158. ]]>
  159. </script>
  160. </input>
  161. <caption id="caption6" class="search_name" style="left:547px; top:36px; width:76px; height:17px; ">등록번호</caption>
  162. <caption id="caption10" class="search_name" style="left:138px; top:36px; width:76px; height:17px; ">환자구분</caption>
  163. <select1 id="radio1" ref="/root/main/cond/patflagcd" appearance="full" cellspacing="15" cols="4" rows="1" overflow="visible" style="left:217px; top:36px; width:225px; height:20px; border-style:none; ">
  164. <choices>
  165. <item>
  166. <label>전체</label>
  167. <value>T</value>
  168. </item>
  169. <item>
  170. <label>외래</label>
  171. <value>O</value>
  172. </item>
  173. <item>
  174. <label>입원</label>
  175. <value>I</value>
  176. </item>
  177. <item>
  178. <label>응급</label>
  179. <value>E</value>
  180. </item>
  181. </choices>
  182. </select1>
  183. <input id="input2" ref="/root/main/cond/todd" class="input" inputtype="date" style="left:333px; top:9px; width:90px; height:19px; ">
  184. <script type="javascript" ev:event="xforms-value-changed">
  185. <![CDATA[
  186. model.removeNodeset("/root/init/orddept");
  187. model.makeNode("/root/init/orddept/dept");
  188. var sOrdDd = model.getValue("/root/main/cond/todd");
  189. var sOrdDeptCd = model.getValue("/root/main/cond/orddeptcd");
  190. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "A", sOrdDd); // 진료일자 기준으로 진료과를 다시 조회
  191. addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "-^전체", "dept"); //부서콤보 Item '전체'추가
  192. if(isNull(model.getValue("/root/init/orddept/dept[deptcd='"+sOrdDeptCd+"']/deptcd"))) {
  193. if(fContainsHardCD("445", sOrdDeptCd)) { // 소아청소년과 분과 이면 소아청소년과로 설정.
  194. model.setValue("/root/main/cond/orddeptcd", "2110000000");
  195. cmb_orddept.dispatch("xforms-value-changed");
  196. } else {
  197. messageBox ( "선택일자에 존재하지 않는 진료과 입니다.\n\n진료과를 다시 선택 하세요.", "I" );
  198. model.setValue("/root/main/cond/orddeptcd", "-");
  199. }
  200. }
  201. model.refresh();
  202. ]]>
  203. </script>
  204. </input>
  205. <button id="btn_prcpclsnm" class="icon_search" style="left:1045px; top:36px; width:16px; height:16px; ">
  206. <caption/>
  207. <script type="javascript" ev:event="DOMActivate">
  208. <![CDATA[
  209. modal("SPPMC02500");
  210. var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  211. var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  212. model.setValue("/root/main/cond/pid", pid);
  213. model.setValue("/root/main/cond/hngnm", hngnm);
  214. model.refresh();
  215. ]]>
  216. </script>
  217. </button>
  218. <caption id="caption1" style="left:313px; top:10px; width:15px; height:20px; ">~</caption>
  219. <button id="btn_reqpatnm" disabled="true" style="left:730px; top:34px; width:45px; height:20px; ">
  220. <caption/>
  221. <script type="javascript" ev:event="DOMActivate">
  222. <![CDATA[
  223. fPidTrim("/root/main/cond/pid");
  224. var pid = model.getValue("/root/main/cond/pid");
  225. if(pid == ""){
  226. return;
  227. }
  228. if(reqPatInfo("pid", "ptbs", pid)==true){
  229. var hngnm = model.getValue("/root/init/patnm/patnm/hngnm");
  230. model.setValue("/root/main/cond/hngnm", hngnm);
  231. model.refresh();
  232. fReqPatSrchList();
  233. }
  234. ]]>
  235. </script>
  236. </button>
  237. <button id="btn_req" class="btn1_letter2" style="left:1109px; top:21px; width:56px; height:22px; ">
  238. <caption>조회</caption>
  239. <script type="javascript" ev:event="DOMActivate">
  240. <![CDATA[
  241. fReqPatSrchList();
  242. ]]>
  243. </script>
  244. </button>
  245. <datagrid id="grd_srchpatlist" nodeset="/root/main/patsrchinfo/patsrchlist" caption="caption1^caption2^caption3^caption4^caption5^caption7^퇴원일^등록번호^성명^환자명^S/A^진료(입원)일^센터^진료과^세부과^진료의^병실^진단명^보험유형^예약^의뢰^상태^관심^특이^PreWork Up^BMT예정일^이식형태^BMT Day^Post Cx Day" colsep="^" colwidth="0, 0, 0, 0, 0, 0, 0, 65, 0, 100, 45, 85, 100, 95, 0, 55, 55, 200, 70, 60, 55, 65, 65, 35, 70, 0, 0, 0, 0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:84px; width:1174px; height:630px; ">
  246. <col ref="cretno" visibility="hidden"/>
  247. <col ref="ioflag" visibility="hidden"/>
  248. <col ref="instcd" visibility="hidden"/>
  249. <col ref="ordtype" visibility="hidden"/>
  250. <col ref="rrgstno1" visibility="hidden"/>
  251. <col ref="orddrid" visibility="hidden"/>
  252. <col ref="dschdd" visibility="hidden"/>
  253. <col ref="pid" style="text-align:center; "/>
  254. <col ref="hngnm" style="text-align:center; "/>
  255. <col ref="dispnm2" style="text-align:center; "/>
  256. <col ref="sa" style="text-align:center; "/>
  257. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  258. <col disabled="true" ref="centcd" style="text-align:center; "/>
  259. <col disabled="true" ref="orddeptcd" type="combo" style="text-align:center; ">
  260. <choices>
  261. <itemset nodeset="/root/init/orddept/dept">
  262. <label ref="depthngnm"/>
  263. <value ref="deptcd"/>
  264. </itemset>
  265. </choices>
  266. </col>
  267. <col disabled="true" ref="subdeptcd" type="combo" style="text-align:center; ">
  268. <choices>
  269. <itemset nodeset="/root/init/orddept/dept">
  270. <label ref="depthngnm"/>
  271. <value ref="deptcd"/>
  272. </itemset>
  273. </choices>
  274. </col>
  275. <col ref="orddrnm" style="text-align:center; "/>
  276. <col ref="roomcd" style="text-align:center; "/>
  277. <col ref="diagnm" style="text-align:left; "/>
  278. <col disabled="true" ref="insukind" type="combo" style="text-align:center; ">
  279. <choices>
  280. <itemset nodeset="/root/init/P0008/P0008">
  281. <label ref="cdnm"/>
  282. <value ref="cdid"/>
  283. </itemset>
  284. </choices>
  285. </col>
  286. <col ref="rsrv" style="text-align:center; "/>
  287. <col ref="cnst" style="text-align:center; "/>
  288. <col ref="stat" style="text-align:center; "/>
  289. <col ref="conctypenm" style="text-align:center; "/>
  290. <col ref="spclflag" style="text-align:center; "/>
  291. <col ref="preworkup" style="text-align:center; "/>
  292. <col ref="hsctpredd" style="text-align:center; "/>
  293. <col ref="trnpttype" style="text-align:center; "/>
  294. <col ref="hsctday" style="text-align:center; "/>
  295. <col ref="postcxday" style="text-align:center; "/>
  296. <script type="javascript" ev:event="ondblclick">
  297. <![CDATA[
  298. if (isDataCell() == true) {
  299. setGlobalVariable("OrderMainRefresh", "Y"); // 처방 메인 refresh 단일화를 위한 글로벌 변수 셋팅 - 20081212 by Moonsh
  300. if ( fChkBfPrcpLoad("SRCH") == false ) {
  301. return;
  302. }
  303. fSelectPatSrch();
  304. }
  305. ]]>
  306. </script>
  307. <script type="javascript" ev:event="onaftersort">
  308. <![CDATA[
  309. grd_srchpatlist.gridToInstance();
  310. ]]>
  311. </script>
  312. <script type="javascript" ev:event="onmousedown">
  313. <![CDATA[
  314. setPopupMenu("grd_srchpatlist", false, "/root/popupmenu/menu/item", "name", "func");
  315. ]]>
  316. </script>
  317. <script type="javascript" ev:event="onclick">
  318. <![CDATA[
  319. if(grd_srchpatlist.isCell(event.target)){
  320. if(grd_srchpatlist.row == 0){
  321. var currow = grd_srchpatlist.row;
  322. var curcol = grd_srchpatlist.col;
  323. if(sORDERBY == "asc"){
  324. sORDERBY = "desc";
  325. }else{
  326. sORDERBY = "asc";
  327. }
  328. model.setValue("/root/main/cond/sortcol", curcol);
  329. model.setValue("/root/main/cond/orderby", sORDERBY);
  330. model.copyNode(opener.root.cond.srchpatlist, root.main.cond);
  331. nodeListSort(grd_srchpatlist.nodeset, grd_srchpatlist.colAttribute(curcol, "ref"), sORDERBY);
  332. grd_srchpatlist.refresh();
  333. }else if(grd_srchpatlist.row > 0){
  334. var pid = model.getValue("/root/main/patsrchinfo/patsrchlist[" + grd_srchpatlist.row + "]/pid");
  335. model.setValue(opener.root.source.pid, pid);
  336. }
  337. }
  338. ]]>
  339. </script>
  340. </datagrid>
  341. <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_search" appearance="minimal" style="left:625px; top:9px; width:150px; height:19px; ">
  342. <choices>
  343. <itemset nodeset="/root/init/orddept/dept">
  344. <label ref="depthngnm"/>
  345. <value ref="deptcd"/>
  346. </itemset>
  347. </choices>
  348. <script type="javascript" ev:event="xforms-value-changed">
  349. <![CDATA[
  350. model.removeNodeset("/root/init/userlist");
  351. model.makeNode("/root/init/userlist/usercombo");
  352. if(cmb_orddept.value == "-"){
  353. model.removeNode("/root/init/userlist/usercombo");
  354. model.makeValue("/root/init/userlist/usercombo/userid", "-");
  355. model.makeValue("/root/init/userlist/usercombo/usernm", "전체");
  356. }else{
  357. var sOrdDd = model.getValue("/root/main/cond/todd");
  358. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , cmb_orddept.value, "0330", "", "", sOrdDd); //진료과 의사콤보 조회
  359. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  360. }
  361. model.setValue("/root/main/cond/orddrid", "-");
  362. model.refresh();
  363. ]]>
  364. </script>
  365. </select1>
  366. <select1 id="cmb_orddrid" ref="/root/main/cond/orddrid" class="combo_default" appearance="minimal" itemcount="30" style="left:952px; top:9px; width:90px; height:19px; ">
  367. <choices>
  368. <itemset nodeset="/root/init/userlist/usercombo">
  369. <label ref="usernm"/>
  370. <value ref="userid"/>
  371. </itemset>
  372. </choices>
  373. </select1>
  374. <button id="btn_patsrch" disabled="true" style="left:1045px; top:9px; width:45px; height:20px; ">
  375. <caption/>
  376. <script type="javascript" ev:event="DOMActivate">
  377. <![CDATA[
  378. var pid = model.getValue("/root/main/cond/pid");
  379. var hngnm = model.getValue("/root/main/cond/hngnm");
  380. if((pid =="")&&(hngnm !="")){
  381. fPatSrch(hngnm, "2");
  382. } else if((pid !="")&&(hngnm == "")){
  383. fPatSrch(pid, "1");
  384. } else {
  385. modal("SPPMC02500")
  386. }
  387. model.setValue("/root/main/cond/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  388. model.setValue("/root/main/cond/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  389. model.refresh();
  390. ]]>
  391. </script>
  392. </button>
  393. <select1 id="cmb_prid" ref="/root/main/cond/prid" appearance="minimal" style="left:430px; top:9px; width:55px; height:19px; ">
  394. <choices>
  395. <item>
  396. <label>3개월</label>
  397. <value>3M</value>
  398. </item>
  399. <item>
  400. <label>6개월</label>
  401. <value>6M</value>
  402. </item>
  403. <item>
  404. <label>9개월</label>
  405. <value>9M</value>
  406. </item>
  407. <item>
  408. <label>1년</label>
  409. <value>1Y</value>
  410. </item>
  411. <item>
  412. <label>2년</label>
  413. <value>2Y</value>
  414. </item>
  415. </choices>
  416. <script type="javascript" ev:event="xforms-value-changed">
  417. <![CDATA[
  418. var today = getCurrentDate();
  419. var idate = new Date();
  420. var prid = model.getValue("/root/main/cond/prid");
  421. // model.makeValue("/root/send/cond/fromdd", peveDate.getDateFormat());
  422. // model.makeValue("/root/send/cond/todd", today);
  423. if (prid =="3M") {
  424. var threeMDate = idate.getAddDate(-3, "M");
  425. model.setValue("/root/main/cond/fromdd", threeMDate.getDateFormat());
  426. model.setValue("/root/main/cond/todd", today);
  427. } else if (prid =="6M") {
  428. var sixMDate = idate.getAddDate(-6, "M");
  429. model.setValue("/root/main/cond/fromdd", sixMDate.getDateFormat());
  430. model.setValue("/root/main/cond/todd", today);
  431. } else if (prid =="9M") {
  432. var nineMDate = idate.getAddDate(-9, "M");
  433. model.setValue("/root/main/cond/fromdd", nineMDate.getDateFormat());
  434. model.setValue("/root/main/cond/todd", today);
  435. } else if (prid =="1Y") {
  436. var oneYDate = idate.getAddDate(-1, "Y");
  437. model.setValue("/root/main/cond/fromdd", oneYDate.getDateFormat());
  438. model.setValue("/root/main/cond/todd", today);
  439. } else if (prid =="2Y") {
  440. var twoYDate = idate.getAddDate(-2, "Y");
  441. model.setValue("/root/main/cond/fromdd", twoYDate.getDateFormat());
  442. model.setValue("/root/main/cond/todd", today);
  443. }
  444. model.refresh();
  445. ]]>
  446. </script>
  447. </select1>
  448. </xhtml:body>
  449. </xhtml:html>