SMMMR03000_아파치조회.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  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>APACHE II 조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <apchpatlist>
  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. </apchpatlist>
  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. messageBox("아파치 프로그램이 SAPS 프로그램으로 변경되었습니다.\n 문의사항:심사팀","I");
  70. open("SMMMR04000");
  71. var vNowDD = getCurrentDate();
  72. model.setValue("/root/cond/stnddd",vNowDD);
  73. model.setValue("/root/cond/enddd",vNowDD);
  74. model.setValue("/root/cond/status", "2");
  75. model.setValue("/root/cond/range", "0");
  76. model.setValue("/root/cond/orddept", "-");
  77. var node = getGlobalVariable("paminfo");
  78. model.removeNodeset("/root/main/paminfo");
  79. setCSVToNode("/root/main", node, "paminfo");
  80. //zsdfGetInOutOrdDeptList(getUserInfo("dutplceinstcd"),"/root/init/orddept","depthngnm","asc"); //전체 진료과
  81. mmbfGetDeptCodeComboList("/root/send/reqdata2", "/root/init/orddept", "A");
  82. addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "-^전체", "dept"); //부서콤보 Item '전체'추가
  83. var jobkindcd = getUserInfo("jobkindcd");
  84. //var wardinfo = opener.instance1.getXPathString("/root/main/paminfo");
  85. var wardinfo = model.getValue("/root/main/paminfo/wardcd");
  86. if(jobkindcd == "0330"){ // 사용자 직종 : 의사
  87. model.setValue("/root/cond/ward", wardinfo); // 병동정보
  88. model.refresh();
  89. }else{
  90. model.setValue("/root/cond/ward", getUserInfo("dutplcecd")); // 근무부서
  91. model.refresh();
  92. }
  93. if(submit("TRMMR03000")){
  94. copyNodesetType("/root/init/ward","/root/temp/initlist/icudept","replace", model, model);
  95. }
  96. addComboInstance("/root/init/ward" , "deptcd^deptnm", "-^전체", "icudept"); //중환자실 부서콤보 Item '전체'추가
  97. model.setValue("/root/cond/ward", "-");
  98. // if(cmb_icu.label == ""){
  99. // model.setValue("/root/cond/ward", "3060100000"); // 내과중환자실
  100. // }
  101. model.refresh();
  102. ]]>
  103. </script>
  104. <submission id="TRMMR03000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/init/ward"/>
  105. <submission id="TRMMR03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/main/apchpatlist"/>
  106. <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
  107. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  108. <submission id="TRZSD00208" mediatype="application/x-www-form-urlencoded" method="post"/>
  109. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  110. <submission id="TRMRC00050" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/orddept/dept"/>
  111. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  112. </model>
  113. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  114. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  115. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  116. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  117. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  118. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  119. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  120. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  121. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  122. <script type="javascript" src="../../../emr/anstrecweb/js/MMR03000.js"/>
  123. </xhtml:head>
  124. <xhtml:body pagewidth="1055" pageheight="820">
  125. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:10px; top:25px; width:1035px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  126. <caption id="caption6" class="tit_1" style="left:20px; top:10px; width:106px; height:13px; ">APACHE II</caption>
  127. <line id="line13" class="line_4" style="x1:972px; y1:33px; x2:972px; y2:75px; "/>
  128. <caption id="caption2" class="search_name" style="left:20px; top:33px; width:80px; height:17px; ">조회기준</caption>
  129. <line id="line12" class="line_1" style="x1:10px; y1:108px; x2:1045px; y2:108px; "/>
  130. <caption id="caption17" class="tit_2" style="left:13px; top:91px; width:95px; height:13px; ">환자리스트</caption>
  131. <caption id="caption29" class="search_name" style="left:20px; top:58px; width:85px; height:17px; ">중환자실</caption>
  132. <datagrid id="grd_apachelist" nodeset="/root/main/apchpatlist/item" caption="NO^등록번호^성 명^S/A^Age^진료과^입실시각^퇴실시각^입실일자^퇴실일자^퇴실일자2^입실시 Score^입실시 Score^입실시 Score^퇴실시 Score^퇴실시 Score^퇴실시 Score^ICU재원기간^입원일자^입원번호^APCHDD^진료과코드^ADJUSTED명칭^재원정보|NO^등록번호^성 명^S/A^Age^진료과^입실시각^퇴실시각^입실일자^퇴실일자^caption1^A^D^D(Adjusted)^A^D^D(Adjusted)^ICU재원기간^입원일자^입원번호^APCHDD^진료과코드^ADJUSTED명칭^재원정보" colsep="^" colwidth="35, 90, 100, 60, 0, 120, 117, 115, 70, 70, 0, 50, 50, 80, 0, 0, 0, 80, 0, 0, 0, 0" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:10px; top:113px; width:1035px; height:672px; text-align:center; ">
  133. <col ref="no"/>
  134. <col ref="pid"/>
  135. <col ref="hngnm" style="text-align:center; "/>
  136. <col ref="sexage"/>
  137. <col ref="age" visibility="hidden"/>
  138. <col ref="depthngnm"/>
  139. <col ref="ipsildt" format="yyyy-mm-dd hh:nn"/>
  140. <col ref="toisildt"/>
  141. <col ref="fromdd" visibility="hidden"/>
  142. <col ref="todd" visibility="hidden"/>
  143. <col ref="todd2" visibility="hidden"/>
  144. <col ref="inapchscore" style="text-align:center; "/>
  145. <col ref="indethrate" style="text-align:center; "/>
  146. <col editable="false" ref="inapchscorea" type="inputbutton" style="text-align:center; "/>
  147. <col ref="outapchscore" visibility="hidden" style="text-align:center; "/>
  148. <col ref="outdethrate" visibility="hidden" style="text-align:center; "/>
  149. <col editable="false" ref="outapchscorea" type="inputbutton" visibility="hidden" style="text-align:center; "/>
  150. <col ref="ining"/>
  151. <col ref="orddd" visibility="hidden"/>
  152. <col ref="cretno" visibility="hidden"/>
  153. <col ref="apchdd" visibility="hidden"/>
  154. <col ref="orddeptcd" visibility="hidden"/>
  155. <script type="javascript" ev:event="onbuttonclick">
  156. <![CDATA[
  157. var curcol = grd_apachelist.col;
  158. var iRow = grd_apachelist.row - grd_apachelist.fixedRows + 1;
  159. if(model.getValue("/root/main/apchpatlist/item["+ iRow +"]/pid") == ""){
  160. messageBox("환자를 ","C002");
  161. return;
  162. }
  163. if (curcol == 14) {
  164. setParameter("SPMMR03200_pid", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/pid"));
  165. setParameter("SPMMR03200_hngnm", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/hngnm"));
  166. setParameter("SPMMR03200_orddd", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/orddd"));
  167. setParameter("SPMMR03200_cretno", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/cretno"));
  168. //setParameter("SPMMR03200_apchdd", model.getValue("/root/cond/stnddd"));
  169. setParameter("SPMMR03200_apchdd", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/fromdd"));
  170. setParameter("SPMMR03200_age", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/age"));
  171. setParameter("SPMMR03200_fromdd", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/fromdd"));
  172. setParameter("SPMMR03200_todd", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/todd"));
  173. //modal("SPMMR03200", "", "", "", "", "/root/send/param", "/root/send");
  174. window.load("SPMMR03200_아파치기록정보.xrw", "modeless", "pop1", "width:900px; height:980;");
  175. inputEnterKey("btn_srch", "DOMActivate");
  176. }else if (curcol == 15) {
  177. if(model.getValue("/root/main/apchpatlist/item["+ iRow +"]/todd") == "99991231"){
  178. messageBox("현재 재원중 ","E008");
  179. return;
  180. }
  181. setParameter("SPMMR03200_pid", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/pid"));
  182. setParameter("SPMMR03200_hngnm", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/hngnm"));
  183. setParameter("SPMMR03200_orddd", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/orddd"));
  184. setParameter("SPMMR03200_cretno", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/cretno"));
  185. setParameter("SPMMR03200_apchdd", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/todd"));
  186. setParameter("SPMMR03200_age", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/age"));
  187. setParameter("SPMMR03200_fromdd", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/fromdd"));
  188. setParameter("SPMMR03200_todd", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/todd"));
  189. //modal("SPMMR03200", "", "", "", "", "/root/send/param", "/root/send");
  190. window.load("SPMMR03200_아파치기록정보.xrw", "modeless", "pop1", "width:900px; height:980;");
  191. inputEnterKey("btn_srch", "DOMActivate");
  192. }
  193. ]]>
  194. </script>
  195. <script type="javascript" ev:event="onaftersort">
  196. <![CDATA[
  197. grd_apachelist.gridToInstance();
  198. model.refresh();
  199. ]]>
  200. </script>
  201. </datagrid>
  202. <button id="bnt_srch" class="btn4_letter4" style="left:965px; top:0px; width:80px; height:22px; ">
  203. <caption>기간조회</caption>
  204. <script type="javascript" ev:event="DOMActivate">
  205. <![CDATA[
  206. modal("SMMMR03100");
  207. ]]>
  208. </script>
  209. </button>
  210. <button id="btn_setting" class="btn4_letter10" visibility="hidden" style="left:810px; top:0px; width:152px; height:22px; ">
  211. <caption>APACHE II setting</caption>
  212. <script type="javascript" ev:event="DOMActivate">
  213. <![CDATA[
  214. modal("SPMMR03500");
  215. ]]>
  216. </script>
  217. </button>
  218. <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; ">
  219. <script type="javascript" ev:event="xforms-value-changed">
  220. <![CDATA[
  221. model.setValue("/root/cond/stnddd", model.getValue("/root/cond/stnddd"));
  222. model.refresh();
  223. ]]>
  224. </script>
  225. </input>
  226. <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; ">
  227. <script type="javascript" ev:event="xforms-value-changed">
  228. <![CDATA[
  229. model.setValue("/root/cond/enddd", model.getValue("/root/cond/enddd"));
  230. model.refresh();
  231. ]]>
  232. </script>
  233. </input>
  234. <select1 id="cmb_term" ref="/root/cond/range" class="combo_search" appearance="minimal" style="left:320px; top:33px; width:60px; height:19px; ">
  235. <choices>
  236. <item>
  237. <label/>
  238. <value>0</value>
  239. </item>
  240. <item>
  241. <label>3개월</label>
  242. <value>90</value>
  243. </item>
  244. <item>
  245. <label>6개월</label>
  246. <value>180</value>
  247. </item>
  248. <item>
  249. <label>9개월</label>
  250. <value>270</value>
  251. </item>
  252. <item>
  253. <label>1년</label>
  254. <value>365</value>
  255. </item>
  256. <item>
  257. <label>2년</label>
  258. <value>730</value>
  259. </item>
  260. </choices>
  261. <script type="javascript" ev:event="xforms-value-changed">
  262. <![CDATA[
  263. var date2 = ipt_reqenddd.value;
  264. var term = cmb_term.value;
  265. ipt_reqstnddd.value = date2.toDate().getAddDate(-term,"D").getDateFormat("YYYYMMDD") ;
  266. ]]>
  267. </script>
  268. </select1>
  269. <select1 id="cmb_icu" ref="/root/cond/ward" class="combo_search" appearance="minimal" style="left:105px; top:58px; width:130px; height:19px; ">
  270. <choices>
  271. <itemset nodeset="/root/init/ward/icudept">
  272. <label ref="deptnm"/>
  273. <value ref="deptcd"/>
  274. </itemset>
  275. </choices>
  276. <script type="javascript" ev:event="xforms-value-changed">
  277. <![CDATA[
  278. model.setValue("/root/cond/ward", model.getValue("/root/cond/ward"));
  279. model.refresh();
  280. ]]>
  281. </script>
  282. </select1>
  283. <select1 id="cmb_orddeptcd" ref="/root/cond/orddept" class="combo_search" appearance="minimal" style="left:320px; top:58px; width:130px; height:19px; ">
  284. <choices>
  285. <itemset nodeset="/root/init/orddept/dept">
  286. <label ref="depthngnm"/>
  287. <value ref="deptcd"/>
  288. </itemset>
  289. </choices>
  290. <script type="javascript" ev:event="xforms-value-changed">
  291. <![CDATA[
  292. model.setValue("/root/cond/orddept", model.getValue("/root/cond/orddept"));
  293. model.refresh();
  294. ]]>
  295. </script>
  296. </select1>
  297. <button id="btn_srch" class="btn1_letter2" style="left:980px; top:42px; width:56px; height:22px; ">
  298. <caption>조회</caption>
  299. <script type="javascript" ev:event="DOMActivate">
  300. <![CDATA[
  301. fSearch();
  302. model.refresh();
  303. ]]>
  304. </script>
  305. </button>
  306. <button id="btn_excel" class="btn2_letter4" style="left:981px; top:87px; width:64px; height:19px; ">
  307. <caption>엑셀저장</caption>
  308. <script type="javascript" ev:event="DOMActivate">
  309. <![CDATA[
  310. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  311. if (fileName != "")
  312. {
  313. grd_apachelist.saveExcel(fileName, "SheetName", true, false, "", "", true);
  314. }
  315. ]]>
  316. </script>
  317. </button>
  318. <select id="opt_outchk" ref="/root/cond/outchk" overflow="visible" appearance="full" style="left:600px; top:35px; width:100px; height:15px; border-style:none; ">
  319. <choices>
  320. <item>
  321. <label>퇴실환자 포함</label>
  322. <value>Y</value>
  323. </item>
  324. </choices>
  325. </select>
  326. <caption id="caption1" style="left:205px; top:35px; width:15px; height:15px; ">~</caption>
  327. <caption id="caption3" class="search_name" style="left:245px; top:58px; width:85px; height:17px; ">진 료 과</caption>
  328. <select1 id="rdo_status" ref="/root/cond/status" appearance="full" cellspacing="8" cols="3" rows="1" overflow="visible" style="left:385px; top:35px; width:210px; height:15px; border-style:none; ">
  329. <choices>
  330. <item>
  331. <label>재원중</label>
  332. <value>0</value>
  333. </item>
  334. <item>
  335. <label>퇴실일자</label>
  336. <value>1</value>
  337. </item>
  338. <item>
  339. <label>입실일자</label>
  340. <value>2</value>
  341. </item>
  342. </choices>
  343. <script type="javascript" ev:event="xforms-value-changed">
  344. <![CDATA[
  345. model.setValue("/root/cond/status", model.getValue("/root/cond/status"));
  346. if(model.getValue("/root/cond/status") == "1"){
  347. opt_outchk.disabled = true;
  348. }else{
  349. opt_outchk.disabled = false;
  350. }
  351. model.refresh();
  352. ]]>
  353. </script>
  354. </select1>
  355. <select id="opt_scorechk" ref="/root/cond/scorechk" overflow="visible" appearance="full" style="left:780px; top:35px; width:190px; height:15px; border-style:none; ">
  356. <choices>
  357. <item>
  358. <label>APACHE Score 20점 이하</label>
  359. <value>Y</value>
  360. </item>
  361. </choices>
  362. </select>
  363. <select id="opt_scoredown" ref="/root/cond/scoredown" overflow="visible" appearance="full" style="left:600px; top:60px; width:175px; height:15px; border-style:none; ">
  364. <choices>
  365. <item>
  366. <label>APACHE Score 21 ~ 25점</label>
  367. <value>Y</value>
  368. </item>
  369. </choices>
  370. </select>
  371. <select id="opt_scoreup" ref="/root/cond/scoreup" overflow="visible" appearance="full" style="left:780px; top:60px; width:180px; height:15px; border-style:none; ">
  372. <choices>
  373. <item>
  374. <label>APACHE Score 26점 이상</label>
  375. <value>Y</value>
  376. </item>
  377. </choices>
  378. </select>
  379. <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:298px; top:87px; width:625px; height:19px; "/>
  380. <caption id="caption4" style="left:306px; top:88px; width:616px; height:20px; ">* A : APACHE|| score (점) D : Predicted death rate (%) D(Adjusted) : Predicted death rate (%)</caption>
  381. <button id="button1" class="btn2_letter3" style="left:926px; top:87px; width:64px; height:19px; ">
  382. <caption>매뉴얼</caption>
  383. <script type="javascript" ev:event="DOMActivate">
  384. <![CDATA[
  385. open("SMAZZ00101",1,0,0,"SMAZZ00101");
  386. ]]>
  387. </script>
  388. </button>
  389. <caption id="caption5" style="left:10px; top:790px; width:645px; height:25px; font-weight:bold; ">* APACHE Score 점수 별 조회는 조회된 환자리스트 중에서만 가능합니다.</caption>
  390. <button id="button2" class="btn1_letter3" style="left:680px; top:0px; width:56px; height:22px; ">
  391. <caption>SAPS3</caption>
  392. <script type="javascript" ev:event="DOMActivate">
  393. <![CDATA[
  394. open("SMMMR04000");
  395. //fSearch();
  396. //model.refresh();
  397. ]]>
  398. </script>
  399. </button>
  400. </xhtml:body>
  401. </xhtml:html>