SMMNE09500_NEDIS재검토확인.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>NEDIS 재검토 내역 관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <patlist/>
  11. </main>
  12. <cond>
  13. <sdate/>
  14. <edate/>
  15. </cond>
  16. <send>
  17. <patlist/>
  18. </send>
  19. <temp/>
  20. <init/>
  21. </root>
  22. </instance>
  23. <script type="javascript" ev:event="xforms-ready">
  24. <![CDATA[
  25. fInit();
  26. ]]>
  27. </script>
  28. <submission id="TRMNE09501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" resultref="/root/main/patlist"/>
  29. <submission id="TRMNE09502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" resultref="/root/cond/emcdinfo"/>
  30. <submission id="TRMNE09503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/patnfo"/>
  31. <submission id="TXMNE09501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  32. </model>
  33. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  34. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  35. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  36. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  37. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  38. <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
  39. <script type="javascript">
  40. <![CDATA[
  41. function fInit() {
  42. var workdd = getCurrentDate();
  43. model.setValue("/root/cond/sdate", workdd);
  44. model.setValue("/root/cond/edate", workdd);
  45. submit("TRMNE09502");
  46. model.refresh();
  47. }
  48. function fSearch() {
  49. model.removeNodeset("/root/send/srchdata");
  50. model.makeValue("/root/send/srchdata/emcd", model.getValue("/root/cond/emcdinfo/emcd"));
  51. model.makeValue("/root/send/srchdata/sdate", model.getValue("/root/cond/sdate"));
  52. model.makeValue("/root/send/srchdata/edate", model.getValue("/root/cond/edate"));
  53. submit("TRMNE09501");
  54. model.refresh();
  55. }
  56. function fSend() {
  57. model.removeNodeset("/root/send/savedata");
  58. var cnt = getNodesetCnt(model, "/root/main/patlist");
  59. var sHeader = "ptmiemcd▦ptmiidno▦ptmiindt▦ptmiintm▦ptmistat▦sendstat▩";
  60. var sData = "";
  61. var ptmiemcd = model.getValue("/root/cond/emcdinfo/emcd");
  62. var ptmiidno, ptmiindt, ptmiintm, ptmistat, sendstat;
  63. for(var i = 1; i <= cnt; i++) {
  64. if (model.getValue("/root/main/patlist[" + i + "]/chk") == "Y") {
  65. ptmiidno = model.getValue("/root/main/patlist[" + i + "]/ptmiidno");
  66. ptmiindt = model.getValue("/root/main/patlist[" + i + "]/ptmiindt");
  67. ptmiintm = model.getValue("/root/main/patlist[" + i + "]/ptmiintm");
  68. ptmistat = model.getValue("/root/main/patlist[" + i + "]/ptmistat");
  69. sendstat = "O";
  70. sData += ptmiemcd + "▦"
  71. + ptmiidno + "▦"
  72. + ptmiindt + "▦"
  73. + ptmiintm + "▦"
  74. + ptmistat + "▦"
  75. + sendstat + "▩";
  76. }
  77. }
  78. model.makeValue("/root/send/savedata", sHeader + sData);
  79. if (submit("TXMNE09501")) {
  80. fSearch();
  81. } else {
  82. messageBox("전송에 실패하였습니다", "E999");
  83. }
  84. }
  85. ]]>
  86. </script>
  87. </xhtml:head>
  88. <xhtml:body pagewidth="950" pageheight="800" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  89. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:15px; ">NEDIS 재검토 내역 관리</caption>
  90. <group id="group1" style="left:0px; top:62px; width:930px; height:700px; ">
  91. <datagrid id="grd_patlist" nodeset="/root/main/patlist" class="datagrid2" caption="^환자번호^내원일시^내원일시^전송상태^퇴실일시^퇴실일시^응급진료결과^퇴원일시^퇴원일시^퇴원결과" colsep="^" colwidth="30, 65, 75, 45, 130, 75, 45, 220, 75, 45, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:930px; height:700px; ">
  92. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  93. <col ref="ptmiidno"/>
  94. <col ref="ptmiindt" format="yyyy-mm-dd" style="text-align:center; "/>
  95. <col ref="ptmiintm" format="hh:nn" style="text-align:center; "/>
  96. <col ref="ptmistat" type="combo" style="text-align:center; ">
  97. <choices>
  98. <item>
  99. <label>재검토필요(퇴실후)</label>
  100. <value>B</value>
  101. </item>
  102. <item>
  103. <label>재검토필요(퇴원후)</label>
  104. <value>N</value>
  105. </item>
  106. </choices>
  107. </col>
  108. <col ref="ptmiotdt" format="yyyy-mm-dd" style="text-align:center; "/>
  109. <col ref="ptmiottm" format="hh:nn" style="text-align:center; "/>
  110. <col ref="ptmiemrt" type="combo">
  111. <choices>
  112. <item>
  113. <label>증상이 호전되어 귀가</label>
  114. <value>11</value>
  115. </item>
  116. <item>
  117. <label>말기질환으로 귀가(가정간호 등)</label>
  118. <value>12</value>
  119. </item>
  120. <item>
  121. <label>가망 없는 퇴원(hopeless discharge)</label>
  122. <value>13</value>
  123. </item>
  124. <item>
  125. <label>자의 퇴원</label>
  126. <value>14</value>
  127. </item>
  128. <item>
  129. <label>외래방문 후 귀가</label>
  130. <value>15</value>
  131. </item>
  132. <item>
  133. <label>기타 다른 상태로 귀가</label>
  134. <value>18</value>
  135. </item>
  136. <item>
  137. <label>병실부족 전원</label>
  138. <value>21</value>
  139. </item>
  140. <item>
  141. <label>중환자실 부족 전원</label>
  142. <value>22</value>
  143. </item>
  144. <item>
  145. <label>당장 응급 수술/처치 불가 전원</label>
  146. <value>23</value>
  147. </item>
  148. <item>
  149. <label>전문 응급의료를 요하여 상급병원 전원</label>
  150. <value>24</value>
  151. </item>
  152. <item>
  153. <label>경증으로 1,2차 의료기관 전원</label>
  154. <value>25</value>
  155. </item>
  156. <item>
  157. <label>장기 시설로 전원</label>
  158. <value>26</value>
  159. </item>
  160. <item>
  161. <label>환자 사정으로 전원</label>
  162. <value>27</value>
  163. </item>
  164. <item>
  165. <label>기타 다른 사유로 전원</label>
  166. <value>28</value>
  167. </item>
  168. <item>
  169. <label>일반병실로 입원</label>
  170. <value>31</value>
  171. </item>
  172. <item>
  173. <label>중환자실로 입원</label>
  174. <value>32</value>
  175. </item>
  176. <item>
  177. <label>수술실로 간 후 병실로 입원</label>
  178. <value>33</value>
  179. </item>
  180. <item>
  181. <label>수술실로 간 후 중환자실로 입원</label>
  182. <value>34</value>
  183. </item>
  184. <item>
  185. <label>기타 다른 사유로 입원</label>
  186. <value>38</value>
  187. </item>
  188. <item>
  189. <label>내원 시 이미 사망한 상태(DOA)</label>
  190. <value>41</value>
  191. </item>
  192. <item>
  193. <label>응급실에서 DNR로 사망</label>
  194. <value>42</value>
  195. </item>
  196. <item>
  197. <label>응급실에서 CPR 후 사망</label>
  198. <value>43</value>
  199. </item>
  200. <item>
  201. <label>기타 다른 사유로 사망</label>
  202. <value>48</value>
  203. </item>
  204. <item>
  205. <label>기타</label>
  206. <value>88</value>
  207. </item>
  208. <item>
  209. <label>미상</label>
  210. <value>99</value>
  211. </item>
  212. </choices>
  213. </col>
  214. <col ref="ptmidcdt" format="yyyy-mm-dd" style="text-align:center; "/>
  215. <col ref="ptmidctm" format="hh:nn" style="text-align:center; "/>
  216. <col ref="ptmidcrt" type="combo">
  217. <choices>
  218. <item>
  219. <label>정상퇴원</label>
  220. <value>1</value>
  221. </item>
  222. <item>
  223. <label>자의퇴원</label>
  224. <value>2</value>
  225. </item>
  226. <item>
  227. <label>전원</label>
  228. <value>3</value>
  229. </item>
  230. <item>
  231. <label>사망</label>
  232. <value>4</value>
  233. </item>
  234. <item>
  235. <label>탈원</label>
  236. <value>5</value>
  237. </item>
  238. <item>
  239. <label>가망없는 퇴원</label>
  240. <value>6</value>
  241. </item>
  242. <item>
  243. <label>기타</label>
  244. <value>8</value>
  245. </item>
  246. </choices>
  247. </col>
  248. <script type="javascript" ev:event="ondblclick">
  249. <![CDATA[
  250. var iRow = grd_patlist.row;
  251. if(iRow < 1){
  252. return;
  253. }
  254. var pid = model.getValue("/root/main/patlist[" + iRow + "]/ptmiidno");
  255. var orddd = model.getValue("/root/main/patlist[" + iRow + "]/ptmiindt");
  256. model.removeNodeset("/root/send/reqdata");
  257. model.makeValue("/root/send/reqdata/pid", pid);
  258. model.makeValue("/root/send/reqdata/orddd", orddd);
  259. if (submit("TRMNE09503")) {
  260. var paramstr = model.getValue("/root/temp/patinfo/pid") + "▦" +
  261. model.getValue("/root/temp/patinfo/orddd") + "▦" +
  262. model.getValue("/root/temp/patinfo/cretno") + "▦" +
  263. model.getValue("/root/temp/patinfo/sex") + "▦" +
  264. model.getValue("/root/temp/patinfo/age") + "▦" +
  265. "▦" +
  266. model.getValue("/root/temp/patinfo/patnm") + "▦" +
  267. model.getValue("/root/temp/patinfo/orddeptcd") + "▦" +
  268. model.getValue("/root/temp/patinfo/orddeptnm") + "▦" +
  269. model.getValue("/root/temp/patinfo/orddrid") ;
  270. setParameter("SPMNE04400_param", paramstr);
  271. modal("SPMNE04400");
  272. setParameter("SPMNE04400_param", "");
  273. }
  274. ]]>
  275. </script>
  276. </datagrid>
  277. </group>
  278. <group id="group3" style="left:0px; top:20px; width:930px; height:35px; ">
  279. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:930px; height:35px; "/>
  280. <button id="btn_srchindxcd" class="btn1_letter2" navindex="5" style="left:696px; top:7px; width:56px; height:22px; ">
  281. <caption>조회</caption>
  282. <script type="javascript" ev:event="DOMActivate">
  283. <![CDATA[
  284. fSearch();
  285. ]]>
  286. </script>
  287. </button>
  288. <line id="line27" class="line_4" style="x1:683px; y1:7px; x2:683px; y2:29px; "/>
  289. <caption id="caption1" class="search_name" style="left:19px; top:8px; width:86px; height:17px; vertical-align:middle; ">기 간:</caption>
  290. <input id="input1" ref="/root/cond/sdate" class="input_s_essential" navindex="1" inputtype="date" style="left:90px; top:9px; width:105px; height:19px; font-weight:bold; text-align:center; "/>
  291. <button id="btn_save" class="btn1_letter10" style="left:753px; top:7px; width:152px; height:22px; ">
  292. <caption>수정 없는 재검토 확인</caption>
  293. <script type="javascript" ev:event="DOMActivate">
  294. <![CDATA[
  295. fSend();
  296. ]]>
  297. </script>
  298. </button>
  299. <input id="input2" ref="/root/cond/edate" class="input_s_essential" navindex="1" inputtype="date" style="left:220px; top:9px; width:105px; height:19px; font-weight:bold; text-align:center; "/>
  300. <caption id="caption3" style="left:200px; top:10px; width:15px; height:20px; ">~</caption>
  301. </group>
  302. <line id="line13" class="line_1" style="x1:0px; y1:57px; x2:930px; y2:57px; "/>
  303. </xhtml:body>
  304. </xhtml:html>