SPMMO19000_중복처방사유조회.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <pid/>
  12. <fromdd/>
  13. <todd/>
  14. <orddeptcd/>
  15. <orddrid/>
  16. <mainjudgid/>
  17. <prcpcd/>
  18. <insukind/>
  19. <ioflag/>
  20. <resncd/>
  21. </cond>
  22. <prcpinfo>
  23. <prcplist/>
  24. </prcpinfo>
  25. </main>
  26. <send>
  27. <reqdata/>
  28. </send>
  29. <hidden/>
  30. <init>
  31. <orddept/>
  32. <userlist/>
  33. <P0008/>
  34. <judglist/>
  35. <M0533/>
  36. </init>
  37. <tmp>
  38. <prcpresnref>
  39. <info>
  40. <pid/>
  41. <fromdd/>
  42. <todd/>
  43. <orddeptcd/>
  44. <orddrid/>
  45. <mainjudgid/>
  46. <prcpcd/>
  47. <insukind/>
  48. <ioflag/>
  49. <resncd/>
  50. </info>
  51. </prcpresnref>
  52. </tmp>
  53. </root>
  54. </instance>
  55. <script type="javascript" ev:event="xforms-ready">
  56. <![CDATA[
  57. model.setValue("/root/main/cond/fromdd" , getCurrentDate()); //종료일자는 현재일자
  58. model.setValue("/root/main/cond/todd" , getCurrentDate()); //종료일자는 현재일자
  59. mmbfGetDeptCodeComboList("/root/send/reqdata" , "/root/init/orddept" , "A"); //부서코드 콤보
  60. mmbfGetUserComboList("/root/send/reqdata" , "/root/init/userlist" , getUserInfo("dutplcecd"), "0330");
  61. addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "-^전체", "dept"); //병동콤보 전체항목 추가
  62. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  63. model.setValue("/root/main/cond/orddeptcd" , getUserInfo("dutplcecd"));
  64. model.setValue("/root/main/cond/orddrid" , getUserInfo("userid"));
  65. zbcfGetCodeList(new Array("P0008", "M0533") , new Array("/root/init/P0008", "/root/init/M0533")); // 보험유형조회
  66. addComboInstance("/root/init/P0008", "cdid^cdnm", "-^전체", "P0008"); //심사자 콤보 전체항목 추가
  67. submit("TRMMO18202");
  68. addComboInstance("/root/init/judglist", "userid^usernm", "-^전체", "judglist"); //심사자 콤보 전체항목 추가
  69. model.setValue("/root/main/cond/ioflag", "O");
  70. cmb_orddept.select(0);
  71. cmb_insukind.select(0);
  72. cmb_mainjudgid.select(0);
  73. cmb_orddrid.select(0);
  74. cmb_resn.select(0);
  75. // 수정이력 : 20090813 원무 JHP요청 처방사유조회 심사화면에서 사용 심사팝업사용시(popup : judg) 기본셋팅값 설정
  76. if(isPopup() == true){
  77. if(model.getValue("/root/tmp/prcpresnref/info/popup") == "judg"){
  78. model.setValue("/root/main/cond/pid", model.getValue("/root/tmp/prcpresnref/info/pid"));
  79. model.setValue("/root/main/cond/fromdd", model.getValue("/root/tmp/prcpresnref/info/fromdd"));
  80. model.setValue("/root/main/cond/todd", model.getValue("/root/tmp/prcpresnref/info/todd"));
  81. model.setValue("/root/main/cond/orddeptcd", model.getValue("/root/tmp/prcpresnref/info/orddeptcd"));
  82. model.setValue("/root/main/cond/orddrid", model.getValue("/root/tmp/prcpresnref/info/orddrid"));
  83. model.setValue("/root/main/cond/mainjudgid", model.getValue("/root/tmp/prcpresnref/info/mainjudgid"));
  84. model.setValue("/root/main/cond/prcpcd", model.getValue("/root/tmp/prcpresnref/info/prcpcd"));
  85. model.setValue("/root/main/cond/insukind", model.getValue("/root/tmp/prcpresnref/info/insukind"));
  86. model.setValue("/root/main/cond/ioflag", model.getValue("/root/tmp/prcpresnref/info/ioflag"));
  87. model.setValue("/root/main/cond/resncd", model.getValue("/root/tmp/prcpresnref/info/resncd"));
  88. }else if(model.getValue("/root/tmp/prcpresnref/info/popup") == "out"){ //외래간호링크추가-20091103-kys
  89. model.setValue("/root/main/cond/pid", model.getValue("/root/tmp/prcpresnref/info/pid"));
  90. model.setValue("/root/main/cond/fromdd", model.getValue("/root/tmp/prcpresnref/info/fromdd"));
  91. model.setValue("/root/main/cond/todd", model.getValue("/root/tmp/prcpresnref/info/todd"));
  92. model.setValue("/root/main/cond/orddeptcd", model.getValue("/root/tmp/prcpresnref/info/orddeptcd"));
  93. model.setValue("/root/main/cond/orddrid", model.getValue("/root/tmp/prcpresnref/info/orddrid"));
  94. model.setValue("/root/main/cond/mainjudgid", model.getValue("/root/tmp/prcpresnref/info/mainjudgid"));
  95. model.setValue("/root/main/cond/prcpcd", model.getValue("/root/tmp/prcpresnref/info/prcpcd"));
  96. model.setValue("/root/main/cond/insukind", model.getValue("/root/tmp/prcpresnref/info/insukind"));
  97. model.setValue("/root/main/cond/ioflag", model.getValue("/root/tmp/prcpresnref/info/ioflag"));
  98. model.setValue("/root/main/cond/resncd", model.getValue("/root/tmp/prcpresnref/info/resncd"));
  99. }else{
  100. ;
  101. }
  102. }
  103. model.refresh();
  104. if(model.getValue("/root/tmp/prcpresnref/info/popup") == "out"){ //외래간호링크시 자동조회(임미정선생님요청)-20091103-kys
  105. btn_req.dispatch("DOMActivate");
  106. }
  107. ]]>
  108. </script>
  109. <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
  110. <submission id="TRMMO18201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/prcpinfo"/>
  111. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  112. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  113. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  114. <submission id="TRMMO18202" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/judglist"/>
  115. </model>
  116. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  117. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  118. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  119. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  120. <script type="javascript" src="../../../emr/prcpmngtweb/js/SPMMO18200.js"/>
  121. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  122. </xhtml:head>
  123. <xhtml:body pagewidth="1195" guideline="1,1165;2,755;2,79;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  124. <caption id="cpt_title" class="tit_1" style="left:0px; top:0px; width:151px; height:14px; ">처방사유조회</caption>
  125. <caption id="caption22" class="tit_2" style="left:0px; top:83px; width:131px; height:14px; ">처방사유조회</caption>
  126. <shape id="roundrect5" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:16px; width:1165px; height:64px; background-color:#fffbf2; border-color:#ffd799; "/>
  127. <caption id="caption5" class="search_name" style="left:265px; top:25px; width:73px; height:17px; ">처 방 일</caption>
  128. <line id="line1" class="line_1" style="x1:0px; y1:98px; x2:1165px; y2:98px; "/>
  129. <caption id="caption30" class="search_name" style="left:470px; top:50px; width:90px; height:17px; ">등록번호</caption>
  130. <button id="btn_prcpclsnm" class="icon_search" style="left:658px; top:52px; width:16px; height:16px; ">
  131. <caption/>
  132. <script type="javascript" ev:event="DOMActivate">
  133. <![CDATA[
  134. var idate = new Date();
  135. var peveDate = idate.getAddDate(-3, "M");
  136. model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
  137. ]]>
  138. </script>
  139. </button>
  140. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" imemode="disabled" maxlength="10" style="left:550px; top:50px; width:104px; height:19px; ">
  141. <script type="javascript" ev:event="onkeypress">
  142. <![CDATA[
  143. inputEnterKey("btn_req", "DOMActivate");
  144. ]]>
  145. </script>
  146. </input>
  147. <line id="line3" style="x1:1085px; y1:19px; x2:1085px; y2:75px; border-color:#ffe4bb; border-left-style:solid; "/>
  148. <datagrid id="grd_prcplist" nodeset="/root/main/prcpinfo/prcplist" caption="사유구분^등록번호^환자명^진료과^진료의^성분코드^처방코드^처방명^처방일시^진료과코드^진료의ID^처방사유^처방사유^처방사유^심사자^처방번호^prcpcd|사유구분^등록번호^환자명^진료과^진료의^성분코드^처방코드^처방명^처방일시^진료과코드^진료의ID^기호^설명^추가텍스트^심사자^처방번호^prcpcd" colsep="^" colwidth="62, 70, 72, 80, 65, 79, 89, 217, 124, 0, 0, 30, 246, 100, 72, 100, 0" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:103px; width:1165px; height:652px; text-align:center; ">
  149. <col ref="resn"/>
  150. <col ref="pid"/>
  151. <col ref="hngnm"/>
  152. <col ref="depthngnm"/>
  153. <col ref="usernm"/>
  154. <col ref="comcls"/>
  155. <col ref="prcpcd"/>
  156. <col ref="prcphngnm"/>
  157. <col ref="prcpdt"/>
  158. <col ref="orddeptcd" visibility="hidden"/>
  159. <col ref="orddrid" visibility="hidden"/>
  160. <col ref="resncd"/>
  161. <col autonext="true" ref="resncnts" style="word-wrap:word; "/>
  162. <col/>
  163. <col disabled="true" ref="mainjudgid" type="combo">
  164. <choices>
  165. <itemset nodeset="/root/init/judglist/judglist">
  166. <label ref="usernm"/>
  167. <value ref="userid"/>
  168. </itemset>
  169. </choices>
  170. </col>
  171. <col ref="prcpno"/>
  172. <col ref="prcpdd" visibility="hidden"/>
  173. </datagrid>
  174. <button id="btn_req" class="btn1_letter2" style="left:1100px; top:40px; width:56px; height:22px; ">
  175. <caption>조회</caption>
  176. <script type="javascript" ev:event="DOMActivate">
  177. <![CDATA[
  178. var fromdd = model.getValue("/root/main/cond/fromdd")
  179. var todd = model.getValue("/root/main/cond/todd")
  180. var orddeptcd = model.getValue("/root/main/cond/orddeptcd");
  181. var insukind = model.getValue("/root/main/cond/insukind");
  182. var mainjudgid = model.getValue("/root/main/cond/mainjudgid");
  183. var orddrid = model.getValue("/root/main/cond/orddrid");
  184. var pid = model.getValue("/root/main/cond/pid");
  185. var prcpcd = model.getValue("/root/main/cond/prcpcd");
  186. var resncd = model.getValue("/root/main/cond/resncd");
  187. var day = parseInt(todd) - parseInt(fromdd);
  188. if (day < 0) {
  189. messageBox("시작일이 종료일보다 작을 수 없습니다.", "I");
  190. return;
  191. }
  192. if (orddeptcd == "-" && isNull(pid) && isNull(prcpcd)) {
  193. if (day >= 1 ) {
  194. messageBox("기간으로만 검색시는 하루만 검색 가능합니다.", "I");
  195. return;
  196. }
  197. }
  198. if (orddeptcd != "-" && orddrid != "-" && day >7) {
  199. messageBox("진료과로 조회시 조회기간은 7일을 넘길 수 없습니다.", "I");
  200. return;
  201. }
  202. if (orddeptcd != "-" && orddrid =="-" && day >3) {
  203. messageBox("진료과로 조회시 조회기간은 3일을 넘길 수 없습니다.", "I");
  204. return;
  205. }
  206. submit("TRMMO18201");
  207. grd_prcplist.rowstyle(1, "data", "word-warp") = "word";
  208. grd_prcplist.rebuild();
  209. ]]>
  210. </script>
  211. </button>
  212. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" inputtype="date" style="left:345px; top:25px; width:85px; height:19px; text-align:center; "/>
  213. <input id="ipt_todd" ref="/root/main/cond/todd" inputtype="date" style="left:446px; top:25px; width:85px; height:19px; text-align:center; "/>
  214. <caption id="caption2" style="left:433px; top:26px; width:20px; height:20px; ">~</caption>
  215. <caption id="caption1" class="search_name" style="left:265px; top:50px; width:75px; height:17px; ">진 료 의</caption>
  216. <caption id="caption3" class="search_name" style="left:5px; top:25px; width:90px; height:17px; ">내원유형</caption>
  217. <caption id="caption4" class="search_name" style="left:695px; top:50px; width:90px; height:17px; ">수가코드</caption>
  218. <input id="ipt_prcpcd" ref="/root/main/cond/prcpcd" class="input_search" imemode="disabled" maxlength="10" style="left:775px; top:50px; width:104px; height:19px; ">
  219. <script type="javascript" ev:event="onkeypress">
  220. <![CDATA[
  221. inputEnterKey("btn_req", "DOMActivate");
  222. ]]>
  223. </script>
  224. </input>
  225. <caption id="caption6" class="search_name" style="left:695px; top:25px; width:90px; height:17px; ">보험유형</caption>
  226. <caption id="caption7" class="search_name" style="left:895px; top:25px; width:73px; height:17px; ">심 사 자</caption>
  227. <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_default" appearance="minimal" editmode="search" style="left:85px; top:50px; width:150px; height:19px; ">
  228. <choices>
  229. <itemset nodeset="/root/init/orddept/dept">
  230. <label ref="depthngnm"/>
  231. <value ref="deptcd"/>
  232. </itemset>
  233. </choices>
  234. <script type="javascript" ev:event="xforms-value-changed">
  235. <![CDATA[
  236. /*model.removeNodeset("/root/init/userlist");
  237. model.makeNode("/root/init/userlist/usercombo");
  238. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", cmb_orddept.value, "0330");
  239. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  240. cmb_orddrid.select(0);
  241. var idate = new Date();
  242. if (model.getValue("/root/main/cond/orddeptcd") != "-") {
  243. var peveDate = idate.getAddDate(-3, "D");
  244. model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
  245. } else {
  246. model.setValue("/root/main/cond/fromdd", getCurrentDate());
  247. }
  248. model.refresh();*/
  249. ]]>
  250. </script>
  251. </select1>
  252. <select1 id="cmb_orddrid" ref="/root/main/cond/orddrid" appearance="minimal" itemcount="30" style="left:345px; top:50px; width:90px; height:19px; ">
  253. <choices>
  254. <itemset nodeset="/root/init/userlist/usercombo">
  255. <label ref="usernm"/>
  256. <value ref="userid"/>
  257. </itemset>
  258. </choices>
  259. <script type="javascript" ev:event="xforms-value-changed">
  260. <![CDATA[
  261. if (model.getValue("/root/main/cond/orddeptcd") != "-") {
  262. if (model.getValue("/root/main/cond/orddrid") != "-") {
  263. var idate = new Date();
  264. var peveDate = idate.getAddDate(-7, "D");
  265. model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
  266. } else {
  267. var idate = new Date();
  268. var peveDate = idate.getAddDate(-3, "D");
  269. model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
  270. }
  271. model.refresh();
  272. }
  273. ]]>
  274. </script>
  275. </select1>
  276. <select1 id="cmb_insukind" ref="/root/main/cond/insukind" appearance="minimal" style="left:776px; top:25px; width:100px; height:19px; ">
  277. <choices>
  278. <itemset nodeset="/root/init/P0008/P0008">
  279. <label ref="cdnm"/>
  280. <value ref="cdid"/>
  281. </itemset>
  282. </choices>
  283. </select1>
  284. <select1 id="cmb_mainjudgid" ref="/root/main/cond/mainjudgid" appearance="minimal" style="left:971px; top:25px; width:110px; height:19px; ">
  285. <choices>
  286. <itemset nodeset="/root/init/judglist/judglist">
  287. <label ref="usernm"/>
  288. <value ref="userid"/>
  289. </itemset>
  290. </choices>
  291. </select1>
  292. <select1 id="radio1" ref="/root/main/cond/ioflag" appearance="full" cellspacing="10" cols="2" rows="2" overflow="visible" style="left:85px; top:25px; width:105px; height:20px; border-style:none; ">
  293. <choices>
  294. <item>
  295. <label>외래</label>
  296. <value>O</value>
  297. </item>
  298. <item>
  299. <label>입원</label>
  300. <value>I</value>
  301. </item>
  302. </choices>
  303. </select1>
  304. <caption id="caption8" class="search_name" style="left:5px; top:50px; width:90px; height:17px; ">진 료 과</caption>
  305. <caption id="caption9" class="search_name" style="left:895px; top:50px; width:90px; height:17px; ">사유구분</caption>
  306. <select1 id="cmb_resn" ref="/root/main/cond/resncd" appearance="minimal" style="left:970px; top:50px; width:110px; height:19px; ">
  307. <choices>
  308. <itemset nodeset="/root/init/M0533/M0533">
  309. <label ref="cdnm"/>
  310. <value ref="cdid"/>
  311. </itemset>
  312. </choices>
  313. </select1>
  314. </xhtml:body>
  315. </xhtml:html>