SMMNE09300_응급간호요약지.xrw 65 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279
  1. <?xml version="1.0" encoding="EUC-KR"?>
  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>응급 간호 요약지</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <suminfo>
  11. <patinfo>
  12. <recdd/>
  13. <rectm/>
  14. <recusernm/>
  15. <recuserid/>
  16. <outgd1/>
  17. <outgd2/>
  18. <outgd3/>
  19. <outgd4/>
  20. </patinfo>
  21. </suminfo>
  22. </main>
  23. <cond>
  24. <pid/>
  25. <orddd/>
  26. <cretno/>
  27. <visitno/>
  28. <outrmdt/>
  29. <outrmcd/>
  30. <orddeptcd/>
  31. <orddrid/>
  32. <outrmtp/>
  33. <dschhosptype/>
  34. <chnghospnm/>
  35. </cond>
  36. <send/>
  37. <init/>
  38. <temp/>
  39. </root>
  40. </instance>
  41. <script type="javascript" ev:event="xforms-ready">
  42. <![CDATA[
  43. var paminfo = getGlobalVariable("paminfo");
  44. var pid = "";
  45. var orddd = "";
  46. var cretno = "";
  47. var visitno = "";
  48. var outrmcd = "";
  49. var outrmdt = "";
  50. // 15.07.29 추가
  51. var outrmtp = "";
  52. var dschhosptype = "";
  53. var chnghospnm = "";
  54. // 15.07.29 추가
  55. if(paminfo.length > 0) {
  56. model.makeNode("/root/main/paminfo");
  57. setCSVToNode("/root/main/paminfo", paminfo); //환자정보내리기
  58. pid = model.getValue("/root/main/paminfo/list/pid");
  59. orddd = model.getValue("/root/main/paminfo/list/indd");
  60. cretno = model.getValue("/root/main/paminfo/list/cretno");
  61. // 15.07.29 추가
  62. //outrmtp = opener.javascript.getParameter("SMMNE09300_outrmtp");
  63. outrmcd = opener.javascript.getParameter("SMMNE09300_outrmcd");
  64. dschhosptype = opener.javascript.getParameter("SMMNE09300_dschhosptype");
  65. chnghospnm = opener.javascript.getParameter("SMMNE09300_chnghospnm");
  66. // 15.07.29 추가
  67. } else {
  68. pid = opener.javascript.getParameter("SMMNE09300_pid");
  69. orddd = opener.javascript.getParameter("SMMNE09300_orddd");
  70. cretno = opener.javascript.getParameter("SMMNE09300_cretno");
  71. visitno = opener.javascript.getParameter("SMMNE09300_visitno");
  72. outrmcd = opener.javascript.getParameter("SMMNE09300_outrmcd");
  73. outrmdt = opener.javascript.getParameter("SMMNE09300_outrmdt");
  74. // 15.07.29 추가
  75. outrmtp = opener.javascript.getParameter("SMMNE09300_outrmtp");
  76. dschhosptype = opener.javascript.getParameter("SMMNE09300_dschhosptype");
  77. chnghospnm = opener.javascript.getParameter("SMMNE09300_chnghospnm");
  78. // 15.07.29 추가
  79. }
  80. if (pid != "" && pid != null) {
  81. model.setValue("/root/cond/pid", pid);
  82. model.setValue("/root/cond/orddd", orddd);
  83. model.setValue("/root/cond/cretno", cretno);
  84. model.setValue("/root/cond/visitno", visitno);
  85. model.setValue("/root/cond/outrmdt", outrmdt);
  86. model.setValue("/root/cond/outrmcd", outrmcd);
  87. // 15.07.29 추가
  88. //model.setValue("/root/cond/outrmtp", outrmtp);
  89. model.setValue("/root/cond/dschhosptype", dschhosptype);
  90. model.setValue("/root/cond/chnghospnm", chnghospnm);
  91. // 15.07.29 추가
  92. //fSearch();
  93. fSrchErPatInfo();
  94. }
  95. ]]>
  96. </script>
  97. <submission id="TRMNE09303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/erpatlist"/>
  98. <submission id="TRMNE09301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/suminfo"/>
  99. <submission id="TRMNE09302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/erordinfo"/>
  100. <submission id="TXMNE09301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  101. </model>
  102. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  104. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  105. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  106. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  107. <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
  108. <script type="javascript">
  109. <![CDATA[
  110. //등록번호 입력란 입력시 대상 환자가 응급실 재원했던 이력이 있는지 조회
  111. function fSrchErPatInfo(){
  112. clearParameter("SMMNE09300_pid");
  113. clearParameter("SMMNE09300_orddd");
  114. clearParameter("SMMNE09300_cretno");
  115. clearParameter("SMMNE09300_visitno");
  116. clearParameter("SMMNE09300_outrmcd");
  117. clearParameter("SMMNE09300_outrmdt");
  118. // 15.07.29_추가
  119. clearParameter("SMMNE09300_dschhosptype");
  120. clearParameter("SMMNE09300_chnghospnm");
  121. // 15.07.29_추가
  122. model.removeNodeset("/root/send");
  123. model.makeValue("/root/send/pid", model.getValue("/root/cond/pid"));
  124. model.makeValue("/root/send/orddd", model.getValue("/root/cond/orddd"));
  125. model.makeValue("/root/send/cretno", model.getValue("/root/cond/cretno"));
  126. model.makeValue("/root/send/visitno", model.getValue("/root/cond/visitno"));
  127. model.removeNodeset("/root/main/erpatinfo/erpatlist") ;
  128. var pid = "";
  129. var indd = "";
  130. var cretno = "";
  131. var visitno = "";
  132. var chosdd = "";
  133. var chostm = "";
  134. var outrmdd = "";
  135. var outrmtm = "";
  136. var orddetpcd, orddrid;
  137. if(submit("TRMNE09303") == true){
  138. if(getNodesetCount("/root/main/erpatinfo/erpatlist") == 1){
  139. pid = model.getValue("/root/main/erpatinfo/erpatlist/pid");
  140. indd = model.getValue("/root/main/erpatinfo/erpatlist/indd");
  141. cretno = model.getValue("/root/main/erpatinfo/erpatlist/cretno");
  142. visitno = model.getValue("/root/main/erpatinfo/erpatlist/visitno");
  143. chosdd = model.getValue("/root/main/erpatinfo/erpatlist/chosdd");
  144. chostm = model.getValue("/root/main/erpatinfo/erpatlist/chostm");
  145. outrmdd = model.getValue("/root/main/erpatinfo/erpatlist/outrmdd");
  146. outrmtm = model.getValue("/root/main/erpatinfo/erpatlist/outrmtm");
  147. orddeptcd = model.getValue("/root/main/erpatinfo/erpatlist/orddeptcd");
  148. orddrid = model.getValue("/root/main/erpatinfo/erpatlist/orddrid");
  149. if (outrmdd == "-" || outrmdd == "" || outrmdd == null ) {
  150. outrmdd = getCurrentDate();
  151. outrmtm = getCurrentTime().substr(0, 4);
  152. }
  153. model.setValue("/root/cond/pid", pid);
  154. model.setValue("/root/cond/orddd", indd);
  155. model.setValue("/root/cond/cretno", cretno);
  156. model.setValue("/root/cond/visitno", visitno);
  157. model.setValue("/root/cond/outrmdt", outrmdd + outrmtm);
  158. model.setValue("/root/cond/orddeptcd", orddeptcd);
  159. model.setValue("/root/cond/orddrid", orddrid);
  160. fSearch();
  161. } else if(getNodesetCount("/root/main/erpatinfo/erpatlist") > 1){
  162. grd_erpatlist.visible = true;
  163. } else{
  164. //messageBox("해당 환자번호에 대한 NEDIS 전송이력이 존재하지 않습니다.", "E");
  165. messageBox("해당 환자번호에 대한 응급실 내원 이력이 존재하지 않습니다.", "E");
  166. model.setFocus("ipt_pid");
  167. return;
  168. }
  169. }
  170. }
  171. function fSearch() {
  172. model.removeNodeset("/root/send");
  173. model.makeValue("/root/send/pid", model.getValue("/root/cond/pid"));
  174. model.makeValue("/root/send/indd", model.getValue("/root/cond/orddd"));
  175. model.makeValue("/root/send/cretno", model.getValue("/root/cond/cretno"));
  176. model.makeValue("/root/send/visitno", model.getValue("/root/cond/visitno"));
  177. model.makeValue("/root/send/outrmdt", model.getValue("/root/cond/outrmdt"));
  178. if (submit("TRMNE09301")) {
  179. var curdd = getCurrentDate();
  180. var curtm = getCurrentTime();
  181. var userid = getUserInfo("userid");
  182. var usernm = getUserInfo("usernm");
  183. var sinstcd = getUserInfo("dutplceinstcd");
  184. if (model.getValue("/root/main/suminfo/patinfo/recdd") == "" ) {
  185. model.makeValue("/root/main/suminfo/patinfo/recdd", curdd);
  186. model.makeValue("/root/main/suminfo/patinfo/rectm", curtm);
  187. model.makeValue("/root/main/suminfo/patinfo/recuserid", userid);
  188. model.makeValue("/root/main/suminfo/patinfo/recusernm", usernm);
  189. }
  190. if (getNodesetCnt(model, "/root/main/suminfo/patinfo/diaginfo/diaginfo/diaglist") > 0) {
  191. model.removeNodeset("/root/temp/diaginfo");
  192. model.makeNode("/root/temp/diaginfo");
  193. copyNodeset("/root/temp/diaginfo/diaglist", "/root/main/suminfo/patinfo/diaginfo/diaginfo/diaglist");
  194. copyNodeset("/root/main/suminfo/diaglist", "/root/temp/diaginfo/diaglist", "replace");
  195. }
  196. if (getNodesetCnt(model, "/root/main/suminfo/patinfo/ercallinfo/ercallinfo/ercalllist") > 0) {
  197. model.removeNodeset("/root/temp/ercallinfo");
  198. model.makeNode("/root/temp/ercallinfo");
  199. copyNodeset("/root/temp/ercallinfo/ercalllist", "/root/main/suminfo/patinfo/ercallinfo/ercallinfo/ercalllist");
  200. copyNodeset("/root/main/suminfo/ercalllist", "/root/temp/ercallinfo/ercalllist", "replace");
  201. }
  202. if (getNodesetCnt(model, "/root/main/suminfo/patinfo/ordinfo/ordinfo/ordlist") > 0) {
  203. model.removeNodeset("/root/temp/ordinfo");
  204. model.makeNode("/root/temp/ordinfo");
  205. copyNodeset("/root/temp/ordinfo/ordlist", "/root/main/suminfo/patinfo/ordinfo/ordinfo/ordlist");
  206. copyNodeset("/root/main/suminfo/ordlist", "/root/temp/ordinfo/ordlist", "replace");
  207. }
  208. if (model.getValue("/root/main/suminfo/patinfo/outrmdt") == "--" || model.getValue("/root/main/suminfo/patinfo/outrmdt") == "" ) {
  209. model.makeValue("/root/main/suminfo/patinfo/outrmdt", model.getValue("/root/cond/outrmdt"));
  210. }
  211. //if (model.getValue("/root/main/suminfo/patinfo/outrmcd") == "" ) {
  212. // model.makeValue("/root/main/suminfo/patinfo/outrmcd", model.getValue("/root/cond/outrmcd"));
  213. //}
  214. var ordcnt = getNodesetCnt(model, "/root/main/suminfo/ordlist");
  215. for (var i = 1; i <= ordcnt; i++) {
  216. model.makeValue("/root/main/suminfo/ordlist[" + i + "]/stat", "Y");
  217. }
  218. // 소견서
  219. if (model.getValue("/root/main/suminfo/patinfo/certcnt") == "Y") {
  220. model.setValue("/root/main/suminfo/patinfo/outgd1", "Y")
  221. }
  222. // 제증명
  223. if (model.getValue("/root/main/suminfo/patinfo/cpapcnt") == "Y") {
  224. model.setValue("/root/main/suminfo/patinfo/outgd4", "Y")
  225. }
  226. // 15.07.29 추가
  227. if(model.getvalue("/root/main/suminfo/patinfo/signno") == "" || model.getvalue("/root/main/suminfo/patinfo/signno") == null){
  228. //alert("signno is null!!");
  229. if(model.getvalue("/root/main/suminfo/patinfo/outrmcd") == "" || model.getvalue("/root/main/suminfo/patinfo/outrmcd") == null){
  230. //alert("outrmtp is null");
  231. model.makeValue("/root/main/suminfo/patinfo/outrmcd", model.getValue("/root/cond/outrmcd"));
  232. }
  233. if(model.getvalue("/root/main/suminfo/patinfo/chnghospnm") == "" || model.getvalue("/root/main/suminfo/patinfo/chnghospnm") == null){
  234. //alert("chnghospnm is null");
  235. model.makeValue("/root/main/suminfo/patinfo/chnghospnm", model.getValue("/root/cond/chnghospnm"));
  236. }
  237. if(model.getvalue("/root/main/suminfo/patinfo/dschhosptype") == "" || model.getvalue("/root/main/suminfo/patinfo/dschhosptype") == null){
  238. //alert("dschhosptype is null");
  239. model.makeValue("/root/main/suminfo/patinfo/dschhosptype", model.getValue("/root/cond/dschhosptype"));
  240. }
  241. }
  242. //16.09.19 퇴원시 GCS추가_권역외상
  243. if (model.getValue("/root/main/suminfo/patinfo/trmsyn") == "Y" && sinstcd == "031" &&
  244. isSearchString(model.getValue("/root/main/suminfo/patinfo/outrmcd"), "귀가") == false &&
  245. model.getValue("/root/main/suminfo/patinfo/outrmcd") != "증상이 호전되어 귀가" &&
  246. model.getValue("/root/main/suminfo/patinfo/outrmcd") != "말기질환으로 귀가(가정간호 등)" &&
  247. model.getValue("/root/main/suminfo/patinfo/outrmcd") != "외래방문 후 귀가 또는 입원" &&
  248. model.getValue("/root/main/suminfo/patinfo/outrmcd") != "자의 퇴실" &&
  249. model.getValue("/root/main/suminfo/patinfo/outrmcd") != "기타(재활원, 일반시설로 돌아간 경우 등)" ) {
  250. var sAge = parseInt(model.getValue("/root/main/suminfo/patinfo/age_int"));
  251. group4.disabled = false;
  252. // combo2.disabled = false; //퇴실시_GCS눈
  253. // combo5.disabled = false; //퇴실시_GCS운동
  254. // input37.disabled = false; //퇴실시_GCS(점수)
  255. if (sAge < 5) {
  256. combo4.disabled = false; //퇴실시_GCS소아(언어)input51
  257. combo3.disabled = true;
  258. //model.setValue("/root/main/suminfo/patinfo/gcsv", "-1"); //퇴실시_GCS언어_비대상
  259. //model.setValue("/root/main/suminfo/patinfo/gcsv", "9"); //퇴실시_GCS언어(소아)_측정하지 않음(9)
  260. } else {
  261. combo3.disabled = false; //퇴실시_GCS언어
  262. combo4.disabled = true;
  263. //model.setValue("/root/main/suminfo/patinfo/gcsv", "9"); //퇴실시_GCS언어_측정하지 않음(9)
  264. //model.setValue("/root/main/suminfo/patinfo/gcsp", "-1"); //퇴실시_GCS언어(소아)_비대상
  265. }
  266. } else{
  267. group4.disabled = true;
  268. }
  269. // 15.07.29 추가
  270. //btn_ordsear.dispatch("onclick");
  271. model.refresh();
  272. }
  273. }
  274. function fSave(param) {
  275. //--------------------------------------------------------
  276. model.removeNodeset("/root/temp/diaginfo");
  277. model.makeNode("/root/temp/diaginfo");
  278. copyNodeset("/root/temp/diaginfo/diaglist", "/root/main/suminfo/diaglist");
  279. model.removeNodeset("/root/main/suminfo/patinfo/diaginfo");
  280. model.makeValue("/root/main/suminfo/patinfo/diaginfo", fGetXmlToStr("/root/temp/diaginfo"));
  281. model.makeNode("/root/main/suminfo/patinfo/diaginfo1");
  282. copyNodeset("/root/main/suminfo/patinfo/diaginfo1/diaginfo", "/root/temp/diaginfo");
  283. //--------------------------------------------------------
  284. model.removeNodeset("/root/temp/ercallinfo");
  285. model.makeNode("/root/temp/ercallinfo");
  286. copyNodeset("/root/temp/ercallinfo/ercalllist", "/root/main/suminfo/ercalllist");
  287. model.removeNodeset("/root/main/suminfo/patinfo/ercallinfo");
  288. model.makeValue("/root/main/suminfo/patinfo/ercallinfo", fGetXmlToStr("/root/temp/ercallinfo"));
  289. model.makeNode("/root/main/suminfo/patinfo/ercallinfo1");
  290. copyNodeset("/root/main/suminfo/patinfo/ercallinfo1/ercallinfo", "/root/temp/ercallinfo");
  291. //--------------------------------------------------------
  292. model.removeNodeset("/root/temp/ordinfo");
  293. model.makeNode("/root/temp/ordinfo");
  294. model.removeNodeset("/root/temp/ordinfo");
  295. model.makeNode("/root/temp/ordinfo");
  296. var jj = 1;
  297. var tempcnt = getNodesetCount("/root/main/suminfo/ordlist");
  298. for (var ii = 1; ii <= tempcnt; ii++) {
  299. if (model.getValue("/root/main/suminfo/ordlist[" + ii + "]/stat") == "Y") {
  300. model.makeValue("/root/temp/ordinfo/ordlist[" + jj + "]/prcpdd", model.getValue("/root/main/suminfo/ordlist[" + ii + "]/prcpdd"));
  301. model.makeValue("/root/temp/ordinfo/ordlist[" + jj + "]/prcpno", model.getValue("/root/main/suminfo/ordlist[" + ii + "]/prcpno"));
  302. model.makeValue("/root/temp/ordinfo/ordlist[" + jj + "]/prcpnm", model.getValue("/root/main/suminfo/ordlist[" + ii + "]/prcpnm"));
  303. model.makeValue("/root/temp/ordinfo/ordlist[" + jj + "]/senddt", model.getValue("/root/main/suminfo/ordlist[" + ii + "]/senddt"));
  304. model.makeValue("/root/temp/ordinfo/ordlist[" + jj + "]/acptdt", model.getValue("/root/main/suminfo/ordlist[" + ii + "]/acptdt"));
  305. model.makeValue("/root/temp/ordinfo/ordlist[" + jj + "]/execdt", model.getValue("/root/main/suminfo/ordlist[" + ii + "]/execdt"));
  306. model.makeValue("/root/temp/ordinfo/ordlist[" + jj + "]/arrvdt", model.getValue("/root/main/suminfo/ordlist[" + ii + "]/arrvdt"));
  307. jj++;
  308. }
  309. }
  310. //copyNodeset("/root/temp/ordinfo/ordlist", "/root/main/suminfo/ordlist");
  311. model.removeNodeset("/root/main/suminfo/patinfo/ordinfo");
  312. model.makeValue("/root/main/suminfo/patinfo/ordinfo", fGetXmlToStr("/root/temp/ordinfo"));
  313. model.makeNode("/root/main/suminfo/patinfo/ordinfo1");
  314. copyNodeset("/root/main/suminfo/patinfo/ordinfo1/ordinfo", "/root/temp/ordinfo");
  315. //--------------------------------------------------------
  316. model.removeNodeset("/root/send");
  317. model.makeNode("/root/send/savedata");
  318. model.copyNode("/root/send/savedata", "/root/main/suminfo/patinfo");
  319. if (param == "certi") {
  320. if (model.getValue("/root/main/suminfo/patinfo/outrmdt") == "" || model.getValue("/root/main/suminfo/patinfo/outrmdt") == "--") {
  321. messageBox("퇴실일시가 없습니다. ", "E999");
  322. return
  323. }
  324. if (model.getValue("/root/main/suminfo/patinfo/outrmcd") == ""){
  325. messageBox("퇴실구분이 없습니다.", "E999");
  326. return
  327. }
  328. //if (model.getValue("/root/main/suminfo/patinfo/trmsyn") == "Y" && getUserInfo("dutplceinstcd") == "031" && (model.getValue("/root/main/suminfo/patinfo/gcss") == "" || model.getValue("/root/main/suminfo/patinfo/gcse") == "" || model.getValue("/root/main/suminfo/patinfo/gcsm") == "") || (model.getValue("/root/main/suminfo/patinfo/age_int") < 5 ? model.getValue("/root/main/suminfo/patinfo/gcsp") == "" : model.getValue("/root/main/suminfo/patinfo/gcsv") == "" ) ) {
  329. if (model.getValue("/root/main/suminfo/patinfo/trmsyn") == "Y" &&
  330. getUserInfo("dutplceinstcd") == "031" &&
  331. isSearchString(model.getValue("/root/main/suminfo/patinfo/outrmcd"), "귀가") == false &&
  332. model.getValue("/root/main/suminfo/patinfo/outrmcd") != "증상이 호전되어 귀가" &&
  333. model.getValue("/root/main/suminfo/patinfo/outrmcd") != "말기질환으로 귀가(가정간호 등)" &&
  334. model.getValue("/root/main/suminfo/patinfo/outrmcd") != "외래방문 후 귀가 또는 입원" &&
  335. model.getValue("/root/main/suminfo/patinfo/outrmcd") != "자의 퇴실" &&
  336. model.getValue("/root/main/suminfo/patinfo/outrmcd") != "기타(재활원, 일반시설로 돌아간 경우 등)" &&
  337. (model.getValue("/root/main/suminfo/patinfo/gcss") == "" ||
  338. model.getValue("/root/main/suminfo/patinfo/gcse") == "" ||
  339. model.getValue("/root/main/suminfo/patinfo/gcsm") == "" || (model.getValue("/root/main/suminfo/patinfo/age_int") < 5 ? model.getValue("/root/main/suminfo/patinfo/gcsp") == "" : model.getValue("/root/main/suminfo/patinfo/gcsv") == "" ))) {
  340. messageBox("퇴실시 GCS, sedativie 항목 입력이 누락되었습니다.", "E999");
  341. return
  342. }
  343. model.removeNode("/root/main/signSaveData");
  344. model.makeNode("/root/main/signSaveData");
  345. model.copyNode("/root/main/signSaveData", "/root/main/suminfo/patinfo");
  346. if (!fSign()) return;
  347. }
  348. if (submit("TXMNE09301")) {
  349. fSearch();
  350. }
  351. }
  352. function fSign() {
  353. Sign.certreload = false ; // 전자서명 호출시 인증저장 버튼을 누늘때마다 인증서가 뜨도록 처리
  354. //Sign.certchkflag = "Y";
  355. if( Sign.signprocess() == true ){
  356. var sPid = model.getValue("/root/cond/pid");
  357. var sIndd = model.getValue("/root/cond/orddd");
  358. var sCretNo = model.getValue("/root/cond/cretno");
  359. var sOrdDeptCd = model.getValue("/root/cond/orddeptcd");
  360. var sOrdDrId = model.getValue("/root/cond/orddrid");
  361. // 전자인증 관련 환자 인적 정보를 보내줌.
  362. model.makeValue("/root/send/signdata/pid", sPid ); //등록번호
  363. model.makeValue("/root/send/signdata/orddd", sIndd); //입원일자
  364. model.makeValue("/root/send/signdata/signno", ""); //서명번호
  365. model.makeValue("/root/send/signdata/cretno", sCretNo); //생성번호
  366. model.makeValue("/root/send/signdata/recdd", getCurrentDate()); // 실제 기록이 이루어진 기록일자
  367. model.makeValue("/root/send/signdata/rectm", getCurrentTime()); //실제 기록이 이루어진 기록시간
  368. model.makeValue("/root/send/signdata/recsaveflag", "Y"); //전자서명 인적정보 변경여부(기록일시 변경되는 경우 : Y, 그외 : N)
  369. model.makeValue("/root/send/signdata/signflag", "02" ); //서명자료구분 (01 : 진료, 02 : 간호, 03 : LIS, 04 : 진료지원)
  370. model.makeValue("/root/send/signdata/signgenrflag", "I" ); //외래/입원구분(코드정의서 M0010 참조)
  371. model.makeValue("/root/send/signdata/formcd", "1300014749" ); //각 기록지별 서식코드
  372. model.makeValue("/root/send/signdata/orddeptcd", sOrdDeptCd); //진료부서코드
  373. model.makeValue("/root/send/signdata/orddrid", sOrdDrId ); //진료의사ID
  374. model.makeValue("/root/send/signdata/dispyn", "Y"); //기록뷰어에는 조회안되도록
  375. // 인증할 데이터 정보(미기록 노드 제거된 정보)
  376. // 미기록 노드 제거전 원본 노드 정보 : Sign.signedInfos[3]
  377. model.makeValue("/root/send/signdata/signbfcnts", Sign.signedInfos[1]);
  378. // 공인인증 처리후 데이터
  379. model.makeValue("/root/send/signdata/signaftcnts", Sign.signedInfos[2]);
  380. } else{
  381. return false;
  382. }
  383. model.makeValue("/root/send/signdata/screenid", getScreenID());
  384. return true;
  385. }
  386. function fMake_SignData() {
  387. Sign.addnode("/root/main/signSaveData");
  388. }
  389. function fGetXmlToStr(xPath) {
  390. var str = instance1.selectNodesXml(xPath);
  391. return str;
  392. }
  393. ]]>
  394. </script>
  395. </xhtml:head>
  396. <xhtml:body pagewidth="830" pageheight="950" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  397. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:15px; ">응급 간호 요약 기록</caption>
  398. <group id="group1" scroll="auto" style="left:0px; top:62px; width:810px; height:873px; ">
  399. <caption id="caption25" class="cell_1" style="left:0px; top:768px; width:132px; height:21px; vertical-align:middle; ">퇴실일시</caption>
  400. <line id="line4" class="line_3" style="x1:0px; y1:296px; x2:790px; y2:296px; "/>
  401. <caption id="caption16" class="tit_2" style="left:5px; top:279px; width:131px; height:13px; vertical-align:middle; ">의사 호출 정보</caption>
  402. <line id="line5" class="line_3" style="x1:0px; y1:377px; x2:790px; y2:377px; "/>
  403. <caption id="caption27" class="tit_2" style="left:5px; top:382px; width:135px; height:13px; vertical-align:middle; ">의사 결정 정보</caption>
  404. <line id="line6" class="line_3" style="x1:0px; y1:400px; x2:790px; y2:400px; "/>
  405. <caption id="caption32" class="tit_2" style="left:5px; top:432px; width:145px; height:13px; vertical-align:middle; ">검사 및 처치 기록</caption>
  406. <line id="line7" class="line_3" style="x1:0px; y1:562px; x2:790px; y2:562px; "/>
  407. <caption id="caption35" class="tit_2" style="left:5px; top:567px; width:117px; height:13px; vertical-align:middle; ">퇴실 요약 정보</caption>
  408. <line id="line8" class="line_3" style="x1:0px; y1:835px; x2:790px; y2:835px; "/>
  409. <caption id="caption43" style="left:460px; top:815px; width:150px; height:20px; font-weight:bold; ">을(를) 가지고 퇴원함.</caption>
  410. <input id="caption61" ref="/root/main/suminfo/patinfo/sympnm" appearance="input" style="left:105px; top:102px; width:154px; height:19px; "/>
  411. <input id="input6" ref="/root/main/suminfo/patinfo/initpuls" appearance="input" style="left:332px; top:127px; width:60px; height:19px; "/>
  412. <input id="input7" ref="/root/main/suminfo/patinfo/initbrth" appearance="input" style="left:453px; top:127px; width:60px; height:19px; "/>
  413. <caption id="caption2" class="cell_2" style="left:106px; top:126px; width:80px; height:21px; vertical-align:middle; ">SBP/DBP</caption>
  414. <caption id="caption21" class="cell_2" style="left:274px; top:126px; width:55px; height:21px; vertical-align:middle; ">맥박수</caption>
  415. <caption id="caption3" class="cell_1" style="left:0px; top:100px; width:100px; height:21px; vertical-align:middle; ">주증상</caption>
  416. <input id="input11" ref="/root/main/suminfo/patinfo/cscsflag" appearance="input" style="left:371px; top:102px; width:154px; height:19px; "/>
  417. <caption id="caption4" class="cell_1" style="left:266px; top:100px; width:100px; height:21px; vertical-align:middle; ">내원 시 반응</caption>
  418. <input id="input12" ref="/root/main/suminfo/patinfo/initbdtp" appearance="input" style="left:574px; top:127px; width:60px; height:19px; "/>
  419. <line id="line10" class="line_2" style="x1:0px; y1:124px; x2:790px; y2:124px; "/>
  420. <input id="input13" ref="/root/main/suminfo/patinfo/initbp" appearance="input" style="left:188px; top:127px; width:84px; height:19px; "/>
  421. <line id="line11" class="line_3" style="x1:0px; y1:149px; x2:790px; y2:149px; "/>
  422. <caption id="caption18" class="cell_2" style="left:395px; top:126px; width:55px; height:21px; vertical-align:middle; ">호흡수</caption>
  423. <caption id="caption19" class="cell_2" style="left:516px; top:126px; width:55px; height:21px; vertical-align:middle; ">체온</caption>
  424. <line id="line14" class="line_3" style="x1:0px; y1:124px; x2:790px; y2:124px; "/>
  425. <input id="caption52" ref="/root/main/suminfo/patinfo/choswayflag" appearance="input" style="left:106px; top:50px; width:154px; height:19px; "/>
  426. <caption id="caption10" class="cell_1" style="left:532px; top:75px; width:100px; height:21px; vertical-align:middle; ">손상기전</caption>
  427. <input id="input14" ref="/root/main/suminfo/patinfo/chosdt" format="yyyy-mm-dd hh:nn" appearance="input" style="left:106px; top:24px; width:154px; height:19px; "/>
  428. <caption id="caption11" class="cell_1" style="left:266px; top:23px; width:100px; height:21px; vertical-align:middle; ">발병일시</caption>
  429. <input id="caption54" ref="/root/main/suminfo/patinfo/chosresnflag" appearance="input" style="left:105px; top:76px; width:154px; height:19px; "/>
  430. <caption id="caption12" class="cell_1" style="left:532px; top:49px; width:100px; height:21px; vertical-align:middle; ">전원온기관종류</caption>
  431. <input id="ipt_erptinrt" ref="/root/main/suminfo/patinfo/chospathflag" appearance="input" style="left:372px; top:51px; width:154px; height:19px; "/>
  432. <line id="line15" class="line_2" style="x1:0px; y1:72px; x2:790px; y2:72px; "/>
  433. <input id="caption45" ref="/root/main/suminfo/patinfo/attackdt" format="yyyy-mm-dd hh:nn" appearance="input" style="left:371px; top:24px; width:154px; height:19px; "/>
  434. <caption id="caption17" class="cell_1" style="left:0px; top:23px; width:100px; height:21px; vertical-align:middle; ">내원일시</caption>
  435. <line id="line16" class="line_2" style="x1:0px; y1:98px; x2:790px; y2:98px; "/>
  436. <input id="caption46" ref="/root/main/suminfo/patinfo/injmechflag" appearance="input" style="left:637px; top:76px; width:154px; height:19px; "/>
  437. <line id="line19" class="line_3" style="x1:0px; y1:20px; x2:790px; y2:20px; "/>
  438. <input id="caption49" ref="/root/main/suminfo/patinfo/intenflag" appearance="input" style="left:372px; top:76px; width:154px; height:19px; "/>
  439. <caption id="caption23" class="cell_1" style="left:266px; top:75px; width:100px; height:21px; vertical-align:middle; ">의도성여부</caption>
  440. <caption id="caption24" class="tit_2" style="left:0px; top:4px; width:250px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">환자 내원 정보 및 초기평가 정보</caption>
  441. <caption id="caption47" class="cell_1" style="left:0px; top:75px; width:100px; height:21px; vertical-align:middle; ">질병여부</caption>
  442. <caption id="caption48" class="cell_1" style="left:266px; top:50px; width:100px; height:21px; vertical-align:middle; ">내원경로</caption>
  443. <caption id="caption50" class="cell_1" style="left:0px; top:49px; width:100px; height:21px; vertical-align:middle; ">내원수단</caption>
  444. <input id="input16" ref="/root/main/suminfo/patinfo/inhosptype" style="left:637px; top:50px; width:154px; height:19px; "/>
  445. <line id="line2" class="line_2" style="x1:0px; y1:46px; x2:790px; y2:46px; "/>
  446. <caption id="caption7" class="cell_1" style="left:0px; top:126px; width:100px; height:21px; vertical-align:middle; ">초기V/S 정보</caption>
  447. <caption id="caption38" class="cell_1" style="left:0px; top:588px; width:132px; height:21px; vertical-align:middle; ">퇴실 시 V/S 정보</caption>
  448. <caption id="caption41" class="tit_2" style="left:0px; top:154px; width:160px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">환자 응급 진료 정보</caption>
  449. <input id="input5" ref="/root/main/suminfo/patinfo/ordstdt" format="yyyy-mm-dd hh:nn" appearance="input" style="left:136px; top:174px; width:254px; height:19px; "/>
  450. <caption id="caption42" class="cell_1" style="left:0px; top:173px; width:132px; height:21px; vertical-align:middle; ">진료개시(초진) 시간</caption>
  451. <line id="line9" class="line_3" style="x1:0px; y1:171px; x2:790px; y2:171px; "/>
  452. <line id="line17" class="line_3" style="x1:0px; y1:196px; x2:790px; y2:196px; "/>
  453. <datagrid id="grd_calldoc3" nodeset="/root/main/suminfo/ercalllist" caption="진료과^Main^Call time^Visit Time^의사명" colsep="^" colwidth="135, 38, 165, 165, 140" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:299px; width:784px; height:76px; ">
  454. <col ref="erorddeptnm" style="text-align:center; "/>
  455. <col checkvalue="M,S" ref="mainyn" type="checkbox"/>
  456. <col ref="calldt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  457. <col ref="arrivdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  458. <col ref="erorddoctnm" style="text-align:center; "/>
  459. </datagrid>
  460. <caption id="caption9" class="cell_1" style="left:0px; top:402px; width:132px; height:21px; vertical-align:middle; ">의사결정시간</caption>
  461. <line id="line20" class="line_3" style="x1:0px; y1:425px; x2:790px; y2:425px; "/>
  462. <input id="input9" ref="/root/main/suminfo/patinfo/decndt" format="yyyy-mm-dd hh:nn" appearance="input" style="left:136px; top:403px; width:254px; height:19px; "/>
  463. <caption id="caption14" class="cell_1" style="left:395px; top:402px; width:132px; height:21px; vertical-align:middle; ">의사결정의사</caption>
  464. <input id="input10" ref="/root/main/suminfo/patinfo/decndrnm" appearance="input" style="left:530px; top:403px; width:254px; height:19px; "/>
  465. <input id="input15" ref="/root/main/suminfo/patinfo/orddrnm" appearance="input" style="left:530px; top:174px; width:254px; height:19px; "/>
  466. <caption id="caption15" class="cell_1" style="left:395px; top:173px; width:132px; height:21px; vertical-align:middle; ">초기 오더 의사</caption>
  467. <line id="line21" class="line_3" style="x1:0px; y1:450px; x2:790px; y2:450px; "/>
  468. <line id="line22" class="line_3" style="x1:0px; y1:586px; x2:790px; y2:586px; "/>
  469. <caption id="caption8" class="cell_1" style="left:395px; top:768px; width:132px; height:21px; vertical-align:middle; ">응급진료결과</caption>
  470. <line id="line23" class="line_2" style="x1:0px; y1:765px; x2:790px; y2:765px; "/>
  471. <line id="line24" class="line_2" style="x1:0px; y1:790px; x2:790px; y2:790px; "/>
  472. <input id="input17" ref="/root/main/suminfo/patinfo/outrmcd" appearance="input" style="left:530px; top:768px; width:254px; height:19px; "/>
  473. <input id="input8" ref="/root/main/suminfo/patinfo/initspo2" appearance="input" style="left:694px; top:127px; width:60px; height:19px; "/>
  474. <caption id="caption20" class="cell_2" style="left:636px; top:126px; width:55px; height:21px; vertical-align:middle; ">SpO2</caption>
  475. <input id="input1" ref="/root/main/suminfo/patinfo/lastbrth" appearance="input" style="left:412px; top:590px; width:37px; height:19px; "/>
  476. <input id="input2" ref="/root/main/suminfo/patinfo/lastspo2" appearance="input" style="left:604px; top:590px; width:37px; height:19px; "/>
  477. <caption id="caption13" class="cell_2" style="left:550px; top:589px; width:50px; height:21px; vertical-align:middle; ">SpO2</caption>
  478. <caption id="caption22" class="cell_2" style="left:263px; top:589px; width:50px; height:21px; vertical-align:middle; ">맥박수</caption>
  479. <input id="input3" ref="/root/main/suminfo/patinfo/lastbdtp" appearance="input" style="left:508px; top:590px; width:37px; height:19px; "/>
  480. <caption id="caption26" class="cell_2" style="left:135px; top:589px; width:70px; height:21px; vertical-align:middle; ">SBP/DBP</caption>
  481. <input id="input4" ref="/root/main/suminfo/patinfo/lastbp" appearance="input" style="left:207px; top:590px; width:53px; height:19px; "/>
  482. <caption id="caption28" class="cell_2" style="left:359px; top:589px; width:50px; height:21px; vertical-align:middle; ">호흡수</caption>
  483. <caption id="caption39" class="cell_2" style="left:455px; top:589px; width:50px; height:21px; vertical-align:middle; ">체온</caption>
  484. <input id="input18" ref="/root/main/suminfo/patinfo/lastpuls" appearance="input" style="left:316px; top:590px; width:37px; height:19px; "/>
  485. <button id="button4" class="btn2_letter2" style="left:527px; top:429px; width:42px; height:19px; ">
  486. <caption>삭제</caption>
  487. <script type="javascript" ev:event="DOMActivate">
  488. <![CDATA[
  489. deleteSelectedRows(grd_sumordlist, "false");
  490. grd_sumordlist.refresh();
  491. ]]>
  492. </script>
  493. </button>
  494. <button id="button5" class="btn2_letter6" style="left:440px; top:429px; width:86px; height:19px; ">
  495. <caption>처방가져오기</caption>
  496. <script type="javascript" ev:event="DOMActivate">
  497. <![CDATA[
  498. if (submit("TRMNE09302")) {
  499. //group2.visible = true;
  500. for (var i = 1; i < grd_erordlist.rows; i++) {
  501. var vPrcpnm = model.getValue("/root/temp/erordinfo/erordlist[" + i + "]/prcpnm");
  502. var vPrcpdd = model.getValue("/root/temp/erordinfo/erordlist[" + i + "]/prcpdd");
  503. var vPrcpno = model.getValue("/root/temp/erordinfo/erordlist[" + i + "]/prcpno");
  504. var vAcptdt = model.getValue("/root/temp/erordinfo/erordlist[" + i + "]/acptdt");
  505. var vExecdt = model.getValue("/root/temp/erordinfo/erordlist[" + i + "]/execdt");
  506. var cnt = 0;
  507. for (var j = 1; j < grd_sumordlist.rows; j++) {
  508. if (vPrcpdd == model.getValue("/root/main/suminfo/ordlist[" + j + "]/prcpdd") && vPrcpno == model.getValue("/root/main/suminfo/ordlist[" + j + "]/prcpno")) {
  509. cnt++;
  510. }
  511. }
  512. if (cnt == 0) {
  513. grd_sumordlist.addRow();
  514. var sSetRow = grd_sumordlist.rows - grd_sumordlist.fixedRows;
  515. model.makeValue("/root/main/suminfo/ordlist[" + sSetRow + "]/prcpdd", vPrcpdd);
  516. model.makeValue("/root/main/suminfo/ordlist[" + sSetRow + "]/prcpno", vPrcpno);
  517. model.makeValue("/root/main/suminfo/ordlist[" + sSetRow + "]/prcpnm", vPrcpnm);
  518. model.makeValue("/root/main/suminfo/ordlist[" + sSetRow + "]/acptdt", vAcptdt );
  519. model.makeValue("/root/main/suminfo/ordlist[" + sSetRow + "]/execdt", vExecdt);
  520. }
  521. }
  522. grd_sumordlist.refresh();
  523. }
  524. //var row = grd_c2ordlist.mouseRow;
  525. // for (var i = 1; i < grd_c2ordlist.rows; i++) {
  526. // if (model.getValue("/root/temp/c2ordlist[" + i + "]/sel") == "Y") {
  527. // var vPrcpnm = model.getValue("/root/temp/c2ordlist[" + i + "]/prcpnm");
  528. // var vExecdt = model.getValue("/root/temp/c2ordlist[" + i + "]/execdt");
  529. // var vCnfmdt = model.getValue("/root/temp/c2ordlist[" + i + "]/cnfmdt");
  530. // var vRsltrept = model.getValue("/root/temp/c2ordlist[" + i + "]/rsltrept");
  531. //
  532. // datagrid1.addRow();
  533. // var sSetRow = datagrid1.rows - datagrid1.fixedRows;
  534. // model.makeValue("/root/main/trmsinfo/c2ordinfo[" + sSetRow + "]/trhtcode", "10");
  535. // model.makeValue("/root/main/trmsinfo/c2ordinfo[" + sSetRow + "]/trhtnmtx", vPrcpnm);
  536. // model.makeValue("/root/main/trmsinfo/c2ordinfo[" + sSetRow + "]/trhtexdt", vExecdt.substr(0, 8));
  537. // model.makeValue("/root/main/trmsinfo/c2ordinfo[" + sSetRow + "]/trhtextm", vExecdt.substr(8, 4));
  538. // model.makeValue("/root/main/trmsinfo/c2ordinfo[" + sSetRow + "]/trhteddt", vCnfmdt.substr(0, 8));
  539. // model.makeValue("/root/main/trmsinfo/c2ordinfo[" + sSetRow + "]/trhtedtm", vCnfmdt.substr(8, 4));
  540. // model.makeValue("/root/main/trmsinfo/c2ordinfo[" + sSetRow + "]/trhtrdrt", vRsltrept);
  541. // }
  542. // }
  543. //
  544. // datagrid1.refresh();
  545. // group2.visible = false;
  546. ]]>
  547. </script>
  548. </button>
  549. <line id="line26" class="line_2" style="x1:0px; y1:815px; x2:790px; y2:815px; "/>
  550. <caption id="caption44" class="cell_1" style="left:395px; top:793px; width:132px; height:21px; vertical-align:middle; ">전원 갈 의료기관 종류</caption>
  551. <input id="input20" ref="/root/main/suminfo/patinfo/dschhosptype" style="left:530px; top:794px; width:254px; height:19px; "/>
  552. <input id="input21" ref="/root/main/suminfo/patinfo/chnghospnm" appearance="input" style="left:136px; top:793px; width:254px; height:19px; "/>
  553. <caption id="caption51" class="cell_1" style="left:0px; top:793px; width:132px; height:21px; vertical-align:middle; ">전원 갈 의료기관</caption>
  554. <input id="input19" ref="/root/main/suminfo/patinfo/outrmdt" format="yyyy-mm-dd hh:nn" style="left:136px; top:768px; width:254px; height:19px; "/>
  555. <datagrid id="grd_erdiaginfo" nodeset="/root/main/suminfo/diaglist" caption="응급실 내 진단정보^응급실 내 진단정보" colsep="^" colwidth="135, 634" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:199px; width:784px; height:76px; ">
  556. <col ref="diagcd"/>
  557. <col ref="diagnm"/>
  558. </datagrid>
  559. <line id="line25" class="line_3" style="x1:0px; y1:276px; x2:790px; y2:276px; "/>
  560. <caption id="caption33" style="left:110px; top:567px; width:640px; height:20px; color:#6699ff; ">※ EICU 환자는 EICU로 퇴실한 일시와 결과를 표기 / 외상환자의 경우 퇴실시 GCS 측정 항목이 활성화 됩니다.</caption>
  561. <caption id="caption55" style="left:131px; top:431px; width:307px; height:20px; color:#6699ff; ">※ [처방가져오기] 후 저장 대상의 처방을 체크하면 저장</caption>
  562. <caption id="cap_bfrecdt" class="cell_1" style="left:0px; top:837px; width:132px; height:23px; vertical-align:middle; ">기록일시</caption>
  563. <button id="btn_recdt" class="icon_clock" navindex="3" style="left:289px; top:840px; width:16px; height:16px; ">
  564. <caption/>
  565. <script type="javascript" ev:event="DOMActivate">
  566. <![CDATA[
  567. var dt = getCurrentTime();
  568. var dd = getCurrentDate();
  569. model.makeValue("/root/main/suminfo/patinfo/rectm", dt);
  570. model.makeValue("/root/main/suminfo/patinfo/recdd", dd);
  571. ipt_rectm.refresh();
  572. ipt_recdd.refresh();
  573. ]]>
  574. </script>
  575. </button>
  576. <input id="ipt_rectm" ref="/root/main/suminfo/patinfo/rectm" navindex="2" format="hh:nn" style="left:239px; top:839px; width:45px; height:19px; "/>
  577. <output id="ipt_recuser" ref="/root/main/suminfo/patinfo/recusernm" class="output_fix" navindex="4" appearance="output" style="left:530px; top:839px; width:254px; height:19px; "/>
  578. <caption id="caption1" class="cell_1" style="left:395px; top:837px; width:132px; height:23px; vertical-align:middle; ">기록자</caption>
  579. <input id="ipt_recdd" ref="/root/main/suminfo/patinfo/recdd" class="input_default" inputtype="date" style="left:136px; top:839px; width:100px; height:19px; "/>
  580. <line id="line1" class="line_1" style="x1:0px; y1:861px; x2:790px; y2:861px; "/>
  581. <group id="group2" visibility="hidden" style="left:685px; top:347px; width:100px; height:45px; background-color:#ffffcc; border-style:solid; ">
  582. <caption id="caption90" style="left:14px; top:4px; width:305px; height:20px; font-weight:bold; color:#3366ff; ">
  583. <![CDATA[>> 검사 및 처치 시행 내역]]>
  584. </caption>
  585. <datagrid id="grd_erordlist" nodeset="/root/temp/erordinfo/erordlist" allowbigselection="true" autoresize="true" caption="^처방명^처방일^접수일시^시행일시" colsep="^" colwidth="25, 420, 70, 105, 105" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:6px; top:27px; width:745px; height:290px; ">
  586. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  587. <col ref="prcpnm"/>
  588. <col ref="prcpdd" format="yyyy-mm-dd"/>
  589. <col ref="acptdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  590. <col ref="execdt" format="yyyy-mm-dd hh:nn"/>
  591. <!--script type="javascript" ev:event="ondblclick">
  592. <![CDATA[
  593. //var row = grd_c2ordlist.mouseRow;
  594. for (var i = 1; i < grd_c2ordlist.rows; i++) {
  595. if (model.getValue("/root/temp/c2ordlist[" + i + "]/sel") == "Y") {
  596. var vPrcpnm = model.getValue("/root/temp/c2ordlist[" + i + "]/prcpnm");
  597. var vExecdt = model.getValue("/root/temp/c2ordlist[" + i + "]/execdt");
  598. var vCnfmdt = model.getValue("/root/temp/c2ordlist[" + i + "]/cnfmdt");
  599. var vRsltrept = model.getValue("/root/temp/c2ordlist[" + i + "]/rsltrept");
  600. datagrid1.addRow();
  601. var sSetRow = datagrid1.rows - datagrid1.fixedRows;
  602. model.makeValue("/root/main/trmsinfo/c2ordinfo[" + sSetRow + "]/trhtcode", "10");
  603. model.makeValue("/root/main/trmsinfo/c2ordinfo[" + sSetRow + "]/trhtnmtx", vPrcpnm);
  604. model.makeValue("/root/main/trmsinfo/c2ordinfo[" + sSetRow + "]/trhtexdt", vExecdt.substr(0, 8));
  605. model.makeValue("/root/main/trmsinfo/c2ordinfo[" + sSetRow + "]/trhtextm", vExecdt.substr(8, 4));
  606. model.makeValue("/root/main/trmsinfo/c2ordinfo[" + sSetRow + "]/trhteddt", vCnfmdt.substr(0, 8));
  607. model.makeValue("/root/main/trmsinfo/c2ordinfo[" + sSetRow + "]/trhtedtm", vCnfmdt.substr(8, 4));
  608. model.makeValue("/root/main/trmsinfo/c2ordinfo[" + sSetRow + "]/trhtrdrt", vRsltrept);
  609. }
  610. }
  611. datagrid1.refresh();
  612. grd_c2ordlist.visible = false;
  613. ]]>
  614. </script>
  615. <script type="javascript" ev:event="onmousedown">
  616. <![CDATA[
  617. if (event.button == 3) {
  618. grd_c2ordlist.visible = false;
  619. }
  620. ]]>
  621. </script-->
  622. </datagrid>
  623. <button id="button63" class="btn2_letter2" style="left:204px; top:4px; width:42px; height:19px; ">
  624. <caption>확인</caption>
  625. <script type="javascript" ev:event="DOMActivate">
  626. <![CDATA[
  627. //var row = grd_c2ordlist.mouseRow;
  628. for (var i = 1; i < grd_erordlist.rows; i++) {
  629. if (model.getValue("/root/temp/erordinfo/erordlist[" + i + "]/sel") == "Y") {
  630. var vPrcpnm = model.getValue("/root/temp/erordinfo/erordlist[" + i + "]/prcpnm");
  631. var vPrcpdd = model.getValue("/root/temp/erordinfo/erordlist[" + i + "]/prcpdd");
  632. var vAcptdt = model.getValue("/root/temp/erordinfo/erordlist[" + i + "]/acptdt");
  633. var vExecdt = model.getValue("/root/temp/erordinfo/erordlist[" + i + "]/execdt");
  634. grd_sumordlist.addRow();
  635. var sSetRow = grd_sumordlist.rows - grd_sumordlist.fixedRows;
  636. model.makeValue("/root/main/suminfo/ordlist[" + sSetRow + "]/prcpdd", vPrcpdd);
  637. model.makeValue("/root/main/suminfo/ordlist[" + sSetRow + "]/prcpnm", vPrcpnm);
  638. model.makeValue("/root/main/suminfo/ordlist[" + sSetRow + "]/acptdt", vAcptdt );
  639. model.makeValue("/root/main/suminfo/ordlist[" + sSetRow + "]/execdt", vExecdt);
  640. }
  641. }
  642. grd_sumordlist.refresh();
  643. group2.visible = false;
  644. ]]>
  645. </script>
  646. </button>
  647. <button id="button64" class="btn2_letter2" style="left:248px; top:4px; width:42px; height:19px; ">
  648. <caption>취소</caption>
  649. <script type="javascript" ev:event="DOMActivate">
  650. <![CDATA[
  651. group2.visible = false;
  652. ]]>
  653. </script>
  654. </button>
  655. </group>
  656. <button id="button6" class="btn5_letter4" style="left:570px; top:429px; width:64px; height:19px; ">
  657. <caption>전체선택</caption>
  658. <script type="javascript" ev:event="DOMActivate">
  659. <![CDATA[
  660. var cnt = grd_sumordlist.rows;
  661. for (var i = 1; i < cnt; i++) {
  662. model.setValue("/root/main/suminfo/ordlist[" + i + "]/stat", "Y");
  663. var rnum = Math.floor(Math.random() * 10) + 1;
  664. if (rnum < 5) {
  665. rnum += 5;
  666. }
  667. var curdd = getCurrentDate();
  668. var curtm = getCurrentTime().substr(0, 4);
  669. var execdt = grd_sumordlist.valueMatrix(i, grd_sumordlist.colRef("execdt"));
  670. var senddt = "", arrvdt = "";
  671. if (execdt == "") {
  672. senddt = curdd + curtm;
  673. } else {
  674. var tmpdt = execdt.toDate("YYYYMMDDhhmm");
  675. senddt = tmpdt.getAddDate(-rnum, "m").getDateFormat("YYYYMMDDhhmm");
  676. }
  677. grd_sumordlist.valueMatrix(i, grd_sumordlist.colRef("senddt")) = senddt;
  678. if (execdt == "") {
  679. arrvdt = curdd + curtm;
  680. } else {
  681. var tmpdt = execdt.toDate("YYYYMMDDhhmm");
  682. arrvdt = tmpdt.getAddDate(rnum, "m").getDateFormat("YYYYMMDDhhmm");
  683. }
  684. grd_sumordlist.valueMatrix(i, grd_sumordlist.colRef("arrvdt")) = arrvdt;
  685. }
  686. grd_sumordlist.refresh();
  687. ]]>
  688. </script>
  689. </button>
  690. <button id="button8" class="btn5_letter2" style="left:700px; top:429px; width:42px; height:19px; ">
  691. <caption>확대</caption>
  692. <script type="javascript" ev:event="DOMActivate">
  693. <![CDATA[
  694. grd_sumordlist.attribute("height") = "300";
  695. ]]>
  696. </script>
  697. </button>
  698. <button id="button9" class="btn5_letter2" style="left:743px; top:429px; width:42px; height:19px; ">
  699. <caption>축소</caption>
  700. <script type="javascript" ev:event="DOMActivate">
  701. <![CDATA[
  702. grd_sumordlist.attribute("height") = "132";
  703. ]]>
  704. </script>
  705. </button>
  706. <datagrid id="grd_sumordlist" nodeset="/root/main/suminfo/ordlist" autoresize="true" caption="^처방일^prcpno^처방명^보낸시간^접수일시^시행일시^검사 후 도착시간" colsep="^" colwidth="20, 70, 0, 235, 120, 100, 100, 120" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:453px; width:784px; height:107px; ">
  707. <col checkvalue="Y,N" ref="stat" type="checkbox"/>
  708. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  709. <col ref="prcpno"/>
  710. <col ref="prcpnm"/>
  711. <col ref="senddt" type="inputbutton" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  712. <col ref="acptdt" format="yyyy-mm-dd hh:nn"/>
  713. <col ref="execdt" format="yyyy-mm-dd hh:nn"/>
  714. <col ref="arrvdt" type="inputbutton" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  715. <script type="javascript" ev:event="onbuttonclick">
  716. <![CDATA[
  717. var rnum = Math.floor(Math.random() * 10) + 1;
  718. if (rnum < 5) {
  719. rnum += 5;
  720. }
  721. if (grd_sumordlist.mouseRow > 0) {
  722. var curdd = getCurrentDate();
  723. var curtm = getCurrentTime().substr(0, 4);
  724. var execdt = grd_sumordlist.valueMatrix(grd_sumordlist.mouseRow, grd_sumordlist.colRef("execdt"));
  725. var senddt = "", arrvdt = "";
  726. if (grd_sumordlist.mouseCol == grd_sumordlist.colRef("senddt")) {
  727. if (execdt == "") {
  728. senddt = curdd + curtm;
  729. } else {
  730. var tmpdt = execdt.toDate("YYYYMMDDhhmm");
  731. senddt = tmpdt.getAddDate(-rnum, "m").getDateFormat("YYYYMMDDhhmm");
  732. }
  733. grd_sumordlist.valueMatrix(grd_sumordlist.mouseRow, grd_sumordlist.colRef("senddt")) = senddt;
  734. }
  735. if (grd_sumordlist.mouseCol == grd_sumordlist.colRef("arrvdt")) {
  736. if (execdt == "") {
  737. arrvdt = curdd + curtm;
  738. } else {
  739. var tmpdt = execdt.toDate("YYYYMMDDhhmm");
  740. arrvdt = tmpdt.getAddDate(rnum, "m").getDateFormat("YYYYMMDDhhmm");
  741. }
  742. grd_sumordlist.valueMatrix(grd_sumordlist.mouseRow, grd_sumordlist.colRef("arrvdt")) = arrvdt;
  743. }
  744. //grd_sumordlist.valueMatrix(grd_sumordlist.mouseRow, grd_sumordlist.mouseCol) = ;
  745. grd_sumordlist.refresh();
  746. }
  747. ]]>
  748. </script>
  749. <script type="javascript" ev:event="onclick">
  750. <![CDATA[
  751. var i = grd_sumordlist.row;
  752. if (i > 0 && model.getValue("/root/main/suminfo/ordlist[" + i + "]/stat") == "Y") {
  753. var rnum = Math.floor(Math.random() * 10) + 1;
  754. if (rnum < 5) {
  755. rnum += 5;
  756. }
  757. var curdd = getCurrentDate();
  758. var curtm = getCurrentTime().substr(0, 4);
  759. var execdt = grd_sumordlist.valueMatrix(i, grd_sumordlist.colRef("execdt"));
  760. var senddt = "", arrvdt = "";
  761. if (execdt == "") {
  762. senddt = curdd + curtm;
  763. } else {
  764. var tmpdt = execdt.toDate("YYYYMMDDhhmm");
  765. senddt = tmpdt.getAddDate(-rnum, "m").getDateFormat("YYYYMMDDhhmm");
  766. }
  767. grd_sumordlist.valueMatrix(i, grd_sumordlist.colRef("senddt")) = senddt;
  768. if (execdt == "") {
  769. arrvdt = curdd + curtm;
  770. } else {
  771. var tmpdt = execdt.toDate("YYYYMMDDhhmm");
  772. arrvdt = tmpdt.getAddDate(rnum, "m").getDateFormat("YYYYMMDDhhmm");
  773. }
  774. grd_sumordlist.valueMatrix(i, grd_sumordlist.colRef("arrvdt")) = arrvdt;
  775. grd_sumordlist.refresh();
  776. }
  777. ]]>
  778. </script>
  779. </datagrid>
  780. <button id="button10" class="btn5_letter4" style="left:635px; top:429px; width:64px; height:19px; ">
  781. <caption>선택취소</caption>
  782. <script type="javascript" ev:event="DOMActivate">
  783. <![CDATA[
  784. var cnt = grd_sumordlist.rows;
  785. for (var i = 1; i < cnt; i++) {
  786. model.setValue("/root/main/suminfo/ordlist[" + i + "]/stat", "N");
  787. }
  788. grd_sumordlist.refresh();
  789. ]]>
  790. </script>
  791. </button>
  792. <bool id="bool1" checkvalue="Y,N" ref="/root/main/suminfo/patinfo/outgd1" style="left:130px; top:815px; width:25px; height:20px; "/>
  793. <caption id="caption5" style="left:152px; top:815px; width:45px; height:20px; ">소견서</caption>
  794. <bool id="bool2" checkvalue="Y,N" ref="/root/main/suminfo/patinfo/outgd2" style="left:200px; top:815px; width:20px; height:20px; "/>
  795. <caption id="caption31" style="left:218px; top:815px; width:45px; height:20px; ">퇴원약</caption>
  796. <bool id="bool3" checkvalue="Y,N" ref="/root/main/suminfo/patinfo/outgd3" style="left:270px; top:815px; width:20px; height:20px; "/>
  797. <caption id="caption36" style="left:288px; top:815px; width:55px; height:20px; ">CD Copy</caption>
  798. <bool id="bool4" checkvalue="Y,N" ref="/root/main/suminfo/patinfo/outgd4" style="left:350px; top:815px; width:20px; height:20px; "/>
  799. <caption id="caption53" style="left:370px; top:815px; width:85px; height:20px; ">의무기록 사본</caption>
  800. <caption id="caption56" class="cell_1" style="left:532px; top:23px; width:100px; height:21px; vertical-align:middle; ">보험유형</caption>
  801. <group id="group4" disabled="true" style="left:0px; top:611px; width:790px; height:153px; ">
  802. <line id="line128" class="line_3" style="x1:0px; y1:150px; x2:790px; y2:150px; "/>
  803. <line id="line73" class="line_3" style="x1:1px; y1:0px; x2:790px; y2:0px; "/>
  804. <caption id="caption60" class="cell_2" style="left:135px; top:126px; width:109px; height:24px; text-align:center; ">GCS점수(전체)</caption>
  805. <line id="line31" class="line_2" style="x1:107px; y1:125px; x2:790px; y2:125px; "/>
  806. <caption id="caption62" class="cell_1" style="left:135px; top:76px; width:109px; height:24px; text-align:center; ">소아 언어(verbal)</caption>
  807. <caption id="caption215" class="cell_1" style="left:135px; top:1px; width:109px; height:24px; text-align:center; ">sadative 여부</caption>
  808. <caption id="caption63" style="left:247px; top:127px; width:387px; height:20px; font-weight:bold; ">GCS 1(눈) 점수 + GCS 2(언어) 점수 + GCS 3(운동) 점수 =</caption>
  809. <caption id="caption64" style="left:700px; top:129px; width:15px; height:20px; ">점</caption>
  810. <caption id="caption65" class="cell_1" style="left:135px; top:101px; width:109px; height:24px; text-align:center; ">운동(moter)</caption>
  811. <select1 id="combo2" ref="/root/main/suminfo/patinfo/gcse" disabled="true" navindex="66" appearance="minimal" style="left:246px; top:29px; width:343px; height:19px; ">
  812. <choices>
  813. <item>
  814. <label>1점: 전혀 눈을 뜨지 않음(No eye opening)</label>
  815. <value>1</value>
  816. </item>
  817. <item>
  818. <label>2점: 통증 자극에 눈을 뜸(Eye opening to pain)</label>
  819. <value>2</value>
  820. </item>
  821. <item>
  822. <label>3점: 불러서 눈을 뜸(Eye opening to verbal command)</label>
  823. <value>3</value>
  824. </item>
  825. <item>
  826. <label>4점: 자발적으로 눈을 뜸(Eyes oopen spontaneously)</label>
  827. <value>4</value>
  828. </item>
  829. <item>
  830. <label>측정하지 않음</label>
  831. <value>9</value>
  832. </item>
  833. <item>
  834. <label>의식이 없거나 안대착용, 안검부종 등으로 관찰 불가</label>
  835. <value>C</value>
  836. </item>
  837. </choices>
  838. </select1>
  839. <select1 id="combo3" ref="/root/main/suminfo/patinfo/gcsv" disabled="true" navindex="67" appearance="minimal" style="left:246px; top:54px; width:343px; height:19px; ">
  840. <choices>
  841. <item>
  842. <label>1점: 전혀 반응이 없음(No verbal response)</label>
  843. <value>1</value>
  844. </item>
  845. <item>
  846. <label>2점: 이해 불명의 말을 함(Incomprehensible sounds)</label>
  847. <value>2</value>
  848. </item>
  849. <item>
  850. <label>3점: 용어 사용이 잘못되어 있음(Inappropriate words)</label>
  851. <value>3</value>
  852. </item>
  853. <item>
  854. <label>4점: 대화가 혼돈되어 있음(Confused)</label>
  855. <value>4</value>
  856. </item>
  857. <item>
  858. <label>5점: 지남력이 있음(Orientated)</label>
  859. <value>5</value>
  860. </item>
  861. <item>
  862. <label>측정하지 않음</label>
  863. <value>9</value>
  864. </item>
  865. <item>
  866. <label>기관절개, 삽관등으로 관찰불가</label>
  867. <value>T</value>
  868. </item>
  869. </choices>
  870. </select1>
  871. <select1 id="radio29" ref="/root/main/suminfo/patinfo/gcss" navindex="133" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:247px; top:3px; width:128px; height:20px; border-style:none; ">
  872. <choices>
  873. <item>
  874. <label>유</label>
  875. <value>Y</value>
  876. </item>
  877. <item>
  878. <label>무</label>
  879. <value>N</value>
  880. </item>
  881. <item>
  882. <label>미상</label>
  883. <value>9</value>
  884. </item>
  885. </choices>
  886. </select1>
  887. <line id="line28" class="line_2" style="x1:107px; y1:75px; x2:790px; y2:75px; "/>
  888. <select1 id="combo4" ref="/root/main/suminfo/patinfo/gcsp" disabled="true" navindex="68" appearance="minimal" style="left:246px; top:79px; width:343px; height:19px; ">
  889. <choices>
  890. <item>
  891. <label>1점: 전혀 반응이 없음(No vocal response to pain)</label>
  892. <value>1</value>
  893. </item>
  894. <item>
  895. <label>2점: 통증에 신음소리를 냄(Moans to pain)</label>
  896. <value>2</value>
  897. </item>
  898. <item>
  899. <label>3점: 통증에 소리를 내어 움(Cries to pain)</label>
  900. <value>3</value>
  901. </item>
  902. <item>
  903. <label>4점: 평소 보다 저하된 언어능력을 보이거나 자발적으로 움</label>
  904. <value>4</value>
  905. </item>
  906. <item>
  907. <label>5점: 의식이 명료한 채로 적절하게 옹알거리거나 말함</label>
  908. <value>5</value>
  909. </item>
  910. <item>
  911. <label>측정하지 않음</label>
  912. <value>9</value>
  913. </item>
  914. <item>
  915. <label>기관절개, 삽관 등으로 관찰불가</label>
  916. <value>T</value>
  917. </item>
  918. </choices>
  919. </select1>
  920. <input id="input37" ref="/root/main/suminfo/patinfo/gcst" disabled="true" navindex="70" style="left:644px; top:129px; width:56px; height:19px; "/>
  921. <caption id="caption58" class="cell_1" style="left:135px; top:26px; width:109px; height:24px; text-align:center; ">눈(eye)</caption>
  922. <line id="line29" class="line_2" style="x1:107px; y1:100px; x2:790px; y2:100px; "/>
  923. <select1 id="combo5" ref="/root/main/suminfo/patinfo/gcsm" disabled="true" navindex="69" appearance="minimal" style="left:246px; top:104px; width:343px; height:19px; ">
  924. <choices>
  925. <item>
  926. <label>1점: 반응이 없음(No motor response)</label>
  927. <value>1</value>
  928. </item>
  929. <item>
  930. <label>2점: 이상 신전 반응(Extension to pain)</label>
  931. <value>2</value>
  932. </item>
  933. <item>
  934. <label>3점: 이상 굴곡 반응(Flexion to pain)</label>
  935. <value>3</value>
  936. </item>
  937. <item>
  938. <label>4점: 통증 자극에 적극적으로 피하려는 반응을 함(Withdrawal from pain)</label>
  939. <value>4</value>
  940. </item>
  941. <item>
  942. <label>5점: 통증부위를 지적함(Localizing pain)</label>
  943. <value>5</value>
  944. </item>
  945. <item>
  946. <label>6점: 지시에 따라 움직임(Obeys Commands)</label>
  947. <value>6</value>
  948. </item>
  949. <item>
  950. <label>측정하지 않음</label>
  951. <value>9</value>
  952. </item>
  953. </choices>
  954. </select1>
  955. <caption id="caption59" class="cell_1" style="left:135px; top:51px; width:109px; height:24px; text-align:center; ">언어(verbal)</caption>
  956. <line id="line3" class="line_2" style="x1:107px; y1:50px; x2:790px; y2:50px; "/>
  957. <button id="button56" class="btn2_letter2" style="left:717px; top:129px; width:42px; height:19px; ">
  958. <caption>계산</caption>
  959. <script type="javascript" ev:event="DOMActivate">
  960. <![CDATA[
  961. var sGCSe = model.getValue("/root/main/suminfo/patinfo/gcse");
  962. var sGCSv = model.getValue("/root/main/suminfo/patinfo/gcsv");
  963. var sGCSp = model.getValue("/root/main/suminfo/patinfo/gcsp");
  964. var sGCSm = model.getValue("/root/main/suminfo/patinfo/gcsm");
  965. var sAge = parseInt(model.getValue("/root/main/suminfo/patinfo/age_int"));
  966. var sTotal = 0;
  967. if (sGCSe == "9" || sGCSe == "C" || sGCSv == "9" || sGCSv == "T" || sGCSp == "9" || sGCSp == "T" || sGCSm == "9") {
  968. sTotal = -1;
  969. } else {
  970. if (sAge < 5) {
  971. sTotal = eval(sGCSe) + eval(sGCSp) + eval(sGCSm);
  972. } else {
  973. sTotal = eval(sGCSe) + eval(sGCSv) + eval(sGCSm);
  974. }
  975. }
  976. model.setValue("/root/main/suminfo/patinfo/gcst", sTotal);
  977. input37.refresh();
  978. ]]>
  979. </script>
  980. </button>
  981. <line id="line127" class="line_2" style="x1:107px; y1:25px; x2:790px; y2:25px; "/>
  982. <caption id="caption57" class="cell_1" style="left:0px; top:0px; width:132px; height:150px; text-align:left; ">퇴실시 GCS 측정</caption>
  983. </group>
  984. <input id="input22" ref="/root/main/suminfo/patinfo/insukindnm" appearance="input" style="left:638px; top:24px; width:154px; height:19px; "/>
  985. <caption id="caption66" class="cell_2" style="left:646px; top:589px; width:60px; height:21px; vertical-align:middle; ">의식수준</caption>
  986. <select1 id="combo1" ref="/root/main/suminfo/patinfo/lastconscious" navindex="66" appearance="minimal" style="left:710px; top:590px; width:75px; height:19px; ">
  987. <choices>
  988. <item>
  989. <label>alert</label>
  990. <value>alert</value>
  991. </item>
  992. <item>
  993. <label>confusion</label>
  994. <value>confusion</value>
  995. </item>
  996. <item>
  997. <label>drowsy</label>
  998. <value>drowsy</value>
  999. </item>
  1000. <item>
  1001. <label>stuporous</label>
  1002. <value>stuporous</value>
  1003. </item>
  1004. <item>
  1005. <label>semicoma</label>
  1006. <value>semicoma</value>
  1007. </item>
  1008. <item>
  1009. <label>coma</label>
  1010. <value>coma</value>
  1011. </item>
  1012. <item>
  1013. <label>expire</label>
  1014. <value>expire</value>
  1015. </item>
  1016. </choices>
  1017. </select1>
  1018. </group>
  1019. <group id="group3" style="left:0px; top:20px; width:795px; height:35px; ">
  1020. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:795px; height:35px; "/>
  1021. <button id="btn_srchindxcd" class="btn1_letter2" navindex="5" style="left:597px; top:7px; width:56px; height:22px; ">
  1022. <caption>조회</caption>
  1023. <script type="javascript" ev:event="DOMActivate">
  1024. <![CDATA[
  1025. model.setValue("/root/cond/orddd", "");
  1026. fSrchErPatInfo();
  1027. ]]>
  1028. </script>
  1029. </button>
  1030. <caption id="caption40" class="search_name" style="left:9px; top:8px; width:86px; height:17px; vertical-align:middle; ">등록번호 :</caption>
  1031. <input id="ipt_pid" ref="/root/cond/pid" class="input_s_essential" navindex="1" style="left:100px; top:9px; width:75px; height:19px; font-weight:bold; ">
  1032. <script type="javascript" ev:event="onkeydown">
  1033. <![CDATA[
  1034. if(event.keyCode == "13") {
  1035. setInputNodeCurText();
  1036. model.setValue("/root/cond/orddd", "");
  1037. fSrchErPatInfo();
  1038. }
  1039. ]]>
  1040. </script>
  1041. </input>
  1042. <line id="line27" class="line_4" style="x1:483px; y1:7px; x2:483px; y2:29px; "/>
  1043. <caption id="caption30" ref="/root/main/suminfo/patinfo/sa" style="left:405px; top:8px; width:62px; height:20px; font-family:돋움; "/>
  1044. <caption id="caption34" ref="/root/main//suminfo/patinfo/hngnm" style="left:250px; top:8px; width:60px; height:20px; font-family:돋움; "/>
  1045. <caption id="caption37" class="search_name" style="left:312px; top:8px; width:95px; height:17px; ">성별/나이:</caption>
  1046. <caption id="caption29" class="search_name" style="left:182px; top:8px; width:68px; height:17px; ">환자명:</caption>
  1047. <button id="button3" class="btn1_letter4" style="left:709px; top:7px; width:80px; height:22px; ">
  1048. <caption>인증저장</caption>
  1049. <script type="javascript" ev:event="DOMActivate">
  1050. <![CDATA[
  1051. fSave("certi");
  1052. ]]>
  1053. </script>
  1054. </button>
  1055. <button id="button1" class="btn2_letter3" style="left:542px; top:9px; width:53px; height:19px; ">
  1056. <caption>Triage</caption>
  1057. <script type="javascript" ev:event="DOMActivate">
  1058. <![CDATA[
  1059. modal ( "SPMNE04400" );
  1060. ]]>
  1061. </script>
  1062. </button>
  1063. <button id="button7" class="btn2_letter3" style="left:488px; top:9px; width:53px; height:19px; ">
  1064. <caption>NEDIS</caption>
  1065. <script type="javascript" ev:event="DOMActivate">
  1066. <![CDATA[
  1067. // setParameter("SPMMO07500_orddd", model.getValue("/root/main/ertriage/ertriage/orddd"));
  1068. // setParameter("SPMMO07500_cretno", model.getValue("/root/main/ertriage/ertriage/cretno"));
  1069. // open("SPMMO07500", 1, 0, 0, "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; min:hidden, max:hidden;");
  1070. setParameter("NEDIS_pid", model.getValue("/root/cond/pid"));
  1071. setParameter("NEDIS_orddd", model.getValue("/root/cond/orddd"));
  1072. modal("SMMNE07400");
  1073. ]]>
  1074. </script>
  1075. </button>
  1076. <button id="button2" class="btn1_letter2" navindex="5" style="left:653px; top:7px; width:56px; height:22px; ">
  1077. <caption>저장</caption>
  1078. <script type="javascript" ev:event="DOMActivate">
  1079. <![CDATA[
  1080. fSave();
  1081. ]]>
  1082. </script>
  1083. </button>
  1084. </group>
  1085. <line id="line13" class="line_1" style="x1:0px; y1:57px; x2:795px; y2:57px; "/>
  1086. <datagrid id="grd_erpatlist" nodeset="/root/main/erpatinfo/erpatlist" visibility="hidden" caption="입원일^재방문횟수^내원일시^내원일시^퇴실일시^퇴실일시^^" colsep="^" colwidth="80, 70, 80, 50, 80, 50, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:100px; top:50px; width:430px; height:130px; ">
  1087. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  1088. <col ref="visitno" style="text-align:center; "/>
  1089. <col ref="chosdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1090. <col ref="chostm" format="hh:nn" style="text-align:center; "/>
  1091. <col ref="outrmdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1092. <col ref="outrmtm" format="hh:nn" style="text-align:center; "/>
  1093. <col ref="orddeptcd"/>
  1094. <col ref="orddrid"/>
  1095. <script type="javascript" ev:event="ondblclick">
  1096. <![CDATA[
  1097. var row = grd_erpatlist.row;
  1098. var pid = "";
  1099. var indd = "";
  1100. var cretno = "";
  1101. var visitno = "";
  1102. var chosdd = "";
  1103. var chostm = "";
  1104. var outrmdd = "";
  1105. var outrmtm = "";
  1106. var orddetpcd, orddrid;
  1107. if ( row > 0) {
  1108. pid = model.getValue("/root/main/erpatinfo/erpatlist[" + row + "]/pid");
  1109. indd = model.getValue("/root/main/erpatinfo/erpatlist[" + row + "]/indd");
  1110. cretno = model.getValue("/root/main/erpatinfo/erpatlist[" + row + "]/cretno");
  1111. visitno = model.getValue("/root/main/erpatinfo/erpatlist[" + row + "]/visitno");
  1112. chosdd = model.getValue("/root/main/erpatinfo/erpatlist[" + row + "]/chosdd");
  1113. chostm = model.getValue("/root/main/erpatinfo/erpatlist[" + row + "]/chostm");
  1114. outrmdd = model.getValue("/root/main/erpatinfo/erpatlist[" + row + "]/outrmdd");
  1115. outrmtm = model.getValue("/root/main/erpatinfo/erpatlist[" + row + "]/outrmtm");
  1116. orddeptcd = model.getValue("/root/main/erpatinfo/erpatlist[" + row + "]/orddeptcd");
  1117. orddrid = model.getValue("/root/main/erpatinfo/erpatlist[" + row + "]/orddrid");
  1118. if (outrmdd == "-" || outrmdd == "" || outrmdd == null ) {
  1119. outrmdd = getCurrentDate();
  1120. outrmtm = getCurrentTime().substr(0, 4);
  1121. }
  1122. model.setValue("/root/cond/pid", pid);
  1123. model.setValue("/root/cond/orddd", indd);
  1124. model.setValue("/root/cond/cretno", cretno);
  1125. model.setValue("/root/cond/visitno", visitno);
  1126. model.setValue("/root/cond/outrmdt", outrmdd + outrmtm);
  1127. model.setValue("/root/cond/orddeptcd", orddeptcd);
  1128. model.setValue("/root/cond/orddrid", orddrid);
  1129. fSearch();
  1130. }
  1131. grd_erpatlist.visible = false;
  1132. ]]>
  1133. </script>
  1134. <script type="javascript" ev:event="onmousedown">
  1135. <![CDATA[
  1136. if (event.button == 3) {
  1137. grd_erpatlist.visible = false;
  1138. }
  1139. ]]>
  1140. </script>
  1141. </datagrid>
  1142. </xhtml:body>
  1143. </xhtml:html>