SPMMO34000_선택진료처방조회.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  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. <hngnm/>
  13. <prid>1M</prid>
  14. <fromdd/>
  15. <todd/>
  16. <orddeptcd/>
  17. <ordgubun>T</ordgubun>
  18. <orddrid/>
  19. <prcpcd/>
  20. <specdrid/>
  21. <specdrnm/>
  22. <prcpgubun>T</prcpgubun>
  23. </cond>
  24. <prcpinfo>
  25. <prcplist/>
  26. </prcpinfo>
  27. <patinfo>
  28. <patinfolist/>
  29. </patinfo>
  30. </main>
  31. <send>
  32. <reqdata/>
  33. </send>
  34. <init>
  35. <orddept/>
  36. </init>
  37. <hidden/>
  38. </root>
  39. </instance>
  40. <script type="javascript">
  41. <![CDATA[
  42. function fReqGetPrcpList() {
  43. model.resetInstanceNode("/root/main/prcpinfo/prcplist");
  44. submit("TRMMO33901")
  45. setTree(datagrid1, datagrid1.colRef("execprcplevel"), datagrid1.colRef("prcpnm") , true);
  46. model.refresh();
  47. }
  48. ]]>
  49. </script>
  50. <submission id="TRMMO33901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/prcpinfo"/>
  51. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  52. <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
  53. <script type="javascript" ev:event="xforms-ready">
  54. <![CDATA[
  55. model.setValue("/root/main/cond/fromdd" ,((getCurrentDate().toDate()).getAddDate(-1,"M")).getDateFormat()); //시작일자는 1개월 전
  56. model.setValue("/root/main/cond/todd" , getCurrentDate()); //종료일자는 현재일자
  57. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept" , "A"); //부서코드 콤보
  58. var sPid = getPatientInfo("pid");
  59. if(!isNull(sPid) ) {
  60. model.setValue("/root/main/cond/pid", sPid);
  61. model.setValue("/root/main/cond/hngnm", getPatientInfo("pname"));
  62. btn_req.dispatch("DOMActivate");
  63. }
  64. ]]>
  65. </script>
  66. </model>
  67. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  70. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  71. </xhtml:head>
  72. <xhtml:body pagewidth="1030" pageheight="750" guideline="1,1009;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  73. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1010px; height:85px; background-color:#fffbf2; border-color:#ffd799; "/>
  74. <caption id="caption9" class="tit_1" style="left:0px; top:0px; width:160px; height:14px; vertical-align:middle; ">환자별 처방조회</caption>
  75. <caption id="caption2" class="search_name" style="left:271px; top:30px; width:95px; height:17px; vertical-align:middle; ">처방일자 :</caption>
  76. <input id="input4" ref="/root/main/cond/fromdd" class="input" inputtype="date" style="left:358px; top:29px; width:85px; height:19px; "/>
  77. <caption id="caption3" style="left:445px; top:30px; width:15px; height:20px; ">~</caption>
  78. <input id="input3" ref="/root/main/cond/todd" class="input" inputtype="date" style="left:458px; top:29px; width:85px; height:19px; "/>
  79. <select1 id="cmb_prid" ref="/root/main/cond/prid" appearance="minimal" style="left:545px; top:29px; width:55px; height:19px; ">
  80. <choices>
  81. <item>
  82. <label>1개월</label>
  83. <value>1M</value>
  84. </item>
  85. <item>
  86. <label>3개월</label>
  87. <value>3M</value>
  88. </item>
  89. <item>
  90. <label>6개월</label>
  91. <value>6M</value>
  92. </item>
  93. <item>
  94. <label>9개월</label>
  95. <value>9M</value>
  96. </item>
  97. <item>
  98. <label>1년</label>
  99. <value>1Y</value>
  100. </item>
  101. <item>
  102. <label>2년</label>
  103. <value>2Y</value>
  104. </item>
  105. </choices>
  106. <script type="javascript" ev:event="xforms-value-changed">
  107. <![CDATA[
  108. var today = getCurrentDate();
  109. var idate = new Date();
  110. var prid = model.getValue("/root/main/cond/prid");
  111. // model.makeValue("/root/send/cond/fromdd", peveDate.getDateFormat());
  112. // model.makeValue("/root/send/cond/todd", today);
  113. if (prid =="3M") {
  114. var threeMDate = idate.getAddDate(-3, "M");
  115. model.setValue("/root/main/cond/fromdd", threeMDate.getDateFormat());
  116. model.setValue("/root/main/cond/todd", today);
  117. } else if (prid =="6M") {
  118. var sixMDate = idate.getAddDate(-6, "M");
  119. model.setValue("/root/main/cond/fromdd", sixMDate.getDateFormat());
  120. model.setValue("/root/main/cond/todd", today);
  121. } else if (prid =="9M") {
  122. var nineMDate = idate.getAddDate(-9, "M");
  123. model.setValue("/root/main/cond/fromdd", nineMDate.getDateFormat());
  124. model.setValue("/root/main/cond/todd", today);
  125. } else if (prid =="1Y") {
  126. var oneYDate = idate.getAddDate(-1, "Y");
  127. model.setValue("/root/main/cond/fromdd", oneYDate.getDateFormat());
  128. model.setValue("/root/main/cond/todd", today);
  129. } else if (prid =="2Y") {
  130. var twoYDate = idate.getAddDate(-2, "Y");
  131. model.setValue("/root/main/cond/fromdd", twoYDate.getDateFormat());
  132. model.setValue("/root/main/cond/todd", today);
  133. }
  134. model.refresh();
  135. ]]>
  136. </script>
  137. </select1>
  138. <caption id="caption10" class="search_name" style="left:611px; top:30px; width:101px; height:17px; vertical-align:middle; ">등 록 번 호 :</caption>
  139. <input id="input1" ref="/root/main/cond/pid" style="left:720px; top:30px; width:80px; height:19px; ">
  140. <script type="javascript" ev:event="onkeypress">
  141. <![CDATA[
  142. inputEnterKey("btn_req", "DOMActivate");
  143. ]]>
  144. </script>
  145. </input>
  146. <button id="btn_patsrch" class="icon_search" style="left:904px; top:30px; width:16px; height:16px; ">
  147. <caption/>
  148. <script type="javascript" ev:event="DOMActivate">
  149. <![CDATA[
  150. modal("SPPMC02500");
  151. var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
  152. var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  153. model.setValue("/root/main/cond/pid", sPid);
  154. model.setValue("/root/main/cond/hngnm", sHngnm);
  155. model.refresh();
  156. ]]>
  157. </script>
  158. </button>
  159. <input id="input2" ref="/root/main/cond/hngnm" disabled="true" style="left:805px; top:30px; width:95px; height:19px; "/>
  160. <caption id="caption1" class="search_name" style="left:6px; top:55px; width:95px; height:17px; vertical-align:middle; ">진 료 과 :</caption>
  161. <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_default" appearance="minimal" editmode="search" style="left:95px; top:55px; width:166px; height:19px; ">
  162. <choices>
  163. <itemset nodeset="/root/init/orddept/dept">
  164. <label ref="depthngnm"/>
  165. <value ref="deptcd"/>
  166. </itemset>
  167. </choices>
  168. <script type="javascript" ev:event="xforms-value-changed">
  169. <![CDATA[
  170. model.removeNodeset("/root/init/orddrlist");
  171. model.makeNode("/root/init/orddrlist/usercombo");
  172. mmbfGetUserComboList("/root/send/reqdata", "/root/init/orddrlist", cmb_orddept.value, "0330");
  173. addComboInstance("/root/init/orddrlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  174. cmb_orddrid.select(0);
  175. model.refresh();
  176. btn_req.dispatch("DOMActivate");
  177. ]]>
  178. </script>
  179. </select1>
  180. <line id="line3" style="x1:935px; y1:30px; x2:935px; y2:100px; border-color:#ffe4bb; border-left-style:solid; "/>
  181. <button id="btn_req" class="btn1_letter2" style="left:945px; top:30px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  182. <caption>조회</caption>
  183. <script type="javascript" ev:event="DOMActivate">
  184. <![CDATA[
  185. fPidTrim("/root/main/cond/pid")
  186. var pid = model.getValue("/root/main/cond/pid");
  187. if(pid == ""){
  188. messageBox("조회 하실 환자번호를", "C001");
  189. return;
  190. }
  191. if(reqPatInfo("pid", "ptbs", pid)==true){
  192. var hngnm = model.getValue("/root/init/patnm/patnm/hngnm");
  193. model.setValue("/root/main/cond/hngnm", hngnm);
  194. model.refresh();
  195. fReqGetPrcpList();
  196. }
  197. ]]>
  198. </script>
  199. </button>
  200. <datagrid id="datagrid1" nodeset="/root/main/prcpinfo/prcplist" caption="입/외^처방적용일^처방번호^액팅처방번호^액팅처방레벨^믹스번호^히스토리번호^진료과코드^진료과^진료의아이디^진료의^급비^구분^분류^처방코드^처방명^1회용량^1회용량^1회수량^1회수량^횟수^일수^진행상태^시행일^선택^선택진료의^처방입력자^처방입력시간" colsep="^" colwidth="40, 75, 100, 100, 100, 100, 100, 100, 84, 100, 55, 55, 45, 45, 70, 164, 35, 35, 35, 35, 30, 30, 65, 75, 35, 70, 70, 120" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:110px; width:1009px; height:335px; ">
  201. <col ref="ordgubun" style="text-align:center; "/>
  202. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  203. <col ref="prcpno" visibility="hidden"/>
  204. <col ref="execprcpno" visibility="hidden"/>
  205. <col ref="execprcplevel" visibility="hidden"/>
  206. <col ref="prcpmixno" visibility="hidden"/>
  207. <col ref="prcphistno" visibility="hidden"/>
  208. <col ref="orddeptcd" visibility="hidden"/>
  209. <col ref="orddeptnm"/>
  210. <col ref="orddrid" visibility="hidden"/>
  211. <col ref="orddrnm" style="text-align:center; "/>
  212. <col ref="payflagcd" style="text-align:center; "/>
  213. <col ref="prcpkindcd" style="text-align:center; "/>
  214. <col ref="prcpclscd" style="text-align:center; "/>
  215. <col ref="prcpcd"/>
  216. <col ref="prcpnm"/>
  217. <col ref="drprcpetc7" style="text-align:center; "/>
  218. <col ref="prcpvolunitnm" style="text-align:center; "/>
  219. <col ref="drprcpetc8" style="text-align:center; "/>
  220. <col ref="prcpqtyunitnm" style="text-align:center; "/>
  221. <col ref="prcptims" style="text-align:center; "/>
  222. <col ref="prcpdayno" style="text-align:center; "/>
  223. <col ref="execprcpstatcd" style="text-align:center; "/>
  224. <col ref="execdd" format="yyyy-mm-dd" style="text-align:center; "/>
  225. <col ref="choiordflag" style="text-align:center; "/>
  226. <col ref="specdrnm" style="text-align:center; "/>
  227. <col ref="rgstrnm" style="text-align:center; "/>
  228. <col ref="rgsttime" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  229. </datagrid>
  230. <caption id="caption4" class="search_name" style="left:6px; top:30px; width:95px; height:17px; vertical-align:middle; ">진료구분 :</caption>
  231. <select1 id="radio1" ref="/root/main/cond/ordgubun" appearance="full" cellspacing="15" cols="4" rows="1" overflow="visible" style="left:95px; top:30px; width:165px; height:20px; border-style:none; ">
  232. <choices>
  233. <item>
  234. <label>전체</label>
  235. <value>T</value>
  236. </item>
  237. <item>
  238. <label>외래</label>
  239. <value>O</value>
  240. </item>
  241. <item>
  242. <label>입원</label>
  243. <value>I</value>
  244. </item>
  245. </choices>
  246. </select1>
  247. <caption id="caption5" class="search_name" style="left:270px; top:55px; width:95px; height:17px; vertical-align:middle; ">진 료 의 :</caption>
  248. <caption id="caption7" class="search_name" style="left:5px; top:80px; width:95px; height:17px; vertical-align:middle; ">조회구분:</caption>
  249. <caption id="caption8" class="search_name" style="left:610px; top:57px; width:104px; height:17px; vertical-align:middle; ">선택 진료의 :</caption>
  250. <select1 id="cmb_orddrid" ref="/root/main/cond/orddrid" class="combo_default" appearance="minimal" itemcount="30" style="left:357px; top:54px; width:133px; height:19px; ">
  251. <choices>
  252. <itemset nodeset="/root/init/orddrlist/usercombo">
  253. <label ref="usernm"/>
  254. <value ref="userid"/>
  255. </itemset>
  256. </choices>
  257. </select1>
  258. <input id="input6" ref="/root/main/cond/specdrnm" disabled="true" style="left:720px; top:57px; width:180px; height:19px; "/>
  259. <input id="input5" ref="/root/main/cond/specdrid" disabled="true" visibility="hidden" style="left:725px; top:50px; width:50px; height:19px; "/>
  260. <button id="btn_specdrid" class="icon_search" style="left:905px; top:57px; width:16px; height:16px; ">
  261. <caption/>
  262. <script type="javascript" ev:event="DOMActivate">
  263. <![CDATA[
  264. clearParameter ( "SPMMB08300_flag");
  265. clearParameter ( "SPMMB08300_useyn" );
  266. clearParameter ( "SPMMB08300_userid" );
  267. clearParameter ( "SPMMB08300_orddeptcd" );
  268. clearParameter ( "SPMMB08300_userinfo" );
  269. var ordtype = model.getValue ( "/root/patflag/list/prcpgenrflag" );
  270. var xpt = window.screenLeft + 400;
  271. var ypt = window.screenTop + 60;
  272. var coord = getRelativeCoordinate(xpt, ypt);
  273. var mon = coord[0];
  274. xpt = coord[1];
  275. ypt = coord[2];
  276. modal("SPMMB08300", mon, xpt, ypt, null, null, null, null, false);
  277. var useyn = getParameter("SPMMB08300_useyn");
  278. if(useyn == "Y"){
  279. var userid = getParameter("SPMMB08300_userid");
  280. var userinfo = getParameter("SPMMB08300_userinfo");
  281. model.setValue ( "/root/main/cond/specdrid", userid );
  282. model.setValue ( "/root/main/cond/specdrnm", userinfo );
  283. } else {
  284. model.setValue ( "/root/main/cond/specdrid", "" );
  285. model.setValue ( "/root/main/cond/specdrnm", "" );
  286. }
  287. model.refresh();
  288. ]]>
  289. </script>
  290. </button>
  291. <select1 id="radio2" ref="/root/main/cond/prcpgubun" appearance="full" cellspacing="15" cols="4" rows="1" overflow="visible" style="left:95px; top:80px; width:165px; height:20px; border-style:none; ">
  292. <choices>
  293. <item>
  294. <label>전체</label>
  295. <value>T</value>
  296. </item>
  297. <item>
  298. <label>항암제</label>
  299. <value>A</value>
  300. </item>
  301. </choices>
  302. </select1>
  303. </xhtml:body>
  304. </xhtml:html>