SPMMO33900_처방조회.xrw 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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. <pid/>
  12. <hngnm/>
  13. <prid>6M</prid>
  14. <fromdd/>
  15. <todd/>
  16. </cond>
  17. <patlist>
  18. <speclist/>
  19. <ordlist/>
  20. </patlist>
  21. <specinfo>
  22. <essclist/>
  23. </specinfo>
  24. <prcpinfo>
  25. <prcplist/>
  26. </prcpinfo>
  27. <patinfo>
  28. <patinfolist/>
  29. </patinfo>
  30. </main>
  31. <send>
  32. <reqdata/>
  33. </send>
  34. <init/>
  35. <hidden/>
  36. </root>
  37. </instance>
  38. <submission id="TRMMO21701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/patlist"/>
  39. <script type="javascript">
  40. <![CDATA[
  41. function fReqGetOrdList() {
  42. model.resetInstanceNode("/root/main/specinfo/essclist");
  43. model.resetInstanceNode("/root/main/prcpinfo/prcplist");
  44. submit("TRMMO21701")
  45. }
  46. ]]>
  47. </script>
  48. <submission id="TRMMO21702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/specinfo"/>
  49. <submission id="TRMMO21703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/prcpinfo"/>
  50. <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
  51. <script type="javascript" ev:event="xforms-ready">
  52. <![CDATA[
  53. model.setValue("/root/main/cond/fromdd" ,((getCurrentDate().toDate()).getAddDate(-6,"M")).getDateFormat()); //시작일자는 6개월 전
  54. model.setValue("/root/main/cond/todd" , getCurrentDate()); //종료일자는 현재일자
  55. var sPid = getPatientInfo("pid");
  56. if(!isNull(sPid) ) {
  57. model.setValue("/root/main/cond/pid", sPid);
  58. model.setValue("/root/main/cond/hngnm", getPatientInfo("pname"));
  59. btn_req.dispatch("DOMActivate");
  60. }
  61. ]]>
  62. </script>
  63. </model>
  64. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  67. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  68. </xhtml:head>
  69. <xhtml:body pagewidth="820" pageheight="750" guideline="1,798;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  70. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:799px; height:80px; background-color:#fffbf2; border-color:#ffd799; "/>
  71. <caption id="caption9" class="tit_1" style="left:0px; top:0px; width:160px; height:14px; vertical-align:middle; ">처방조회</caption>
  72. <caption id="caption2" class="search_name" style="left:15px; top:30px; width:95px; height:17px; vertical-align:middle; ">조회기간 :</caption>
  73. <input id="input4" ref="/root/main/cond/fromdd" class="input" inputtype="date" style="left:106px; top:29px; width:85px; height:19px; "/>
  74. <caption id="caption3" style="left:193px; top:30px; width:15px; height:20px; ">~</caption>
  75. <input id="input3" ref="/root/main/cond/todd" class="input" inputtype="date" style="left:208px; top:29px; width:85px; height:19px; "/>
  76. <select1 id="cmb_prid" ref="/root/main/cond/prid" appearance="minimal" style="left:295px; top:29px; width:55px; height:19px; ">
  77. <choices>
  78. <item>
  79. <label>3개월</label>
  80. <value>3M</value>
  81. </item>
  82. <item>
  83. <label>6개월</label>
  84. <value>6M</value>
  85. </item>
  86. <item>
  87. <label>9개월</label>
  88. <value>9M</value>
  89. </item>
  90. <item>
  91. <label>1년</label>
  92. <value>1Y</value>
  93. </item>
  94. <item>
  95. <label>2년</label>
  96. <value>2Y</value>
  97. </item>
  98. </choices>
  99. <script type="javascript" ev:event="xforms-value-changed">
  100. <![CDATA[
  101. var today = getCurrentDate();
  102. var idate = new Date();
  103. var prid = model.getValue("/root/main/cond/prid");
  104. // model.makeValue("/root/send/cond/fromdd", peveDate.getDateFormat());
  105. // model.makeValue("/root/send/cond/todd", today);
  106. if (prid =="3M") {
  107. var threeMDate = idate.getAddDate(-3, "M");
  108. model.setValue("/root/main/cond/fromdd", threeMDate.getDateFormat());
  109. model.setValue("/root/main/cond/todd", today);
  110. } else if (prid =="6M") {
  111. var sixMDate = idate.getAddDate(-6, "M");
  112. model.setValue("/root/main/cond/fromdd", sixMDate.getDateFormat());
  113. model.setValue("/root/main/cond/todd", today);
  114. } else if (prid =="9M") {
  115. var nineMDate = idate.getAddDate(-9, "M");
  116. model.setValue("/root/main/cond/fromdd", nineMDate.getDateFormat());
  117. model.setValue("/root/main/cond/todd", today);
  118. } else if (prid =="1Y") {
  119. var oneYDate = idate.getAddDate(-1, "Y");
  120. model.setValue("/root/main/cond/fromdd", oneYDate.getDateFormat());
  121. model.setValue("/root/main/cond/todd", today);
  122. } else if (prid =="2Y") {
  123. var twoYDate = idate.getAddDate(-2, "Y");
  124. model.setValue("/root/main/cond/fromdd", twoYDate.getDateFormat());
  125. model.setValue("/root/main/cond/todd", today);
  126. }
  127. model.refresh();
  128. ]]>
  129. </script>
  130. </select1>
  131. <caption id="caption10" class="search_name" style="left:375px; top:30px; width:95px; height:17px; vertical-align:middle; ">등록번호 :</caption>
  132. <input id="input1" ref="/root/main/cond/pid" style="left:470px; top:30px; width:65px; height:19px; ">
  133. <script type="javascript" ev:event="onkeypress">
  134. <![CDATA[
  135. inputEnterKey("btn_req", "DOMActivate");
  136. ]]>
  137. </script>
  138. </input>
  139. <button id="btn_patsrch" class="icon_search" style="left:540px; top:30px; width:16px; height:16px; ">
  140. <caption/>
  141. <script type="javascript" ev:event="DOMActivate">
  142. <![CDATA[
  143. modal("SPPMC02500");
  144. var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
  145. var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  146. model.setValue("/root/main/cond/pid", sPid);
  147. model.setValue("/root/main/cond/hngnm", sHngnm);
  148. model.refresh();
  149. ]]>
  150. </script>
  151. </button>
  152. <caption id="caption11" class="search_name" style="left:570px; top:30px; width:65px; height:17px; vertical-align:middle; ">이름 :</caption>
  153. <input id="input2" ref="/root/main/cond/hngnm" disabled="true" style="left:635px; top:30px; width:75px; height:19px; "/>
  154. <line id="line3" style="x1:720px; y1:26px; x2:720px; y2:56px; border-color:#ffe4bb; border-left-style:solid; "/>
  155. <button id="btn_req" class="btn1_letter2" style="left:735px; top:30px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  156. <caption>조회</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. fPidTrim("/root/main/cond/pid")
  160. var pid = model.getValue("/root/main/cond/pid");
  161. if(pid == ""){
  162. messageBox("조회 하실 환자번호를", "C001");
  163. return;
  164. }
  165. if(reqPatInfo("pid", "ptbs", pid)==true){
  166. var hngnm = model.getValue("/root/init/patnm/patnm/hngnm");
  167. model.setValue("/root/main/cond/hngnm", hngnm);
  168. model.refresh();
  169. fReqGetOrdList();
  170. }
  171. model.refresh();
  172. ]]>
  173. </script>
  174. </button>
  175. <datagrid id="datagrid1" nodeset="/root/main/patlist/speclist" caption="구분^주진단코드^등록구분^등록구분^보험유형^보험유형^확정일^시작일^종료일^특례번호^연장^중증화상^타병원" colsep="^" colwidth="65, 84, 0, 55, 0, 80, 75, 75, 75, 100, 35, 90, 45" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:130px; width:800px; height:640px; ">
  176. <col ref="flag"/>
  177. <col ref="maindiagcd"/>
  178. <col ref="genrflagcd"/>
  179. <col ref="genrflagnm" style="text-align:center; "/>
  180. <col ref="insukind" visibility="hidden"/>
  181. <col ref="insukindnm"/>
  182. <col ref="cncrdiagcnfmdd" format="yyyy-mm-dd" style="text-align:center; "/>
  183. <col ref="serdiagfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  184. <col ref="serdiagtodd" format="yyyy-mm-dd" style="text-align:center; "/>
  185. <col ref="serdiagno" style="text-align:center; "/>
  186. <col ref="continueflag" style="text-align:center; "/>
  187. <col ref="burnicd10desc"/>
  188. <col ref="anohosprgstflag" style="text-align:center; "/>
  189. </datagrid>
  190. </xhtml:body>
  191. </xhtml:html>