SMMNS01300_환자검색.xrw 16 KB

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