SMMMO16300_업무협조문관리.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  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. <cond>
  11. <fromdd/>
  12. <todd/>
  13. <orddeptcd>-</orddeptcd>
  14. <prcpcd/>
  15. <title/>
  16. <code>P</code>
  17. <alowtwo/>
  18. <ioflag>T</ioflag>
  19. <prcpcd2/>
  20. <exec/>
  21. <wardcd/>
  22. <kindcd/>
  23. <kindcdflag/>
  24. </cond>
  25. <patprcpinfo>
  26. <patprcplist/>
  27. </patprcpinfo>
  28. </main>
  29. <send>
  30. <reqdata/>
  31. <savedata/>
  32. </send>
  33. <hidden/>
  34. <init>
  35. <orddept/>
  36. <code>
  37. <prcpcd/>
  38. </code>
  39. <wardcdgrup/>
  40. </init>
  41. </root>
  42. </instance>
  43. <submission id="TRMMO05201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/oprecinfo"/>
  44. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  45. <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
  46. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  47. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  48. <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
  49. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  50. <submission id="TRMNR01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/wardcdgrup"/>
  51. <script type="javascript" ev:event="xforms-ready">
  52. <![CDATA[
  53. fSetBaseInit();
  54. fGrdInit() ;
  55. model.refresh();
  56. ]]>
  57. </script>
  58. <submission id="TRMMO16302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/patprcplnfo"/>
  59. <submission id="TXMMO16302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata"/>
  60. <script type="javascript" ev:event="xforms-model-construct-done">
  61. <![CDATA[
  62. //var colHidnValue = grdBaseColHidn("D");
  63. //grdBaseColHidn(colHidnValue, "grd_prcplist", 70, "prcpvol", "prcpqty", "drprcpetc7", "drprcpetc8");
  64. ]]>
  65. </script>
  66. </model>
  67. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  71. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  72. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  73. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO16300.js"/>
  74. </xhtml:head>
  75. <xhtml:body pagewidth="970" pageheight="730" guideline="1,943;2,710;2,710;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  76. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:19px; width:945px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  77. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; ">코드별 환자 조회</caption>
  78. <line id="line1" class="line_1" style="x1:0px; y1:79px; x2:945px; y2:79px; "/>
  79. <caption id="caption1" style="left:196px; top:53px; width:15px; height:20px; text-align:center; ">~</caption>
  80. <line id="line3" style="x1:875px; y1:20px; x2:875px; y2:73px; border-color:#ffe4bb; border-left-style:solid; "/>
  81. <caption id="caption7" class="search_name" style="left:10px; top:53px; width:90px; height:17px; ">조회기간 :</caption>
  82. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input" autonext="false" inputtype="date" style="left:100px; top:53px; width:98px; height:19px; text-align:center; "/>
  83. <input id="ipt_todd" ref="/root/main/cond/todd" class="input" autonext="false" inputtype="date" style="left:210px; top:53px; width:98px; height:19px; text-align:center; "/>
  84. <datagrid id="grd_prcplist" nodeset="/root/main/patprcpinfo/patprcplist" caption="환자번호^환자명^S/A^주민번호^진료(처방)일^병동명^진료의^처방의^예약구분^수량^수량^용량^용량^횟수^일수^용법/검체^처방코드^처방명^ICD10^진단코드^R/O^주/부^진단명^진료과^우편번호^주소" colsep="^" colwidth="60, 70, 50, 90, 80, 80, 66, 66, 75, 42, 42, 39, 42, 39, 39, 95, 90, 150, 60, 90, 40, 40, 210, 110, 70, 100" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:85px; width:945px; height:625px; ">
  85. <col ref="pid" style="text-align:center; "/>
  86. <col ref="hngnm" style="text-align:center; "/>
  87. <col ref="sa" style="text-align:center; "/>
  88. <col ref="rgstno" format="yyyy-mm-dd" style="text-align:center; "/>
  89. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  90. <col ref="wardnm"/>
  91. <col ref="usernm" style="text-align:center; "/>
  92. <col ref="prcpdrnm" style="text-align:center; "/>
  93. <col ref="rsrvflag"/>
  94. <col ref="prcpqty" visibility="hidden"/>
  95. <col ref="drprcpetc7" visibility="hidden"/>
  96. <col ref="prcpvol" visibility="hidden"/>
  97. <col ref="drprcpetc8" visibility="hidden"/>
  98. <col ref="prcptims"/>
  99. <col ref="prcpdayno"/>
  100. <col ref="drugmthdspccdnm" style="text-align:left; "/>
  101. <col ref="prcpcd" style="text-align:left; "/>
  102. <col ref="prcpnm" style="text-align:left; "/>
  103. <col ref="icd10cd" style="text-align:center; "/>
  104. <col ref="diagcd"/>
  105. <col ref="kindcd" style="text-align:center; "/>
  106. <col ref="kindcdflag" style="text-align:center; "/>
  107. <col ref="diagengnm"/>
  108. <col ref="depthngnm"/>
  109. <col ref="zipcd"/>
  110. <col ref="addr"/>
  111. </datagrid>
  112. <button id="btn_req" class="btn1_letter2" style="left:881px; top:29px; width:56px; height:22px; ">
  113. <caption>조회</caption>
  114. <script type="javascript" ev:event="DOMActivate">
  115. <![CDATA[
  116. model.removeNodeset("/root/main/patprcpinfo/patprcplist");
  117. var title = model.getValue("/root/main/cond/title");
  118. var prcpcd = model.getValue("/root/main/cond/prcpcd");
  119. var ioflag = model.getValue("/root/main/cond/ioflag");
  120. var code = model.getValue("/root/main/cond/code");
  121. if (isNull(title)) {
  122. messageBox("제목은","I003");
  123. model.setFocus("ipt_title");
  124. return;
  125. }
  126. if (isNull(prcpcd)) {
  127. messageBox("처방코드는","I003");
  128. model.setFocus("ipt_prcpcd");
  129. return;
  130. }
  131. if (isNull(ioflag)) {
  132. messageBox("외래/입원 구분은","I003");
  133. model.setFocus("rdo_ioflag");
  134. return;
  135. }
  136. if (isNull(code)) {
  137. messageBox("처방코드/상병코드 구분은","I003");
  138. model.setFocus("rdo_code");
  139. return;
  140. }
  141. var rtnparam = getParameter("SPMMO16300");
  142. rtnparam = rtnparam.split("▩");
  143. var prcpcd = "'";
  144. var prcpcd2= "";
  145. for(i = 1; i< rtnparam.length-1; i++){
  146. prcpcd = prcpcd + model.getValue("/root/init/code/prcpcd[" + i + "]/codecd") +"', '";
  147. prcpcd2 = prcpcd2 + "_" + model.getValue("/root/init/code/prcpcd[" + i + "]/codecd");
  148. }
  149. prcpcd = prcpcd + " ' ";
  150. model.setValue(root.main.cond.prcpcd, prcpcd);
  151. model.setValue(root.main.cond.prcpcd2, prcpcd2);
  152. mmbfGetHardCodeInfo("/root/set/reqdata", "/root/hidden/time",5568);
  153. var jobkind = getUserInfo("jobkindcd");
  154. // if ( jobkind == "0330" || jobkind == "1411" )
  155. // {
  156. // model.setValue("/root/main/cond/wardcd" , ".");
  157. // }
  158. // else
  159. // {
  160. // model.setValue("/root/main/cond/orddeptcd" , ".");
  161. // }
  162. model.copyNode("/root/send/reqdata", "/root/main/cond");
  163. var sUserDeptcd = getUserInfo("dutplcecd");
  164. var cTime = getCurrentTime().substr(0, 4);
  165. var time = model.getValue("/root/hidden/time/hardcd[hardcd='" + sUserDeptcd + "']/hardcdnm");
  166. if ( time != '') {
  167. var ftime = time.substr(0,4);
  168. var ttime = time.substr(4,4);
  169. if(cTime > ttime || cTime < ftime) {
  170. if(submit("TRMMO16302")) {
  171. submit("TXMMO16302");
  172. }
  173. }
  174. else {
  175. var ddInterval = getDateInterval(ipt_fromdd.value, ipt_todd.value);
  176. if(ddInterval > 30){
  177. messageBox("30일까지만 조회", "I006");
  178. return;
  179. }
  180. else{
  181. if(submit("TRMMO16302")) {
  182. submit("TXMMO16302");
  183. }
  184. }
  185. }
  186. }
  187. else {
  188. if(cTime > "1700" || cTime <0830) {
  189. if(submit("TRMMO16302")) {
  190. submit("TXMMO16302");
  191. }
  192. } else {
  193. var ddInterval = getDateInterval(ipt_fromdd.value, ipt_todd.value);
  194. if(ddInterval > 30){
  195. messageBox("업무시간[08:30 ~ 17:00]에는 30일까지만 조회", "I006");
  196. return;
  197. }
  198. else{
  199. if(submit("TRMMO16302")) {
  200. submit("TXMMO16302");
  201. }
  202. }
  203. }
  204. }
  205. ]]>
  206. </script>
  207. </button>
  208. <caption id="caption2" class="search_name" style="left:10px; top:28px; width:90px; height:17px; ">제 목 :</caption>
  209. <input id="ipt_title" ref="/root/main/cond/title" class="input_essential" style="left:100px; top:28px; width:355px; height:19px; "/>
  210. <select1 id="rdo_code" ref="/root/main/cond/code" appearance="full" cellspacing="3" cols="2" overflow="visible" style="left:318px; top:55px; width:145px; height:20px; font-family:바탕; border-style:none; ">
  211. <choices>
  212. <item>
  213. <label>처방코드</label>
  214. <value>P</value>
  215. </item>
  216. <item>
  217. <label>상병코드</label>
  218. <value>D</value>
  219. </item>
  220. </choices>
  221. <script type="javascript" ev:event="xforms-value-changed">
  222. <![CDATA[
  223. fGrdInit() ;
  224. var code = rdo_code.value;
  225. if(code == "P"){
  226. //bol_exec.visible = true;
  227. //cap_exec.visible = true;
  228. switch2.selectedIndex = 0;
  229. }
  230. else{
  231. //bol_exec.visible = false;
  232. //cap_exec.visible = false;
  233. switch2.selectedIndex = 1;
  234. }
  235. ]]>
  236. </script>
  237. </select1>
  238. <bool id="bool1" visibility="hidden" checkvalue="Y,N" ref="/root/main/cond/alowtwo" style="left:290px; top:0px; width:20px; height:20px; "/>
  239. <caption id="caption3" visibility="hidden" style="left:320px; top:0px; width:60px; height:20px; ">
  240. <![CDATA[중복허용]]>
  241. <script type="javascript" ev:event="onclick">
  242. <![CDATA[
  243. var alowtwo = model.getValue(root.main.cond.alowtwo);
  244. if (alowtwo == "Y") {
  245. model.setValue(root.main.cond.alowtwo, "N");
  246. } else {
  247. model.setValue(root.main.cond.alowtwo, "Y");
  248. }
  249. model.refresh();
  250. ]]>
  251. </script>
  252. </caption>
  253. <button id="btn_patsrch" class="icon_search" style="left:670px; top:55px; width:16px; height:16px; ">
  254. <caption/>
  255. <script type="javascript" ev:event="DOMActivate">
  256. <![CDATA[
  257. modal("SPMMO16600");
  258. fSetComboCodeCD();
  259. cmb_prcpcd.select(0)
  260. ]]>
  261. </script>
  262. </button>
  263. <caption id="caption5" class="search_name" style="left:465px; top:55px; width:90px; height:17px; ">검색코드 :</caption>
  264. <caption id="caption8" class="search_name" style="left:680px; top:28px; width:60px; height:17px; ">구분 :</caption>
  265. <select1 id="rdo_ioflag" ref="/root/main/cond/ioflag" appearance="full" cellspacing="0" cols="3" overflow="visible" style="left:742px; top:28px; width:135px; height:17px; border-style:none; ">
  266. <choices>
  267. <item>
  268. <label>전체</label>
  269. <value>T</value>
  270. </item>
  271. <item>
  272. <label>입원</label>
  273. <value>I</value>
  274. </item>
  275. <item>
  276. <label>외래</label>
  277. <value>O</value>
  278. </item>
  279. </choices>
  280. </select1>
  281. <select1 id="cmb_prcpcd" ref="/root/main/cond/prcpcd" appearance="minimal" style="left:555px; top:53px; width:110px; height:19px; ">
  282. <choices>
  283. <itemset nodeset="/root/init/code/prcpcd">
  284. <label ref="codecd"/>
  285. <value ref="codenm"/>
  286. </itemset>
  287. </choices>
  288. </select1>
  289. <button id="button1" class="btn2_letter2" style="left:895px; top:54px; width:42px; height:19px; ">
  290. <caption>엑셀</caption>
  291. <script type="javascript" ev:event="DOMActivate">
  292. <![CDATA[
  293. var title = model.getValue("/root/main/cond/title");
  294. fsaveGridToExcel(grd_prcplist, title);
  295. ]]>
  296. </script>
  297. </button>
  298. <switch id="switch1" class="sw_no_border" style="left:464px; top:24px; width:206px; height:25px; ">
  299. <case id="case1">
  300. <caption id="caption4" class="search_name" style="left:0px; top:2px; width:90px; height:17px; ">진 료 과 :</caption>
  301. <select1 id="cmb_orddeptcd" ref="/root/main/cond/orddeptcd" appearance="minimal" style="left:91px; top:2px; width:110px; height:19px; text-align:left; ">
  302. <choices>
  303. <itemset nodeset="/root/init/orddept/dept">
  304. <label ref="depthngnm"/>
  305. <value ref="deptcd"/>
  306. </itemset>
  307. </choices>
  308. </select1>
  309. </case>
  310. <case id="case2" selected="true">
  311. <select1 id="combo1" ref="/root/main/cond/wardcd" appearance="minimal" style="left:91px; top:2px; width:110px; height:19px; text-align:left; ">
  312. <choices>
  313. <itemset nodeset="/root/init/wardcdgrup/wardcdgruplist">
  314. <label ref="wardnm"/>
  315. <value ref="wardcd"/>
  316. </itemset>
  317. </choices>
  318. </select1>
  319. <caption id="caption9" class="search_name" style="left:0px; top:2px; width:90px; height:17px; ">병 동 :</caption>
  320. </case>
  321. </switch>
  322. <switch id="switch2" class="sw_no_border" style="left:695px; top:50px; width:200px; height:25px; ">
  323. <case id="case3" style="left:0px; top:0px; width:198px; height:148px; ">
  324. <bool id="bol_exec" checkvalue="Y,N" ref="/root/main/cond/exec" style="left:0px; top:1px; width:30px; height:20px; "/>
  325. <caption id="cap_exec" style="left:26px; top:2px; width:113px; height:20px; ">실시된 처방만 조회</caption>
  326. </case>
  327. <case id="case4" selected="true">
  328. <caption id="caption10" style="left:125px; top:2px; width:70px; height:20px; font-family:돋움; font-size:10pt; ">부진단포함</caption>
  329. <bool id="bol_kindcd" checkvalue="Y,N" ref="/root/main/cond/kindcd" style="left:3px; top:1px; width:20px; height:20px; "/>
  330. <bool id="bol_kindcdflag" checkvalue="Y,N" ref="/root/main/cond/kindcdflag" style="left:108px; top:1px; width:20px; height:20px; "/>
  331. <caption id="caption11" style="left:26px; top:2px; width:59px; height:20px; font-family:돋움; font-size:10pt; ">R/O 포함</caption>
  332. </case>
  333. </switch>
  334. <bool id="bol_exec2" visibility="hidden" checkvalue="Y,N" ref="/root/main/cond/exec" style="left:135px; top:0px; width:50px; height:20px; "/>
  335. <caption id="cap_exec2" visibility="hidden" style="left:180px; top:0px; width:106px; height:20px; ">실시된 처방만 조회</caption>
  336. </xhtml:body>
  337. </xhtml:html>