SMMNW01301_전동기록지.xrw 57 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375
  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. <![CDATA[pid]]>
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <cond>
  12. <pid/>
  13. <indd/>
  14. <cretno/>
  15. <appdd/>
  16. <apptm/>
  17. <instcd/>
  18. <seqno/>
  19. <ward>
  20. <wardcd/>
  21. <wardnm/>
  22. </ward>
  23. <orddeptcd/>
  24. <orddrid/>
  25. <flag/>
  26. </cond>
  27. <transdata>
  28. <transdata>
  29. <pid/>
  30. <pname/>
  31. <psexage/>
  32. <indd/>
  33. <cretno/>
  34. <appdd/>
  35. <apptm/>
  36. <instcd/>
  37. <diagcd/>
  38. <diagnm/>
  39. <drain0/>
  40. <drain1/>
  41. <drain2/>
  42. <drain3/>
  43. <drain4/>
  44. <drug0/>
  45. <drug1/>
  46. <drug2/>
  47. <drug3/>
  48. <drug4/>
  49. <drug5/>
  50. <acmpnydnyn>1</acmpnydnyn>
  51. <acmpnydr/>
  52. <acmpnynr/>
  53. <acmpnyetc/>
  54. <psummary/>
  55. <instrument0/>
  56. <instrument1/>
  57. <instrument2/>
  58. <instrument3/>
  59. <instrument4/>
  60. <instrument5/>
  61. <instrument6/>
  62. <instrument7/>
  63. <instrument8/>
  64. <instrument9/>
  65. <etc_desc/>
  66. <flag/>
  67. <suction_yn>1</suction_yn>
  68. <o2_yn>1</o2_yn>
  69. <o2_amount/>
  70. <o2_method1/>
  71. <o2_method2/>
  72. <o2_method3/>
  73. <o2_method4/>
  74. <o2_method5/>
  75. <o2_method6/>
  76. <o2_method7/>
  77. <o2_method8/>
  78. <adm_method/>
  79. <prewardcd/>
  80. <prewardnm/>
  81. <prestroomcd/>
  82. <bedposcntscd/>
  83. <bedposcnts/>
  84. <phone/>
  85. <wardcd/>
  86. <chngroomcd/>
  87. <phone2/>
  88. <transout_time/>
  89. <transout_id/>
  90. <transout_nm/>
  91. <transin_time/>
  92. <transin_id/>
  93. <transin_nm/>
  94. <pasthistinfo>
  95. <pasthist>
  96. <pasthist>
  97. <genrdd/>
  98. <histspec/>
  99. <remfact/>
  100. </pasthist>
  101. </pasthist>
  102. </pasthistinfo>
  103. </transdata>
  104. <ophist>
  105. <opschedd/>
  106. <opcd/>
  107. <opnm/>
  108. </ophist>
  109. </transdata>
  110. </main>
  111. <send>
  112. <transdata>
  113. <pid/>
  114. <indd/>
  115. <cretno/>
  116. <appdd/>
  117. <apptm/>
  118. <instcd/>
  119. <diagcd/>
  120. <drain0/>
  121. <drain1/>
  122. <drain2/>
  123. <drain3/>
  124. <drain4/>
  125. <drug0/>
  126. <drug1/>
  127. <drug2/>
  128. <drug3/>
  129. <drug4/>
  130. <drug5/>
  131. <acmpnydnyn/>
  132. <acmpnydr/>
  133. <acmpnynr/>
  134. <acmpnyetc/>
  135. <instrument0/>
  136. <instrument1/>
  137. <instrument2/>
  138. <instrument3/>
  139. <instrument4/>
  140. <instrument5/>
  141. <instrument6/>
  142. <instrument7/>
  143. <instrument8/>
  144. <instrument9/>
  145. <psummary/>
  146. <etc_desc/>
  147. <flag/>
  148. <suction_yn/>
  149. <o2_yn/>
  150. <o2_amount/>
  151. <o2_method1/>
  152. <o2_method2/>
  153. <o2_method3/>
  154. <o2_method4/>
  155. <o2_method5/>
  156. <o2_method6/>
  157. <o2_method7/>
  158. <o2_method8/>
  159. <adm_method/>
  160. <prewardcd/>
  161. <bedposcntscd/>
  162. <bedposcnts/>
  163. <wardcd/>
  164. <transout_time/>
  165. <transout_id/>
  166. <transin_time/>
  167. <transin_id/>
  168. </transdata>
  169. </send>
  170. <init>
  171. <ward>
  172. <wardnm/>
  173. <wardcd/>
  174. </ward>
  175. <mlist/>
  176. </init>
  177. <hidden>
  178. </hidden>
  179. </root>
  180. </instance>
  181. <script type="javascript" ev:event="xforms-ready">
  182. <![CDATA[
  183. fInit();
  184. ]]>
  185. </script>
  186. <script type="javascript" ev:event="xforms-close">
  187. <![CDATA[
  188. var param = opener.javascript.getParameter("SMMNW01301_PARAM");
  189. if(param == "SMMNW01100"){
  190. opener.javascript.fGetPatList();
  191. }
  192. ]]>
  193. </script>
  194. <script type="javascript">
  195. <![CDATA[
  196. var vsettime = "";
  197. var xSignPath = "/root/main/signSaveData/saveDataList"; //인증저장관련노드
  198. var certiyn = "N"; //인증저장 반영 유무
  199. var flag = "1"; //전동기록지 "1", 전입기록지 "2"
  200. function fInit() {
  201. var dutplcecd = getUserInfo("dutplcecd");
  202. model.setValue("/root/main/cond/ward/wardcd", dutplcecd);
  203. model.removenode("/root/send/ward");
  204. model.makeValue("/root/send/ward", model.getValue("/root/main/cond/ward"));
  205. submit("TRMNW00101");
  206. model.makeNode("/root/init/mlist")
  207. zbcfGetCodeList( new Array ("M0532"), //과거병력내역_20090406_SMY추가
  208. new Array ("/root/init/mlist") ); //과거병력내역
  209. fgetTransferSummary();
  210. }
  211. function fgetTransferSummary() {
  212. var dutplcecd = getUserInfo("dutplcecd");
  213. var curdate = getCurrentDate();
  214. var curtime = getCurrentTime().substr(0, 4);
  215. var userid = getUserInfo("userid");
  216. var usernm = getUserInfo("usernm");
  217. ipt_transout_time.disabled = true;
  218. ipt_transout_id.disabled = true;
  219. ipt_transout_nm.disabled = true;
  220. ipt_transin_time.disabled = true;
  221. ipt_transin_id.disabled = true;
  222. ipt_transin_nm.disabled = true;
  223. btn_outtime.disabled = true;
  224. btn_intime.disabled = true;
  225. btn_certi.disabled = true;
  226. var pid = opener.javascript.getParameter("SMMNW01301_PID");
  227. var indd = opener.javascript.getParameter("SMMNW01301_INDD");
  228. var cretno = opener.javascript.getParameter("SMMNW01301_CRETNO");
  229. var appdd = opener.javascript.getParameter("SMMNW01301_APPDD");
  230. var apptm = opener.javascript.getParameter("SMMNW01301_APPTM");
  231. var instcd = opener.javascript.getParameter("SMMNW01301_INSTCD");
  232. var seqno = opener.javascript.getParameter("SMMNW01301_SEQNO");
  233. var orddeptcd = opener.javascript.getParameter("SMMNW01301_ORDDEPTCD");
  234. var orddrid = opener.javascript.getParameter("SMMNW01301_ORDDRID");
  235. model.makeValue("root/main/cond/pid", pid);
  236. model.makeValue("root/main/cond/indd", indd);
  237. model.makeValue("root/main/cond/cretno", cretno);
  238. model.makeValue("root/main/cond/appdd", appdd);
  239. model.makeValue("root/main/cond/apptm", apptm);
  240. model.makeValue("root/main/cond/instcd", instcd);
  241. model.makeValue("root/main/cond/seqno", seqno);
  242. model.makeValue("root/main/cond/orddeptcd", orddeptcd);
  243. model.makeValue("root/main/cond/orddrid", orddrid);
  244. model.makeValue("root/main/cond/flag", flag);
  245. submit("TRMNW01303");
  246. var get_pid = model.getValue("root/main/transdata/transdata/pid");
  247. if (get_pid = null || get_pid == "") {
  248. // 저장된 내용이 없다면, 환자의 기본정보를 가져온다.
  249. submit("TRMNW01304");
  250. model.setValue("/root/main/transdata/transdata/transout_time", curdate + curtime);
  251. model.setValue("/root/main/transdata/transdata/transout_id", userid);
  252. model.setValue("/root/main/transdata/transdata/transout_nm", usernm);
  253. model.setValue("/root/main/transdata/transdata/flag", flag);
  254. ipt_transout_time.refresh();
  255. ipt_transout_id.refresh();
  256. ipt_transout_nm.refresh();
  257. ipt_transout_time.disabled = false;
  258. ipt_transout_id.disabled = false;
  259. btn_outtime.disabled = false;
  260. } else {
  261. // 저장된 내용이 있다면...
  262. var get_transin_time = model.getValue("root/main/transdata/transdata/transin_time");
  263. var get_wardcd = model.getValue("root/main/transdata/transdata/wardcd");
  264. // 인수병동 사용자의 경우
  265. if ( get_wardcd == dutplcecd ) {
  266. //인수 기록이 없다면, 인수일시에 현재일시를 세팅해준다.
  267. if ( get_transin_time = null || get_transin_time == "" ) {
  268. model.setValue("/root/main/transdata/transdata/transin_time", curdate + curtime);
  269. model.setValue("/root/main/transdata/transdata/transin_id", userid);
  270. model.setValue("/root/main/transdata/transdata/transin_nm", usernm);
  271. ipt_transin_time.refresh();
  272. ipt_transin_id.refresh();
  273. ipt_transin_nm.refresh();
  274. }
  275. ipt_transin_time.disabled = false;
  276. ipt_transin_id.disabled = false;
  277. btn_intime.disabled = false;
  278. }
  279. }
  280. var prewardcd = model.getValue("/root/main/transdata/transdata/prewardcd");
  281. // 인계병동 사용자의 경우
  282. if ( prewardcd == dutplcecd || getUserInfo("userid") == "ENR" ) {
  283. ipt_transout_time.disabled = false;
  284. ipt_transout_id.disabled = false;
  285. btn_outtime.disabled = false;
  286. model.removenode("/root/send/certinfo");
  287. model.makeValue("/root/send/certinfo/workdd", curdate);
  288. submit("TRMNW01306");
  289. certiyn = model.getValue("main/certinfo/certiyn");
  290. if ( certiyn == "Y" ){
  291. btn_certi.disabled = false;
  292. }
  293. }
  294. if (rdo_o2yn.value == "2") {
  295. ipt_o2_amount.disabled = false;
  296. cxb_o2_method1.disabled = false;
  297. cxb_o2_method2.disabled = false;
  298. cxb_o2_method3.disabled = false;
  299. cxb_o2_method4.disabled = false;
  300. cxb_o2_method5.disabled = false;
  301. cxb_o2_method6.disabled = false;
  302. cxb_o2_method7.disabled = false;
  303. ipt_o2_method8.disabled = false;
  304. }
  305. else
  306. {
  307. ipt_o2_amount.disabled = true;
  308. cxb_o2_method1.disabled = true;
  309. cxb_o2_method2.disabled = true;
  310. cxb_o2_method3.disabled = true;
  311. cxb_o2_method4.disabled = true;
  312. cxb_o2_method5.disabled = true;
  313. cxb_o2_method6.disabled = true;
  314. cxb_o2_method7.disabled = true;
  315. ipt_o2_method8.disabled = true;
  316. }
  317. if(chk_drain0.value == "Y"){
  318. checkbox4.disabled = true;
  319. checkbox5.disabled = true;
  320. checkbox6.disabled = true;
  321. input15.disabled = true;
  322. }else{
  323. checkbox4.disabled = false;
  324. checkbox5.disabled = false;
  325. checkbox6.disabled = false;
  326. input15.disabled = false;
  327. }
  328. if(chk_drug0.value == "Y"){
  329. checkbox3 .disabled = true;
  330. checkbox7 .disabled = true;
  331. checkbox8.disabled = true;
  332. checkbox9.disabled = true;
  333. input1.disabled = true;
  334. }else{
  335. checkbox3.disabled = false;
  336. checkbox7.disabled = false;
  337. checkbox8.disabled = false;
  338. checkbox9.disabled = false;
  339. input1.disabled = false;
  340. }
  341. if (rdo_acmpnydnyn.value == "2") {
  342. checkbox11.disabled = false;
  343. checkbox13.disabled = false;
  344. }else{
  345. checkbox11.disabled = true;
  346. checkbox13.disabled = true;
  347. cxb_o2_method2.disabled = true;
  348. cxb_o2_method3.disabled = true;
  349. cxb_o2_method4.disabled = true;
  350. cxb_o2_method5.disabled = true;
  351. cxb_o2_method6.disabled = true;
  352. cxb_o2_method7.disabled = true;
  353. ipt_o2_method8.disabled = true;
  354. }
  355. if(chk_instrument0.value == "Y"){
  356. chk_instrument1 .disabled = true;
  357. chk_instrument2 .disabled = true;
  358. chk_instrument3.disabled = true;
  359. chk_instrument4.disabled = true;
  360. chk_instrument5.disabled = true;
  361. chk_instrument6 .disabled = true;
  362. chk_instrument7.disabled = true;
  363. chk_instrument8.disabled = true;
  364. ipt_instrument9.disabled = true;
  365. }else{
  366. chk_instrument1 .disabled = false;
  367. chk_instrument2 .disabled = false;
  368. chk_instrument3.disabled = false;
  369. chk_instrument4.disabled = false;
  370. chk_instrument5.disabled = false;
  371. chk_instrument6 .disabled = false;
  372. chk_instrument7.disabled = false;
  373. chk_instrument8.disabled = false;
  374. ipt_instrument9.disabled = false;
  375. }
  376. var bedposcnts = model.getValue("/root/main/transdata/transdata/bedposcnts");
  377. if (bedposcnts == "") {
  378. ipt_bedposcnts.visible = false;
  379. ipt_prestroomcd.visible = true;
  380. } else {
  381. ipt_bedposcnts.visible = true;
  382. ipt_prestroomcd.visible = false;
  383. }
  384. model.removenode("/root/send/prcpinfo");
  385. model.makeValue("/root/send/prcpinfo/instcd", instcd);
  386. model.makeValue("/root/send/prcpinfo/pid", pid);
  387. model.makeValue("/root/send/prcpinfo/indd", indd);
  388. model.makeValue("/root/send/prcpinfo/cretno", cretno);
  389. model.makeValue("/root/send/prcpinfo/prewardcd", prewardcd);
  390. submit("TRMNW01307");
  391. }
  392. function fgetUserName(userid, appdd) {
  393. model.makeValue("/root/send/temp/userid", userid);
  394. model.makeValue("/root/send/temp/appdd", appdd);
  395. submit("TRMNW01305");
  396. }
  397. function fSave(chkSave) {
  398. model.makeNode("/root/main/transdata/transdata/ophistinfo/ophist");
  399. model.copyNode("/root/main/transdata/transdata/ophistinfo/ophist", "/root/main/transdata/ophist");
  400. model.makeNode("/root/send/transdata");
  401. model.copyNode("/root/send/transdata", "/root/main/transdata/transdata");
  402. var send_transout_time = model.getValue("/root/send/transdata/transout_time");
  403. var send_transout_id = model.getValue("/root/send/transdata/transout_id");
  404. var instcd = model.getValue("/root/main/cond/instcd");
  405. var pid = model.getValue("/root/main/cond/pid");
  406. var indd = model.getValue("/root/main/cond/indd");
  407. var cretno = model.getValue("/root/main/cond/cretno");
  408. var prewardcd = model.getValue("/root/main/transdata/transdata/prewardcd");
  409. var chngwardcd = model.getValue("/root/main/transdata/transdata/wardcd");
  410. var dutplcecd = getUserInfo("dutplcecd");
  411. if ((send_transout_time == null || send_transout_time == "") || (send_transout_id == null || send_transout_id == "")) {
  412. messageBox("인계일자, 인계자 정보는 필수 입력사항 입니다.", "I");
  413. } else {
  414. if ( submit("TXMNW01301") ) {
  415. if ( certiyn == "Y" ) {
  416. if( prewardcd == dutplcecd || getUserInfo("userid") == "ENR"){ // 인계병동 사용자의 경우
  417. messageBox("Trasfer Summary 내용이 저장되었습니다.\r\n\r\n반드시 인증저장 하시기 바랍니다.", "I000");
  418. }else{
  419. messageBox("Trasfer Summary 내용이 저장되었습니다.", "I000");
  420. }
  421. } else {
  422. if(prewardcd == dutplcecd || getUserInfo("userid") == "ENR"){ // 인계병동 사용자의 경우
  423. messageBox("Trasfer Summary 내용이 저장되었습니다.", "I000");
  424. if(model.getValue("/root/main/prcpinfo/prcpyn") == "Y"){ // 부서이관 할 처방이 있는경우
  425. setParameter("PARAM1", instcd);
  426. setParameter("PARAM2", pid);
  427. setParameter("PARAM3", indd);
  428. setParameter("PARAM4", cretno);
  429. setParameter("PARAM5", prewardcd);
  430. setParameter("PARAM6", chngwardcd);
  431. open("SPMNW19001","1", "900", "450");
  432. }
  433. }else{
  434. messageBox("Trasfer Summary 내용이 저장되었습니다.", "I000");
  435. }
  436. }
  437. fgetTransferSummary();
  438. }
  439. }
  440. if(chkSave == "2")
  441. {
  442. //var instcd = getUserInfo("dutplceinstcd");
  443. //if(instcd == "031"){ //칠곡도 적용되게 수정
  444. setParameter("SMMNW01302_PID", model.getValue("root/main/cond/pid"));
  445. setParameter("SMMNW01302_INDD", model.getValue("/root/main/cond/indd"));
  446. setParameter("SMMNW01302_CRETNO", model.getValue("/root/main/cond/cretno"));
  447. setParameter("SMMNW01302_APPDD", model.getValue("/root/main/cond/appdd"));
  448. setParameter("SMMNW01302_APPTM", model.getValue("/root/main/cond/apptm"));
  449. setParameter("SMMNW01302_INSTCD", model.getValue("/root/main/cond/instcd"));
  450. setParameter("SMMNW01302_SEQNO", model.getValue("/root/main/cond/seqno"));
  451. setParameter("SMMNW01302_ORDDEPTCD", model.getValue("/root/main/cond/orddeptcd"));
  452. setParameter("SMMNW01302_ORDDRID", model.getValue("/root/main/cond/orddrid"));
  453. modal("SMMNW01302", 0, 0, 150);
  454. //}
  455. }
  456. }
  457. function fCertiSave() {
  458. model.makeNode("/root/main/transdata/transdata/ophistinfo/ophist");
  459. model.copyNode("/root/main/transdata/transdata/ophistinfo/ophist", "/root/main/transdata/ophist");
  460. model.makeNode("/root/send/transdata");
  461. model.copyNode("/root/send/transdata", "/root/main/transdata/transdata");
  462. var send_transout_time = model.getValue("/root/send/transdata/transout_time");
  463. var send_transout_id = model.getValue("/root/send/transdata/transout_id");
  464. var instcd = model.getValue("/root/main/cond/instcd");
  465. var pid = model.getValue("/root/main/cond/pid");
  466. var indd = model.getValue("/root/main/cond/indd");
  467. var cretno = model.getValue("/root/main/cond/cretno");
  468. var prewardcd = model.getValue("/root/main/transdata/transdata/prewardcd");
  469. var chngwardcd = model.getValue("/root/main/transdata/transdata/wardcd");
  470. var dutplcecd = getUserInfo("dutplcecd");
  471. if ((send_transout_time == null || send_transout_time == "") || (send_transout_id == null || send_transout_id == "")) {
  472. messageBox("인계일자, 인계자 정보는 필수 입력사항 입니다.", "I");
  473. } else {
  474. model.removeNode("/root/main/signSaveData");
  475. model.makeNode("/root/main/signSaveData");
  476. model.copyNode("/root/main/signSaveData", "/root/main/transdata/transdata");
  477. if (!fSign()) return;
  478. if ( submit("TXMNW01301") ) {
  479. messageBox("Trasfer Summary 인증저장이 완료되었습니다.", "I000");
  480. if(prewardcd == dutplcecd || getUserInfo("userid") == "ENR"){ //인계병동인경우
  481. if(model.getValue("/root/main/prcpinfo/prcpyn") == "Y"){ // 부서이관 할 처방이 있는경우
  482. setParameter("PARAM1", instcd);
  483. setParameter("PARAM2", pid);
  484. setParameter("PARAM3", indd);
  485. setParameter("PARAM4", cretno);
  486. setParameter("PARAM5", prewardcd);
  487. setParameter("PARAM6", chngwardcd);
  488. open("SPMNW19001","1", "900", "450");
  489. }
  490. }
  491. fgetTransferSummary();
  492. }
  493. }
  494. }
  495. function fSign() {
  496. Sign.certreload = false ; // 전자서명 호출시 인증저장 버튼을 누늘때마다 인증서가 뜨도록 처리
  497. //Sign.certchkflag = "Y";
  498. if( Sign.signprocess() == true ){
  499. var sPid = model.getValue("/root/main/cond/pid");
  500. var sIndd = model.getValue("/root/main/cond/indd");
  501. var sCretNo = model.getValue("/root/main/cond/cretno");
  502. var sOrdDeptCd = model.getValue("/root/main/cond/orddeptcd");
  503. var sOrdDrId = model.getValue("/root/main/cond/orddrid");
  504. // 전자인증 관련 환자 인적 정보를 보내줌.
  505. model.makeValue("/root/send/signdata/pid", sPid ); //등록번호
  506. model.makeValue("/root/send/signdata/orddd", sIndd); //입원일자
  507. model.makeValue("/root/send/signdata/signno", ""); //서명번호
  508. model.makeValue("/root/send/signdata/cretno", sCretNo); //생성번호
  509. model.makeValue("/root/send/signdata/recdd", getCurrentDate()); // 실제 기록이 이루어진 기록일자
  510. model.makeValue("/root/send/signdata/rectm", getCurrentTime()); //실제 기록이 이루어진 기록시간
  511. model.makeValue("/root/send/signdata/recsaveflag", "Y"); //전자서명 인적정보 변경여부(기록일시 변경되는 경우 : Y, 그외 : N)
  512. model.makeValue("/root/send/signdata/signflag", "02" ); //서명자료구분 (01 : 진료, 02 : 간호, 03 : LIS, 04 : 진료지원)
  513. model.makeValue("/root/send/signdata/signgenrflag", "I" ); //외래/입원구분(코드정의서 M0010 참조)
  514. model.makeValue("/root/send/signdata/formcd", "1100011878" ); //각 기록지별 서식코드
  515. model.makeValue("/root/send/signdata/orddeptcd", sOrdDeptCd); //진료부서코드
  516. model.makeValue("/root/send/signdata/orddrid", sOrdDrId ); //진료의사ID
  517. model.makeValue("/root/send/signdata/dispyn", "Y"); //기록뷰어에는 조회안되도록
  518. // 인증할 데이터 정보(미기록 노드 제거된 정보)
  519. // 미기록 노드 제거전 원본 노드 정보 : Sign.signedInfos[3]
  520. model.makeValue("/root/send/signdata/signbfcnts", Sign.signedInfos[1]);
  521. // 공인인증 처리후 데이터
  522. model.makeValue("/root/send/signdata/signaftcnts", Sign.signedInfos[2]);
  523. } else{
  524. return false;
  525. }
  526. model.makeValue("/root/send/signdata/screenid", getScreenID());
  527. return true;
  528. }
  529. function fMake_SignData() {
  530. Sign.addnode("/root/main/signSaveData");
  531. }
  532. function fsetzoomToggle1(state){
  533. if(state) {
  534. btn_zoom.attribute("text") = "축소";
  535. textarea2.attribute("height")= "126px";
  536. } else {
  537. btn_zoom.attribute("text") = "확대";
  538. textarea2.attribute("height")= "52px";
  539. }
  540. }
  541. function fsetzoomToggle2(state){
  542. if(state) {
  543. btn_zoom2.attribute("text") = "축소";
  544. textarea3.attribute("height")= "144px";
  545. } else {
  546. btn_zoom2.attribute("text") = "확대";
  547. textarea3.attribute("height")= "62px";
  548. }
  549. }
  550. ]]>
  551. </script>
  552. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  553. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  554. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  555. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  556. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  557. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  558. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  559. <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
  560. <submission id="TRMNW00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init"/>
  561. <submission id="TRMNW01303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/transdata"/>
  562. <submission id="TRMNW01304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/transdata"/>
  563. <submission id="TRMNW01305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/temp" resultref="/root/main/temp"/>
  564. <submission id="TRMNW01306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/certinfo" resultref="/root/main/certinfo"/>
  565. <submission id="TRMNW01307" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prcpinfo" resultref="/root/main/prcpinfo"/>
  566. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  567. <submission id="TXMNW01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root"/>
  568. </model>
  569. </xhtml:head>
  570. <xhtml:body pagewidth="705" pageheight="840" style="font-weight:bold; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  571. <group id="group1" class="datagrid2" scroll="auto" style="left:0px; top:0px; width:685px; height:830px; ">
  572. <caption id="caption28" class="tit_2" style="left:15px; top:6px; width:200px; height:13px; ">전동기록지</caption>
  573. <line id="line1" class="line_1" style="x1:14px; y1:24px; x2:664px; y2:24px; "/>
  574. <caption id="caption29" class="cell_1" style="left:14px; top:29px; width:79px; height:20px; vertical-align:middle; ">등록번호</caption>
  575. <caption id="caption30" class="cell_1" style="left:14px; top:275px; width:79px; height:62px; vertical-align:middle; ">
  576. <![CDATA[환자 상태
  577. 요약]]>
  578. </caption>
  579. <input id="input11" ref="/root/main/transdata/transdata/pid" disabled="true" imemode="hangul" maxlength="300" style="left:95px; top:29px; width:90px; height:19px; "/>
  580. <caption id="caption31" class="cell_1" style="left:254px; top:29px; width:79px; height:20px; vertical-align:middle; ">이 름</caption>
  581. <input id="input12" ref="/root/main/transdata/transdata/pname" disabled="true" imemode="hangul" maxlength="300" style="left:335px; top:29px; width:90px; height:19px; "/>
  582. <caption id="caption32" class="cell_1" style="left:489px; top:29px; width:79px; height:20px; vertical-align:middle; ">성별/나이</caption>
  583. <input id="input13" ref="/root/main/transdata/transdata/psexage" disabled="true" imemode="hangul" maxlength="300" style="left:570px; top:29px; width:90px; height:19px; "/>
  584. <caption id="caption33" class="cell_1" style="left:14px; top:51px; width:79px; height:20px; vertical-align:middle; ">진 단 명</caption>
  585. <input id="input14" ref="/root/main/transdata/transdata/diagnm" disabled="true" imemode="hangul" maxlength="300" style="left:95px; top:51px; width:565px; height:19px; "/>
  586. <caption id="caption34" class="cell_1" style="left:14px; top:127px; width:79px; height:73px; vertical-align:middle; ">수술이력</caption>
  587. <caption id="caption35" class="cell_1" style="left:14px; top:339px; width:79px; height:25px; vertical-align:middle; ">삽관</caption>
  588. <select id="checkbox4" ref="/root/main/transdata/transdata/drain1" overflow="visible" appearance="full" style="left:190px; top:342px; width:50px; height:20px; border-style:none; ">
  589. <choices>
  590. <item>
  591. <label>Foley</label>
  592. <value>Y</value>
  593. </item>
  594. </choices>
  595. </select>
  596. <select id="checkbox5" ref="/root/main/transdata/transdata/drain2" overflow="visible" appearance="full" style="left:265px; top:342px; width:45px; height:20px; border-style:none; ">
  597. <choices>
  598. <item>
  599. <label>CVP</label>
  600. <value>Y</value>
  601. </item>
  602. </choices>
  603. </select>
  604. <select id="checkbox6" ref="/root/main/transdata/transdata/drain3" overflow="visible" appearance="full" style="left:335px; top:342px; width:55px; height:20px; border-style:none; ">
  605. <choices>
  606. <item>
  607. <label>L-tube</label>
  608. <value>Y</value>
  609. </item>
  610. </choices>
  611. </select>
  612. <caption id="caption36" style="left:410px; top:342px; width:100px; height:20px; ">기타</caption>
  613. <input id="input15" ref="/root/main/transdata/transdata/drain4" imemode="hangul" maxlength="300" style="left:440px; top:342px; width:220px; height:19px; "/>
  614. <caption id="caption37" class="cell_1" style="left:14px; top:201px; width:79px; height:72px; vertical-align:middle; ">과거병력</caption>
  615. <caption id="caption38" class="cell_1" style="left:14px; top:73px; width:79px; height:52px; vertical-align:middle; ">입원동기</caption>
  616. <caption id="caption39" class="cell_1" style="left:14px; top:474px; width:79px; height:26px; vertical-align:middle; ">산 소</caption>
  617. <caption id="caption40" class="cell_1" style="left:479px; top:474px; width:79px; height:26px; vertical-align:middle; ">Suction</caption>
  618. <select1 id="radio3" ref="/root/main/transdata/transdata/suction_yn" navindex="37" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:561px; top:477px; width:100px; height:18px; border-style:none; ">
  619. <choices>
  620. <item>
  621. <label>무</label>
  622. <value>1</value>
  623. </item>
  624. <item>
  625. <label>유</label>
  626. <value>2</value>
  627. </item>
  628. </choices>
  629. </select1>
  630. <caption id="caption41" class="cell_1" style="left:254px; top:474px; width:79px; height:26px; vertical-align:middle; ">산소 투여량</caption>
  631. <caption id="caption42" style="left:390px; top:477px; width:50px; height:20px; ">ℓ/min</caption>
  632. <caption id="caption43" class="cell_1" style="left:14px; top:501px; width:79px; height:74px; vertical-align:middle; ">
  633. <![CDATA[산 소
  634. 투여방법]]>
  635. </caption>
  636. <caption id="caption44" style="left:308px; top:552px; width:100px; height:20px; ">기타</caption>
  637. <select1 id="radio4" ref="/root/main/transdata/transdata/adm_method" navindex="37" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:95px; top:676px; width:205px; height:18px; border-style:none; ">
  638. <choices>
  639. <item>
  640. <label>도보</label>
  641. <value>1</value>
  642. </item>
  643. <item>
  644. <label>휠체어</label>
  645. <value>2</value>
  646. </item>
  647. <item>
  648. <label>Car</label>
  649. <value>3</value>
  650. </item>
  651. </choices>
  652. </select1>
  653. <caption id="caption45" class="cell_1" style="left:14px; top:673px; width:79px; height:26px; vertical-align:middle; ">이송방법</caption>
  654. <caption id="caption46" class="cell_1" style="left:14px; top:700px; width:79px; height:49px; vertical-align:middle; ">인계병동</caption>
  655. <input id="ipt_transout_time" ref="/root/main/transdata/transdata/transout_time" imemode="hangul" maxlength="300" format="yyyy-mm-dd hh:nn" style="left:448px; top:715px; width:128px; height:19px; "/>
  656. <input id="ipt_transout_nm" ref="/root/main/transdata/transdata/transout_nm" disabled="true" imemode="hangul" maxlength="300" style="left:316px; top:726px; width:60px; height:19px; "/>
  657. <input id="ipt_transin_time" ref="/root/main/transdata/transdata/transin_time" disabled="false" maxlength="300" format="yyyy-mm-dd hh:nn" style="left:448px; top:766px; width:128px; height:19px; "/>
  658. <input id="ipt_transin_nm" ref="/root/main/transdata/transdata/transin_nm" disabled="true" maxlength="300" style="left:315px; top:777px; width:60px; height:19px; "/>
  659. <input id="ipt_bedposcnts" ref="/root/main/transdata/transdata/bedposcnts" disabled="true" imemode="hangul" maxlength="300" style="left:95px; top:726px; width:92px; height:19px; "/>
  660. <button id="button2" class="btn2_letter3" style="left:605px; top:765px; width:53px; height:19px; ">
  661. <caption>저장</caption>
  662. <script type="javascript" ev:event="DOMActivate">
  663. <![CDATA[
  664. fSave("2");
  665. ]]>
  666. </script>
  667. </button>
  668. <select1 id="combo1" ref="/root/main/transdata/transdata/wardcd" class="combo_search" disabled="true" appearance="minimal" style="left:95px; top:754px; width:92px; height:19px; ">
  669. <choices>
  670. <itemset nodeset="/root/init/ward">
  671. <label ref="wardnm"/>
  672. <value ref="wardcd"/>
  673. </itemset>
  674. </choices>
  675. </select1>
  676. <input id="input21" ref="/root/main/transdata/transdata/prewardcd" visibility="hidden" imemode="hangul" maxlength="300" style="left:480px; top:675px; width:114px; height:19px; "/>
  677. <input id="input22" ref="/root/main/transdata/transdata/prewardnm" disabled="true" imemode="hangul" maxlength="300" style="left:95px; top:703px; width:92px; height:19px; "/>
  678. <input id="ipt_transin_id" ref="/root/main/transdata/transdata/transin_id" maxlength="300" style="left:315px; top:754px; width:60px; height:19px; ">
  679. <script type="javascript" ev:event="onkeyup">
  680. <![CDATA[
  681. if(event.keyCode == "13") {
  682. var userid = ipt_transin_id.currentText;
  683. var appdd = model.getValue("/root/main/transdata/transdata/appdd");
  684. fgetUserName(userid, appdd);
  685. var usernm = model.getValue("/root/main/temp/userinfo/usernm");
  686. model.setValue("/root/main/transdata/transdata/transin_id", userid);
  687. model.setValue("/root/main/transdata/transdata/transin_nm", usernm);
  688. ipt_transin_id.refresh();
  689. ipt_transin_nm.refresh();
  690. }
  691. ]]>
  692. </script>
  693. </input>
  694. <input id="ipt_transout_id" ref="/root/main/transdata/transdata/transout_id" maxlength="300" style="left:316px; top:703px; width:60px; height:19px; ">
  695. <script type="javascript" ev:event="onkeyup">
  696. <![CDATA[
  697. if(event.keyCode == "13") {
  698. var userid = ipt_transout_id.currentText;
  699. var appdd = model.getValue("/root/main/transdata/transdata/appdd");
  700. fgetUserName(userid, appdd);
  701. var usernm = model.getValue("/root/main/temp/userinfo/usernm");
  702. model.setValue("/root/main/transdata/transdata/transout_id", userid);
  703. model.setValue("/root/main/transdata/transdata/transout_nm", usernm);
  704. ipt_transout_id.refresh();
  705. ipt_transout_nm.refresh();
  706. }
  707. ]]>
  708. </script>
  709. </input>
  710. <select1 id="rdo_o2yn" ref="/root/main/transdata/transdata/o2_yn" navindex="37" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:95px; top:477px; width:100px; height:18px; border-style:none; ">
  711. <choices>
  712. <item>
  713. <label>무</label>
  714. <value>1</value>
  715. </item>
  716. <item>
  717. <label>유</label>
  718. <value>2</value>
  719. </item>
  720. </choices>
  721. <script type="javascript" ev:event="xforms-value-changed">
  722. <![CDATA[
  723. if (rdo_o2yn.value == "2") {
  724. ipt_o2_amount.disabled = false;
  725. cxb_o2_method1.disabled = false;
  726. cxb_o2_method2.disabled = false;
  727. cxb_o2_method3.disabled = false;
  728. cxb_o2_method4.disabled = false;
  729. cxb_o2_method5.disabled = false;
  730. cxb_o2_method6.disabled = false;
  731. cxb_o2_method7.disabled = false;
  732. ipt_o2_method8.disabled = false;
  733. }
  734. else
  735. {
  736. ipt_o2_amount.disabled = true;
  737. cxb_o2_method1.disabled = true;
  738. cxb_o2_method2.disabled = true;
  739. cxb_o2_method3.disabled = true;
  740. cxb_o2_method4.disabled = true;
  741. cxb_o2_method5.disabled = true;
  742. cxb_o2_method6.disabled = true;
  743. cxb_o2_method7.disabled = true;
  744. ipt_o2_method8.disabled = true;
  745. model.setValue("/root/main/transdata/transdata/o2_amount", "");
  746. model.setValue("/root/main/transdata/transdata/o2_method1", "");
  747. model.setValue("/root/main/transdata/transdata/o2_method2", "");
  748. model.setValue("/root/main/transdata/transdata/o2_method3", "");
  749. model.setValue("/root/main/transdata/transdata/o2_method4", "");
  750. model.setValue("/root/main/transdata/transdata/o2_method5", "");
  751. model.setValue("/root/main/transdata/transdata/o2_method6", "");
  752. model.setValue("/root/main/transdata/transdata/o2_method7", "");
  753. model.setValue("/root/main/transdata/transdata/o2_method8", "");
  754. model.refresh();
  755. }
  756. ]]>
  757. </script>
  758. </select1>
  759. <input id="ipt_o2_amount" ref="/root/main/transdata/transdata/o2_amount" imemode="hangul" style="left:335px; top:477px; width:55px; height:19px; "/>
  760. <select id="cxb_o2_method1" ref="/root/main/transdata/transdata/o2_method1" overflow="visible" appearance="full" style="left:95px; top:504px; width:152px; height:20px; border-style:none; ">
  761. <choices>
  762. <item>
  763. <label>Endotracheal tube</label>
  764. <value>Y</value>
  765. </item>
  766. </choices>
  767. </select>
  768. <select id="cxb_o2_method2" ref="/root/main/transdata/transdata/o2_method2" overflow="visible" appearance="full" style="left:306px; top:504px; width:152px; height:20px; border-style:none; ">
  769. <choices>
  770. <item>
  771. <label>Tracheal tube</label>
  772. <value>Y</value>
  773. </item>
  774. </choices>
  775. </select>
  776. <select id="cxb_o2_method3" ref="/root/main/transdata/transdata/o2_method3" overflow="visible" appearance="full" style="left:513px; top:504px; width:147px; height:20px; border-style:none; ">
  777. <choices>
  778. <item>
  779. <label>nasal cannula</label>
  780. <value>Y</value>
  781. </item>
  782. </choices>
  783. </select>
  784. <select id="cxb_o2_method4" ref="/root/main/transdata/transdata/o2_method4" overflow="visible" appearance="full" style="left:95px; top:528px; width:152px; height:20px; border-style:none; ">
  785. <choices>
  786. <item>
  787. <label>Simple Mask</label>
  788. <value>Y</value>
  789. </item>
  790. </choices>
  791. </select>
  792. <select id="cxb_o2_method5" ref="/root/main/transdata/transdata/o2_method5" overflow="visible" appearance="full" style="left:306px; top:528px; width:152px; height:20px; border-style:none; ">
  793. <choices>
  794. <item>
  795. <label>Reservoir bag mask</label>
  796. <value>Y</value>
  797. </item>
  798. </choices>
  799. </select>
  800. <select id="cxb_o2_method6" ref="/root/main/transdata/transdata/o2_method6" overflow="visible" appearance="full" style="left:513px; top:528px; width:147px; height:20px; border-style:none; ">
  801. <choices>
  802. <item>
  803. <label>T-piece</label>
  804. <value>Y</value>
  805. </item>
  806. </choices>
  807. </select>
  808. <select id="cxb_o2_method7" ref="/root/main/transdata/transdata/o2_method7" overflow="visible" appearance="full" style="left:95px; top:552px; width:152px; height:20px; border-style:none; ">
  809. <choices>
  810. <item>
  811. <label>Ambu bagging</label>
  812. <value>Y</value>
  813. </item>
  814. </choices>
  815. </select>
  816. <input id="ipt_o2_method8" ref="/root/main/transdata/transdata/o2_method8" imemode="hangul" maxlength="300" style="left:338px; top:552px; width:322px; height:19px; "/>
  817. <input id="input27" ref="/root/main/transdata/transdata/phone" disabled="true" imemode="hangul" maxlength="300" style="left:190px; top:726px; width:65px; height:19px; "/>
  818. <input id="input28" ref="/root/main/transdata/transdata/bedposcntscd" disabled="true" visibility="hidden" imemode="hangul" maxlength="300" style="left:330px; top:675px; width:145px; height:19px; "/>
  819. <caption id="caption52" style="left:637px; top:807px; width:30px; height:14px; ">[표]</caption>
  820. <button id="btn_certi" class="btn5_letter5" disabled="true" style="left:605px; top:725px; width:53px; height:19px; ">
  821. <caption>인증저장</caption>
  822. <script type="javascript" ev:event="DOMActivate">
  823. <![CDATA[
  824. fCertiSave();
  825. ]]>
  826. </script>
  827. </button>
  828. <caption id="caption53" class="cell_1" style="left:14px; top:751px; width:79px; height:49px; vertical-align:middle; ">인수병동</caption>
  829. <input id="input29" ref="/root/main/transdata/transdata/chngroomcd" disabled="true" imemode="hangul" maxlength="300" style="left:95px; top:777px; width:92px; height:19px; "/>
  830. <input id="ipt_prestroomcd" ref="/root/main/transdata/transdata/prestroomcd" disabled="true" imemode="hangul" maxlength="300" style="left:95px; top:726px; width:92px; height:19px; "/>
  831. <input id="input31" ref="/root/main/transdata/transdata/phone2" disabled="true" imemode="hangul" maxlength="300" style="left:190px; top:777px; width:65px; height:19px; "/>
  832. <line id="line2" class="line_3" style="x1:14px; y1:49px; x2:664px; y2:49px; "/>
  833. <line id="line3" class="line_3" style="x1:14px; y1:71px; x2:664px; y2:71px; "/>
  834. <datagrid id="grd_pasthist" nodeset="/root/main/transdata/transdata/pasthistinfo/pasthist/pasthist" disabled="false" scroll="auto" caption="발생일자^병력내역^비고" colsep="^" colwidth="110, 110, 320" mergecellsfixedrows="bycolrec" rowsep="|" style="left:95px; top:201px; width:565px; height:71px; ">
  835. <col disabled="true" ref="genrdd" type="inputdate"/>
  836. <col class="gridcombo" disabled="true" ref="histspec" type="combo">
  837. <choices>
  838. <itemset nodeset="/root/init/mlist/M0532">
  839. <label ref="cdnm"/>
  840. <value ref="cdid"/>
  841. </itemset>
  842. </choices>
  843. </col>
  844. <col ref="remfact"/>
  845. <script type="javascript" ev:event="onclick">
  846. <![CDATA[
  847. if(grd_pasthist.colType(grd_pasthist.col) == "input") {
  848. grd_pasthist.editCell();
  849. }
  850. ]]>
  851. </script>
  852. <script type="javascript" ev:event="onkeydown">
  853. <![CDATA[
  854. if(event.keyCode == 9) {
  855. grd_pasthist.editCell();
  856. }
  857. ]]>
  858. </script>
  859. </datagrid>
  860. <datagrid id="grd_ophist" nodeset="/root/main/transdata/ophist" disabled="true" scroll="auto" caption="수술일자^수술코드^수술명" colsep="^" colwidth="110, 110, 320" mergecellsfixedrows="bycolrec" rowsep="|" style="left:95px; top:127px; width:565px; height:71px; ">
  861. <col ref="opschedd" type="inputdate"/>
  862. <col ref="opcd" type="input"/>
  863. <col ref="opnm" type="input"/>
  864. <script type="javascript" ev:event="onclick">
  865. <![CDATA[
  866. if(grd_pasthist.colType(grd_pasthist.col) == "input") {
  867. grd_pasthist.editCell();
  868. }
  869. ]]>
  870. </script>
  871. <script type="javascript" ev:event="onkeydown">
  872. <![CDATA[
  873. if(event.keyCode == 9) {
  874. grd_pasthist.editCell();
  875. }
  876. ]]>
  877. </script>
  878. </datagrid>
  879. <line id="line4" class="line_3" style="x1:14px; y1:199px; x2:664px; y2:199px; "/>
  880. <line id="line5" class="line_3" style="x1:14px; y1:364px; x2:664px; y2:364px; "/>
  881. <line id="line6" class="line_3" style="x1:14px; y1:273px; x2:664px; y2:273px; "/>
  882. <line id="line7" class="line_3" style="x1:14px; y1:337px; x2:664px; y2:337px; "/>
  883. <line id="line10" class="line_3" style="x1:14px; y1:499px; x2:664px; y2:499px; "/>
  884. <line id="line11" class="line_3" style="x1:14px; y1:575px; x2:664px; y2:575px; "/>
  885. <line id="line12" class="line_3" style="x1:14px; y1:698px; x2:664px; y2:698px; "/>
  886. <line id="line14" class="line_3" style="x1:14px; y1:749px; x2:664px; y2:749px; "/>
  887. <line id="line16" class="line_1" style="x1:14px; y1:800px; x2:664px; y2:800px; "/>
  888. <button id="btn_outtime" class="icon_clock" navindex="28" style="left:578px; top:717px; width:16px; height:16px; ">
  889. <caption/>
  890. <script type="javascript" ev:event="DOMActivate">
  891. <![CDATA[
  892. var curdt = getCurrentDate() + getCurrentTime().substring(0,4);
  893. model.setValue("/root/main/transdata/transdata/transout_time", curdt);
  894. ipt_transout_time.refresh();
  895. ]]>
  896. </script>
  897. </button>
  898. <button id="btn_intime" class="icon_clock" navindex="28" style="left:578px; top:767px; width:16px; height:16px; ">
  899. <caption/>
  900. <script type="javascript" ev:event="DOMActivate">
  901. <![CDATA[
  902. var curdt = getCurrentDate() + getCurrentTime().substring(0,4);
  903. model.setValue("/root/main/transdata/transdata/transin_time", curdt);
  904. ipt_transin_time.refresh();
  905. ]]>
  906. </script>
  907. </button>
  908. <button id="button10" class="btn2_letter10" visibility="hidden" style="left:534px; top:5px; width:130px; height:19px; ">
  909. <caption>진료재료 부서 이관</caption>
  910. <script type="javascript" ev:event="DOMActivate">
  911. <![CDATA[
  912. var instcd = model.getValue ("/root/main/transdata/transdata/instcd");
  913. var pid = model.getValue ("/root/main/transdata/transdata/pid");
  914. var indd = model.getValue ("/root/main/transdata/transdata/indd");
  915. var cretno = model.getValue ("/root/main/transdata/transdata/cretno");
  916. var prewardcd = model.getValue ("/root/main/transdata/transdata/prewardcd");
  917. var chngwardcd = model.getValue ("/root/main/transdata/transdata/wardcd");
  918. var patnm = model.getValue ("/root/main/transdata/transdata/pname");
  919. if( pid == "" ){
  920. messageBox("환자가 선택되지 않았습니다.", "E");
  921. return;
  922. }
  923. setParameter("PARAM1", instcd);
  924. setParameter("PARAM2", pid);
  925. setParameter("PARAM3", indd);
  926. setParameter("PARAM4", cretno);
  927. setParameter("PARAM5", prewardcd);
  928. setParameter("PARAM6", chngwardcd);
  929. open("SPMNW19001","1", "900", "450");
  930. ]]>
  931. </script>
  932. </button>
  933. <button id="button1" class="btn2_letter5" style="left:605px; top:703px; width:67px; height:19px; ">
  934. <caption>임시저장</caption>
  935. <script type="javascript" ev:event="DOMActivate">
  936. <![CDATA[
  937. fSave("1");
  938. ]]>
  939. </script>
  940. </button>
  941. <caption id="caption1" style="left:15px; top:806px; width:145px; height:20px; color:#000000; ">※ 인계병동에서 반드시</caption>
  942. <caption id="caption2" style="left:163px; top:806px; width:62px; height:20px; color:#ff0000; ">인증저장</caption>
  943. <caption id="caption3" style="left:222px; top:806px; width:63px; height:20px; ">해야함.</caption>
  944. <caption id="caption4" style="left:317px; top:806px; width:143px; height:20px; color:#000000; ">※ 인수병동에서 반드시</caption>
  945. <caption id="caption5" style="left:465px; top:806px; width:35px; height:20px; color:#0000ff; ">저장</caption>
  946. <caption id="caption6" style="left:499px; top:806px; width:55px; height:20px; ">해야함.</caption>
  947. <line id="line9" class="line_3" style="x1:14px; y1:125px; x2:664px; y2:125px; "/>
  948. <select id="chk_drain0" ref="/root/main/transdata/transdata/drain0" overflow="visible" appearance="full" style="left:95px; top:342px; width:75px; height:20px; border-style:none; ">
  949. <choices>
  950. <item>
  951. <label>해당없음</label>
  952. <value>Y</value>
  953. </item>
  954. </choices>
  955. <script type="javascript" ev:event="xforms-value-changed">
  956. <![CDATA[
  957. if(chk_drain0.value == "Y"){
  958. checkbox4.disabled = true;
  959. checkbox5.disabled = true;
  960. checkbox6.disabled = true;
  961. input15.disabled = true;
  962. model.setValue("/root/main/transdata/transdata/drain1", "");
  963. model.setValue("/root/main/transdata/transdata/drain2", "");
  964. model.setValue("/root/main/transdata/transdata/drain3", "");
  965. model.setValue("/root/main/transdata/transdata/drain4", "");
  966. }else{
  967. checkbox4.disabled = false;
  968. checkbox5.disabled = false;
  969. checkbox6.disabled = false;
  970. input15.disabled = false;
  971. }
  972. model.refresh();
  973. ]]>
  974. </script>
  975. </select>
  976. <caption id="caption7" class="cell_1" style="left:14px; top:366px; width:79px; height:53px; vertical-align:middle; ">주요약물</caption>
  977. <line id="line17" class="line_3" style="x1:14px; y1:419px; x2:664px; y2:419px; "/>
  978. <select id="chk_drug0" ref="/root/main/transdata/transdata/drug0" overflow="visible" appearance="full" style="left:95px; top:371px; width:75px; height:20px; border-style:none; ">
  979. <choices>
  980. <item>
  981. <label>해당없음</label>
  982. <value>Y</value>
  983. </item>
  984. </choices>
  985. <script type="javascript" ev:event="xforms-value-changed">
  986. <![CDATA[
  987. if(chk_drug0.value == "Y"){
  988. checkbox3 .disabled = true;
  989. checkbox7 .disabled = true;
  990. checkbox8.disabled = true;
  991. checkbox9.disabled = true;
  992. input1.disabled = true;
  993. model.setValue("/root/main/transdata/transdata/drug1", "");
  994. model.setValue("/root/main/transdata/transdata/drug2", "");
  995. model.setValue("/root/main/transdata/transdata/drug3", "");
  996. model.setValue("/root/main/transdata/transdata/drug4", "");
  997. model.setValue("/root/main/transdata/transdata/drug5", "");
  998. }else{
  999. checkbox3.disabled = false;
  1000. checkbox7.disabled = false;
  1001. checkbox8.disabled = false;
  1002. checkbox9.disabled = false;
  1003. input1.disabled = false;
  1004. }
  1005. model.refresh();
  1006. ]]>
  1007. </script>
  1008. </select>
  1009. <select id="checkbox3" ref="/root/main/transdata/transdata/drug1" overflow="visible" appearance="full" style="left:95px; top:395px; width:80px; height:20px; border-style:none; ">
  1010. <choices>
  1011. <item>
  1012. <label>Inotropics</label>
  1013. <value>Y</value>
  1014. </item>
  1015. </choices>
  1016. </select>
  1017. <select id="checkbox7" ref="/root/main/transdata/transdata/drug2" overflow="visible" appearance="full" style="left:190px; top:395px; width:65px; height:20px; border-style:none; ">
  1018. <choices>
  1019. <item>
  1020. <label>Heparin</label>
  1021. <value>Y</value>
  1022. </item>
  1023. </choices>
  1024. </select>
  1025. <select id="checkbox8" ref="/root/main/transdata/transdata/drug3" overflow="visible" appearance="full" style="left:270px; top:395px; width:65px; height:20px; border-style:none; ">
  1026. <choices>
  1027. <item>
  1028. <label>Herben</label>
  1029. <value>Y</value>
  1030. </item>
  1031. </choices>
  1032. </select>
  1033. <select id="checkbox9" ref="/root/main/transdata/transdata/drug4" overflow="visible" appearance="full" style="left:350px; top:395px; width:100px; height:20px; border-style:none; ">
  1034. <choices>
  1035. <item>
  1036. <label>아스피린 계열</label>
  1037. <value>Y</value>
  1038. </item>
  1039. </choices>
  1040. </select>
  1041. <input id="input1" ref="/root/main/transdata/transdata/drug5" style="left:495px; top:395px; width:165px; height:19px; "/>
  1042. <line id="line18" class="line_3" style="x1:14px; y1:472px; x2:664px; y2:472px; "/>
  1043. <caption id="caption8" class="cell_1" style="left:14px; top:421px; width:79px; height:51px; vertical-align:middle; ">동반</caption>
  1044. <caption id="caption9" style="left:97px; top:424px; width:43px; height:20px; ">의료진</caption>
  1045. <select1 id="rdo_acmpnydnyn" ref="/root/main/transdata/transdata/acmpnydnyn" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:140px; top:425px; width:75px; height:20px; border-style:none; ">
  1046. <choices>
  1047. <item>
  1048. <label>무</label>
  1049. <value>1</value>
  1050. </item>
  1051. <item>
  1052. <label>유</label>
  1053. <value>2</value>
  1054. </item>
  1055. </choices>
  1056. <script type="javascript" ev:event="xforms-value-changed">
  1057. <![CDATA[
  1058. if (rdo_acmpnydnyn.value == "2") {
  1059. checkbox11.disabled = false;
  1060. checkbox13.disabled = false;
  1061. }
  1062. else
  1063. {
  1064. checkbox11.disabled = true;
  1065. checkbox13.disabled = true;
  1066. model.setValue("/root/main/transdata/transdata/acmpnydr", "");
  1067. model.setValue("/root/main/transdata/transdata/acmpnynr", "");
  1068. model.refresh();
  1069. }
  1070. ]]>
  1071. </script>
  1072. </select1>
  1073. <select id="checkbox11" ref="/root/main/transdata/transdata/acmpnydr" disabled="true" overflow="visible" appearance="full" style="left:227px; top:425px; width:50px; height:20px; border-style:none; ">
  1074. <choices>
  1075. <item>
  1076. <label>의사</label>
  1077. <value>Y</value>
  1078. </item>
  1079. </choices>
  1080. </select>
  1081. <caption id="caption10" style="left:220px; top:425px; width:15px; height:20px; ">(</caption>
  1082. <caption id="caption11" style="left:340px; top:425px; width:10px; height:20px; ">)</caption>
  1083. <caption id="caption12" style="left:95px; top:448px; width:45px; height:20px; ">기타</caption>
  1084. <select id="checkbox12" ref="/root/main/transdata/transdata/acmpnyetc" overflow="visible" appearance="full" style="left:140px; top:451px; width:100px; height:20px; border-style:none; ">
  1085. <choices>
  1086. <item>
  1087. <label>보조요원</label>
  1088. <value>Y</value>
  1089. </item>
  1090. </choices>
  1091. </select>
  1092. <caption id="caption13" style="left:352px; top:422px; width:90px; height:20px; ">의료진 동반 :</caption>
  1093. <caption id="caption14" style="left:437px; top:436px; width:246px; height:20px; ">2) 쇽이 동반된 환자</caption>
  1094. <caption id="caption15" style="left:437px; top:451px; width:246px; height:20px; ">3) 기도폐쇄, 심한 출혈 등이 있는 환자</caption>
  1095. <caption id="caption16" style="left:437px; top:420px; width:246px; height:20px; ">1) 인공호흡이 필요한 환자</caption>
  1096. <caption id="caption17" class="cell_1" style="left:190px; top:700px; width:65px; height:24px; vertical-align:middle; ">전화번호</caption>
  1097. <caption id="caption18" class="cell_1" style="left:258px; top:700px; width:55px; height:49px; vertical-align:middle; ">인계자</caption>
  1098. <caption id="caption19" class="cell_1" style="left:380px; top:700px; width:65px; height:49px; vertical-align:middle; ">인계일자</caption>
  1099. <caption id="caption20" class="cell_1" style="left:190px; top:750px; width:65px; height:24px; vertical-align:middle; ">전화번호</caption>
  1100. <caption id="caption21" class="cell_1" style="left:258px; top:751px; width:55px; height:49px; vertical-align:middle; ">인수자</caption>
  1101. <caption id="caption22" class="cell_1" style="left:380px; top:751px; width:65px; height:49px; vertical-align:middle; ">인수일자</caption>
  1102. <select id="checkbox13" ref="/root/main/transdata/transdata/acmpnynr" disabled="true" overflow="visible" appearance="full" style="left:282px; top:425px; width:60px; height:20px; border-style:none; ">
  1103. <choices>
  1104. <item>
  1105. <label>간호사</label>
  1106. <value>Y</value>
  1107. </item>
  1108. </choices>
  1109. </select>
  1110. <caption id="caption23" style="left:465px; top:394px; width:35px; height:20px; ">기타</caption>
  1111. <line id="line13" class="line_3" style="x1:15px; y1:671px; x2:665px; y2:671px; "/>
  1112. <caption id="caption24" class="cell_1" style="left:14px; top:577px; width:79px; height:94px; vertical-align:middle; ">
  1113. <![CDATA[제공되는
  1114. 장비 및
  1115. 기구]]>
  1116. </caption>
  1117. <caption id="caption25" style="left:97px; top:649px; width:100px; height:20px; ">기타</caption>
  1118. <select id="chk_instrument0" ref="/root/main/transdata/transdata/instrument0" overflow="visible" appearance="full" style="left:95px; top:580px; width:152px; height:20px; border-style:none; ">
  1119. <choices>
  1120. <item>
  1121. <label>해당없음</label>
  1122. <value>Y</value>
  1123. </item>
  1124. </choices>
  1125. <script type="javascript" ev:event="xforms-value-changed">
  1126. <![CDATA[
  1127. if(chk_instrument0.value == "Y"){
  1128. chk_instrument1 .disabled = true;
  1129. chk_instrument2 .disabled = true;
  1130. chk_instrument3.disabled = true;
  1131. chk_instrument4.disabled = true;
  1132. chk_instrument5.disabled = true;
  1133. chk_instrument6 .disabled = true;
  1134. chk_instrument7.disabled = true;
  1135. chk_instrument8.disabled = true;
  1136. ipt_instrument9.disabled = true;
  1137. model.setValue("/root/main/transdata/transdata/instrument1", "");
  1138. model.setValue("/root/main/transdata/transdata/instrument2", "");
  1139. model.setValue("/root/main/transdata/transdata/instrument3", "");
  1140. model.setValue("/root/main/transdata/transdata/instrument4", "");
  1141. model.setValue("/root/main/transdata/transdata/instrument5", "");
  1142. model.setValue("/root/main/transdata/transdata/instrument6", "");
  1143. model.setValue("/root/main/transdata/transdata/instrument7", "");
  1144. model.setValue("/root/main/transdata/transdata/instrument8", "");
  1145. model.setValue("/root/main/transdata/transdata/instrument9", "");
  1146. }else{
  1147. chk_instrument1 .disabled = false;
  1148. chk_instrument2 .disabled = false;
  1149. chk_instrument3.disabled = false;
  1150. chk_instrument4.disabled = false;
  1151. chk_instrument5.disabled = false;
  1152. chk_instrument6 .disabled = false;
  1153. chk_instrument7.disabled = false;
  1154. chk_instrument8.disabled = false;
  1155. ipt_instrument9.disabled = false;
  1156. }
  1157. model.refresh();
  1158. ]]>
  1159. </script>
  1160. </select>
  1161. <select id="chk_instrument1" ref="/root/main/transdata/transdata/instrument1" overflow="visible" appearance="full" style="left:306px; top:580px; width:152px; height:20px; border-style:none; ">
  1162. <choices>
  1163. <item>
  1164. <label>EKG monitor</label>
  1165. <value>Y</value>
  1166. </item>
  1167. </choices>
  1168. </select>
  1169. <select id="chk_instrument2" ref="/root/main/transdata/transdata/instrument2" overflow="visible" appearance="full" style="left:513px; top:580px; width:147px; height:20px; border-style:none; ">
  1170. <choices>
  1171. <item>
  1172. <label>Pulse oximeter</label>
  1173. <value>Y</value>
  1174. </item>
  1175. </choices>
  1176. </select>
  1177. <select id="chk_instrument3" ref="/root/main/transdata/transdata/instrument3" overflow="visible" appearance="full" style="left:95px; top:604px; width:152px; height:20px; border-style:none; ">
  1178. <choices>
  1179. <item>
  1180. <label>Portable O2</label>
  1181. <value>Y</value>
  1182. </item>
  1183. </choices>
  1184. </select>
  1185. <select id="chk_instrument4" ref="/root/main/transdata/transdata/instrument4" overflow="visible" appearance="full" style="left:306px; top:604px; width:152px; height:20px; border-style:none; ">
  1186. <choices>
  1187. <item>
  1188. <label>Wall suction</label>
  1189. <value>Y</value>
  1190. </item>
  1191. </choices>
  1192. </select>
  1193. <select id="chk_instrument5" ref="/root/main/transdata/transdata/instrument5" overflow="visible" appearance="full" style="left:513px; top:604px; width:147px; height:20px; border-style:none; ">
  1194. <choices>
  1195. <item>
  1196. <label>Gomco suction</label>
  1197. <value>Y</value>
  1198. </item>
  1199. </choices>
  1200. </select>
  1201. <input id="ipt_instrument9" ref="/root/main/transdata/transdata/instrument9" style="left:130px; top:650px; width:265px; height:19px; "/>
  1202. <select id="chk_instrument6" ref="/root/main/transdata/transdata/instrument6" overflow="visible" appearance="full" style="left:95px; top:628px; width:152px; height:20px; border-style:none; ">
  1203. <choices>
  1204. <item>
  1205. <label>Infusion pump</label>
  1206. <value>Y</value>
  1207. </item>
  1208. </choices>
  1209. </select>
  1210. <select id="chk_instrument7" ref="/root/main/transdata/transdata/instrument7" overflow="visible" appearance="full" style="left:306px; top:628px; width:152px; height:20px; border-style:none; ">
  1211. <choices>
  1212. <item>
  1213. <label>Nebulizer</label>
  1214. <value>Y</value>
  1215. </item>
  1216. </choices>
  1217. </select>
  1218. <select id="chk_instrument8" ref="/root/main/transdata/transdata/instrument8" overflow="visible" appearance="full" style="left:513px; top:628px; width:147px; height:20px; border-style:none; ">
  1219. <choices>
  1220. <item>
  1221. <label>Ventilator</label>
  1222. <value>Y</value>
  1223. </item>
  1224. </choices>
  1225. </select>
  1226. <button id="btn_zoom" class="btn5_letter3" style="left:21px; top:106px; width:53px; height:19px; ">
  1227. <caption>확대</caption>
  1228. <script type="javascript" ev:event="DOMActivate">
  1229. <![CDATA[
  1230. if ( btn_zoom.attribute("text") == "확대" ) {
  1231. fsetzoomToggle1(true);
  1232. } else {
  1233. fsetzoomToggle1(false);
  1234. }
  1235. model.refresh();
  1236. ]]>
  1237. </script>
  1238. </button>
  1239. <button id="btn_zoom2" class="btn5_letter3" style="left:21px; top:318px; width:53px; height:19px; ">
  1240. <caption>확대</caption>
  1241. <script type="javascript" ev:event="DOMActivate">
  1242. <![CDATA[
  1243. if ( btn_zoom2.attribute("text") == "확대" ) {
  1244. fsetzoomToggle2(true);
  1245. } else {
  1246. fsetzoomToggle2(false);
  1247. }
  1248. model.refresh();
  1249. ]]>
  1250. </script>
  1251. </button>
  1252. <textarea id="textarea2" ref="/root/main/transdata/transdata/psummary" scroll="auto" maxlength="4000" style="left:95px; top:73px; width:565px; height:52px; "/>
  1253. <textarea id="textarea3" ref="/root/main/transdata/transdata/etc_desc" scroll="auto" maxlength="4000" style="left:95px; top:275px; width:565px; height:62px; "/>
  1254. </group>
  1255. </xhtml:body>
  1256. </xhtml:html>