SMMNR14000_병동활동기록.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  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. <wardcd/>
  12. <actvdd/>
  13. <settingrnid/>
  14. <pid/>
  15. <zonecd/>
  16. <indsch/>
  17. <patientnm/>
  18. </cond>
  19. <wardpatinfo>
  20. </wardpatinfo>
  21. <actvinfo/>
  22. <paminfo/>
  23. <patindschinfo/>
  24. </main>
  25. <send>
  26. <savedata/>
  27. </send>
  28. <hidden>
  29. <main>
  30. <actvinfo/>
  31. </main>
  32. </hidden>
  33. <temp/>
  34. <tmp/>
  35. <init/>
  36. <viewinfo/>
  37. </root>
  38. </instance>
  39. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  43. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  44. <script type="javascript" src="../../../emr/carerecweb/js/SMMNR14000.js"/>
  45. <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
  46. <script type="javascript" src="../../../emr/carerecweb/js/CareRec.js"/>
  47. <script type="javascript" ev:event="xforms-ready">
  48. <![CDATA[
  49. finit();
  50. ]]>
  51. </script>
  52. <!-- 병동활동기록 조회 submission -->
  53. <submission id="TRMNW10910" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/settinginfo"/>
  54. <submission id="TRMNR14000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/wardpatinfo"/>
  55. <submission id="TRMNR14001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/actvinfo"/>
  56. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
  57. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/codelist"/>
  58. <submission id="TRMNR06302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/zoneinfo"/>
  59. <submission id="TRMNW04716" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/patindschinfo"/>
  60. <submission id="TRMNW04707" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="root/main/patinfolist"/>
  61. <!-- 병동활동기록 입력/수정/삭제 submisiion -->
  62. <submission id="TXMNR14000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp/actvinfo"/>
  63. <!-- 통합기록조회용 인증데이터 조회 -->
  64. <submission id="TRMNR14002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/viewinfo/viewactvgrup"/>
  65. <submission id="TXMNR14001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/actvinfo"/>
  66. </model>
  67. </xhtml:head>
  68. <xhtml:body overflow="visible" scroll="autovscroll" pagewidth="915" pageheight="755" style="font-family:굴림; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  69. <group id="group5" scroll="auto" style="left:0px; top:0px; width:900px; height:745px; font-family:굴림; ">
  70. <group id="grp_sea" style="left:0px; top:20px; width:900px; height:40px; font-family:굴림; vertical-align:top; ">
  71. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:900px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  72. <caption id="caption17" class="search_name" style="left:355px; top:10px; width:112px; height:17px; font-family:굴림; ">활동기준일자 :</caption>
  73. <input id="ipt_actvdd" ref="/root/main/cond/actvdd" class="input_search" inputtype="date" style="left:475px; top:10px; width:90px; height:19px; font-family:굴림; ">
  74. <script type="javascript" ev:event="xforms-value-changed">
  75. <![CDATA[
  76. finit("Search");
  77. ]]>
  78. </script>
  79. </input>
  80. <select1 id="cmb_settingrn" ref="/root/main/cond/settingrnid" class="combo_search" appearance="minimal" style="left:270px; top:10px; width:75px; height:19px; font-family:굴림; ">
  81. <choices>
  82. <itemset nodeset="/root/init/settinginfo/settingrn">
  83. <label ref="settingrnnm"/>
  84. <value ref="settingrnid"/>
  85. </itemset>
  86. </choices>
  87. <script type="javascript" ev:event="xforms-value-changed">
  88. <![CDATA[
  89. fGetWardPatList();
  90. ]]>
  91. </script>
  92. </select1>
  93. <caption id="cap_settingrn" class="search_name" style="left:190px; top:10px; width:80px; height:17px; font-family:굴림; ">내환자 :</caption>
  94. <button id="button1" class="btn1_letter2" style="left:830px; top:10px; width:56px; height:22px; font-family:굴림; ">
  95. <caption>조회</caption>
  96. <script type="javascript" ev:event="DOMActivate">
  97. <![CDATA[
  98. finit("Search");
  99. ]]>
  100. </script>
  101. </button>
  102. <line id="line1" class="line_4" style="x1:820px; y1:10px; x2:820px; y2:30px; font-family:굴림; "/>
  103. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" visibility="hidden" maxlength="10" style="left:170px; top:10px; width:54px; height:19px; ">
  104. <script type="javascript" ev:event="onkeyup">
  105. <![CDATA[
  106. if(event.keyCode == "13") {
  107. model.removeNodeset("/root/main/actvinfo/actvlist");
  108. model.setValue("/root/main/cond/patientnm","");
  109. cmb_patientnm.refresh();
  110. setInputNodeCurText();
  111. var pid = model.getValue("/root/main/cond/pid");
  112. if(pid == "" ){
  113. messageBox("등록번호","C001");
  114. model.setfocus("ipt_pid");
  115. return;
  116. }else{
  117. fGetPidWardInfo(pid);
  118. model.makeValue("/root/send/reqdata/pid", pid);
  119. if(submit("TRMNW04716") == true){
  120. var cnt = getNodesetCount("/root/main/patindschinfo/patindschlist");
  121. if(cnt > 0){
  122. group2.visible = true;
  123. }
  124. }
  125. }
  126. }
  127. ]]>
  128. </script>
  129. </input>
  130. <select1 id="cmb_patientnm" ref="/root/main/cond/patientnm" class="combo_search" disabled="true" visibility="hidden" appearance="minimal" style="left:95px; top:10px; width:70px; height:19px; ">
  131. <choices>
  132. <itemset nodeset="root/main/patinfo/patinfolist">
  133. <label ref="hngnm"/>
  134. <value ref="pid"/>
  135. </itemset>
  136. </choices>
  137. </select1>
  138. <caption id="ctn_ward" class="search_name" style="left:5px; top:10px; width:70px; height:17px; font-family:굴림; ">병 동 :</caption>
  139. <caption id="ctn_pid" class="search_name" visibility="hidden" style="left:5px; top:10px; width:85px; height:17px; font-family:굴림체; ">환자정보:</caption>
  140. <select1 id="cmb_ward" ref="/root/main/cond/wardcd" class="combo_search" appearance="minimal" editmode="search" itemcount="40" style="left:75px; top:10px; width:105px; height:19px; font-family:굴림; ">
  141. <choices>
  142. <itemset nodeset="/root/init/dept/dept">
  143. <label ref="depthngnm"/>
  144. <value ref="deptcd"/>
  145. </itemset>
  146. </choices>
  147. <script type="javascript" ev:event="xforms-value-changed">
  148. <![CDATA[
  149. fnZoneDisp();
  150. fSettingnurid();
  151. fGetWardPatList();
  152. ]]>
  153. </script>
  154. </select1>
  155. </group>
  156. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:100px; height:14px; font-family:굴림; ">병동활동기록</caption>
  157. <datagrid id="grd_wardpatlist" nodeset="/root/main/wardpatinfo/wardpatlist" caption="병실^환자명^S/A^indd^cretno^pid^ordtype^orddeptcd^orddrid" colsep="^" colwidth="50, 65, 50, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:95px; width:190px; height:650px; font-family:굴림; ">
  158. <col ref="roomcd" style="font-family:굴림; text-align:center; "/>
  159. <col ref="patnm" style="font-family:굴림; "/>
  160. <col ref="sexage" style="font-family:굴림; "/>
  161. <col ref="indd" visibility="hidden" style="font-family:굴림; "/>
  162. <col ref="cretno" visibility="hidden" style="font-family:굴림; "/>
  163. <col ref="pid" visibility="hidden" style="font-family:굴림; "/>
  164. <col ref="ordtype" visibility="hidden" style="font-family:굴림; "/>
  165. <col ref="orddeptcd" visibility="hidden" style="font-family:굴림; "/>
  166. <col ref="orddrid" visibility="hidden" style="font-family:굴림; "/>
  167. <script type="javascript" ev:event="ondblclick">
  168. <![CDATA[
  169. var condparam = "";
  170. if(model.getValue("/root/main/cond/indsch") == "1"){
  171. // 상단정보 올림
  172. condparam = model.getValue("/root/main/wardpatinfo/wardpatlist["+grd_wardpatlist.row+"]/ordtype")
  173. + "▦" + model.getValue("/root/main/wardpatinfo/wardpatlist["+grd_wardpatlist.row+"]/pid")
  174. + "▦" + model.getValue("/root/main/wardpatinfo/wardpatlist["+grd_wardpatlist.row+"]/indd")
  175. + "▦" + model.getValue("/root/main/wardpatinfo/wardpatlist["+grd_wardpatlist.row+"]/cretno")
  176. + "▦" + model.getValue("/root/main/wardpatinfo/wardpatlist["+grd_wardpatlist.row+"]/instcd")
  177. + "▦" + model.getValue("/root/cond/actvdd");
  178. setParameter("condparam", condparam);
  179. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  180. }
  181. fSearch();
  182. ]]>
  183. </script>
  184. </datagrid>
  185. <line id="line5" class="line_1" style="x1:0px; y1:90px; x2:190px; y2:90px; "/>
  186. <caption id="caption14" class="tit_2" style="left:0px; top:75px; width:113px; height:14px; font-family:굴림; vertical-align:middle; ">재원환자 목록</caption>
  187. <datagrid id="grd_actvlist" nodeset="/root/main/actvinfo/actvlist" caption="상태^활동사항^활동일자^활동시간^선택^기록일자^시간^기록자^recrid^pid^instcd^indd^cretno^actvrecseq^signno" colsep="^" colwidth="30, 240, 95, 55, 30, 95, 55, 75, 100, 100, 100, 100, 100, 100, 100" rowheader="update" rowsep="|" style="left:195px; top:95px; width:705px; height:650px; ">
  188. <col ref="stat" type="combo" visibility="hidden" style="text-align:center; ">
  189. <choices>
  190. <item>
  191. <label>-</label>
  192. <value>-</value>
  193. </item>
  194. <item>
  195. <label>i</label>
  196. <value>i</value>
  197. </item>
  198. <item>
  199. <label>u</label>
  200. <value>u</value>
  201. </item>
  202. <item>
  203. <label>d</label>
  204. <value>d</value>
  205. </item>
  206. </choices>
  207. </col>
  208. <col disabled="true" ref="actvcd" type="combo" style="text-align:left; ">
  209. <choices>
  210. <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid ='R01']">
  211. <label ref="cdnm"/>
  212. <value ref="cdid"/>
  213. </itemset>
  214. </choices>
  215. </col>
  216. <col disabled="true" imemode="hangul" key="true" ref="actvdd" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
  217. <col disabled="true" imemode="alpha" key="true" ref="actvtm" type="input" format="hh:nn" style="text-align:center; "/>
  218. <col ref="sel" type="checkbox"/>
  219. <col disabled="true" editable="false" ref="recdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  220. <col disabled="true" ref="rectm" type="input" format="hh:nn" style="text-align:center; "/>
  221. <col ref="recrnm" style="text-align:center; "/>
  222. <col ref="recrid" visibility="hidden"/>
  223. <col ref="pid" type="input" visibility="hidden"/>
  224. <col ref="instcd" type="input" visibility="hidden"/>
  225. <col ref="indd" type="input" visibility="hidden"/>
  226. <col ref="cretno" type="input" visibility="hidden"/>
  227. <col ref="actvrecseq" type="input" visibility="hidden"/>
  228. <col ref="signno" type="input" visibility="hidden"/>
  229. <script type="javascript" ev:event="xforms-value-changed">
  230. <![CDATA[
  231. if(grd_actvlist.col == grd_actvlist.colRef("actvtm")){
  232. if(model.getValue("/root/main/actvinfo/actvlist[" + grd_actvlist.row + "]/actvtm").length != 4){
  233. messageBox("활동시간을 정확히 입력하세요.(네자리)", "I");
  234. return;
  235. }
  236. }
  237. if(grd_actvlist.col == grd_actvlist.colRef("rectm")){
  238. if(model.getValue("/root/main/actvinfo/actvlist[" + grd_actvlist.row + "]/rectm").length != 4){
  239. messageBox("활동 기록시간을 정확히 입력하세요.(네자리)", "I");
  240. return;
  241. }
  242. }
  243. ]]>
  244. </script>
  245. </datagrid>
  246. <line id="line4" class="line_1" style="x1:195px; y1:90px; x2:900px; y2:90px; "/>
  247. <caption id="caption1" class="tit_2" style="left:195px; top:75px; width:144px; height:14px; font-family:굴림; vertical-align:middle; ">활동기록 리스트</caption>
  248. <button id="button2" class="btn2_letter2" style="left:791px; top:70px; width:42px; height:19px; ">
  249. <caption>추가</caption>
  250. <script type="javascript" ev:event="DOMActivate">
  251. <![CDATA[
  252. fAddActv();
  253. ]]>
  254. </script>
  255. </button>
  256. <button id="button3" class="btn2_letter2" style="left:747px; top:70px; width:42px; height:19px; ">
  257. <caption>삭제</caption>
  258. <script type="javascript" ev:event="DOMActivate">
  259. <![CDATA[
  260. fDel();
  261. ]]>
  262. </script>
  263. </button>
  264. <button id="button4" class="btn5_letter4" style="left:835px; top:70px; width:64px; height:19px; ">
  265. <caption>인증저장</caption>
  266. <script type="javascript" ev:event="DOMActivate">
  267. <![CDATA[
  268. fSignSave();
  269. ]]>
  270. </script>
  271. </button>
  272. <select1 id="cmb_Zone" ref="/root/main/cond/zonecd" class="combo_search" visibility="hidden" appearance="minimal" style="left:260px; top:30px; width:60px; height:19px; font-family:굴림; background-image:../../../com/commonweb/images/input_s_essential.gif; ">
  273. <choices>
  274. <itemset nodeset="/root/temp/zoneinfo/zonelist">
  275. <label ref="bednm"/>
  276. <value ref="bedcd"/>
  277. </itemset>
  278. </choices>
  279. <script type="javascript" ev:event="xforms-value-changed">
  280. <![CDATA[
  281. fGetWardPatList();
  282. ]]>
  283. </script>
  284. </select1>
  285. <caption id="cap_Zone" class="search_name" visibility="hidden" style="left:190px; top:30px; width:70px; height:17px; font-family:굴림; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">구 역 :</caption>
  286. <select1 id="rdo_indsch" ref="/root/main/cond/indsch" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:125px; top:0px; width:100px; height:20px; font-family:굴림; border-style:none; ">
  287. <choices>
  288. <item>
  289. <label>재원</label>
  290. <value>1</value>
  291. </item>
  292. <item>
  293. <label>퇴원</label>
  294. <value>2</value>
  295. </item>
  296. </choices>
  297. <script type="javascript" ev:event="xforms-value-changed">
  298. <![CDATA[
  299. fSetInDschHidden();
  300. model.removeNodeset("/root/main/actvinfo/actvlist");
  301. if(model.getValue("/root/main/cond/indsch") == "1"){
  302. line1.visible = true;
  303. button1.visible = true;
  304. model.setValue("/root/main/cond/actvdd", getCurrentDate());
  305. fGetWardPatList();
  306. }else{
  307. line1.visible = false;
  308. button1.visible = false;
  309. model.removeNodeset("/root/main/wardpatinfo/wardpatlist");
  310. model.setValue("/root/main/cond/patientnm","");
  311. model.setValue("/root/main/cond/pid","");
  312. }
  313. model.refresh();
  314. ]]>
  315. </script>
  316. </select1>
  317. <group id="group2" visibility="hidden" style="left:125px; top:20px; width:245px; height:170px; background-color:#ffcc00; ">
  318. <datagrid id="grd_patindschlist" nodeset="/root/main/patindschinfo/patindschlist" caption="입원일자^퇴원일자^caption5^caption6^caption7^caption8^caption9^caption10^caption3^caption1^caption2^caption4" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:10px; top:15px; width:225px; height:150px; ">
  319. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  320. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  321. <col ref="instcd" visibility="hidden"/>
  322. <col ref="pid" visibility="hidden"/>
  323. <col ref="cretno" visibility="hidden"/>
  324. <col ref="indschacptstat" visibility="hidden"/>
  325. <col ref="ordtype" visibility="hidden"/>
  326. <col ref="medispclid" visibility="hidden"/>
  327. <script type="javascript" ev:event="ondblclick">
  328. <![CDATA[
  329. var condparam = model.getValue("/root/main/patindschinfo/patindschlist["+grd_patindschlist.row+"]/ordtype")
  330. + "▦" + model.getValue("/root/main/patindschinfo/patindschlist["+grd_patindschlist.row+"]/pid")
  331. + "▦" + model.getValue("/root/main/patindschinfo/patindschlist["+grd_patindschlist.row+"]/indd")
  332. + "▦" + model.getValue("/root/main/patindschinfo/patindschlist["+grd_patindschlist.row+"]/cretno")
  333. + "▦" + model.getValue("/root/main/patindschinfo/patindschlist["+grd_patindschlist.row+"]/instcd")
  334. + "▦" + model.getValue("/root/main/patindschinfo/patindschlist["+grd_patindschlist.row+"]/dschdd");
  335. setParameter("condparam", condparam);
  336. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  337. model.setValue("/root/main/cond/actvdd",model.getValue("/root/main/patindschinfo/patindschlist["+grd_patindschlist.row+"]/indd") );
  338. group2.visible = false;
  339. fSearch();
  340. ]]>
  341. </script>
  342. </datagrid>
  343. <button id="button6" style="left:225px; top:0px; width:15px; height:15px; ">
  344. <caption>X</caption>
  345. <script type="javascript" ev:event="onclick">
  346. <![CDATA[
  347. group2.visible = false;
  348. ]]>
  349. </script>
  350. </button>
  351. </group>
  352. </group>
  353. <caption id="caption2" style="left:220px; top:765px; width:1200px; height:30px; "/>
  354. </xhtml:body>
  355. </xhtml:html>