SMMNW01302_전입기록지.xrw 58 KB

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