SMMMR04000_SAPS3.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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>SAPS3 조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <item>
  12. <no/>
  13. <pid/>
  14. <hngnm/>
  15. <sexage/>
  16. <age/>
  17. <depthngnm/>
  18. <fromdd/>
  19. <todd/>
  20. <todd2/>
  21. <inapchscore/>
  22. <indethrate/>
  23. <inapchscorea/>
  24. <outapchscore/>
  25. <outdethrate/>
  26. <outapchscorea/>
  27. <ining/>
  28. <orddd/>
  29. <cretno/>
  30. <apchdd/>
  31. <orddeptcd/>
  32. </item>
  33. </list>
  34. </main>
  35. <send>
  36. <reqdata/>
  37. <reqdata2/>
  38. </send>
  39. <hidden/>
  40. <init>
  41. <ward/>
  42. <orddept>
  43. <dept/>
  44. </orddept>
  45. <userlist/>
  46. <orddeptlist/>
  47. </init>
  48. <cond>
  49. <stnddd/>
  50. <enddd/>
  51. <range/>
  52. <ward/>
  53. <orddept/>
  54. <status/>
  55. <outchk/>
  56. <scorechk/>
  57. <scoredown/>
  58. <scoreup/>
  59. </cond>
  60. <temp>
  61. <initlist/>
  62. </temp>
  63. <paminfo>
  64. </paminfo>
  65. </root>
  66. </instance>
  67. <script type="javascript" ev:event="xforms-ready">
  68. <![CDATA[
  69. fIni();
  70. ]]>
  71. </script>
  72. <submission id="TRMMR03000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/init/ward"/>
  73. <submission id="TRMMR04001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/main/list"/>
  74. <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
  75. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  76. <submission id="TRZSD00208" mediatype="application/x-www-form-urlencoded" method="post"/>
  77. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  78. <submission id="TRMRC00050" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/orddept/dept"/>
  79. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  80. </model>
  81. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  85. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  86. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  87. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  88. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  89. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  90. <script type="javascript" src="../../../emr/anstrecweb/js/MMR04000.js"/>
  91. </xhtml:head>
  92. <xhtml:body pagewidth="1055" pageheight="820">
  93. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:10px; top:25px; width:1035px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  94. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:106px; height:15px; ">SAPS3</caption>
  95. <line id="line13" class="line_4" style="x1:824px; y1:33px; x2:824px; y2:57px; "/>
  96. <caption id="caption2" class="search_name" style="left:20px; top:33px; width:80px; height:17px; ">입실일자</caption>
  97. <line id="line12" class="line_1" style="x1:10px; y1:61px; x2:1045px; y2:61px; "/>
  98. <caption id="caption29" class="search_name" style="left:390px; top:33px; width:85px; height:17px; ">중환자실</caption>
  99. <datagrid id="grd_list" nodeset="/root/main/list/item" caption="등록번호^성 명^나이^성별^입원일^입실일^cretno^입실일자^퇴실일자^사망일자^진료과^중환자실^점수^예측사망율(%)^퇴실일자2^퇴실시 Score^퇴실시 Score^퇴실시 Score^입원일자^입원번호^APCHDD^진료과코드^ADJUSTED명칭^재원정보" colsep="^" colwidth="90, 100, 51, 50, 26, 18, 22, 120, 109, 107, 117, 74, 44, 100" explorerbar="sort" rowheader="seq" rowsep="|" style="left:10px; top:66px; width:1035px; height:744px; text-align:center; ">
  100. <col ref="pid"/>
  101. <col ref="hngnm" style="text-align:center; "/>
  102. <col ref="age"/>
  103. <col ref="sex"/>
  104. <col ref="orddd" visibility="hidden"/>
  105. <col ref="fromdd" visibility="hidden"/>
  106. <col ref="cretno" visibility="hidden"/>
  107. <col ref="ipsildt"/>
  108. <col ref="toisildt" format="yyyy-mm-dd hh:nn"/>
  109. <col ref="dethdt" format="yyyy-mm-dd hh:nn"/>
  110. <col ref="orddeptnm"/>
  111. <col ref="wardnm"/>
  112. <col ref="sapsscore"/>
  113. <col ref="pom"/>
  114. <script type="javascript" ev:event="onbuttonclick">
  115. <![CDATA[
  116. // var curcol = grd_list.col;
  117. // var iRow = grd_list.row - grd_list.fixedRows + 1;
  118. //
  119. // if(model.getValue("/root/main/list/item["+ iRow +"]/pid") == ""){
  120. // messageBox("환자를 ","C002");
  121. // return;
  122. // }
  123. //
  124. // if (curcol == 14) {
  125. // setParameter("SPMMR03200_pid", model.getValue("/root/main/list/item["+ iRow +"]/pid"));
  126. // setParameter("SPMMR03200_hngnm", model.getValue("/root/main/list/item["+ iRow +"]/hngnm"));
  127. // setParameter("SPMMR03200_orddd", model.getValue("/root/main/list/item["+ iRow +"]/orddd"));
  128. // setParameter("SPMMR03200_cretno", model.getValue("/root/main/list/item["+ iRow +"]/cretno"));
  129. // //setParameter("SPMMR03200_apchdd", model.getValue("/root/cond/stnddd"));
  130. // setParameter("SPMMR03200_apchdd", model.getValue("/root/main/list/item["+ iRow +"]/fromdd"));
  131. // setParameter("SPMMR03200_age", model.getValue("/root/main/list/item["+ iRow +"]/age"));
  132. // setParameter("SPMMR03200_fromdd", model.getValue("/root/main/list/item["+ iRow +"]/fromdd"));
  133. // setParameter("SPMMR03200_todd", model.getValue("/root/main/list/item["+ iRow +"]/todd"));
  134. //
  135. // //modal("SPMMR03200", "", "", "", "", "/root/send/param", "/root/send");
  136. // window.load("SPMMR03200_아파치기록정보.xrw", "modeless", "pop1", "width:900px; height:980;");
  137. //
  138. // inputEnterKey("btn_srch", "DOMActivate");
  139. // }else if (curcol == 15) {
  140. // if(model.getValue("/root/main/list/item["+ iRow +"]/todd") == "99991231"){
  141. // messageBox("현재 재원중 ","E008");
  142. // return;
  143. // }
  144. //
  145. // setParameter("SPMMR03200_pid", model.getValue("/root/main/list/item["+ iRow +"]/pid"));
  146. // setParameter("SPMMR03200_hngnm", model.getValue("/root/main/list/item["+ iRow +"]/hngnm"));
  147. // setParameter("SPMMR03200_orddd", model.getValue("/root/main/list/item["+ iRow +"]/orddd"));
  148. // setParameter("SPMMR03200_cretno", model.getValue("/root/main/list/item["+ iRow +"]/cretno"));
  149. // setParameter("SPMMR03200_apchdd", model.getValue("/root/main/list/item["+ iRow +"]/todd"));
  150. // setParameter("SPMMR03200_age", model.getValue("/root/main/list/item["+ iRow +"]/age"));
  151. // setParameter("SPMMR03200_fromdd", model.getValue("/root/main/list/item["+ iRow +"]/fromdd"));
  152. // setParameter("SPMMR03200_todd", model.getValue("/root/main/list/item["+ iRow +"]/todd"));
  153. //
  154. // //modal("SPMMR03200", "", "", "", "", "/root/send/param", "/root/send");
  155. // window.load("SPMMR03200_아파치기록정보.xrw", "modeless", "pop1", "width:900px; height:980;");
  156. //
  157. // inputEnterKey("btn_srch", "DOMActivate");
  158. // }
  159. ]]>
  160. </script>
  161. <script type="javascript" ev:event="onaftersort">
  162. <![CDATA[
  163. grd_list.gridToInstance();
  164. model.refresh();
  165. ]]>
  166. </script>
  167. <script type="javascript" ev:event="ondblclick">
  168. <![CDATA[
  169. fSAPS();
  170. ]]>
  171. </script>
  172. </datagrid>
  173. <input id="ipt_reqstnddd" ref="/root/cond/stnddd" class="input_essential" inputtype="date" format="yyyy-mm-dd" style="left:105px; top:33px; width:95px; height:19px; ">
  174. <script type="javascript" ev:event="xforms-value-changed">
  175. <![CDATA[
  176. model.setValue("/root/cond/stnddd", model.getValue("/root/cond/stnddd"));
  177. model.refresh();
  178. ]]>
  179. </script>
  180. </input>
  181. <input id="ipt_reqenddd" ref="/root/cond/enddd" class="input_essential" inputtype="date" format="yyyy-mm-dd" style="left:220px; top:33px; width:95px; height:19px; ">
  182. <script type="javascript" ev:event="xforms-value-changed">
  183. <![CDATA[
  184. model.setValue("/root/cond/enddd", model.getValue("/root/cond/enddd"));
  185. model.refresh();
  186. ]]>
  187. </script>
  188. </input>
  189. <select1 id="cmb_term" ref="/root/cond/range" class="combo_search" appearance="minimal" style="left:320px; top:33px; width:60px; height:19px; ">
  190. <choices>
  191. <item>
  192. <label/>
  193. <value>0</value>
  194. </item>
  195. <item>
  196. <label>3개월</label>
  197. <value>90</value>
  198. </item>
  199. <item>
  200. <label>6개월</label>
  201. <value>180</value>
  202. </item>
  203. <item>
  204. <label>9개월</label>
  205. <value>270</value>
  206. </item>
  207. <item>
  208. <label>1년</label>
  209. <value>365</value>
  210. </item>
  211. <item>
  212. <label>2년</label>
  213. <value>730</value>
  214. </item>
  215. </choices>
  216. <script type="javascript" ev:event="xforms-value-changed">
  217. <![CDATA[
  218. var date2 = ipt_reqenddd.value;
  219. var term = cmb_term.value;
  220. ipt_reqstnddd.value = date2.toDate().getAddDate(-term,"D").getDateFormat("YYYYMMDD") ;
  221. ]]>
  222. </script>
  223. </select1>
  224. <select1 id="cmb_icu" ref="/root/cond/ward" class="combo_search" appearance="minimal" style="left:475px; top:33px; width:130px; height:19px; ">
  225. <choices>
  226. <itemset nodeset="/root/init/ward/icudept">
  227. <label ref="deptnm"/>
  228. <value ref="deptcd"/>
  229. </itemset>
  230. </choices>
  231. <script type="javascript" ev:event="xforms-value-changed">
  232. <![CDATA[
  233. model.setValue("/root/cond/ward", model.getValue("/root/cond/ward"));
  234. model.refresh();
  235. ]]>
  236. </script>
  237. </select1>
  238. <select1 id="cmb_orddeptcd" ref="/root/cond/orddept" class="combo_search" appearance="minimal" style="left:690px; top:33px; width:130px; height:19px; ">
  239. <choices>
  240. <itemset nodeset="/root/init/orddept/dept">
  241. <label ref="depthngnm"/>
  242. <value ref="deptcd"/>
  243. </itemset>
  244. </choices>
  245. <script type="javascript" ev:event="xforms-value-changed">
  246. <![CDATA[
  247. model.setValue("/root/cond/orddept", model.getValue("/root/cond/orddept"));
  248. model.refresh();
  249. ]]>
  250. </script>
  251. </select1>
  252. <button id="btn_excel" class="btn1_letter2" style="left:979px; top:32px; width:56px; height:22px; ">
  253. <caption>엑셀</caption>
  254. <script type="javascript" ev:event="DOMActivate">
  255. <![CDATA[
  256. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  257. if (fileName != "")
  258. {
  259. grd_list.saveExcel(fileName, "SheetName", true, false, "", "", true);
  260. }
  261. ]]>
  262. </script>
  263. </button>
  264. <caption id="caption1" style="left:205px; top:35px; width:15px; height:15px; ">~</caption>
  265. <caption id="caption3" class="search_name" style="left:615px; top:33px; width:85px; height:17px; ">진 료 과</caption>
  266. <button id="button1" class="btn1_letter2" style="left:921px; top:32px; width:56px; height:22px; ">
  267. <caption>조회</caption>
  268. <script type="javascript" ev:event="DOMActivate">
  269. <![CDATA[
  270. fSearch();
  271. model.refresh();
  272. ]]>
  273. </script>
  274. </button>
  275. </xhtml:body>
  276. </xhtml:html>