SMMMO08302_복막투석적절도관리.xrw 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>복막투석적절도관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <condition>
  11. <srchpid/>
  12. <diafg/>
  13. <patsex/>
  14. <patage/>
  15. <patheight/>
  16. <patname/>
  17. <patrrgstno1/>
  18. <patrrgstno2/>
  19. <fromdd/>
  20. <todd/>
  21. </condition>
  22. <dialexamlist/>
  23. <patinfo>
  24. <patinfolist/>
  25. </patinfo>
  26. <patinfoht/>
  27. <paminfo/>
  28. </main>
  29. <hidden>
  30. <ret>
  31. <count/>
  32. </ret>
  33. </hidden>
  34. <send>
  35. <reqdata/>
  36. <savedata>
  37. <execdt>
  38. </execdt>
  39. <bdwtval/>
  40. <urinevol/>
  41. <urinetm/>
  42. <urinecreatival/>
  43. <urineurea/>
  44. <serumcreatival/>
  45. <preblodbunval/>
  46. <postblodbunval/>
  47. <dialcreatival/>
  48. <dialurea/>
  49. <dialprotval/>
  50. <dialvol/>
  51. <filtvol/>
  52. <srchpid/>
  53. <dialseq/>
  54. <instcd/>
  55. <calktv/>
  56. <calwccr/>
  57. <calnpna/>
  58. <dialflag/>
  59. <state/>
  60. <bdhtval/>
  61. </savedata>
  62. <caladequacy>
  63. <bsa/>
  64. <pna/>
  65. <npna/>
  66. <renalccr/>
  67. <renalktv/>
  68. <periccr/>
  69. <periktv/>
  70. <weekktv/>
  71. <weekccr/>
  72. <crurea/>
  73. </caladequacy>
  74. <req>
  75. <data1/>
  76. </req>
  77. <cond1/>
  78. <cond2/>
  79. <cond3/>
  80. <cond99/>
  81. </send>
  82. <init>
  83. <srchcond1/>
  84. </init>
  85. </root>
  86. </instance>
  87. <submission id="TRMMO08403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/dialexamlist"/>
  88. <submission id="TXMMO08404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden/ret"/>
  89. <submission id="TRMMO08404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/patinfoht"/>
  90. <submission id="TRMMO02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/patinfo"/>
  91. <!--submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/patinfo"/-->
  92. <script type="javascript" ev:event="xforms-ready">
  93. <![CDATA[
  94. fInitialize();
  95. model.makeValue("/root/send/savedata/execdt", getCurrentDate());
  96. model.refresh();
  97. var pamInfoCvs = getGlobalVariable("paminfo"); //상단정보가 있을 경우는 검색
  98. var pid = "";
  99. //alert(pamInfoCvs);
  100. if(pamInfoCvs != "" ){ //cvs가 ""이 아닌 경우에만 처리함.
  101. model.removeNodeSet("/root/main/paminfo/list");
  102. setCSVToNode("/root/main/paminfo", pamInfoCvs);
  103. var ioflag = model.getValue("/root/main/paminfo/list/ioflag");
  104. //model.setValue("/root/hidden/condition/psnflag", ioflag);
  105. model.setValue("/root/main/condition/srchpid", model.getValue("/root/main/paminfo/list/pid") );
  106. // model.setValue("/root/main/condition/patname", model.getValue("/root/main/paminfo/list/hngnm") );
  107. // model.setValue("/root/main/condition/patrrgstno1", model.getValue("/root/main/paminfo/list/rrgstno1") );
  108. // model.setValue("/root/main/condition/patrrgstno2", model.getValue("/root/main/paminfo/list/rrgstno2") );
  109. // model.setValue("/root/main/condition/patsex", model.getValue("/root/main/paminfo/list/sex") );
  110. // model.setValue("/root/main/condition/patage", model.getValue("/root/main/paminfo/list/age") );
  111. model.refresh();
  112. model.setValue ( "/root/send/cond1", "1");
  113. model.setValue ( "/root/send/cond2", model.getValue ("/root/main/condition/srchpid" ));
  114. model.setValue ( "/root/send/cond3", getUserInfo("dutplceinstcd"));
  115. model.setValue ( "/root/send/cond99", "patchosinfo");
  116. if (!submit ( "TRMMO02501",false )) { //검색 시작 값이 없으면 clear 한다.
  117. model.resetInstanceNode ("/root/main/condition" );
  118. model.refresh();
  119. return;
  120. }
  121. var srcNodeList = model.instances(0).selectNodes("/root/patinfo/patinfolist");
  122. if ( srcNodeList.length == 1 ) { //값이 한개면 바로 화면에 보여준1다.
  123. ipt_srchpid.text = model.getValue ("/root/patinfo/patinfolist/pid");
  124. ipt_patname.text = model.getValue ("/root/patinfo/patinfolist/hngnm");
  125. output1.text = model.getValue ("/root/patinfo/patinfolist/rrgstno1");
  126. output5.text = model.getValue ("/root/patinfo/patinfolist/rrgstno2");
  127. output2.text = model.getValue ("/root/patinfo/patinfolist/sex");
  128. output3.text = model.getValue ("/root/patinfo/patinfolist/age");
  129. setHeight();
  130. doSearch("F");
  131. } else if ( srcNodeList.length > 1 ) { //값이 한개이상이면 팝업을 띄운다.
  132. searchPatinfoPop();
  133. }
  134. model.refresh();
  135. // setHeight();
  136. // doSearch("F");
  137. }
  138. ]]>
  139. </script>
  140. <script type="javascript">
  141. <![CDATA[
  142. function fInitialize() {
  143. var idate=new Date();
  144. var frDate=idate.getAddDate(-1, "M");
  145. model.setValue("/root/main/condition/fromdd", frDate.getDateFormat());
  146. model.setValue("/root/main/condition/todd", getCurrentDate());
  147. }
  148. function doSearch(flag) {
  149. model.setValue("/root/main/condition/diafg", "P");
  150. model.copyNode("/root/send/reqdata", "/root/main/condition");
  151. var fromdd = model.getValue("/root/main/condition/fromdd");
  152. fromdd = fromdd.substr(0,4) + "-" + fromdd.substr(4,2) + "-" + fromdd.substr(6,2) + "-00.00.00.000000";
  153. model.setValue("/root/send/reqdata/fromdd", fromdd);
  154. var todd = model.getValue("/root/main/condition/todd");
  155. todd = todd.substr(0,4) + "-" + todd.substr(4,2) + "-" + todd.substr(6,2) + "-00.00.00.000000";
  156. model.setValue("/root/send/reqdata/todd", todd);
  157. //model.setValue("/root/send/reqdata/diafg", "H");
  158. submit("TRMMO08403");
  159. }
  160. function viewDetInfo() {
  161. model.setValue("/root/main/condition/srchpid", model.getValue("/root/main/dialexamlist/info[" + grd_dialexamlist.row + "]/srchpid"));
  162. model.copyNode("/root/send/savedata", "/root/main/dialexamlist/info[" + grd_dialexamlist.row + "]");
  163. if(model.getValue("/root/send/savedata/bdhtval") == "") {
  164. model.setValue("/root/send/savedata/bdhtval", model.getValue("/root/main/condition/patheight")) ;
  165. }
  166. model.refresh();
  167. calAdequacy(); // 적절도 계산
  168. }
  169. function calAdequacy() {
  170. if (model.getValue("/root/main/condition/patsex") == "" || model.getValue("/root/main/condition/patage") == "" || model.getValue("/root/main/condition/patheight") == "") {
  171. messageBox("적절도 계산시 성별, 나이, 신장은", "I003", "\n등록번호를 이용하여 환자정보를 조회하세요.");
  172. model.setFocus("ipt_srchpid");
  173. return;
  174. }
  175. // 계산에 필요한 항목
  176. var pre_hdbun = model.getValue("/root/send/savedata/preblodbunval");
  177. var post_hdbun = model.getValue("/root/send/savedata/postblodbunval");
  178. var weight = model.getValue("/root/send/savedata/bdwtval");
  179. var pat_sex = model.getValue("/root/main/condition/patsex");
  180. var pat_age = model.getValue("/root/main/condition/patage");
  181. var pat_height = model.getValue("/root/main/condition/patheight");
  182. var urine_vol = model.getValue("/root/send/savedata/urinevol"); // 소변량
  183. var urine_creatinine = model.getValue("/root/send/savedata/urinecreatival");
  184. var serum_creatinine = model.getValue("/root/send/savedata/serumcreatival");
  185. var urine_urea = model.getValue("/root/send/savedata/urineurea");
  186. var urine_time = model.getValue("/root/send/savedata/urinetm"); // 모은시간
  187. var ultrafilt_vol = model.getValue("/root/send/savedata/filtvol");
  188. var dial_time = model.getValue("/root/send/savedata/dialtims");
  189. var dial_vol = model.getValue("/root/send/savedata/dialvol");
  190. var dial_urea = model.getValue("/root/send/savedata/dialurea");
  191. var dial_protval = model.getValue("/root/send/savedata/dialprotval");
  192. var dial_creatival = model.getValue("/root/send/savedata/dialcreatival");
  193. var height = model.getValue("/root/send/savedata/bdhtval");
  194. if(weight == "") { messageBox("Weight는", "I003"); model.setFocus("input1"); return; }
  195. if(height == "") { messageBox("Heightt는", "I003"); model.setFocus("input16"); return; }
  196. if(urine_vol == "") { messageBox("Urine Volume은", "I003"); model.setFocus("input6"); return; }
  197. if(urine_time == "") { messageBox("Urin Collection Duration은", "I003"); model.setFocus("input13"); return; }
  198. if(urine_creatinine == "") { messageBox("Urine Creatinine은", "I003"); model.setFocus("input9"); return; }
  199. if(urine_urea == "") { messageBox("Urin Urea는", "I003"); model.setFocus("input2"); return; }
  200. if(serum_creatinine == "") { messageBox("Serum Creatinine은", "I003"); model.setFocus("input3"); return; }
  201. if(pre_hdbun == "") { messageBox("BUN은", "I003"); model.setFocus("input4"); return; }
  202. if(dial_creatival == "") { messageBox("Dialysate Creatinine은", "I003"); model.setFocus("input7"); return; }
  203. if(dial_urea == "") { messageBox("Dialysate Urea는", "I003"); model.setFocus("input8"); return; }
  204. if(dial_protval == "") { messageBox("Dialysate Protein은", "I003"); model.setFocus("input10"); return; }
  205. if(dial_vol == "") { messageBox("Dialysate Volume은", "I003"); model.setFocus("input11"); return; }
  206. if(ultrafilt_vol == "") { messageBox("Ultrafiltration Volume은", "I003"); model.setFocus("input12"); return; }
  207. // Divide By Zero 관련 처리
  208. if(weight == 0) { messageBox("Weight는 '0'값을 입력", "E001"); model.setFocus("input1"); return; }
  209. if(pre_hdbun == 0) { messageBox("BUN은 '0'값을 입력", "E001"); model.setFocus("input4"); return; }
  210. if(urine_time == 0) { messageBox("urine collection duration은 '0'값을 입력", "E001"); model.setFocus("input13"); return; }
  211. if(serum_creatinine == 0) { messageBox("Serum Creatinine은 '0'값을 입력", "E001"); model.setFocus("input3"); return; }
  212. // 적절도 계산
  213. var bsa = getBSA(weight, height);
  214. var tbw = getTBW(pat_sex, pat_age, height, weight);
  215. var pna = getPNA(urine_vol, urine_time, urine_urea, dial_vol, dial_urea, dial_protval);
  216. var npna = getNPNA(pna, tbw);
  217. var crurea = getCrUrea(urine_vol, urine_creatinine, serum_creatinine, urine_urea, pre_hdbun, urine_time);
  218. var renal_ktv = getRenalKtv(urine_urea, urine_vol, pre_hdbun, tbw, urine_time);
  219. var peritoneal_ktv = getPeritonealKtv(dial_urea, dial_vol, pre_hdbun, tbw);
  220. var weekly_ktv = renal_ktv + peritoneal_ktv;
  221. var renal_ccr = getRenalCcr(urine_creatinine, serum_creatinine, urine_vol, urine_time, tbw, bsa);
  222. var peritoneal_ccr = getPeritonealCcr(dial_creatival, dial_vol, serum_creatinine, tbw, bsa);
  223. //var weekly_ccr = renal_ccr + peritoneal_ccr;
  224. //2008-09-03
  225. //var weekly_ccr = (((renal_ccr + peritoneal_ccr) * 60 * 24 * 7 ) / 1000 ) / bsa * 1.73;
  226. var week_ccr = (((renal_ccr + peritoneal_ccr) * 60 * 24 * 7 ) / 1000 );
  227. var weekly_ccr = week_ccr * bsa / 1.73;
  228. model.setValue("/root/send/caladequacy/bsa", bsa); // BSA 계산
  229. model.setValue("/root/send/caladequacy/pna", pna); // PNA 계산
  230. model.setValue("/root/send/caladequacy/npna", npna); // NPNA 계산
  231. model.setValue("/root/send/caladequacy/crurea", crurea); // resudual renal function(cr+urea) 계산
  232. model.setValue("/root/send/caladequacy/renalktv", renal_ktv); // Renal Kt/V 계산
  233. model.setValue("/root/send/caladequacy/periktv", peritoneal_ktv); // Peritoneal Kt/V 계산
  234. model.setValue("/root/send/caladequacy/weekktv", weekly_ktv); // Weekly KT/V 계산
  235. model.setValue("/root/send/caladequacy/renalccr", renal_ccr); // Renal Ccr 계산
  236. model.setValue("/root/send/caladequacy/periccr", peritoneal_ccr); // Peritoneal Ccr 계산
  237. model.setValue("/root/send/caladequacy/weekccr", getCutNumber(weekly_ccr, 4)); // Weekly Ccr 계산
  238. model.refresh();
  239. return true;
  240. }
  241. function getCutNumber(num, place) {
  242. return Math.floor( num * Math.pow(10,parseInt(place,10)) ) / Math.pow(10,parseInt(place,10));
  243. }
  244. function pointCalc(temp) {
  245. var index = temp.indexOf(".");
  246. var frontStr; var backStr;
  247. frontStr = temp.substring(0, index+1);
  248. backStr = temp.substring(index+1);
  249. temp = frontStr + backStr.substring(0, 4);
  250. return temp;
  251. }
  252. function getTBW(pat_sex, pat_age, height, weight) {
  253. var this_tbw = "";
  254. if(pat_sex == "M") { // 남자
  255. this_tbw = 2.447 - (0.09516 * pat_age) + (0.1074 * height) + (0.3362 * weight);
  256. } else { // 여자
  257. this_tbw = (0.1069 * height) + (0.2466 * weight) - 2.097;
  258. }
  259. return getCutNumber(this_tbw,4);
  260. }
  261. function getPNA(urine_vol, urine_time, urine_urea, dial_vol, dial_urea, dial_protval){
  262. var pna = 10.76 * (0.69 * 0.00001 * ((urine_vol * 24 / urine_time) * urine_urea + dial_vol * dial_urea) + 1.46) + dial_protval * dial_vol * 0.00001;
  263. return getCutNumber(pna, 4);
  264. }
  265. function getNPNA(pna, ptbw){
  266. var npna;
  267. if(ptbw == 0) { // Divide by Zero 처리
  268. npna = 0;
  269. } else {
  270. npna = pna/(ptbw/0.58);
  271. }
  272. return getCutNumber(npna, 4);
  273. }
  274. function getCrUrea(urine_vol, urine_creatinine, serum_creatinine, urine_urea, pre_hdbun, urine_time){
  275. var this_crurea = urine_vol * (urine_creatinine / serum_creatinine + urine_urea / pre_hdbun) / (2 * urine_time * 60);
  276. return getCutNumber(this_crurea, 4);
  277. }
  278. function getRenalKtv(urine_urea, urine_vol, pre_hdbun, tbw, urine_time) {
  279. var this_renal_ktv = urine_vol * urine_urea / (pre_hdbun * urine_time) * 24 * 7 / 1000 / tbw;
  280. return getCutNumber(this_renal_ktv, 4);
  281. }
  282. function getPeritonealKtv(dial_urea, dial_vol, pre_hdbun, tbw) {
  283. var this_peritoneall_ktv = (dial_urea * dial_vol / 1000) / pre_hdbun * 7 / tbw;
  284. return getCutNumber(this_peritoneall_ktv, 4);
  285. }
  286. function getRenalCcr(urine_creatinine, serum_creatinine, urine_vol, urine_time, tbw, bsa) {
  287. //var this_renal_ccr = (urine_vol * urine_creatinine) / (serum_creatinine * urine_time) * 24 * 7 / 1000 / tbw / bsa * 1.73;
  288. var this_renal_ccr = (urine_vol * urine_creatinine) / (serum_creatinine * urine_time * 60) ; // 20080227 윤혜은 선생님 확인사항 수정. 단위 ml/min
  289. return getCutNumber(this_renal_ccr, 4);
  290. }
  291. function getPeritonealCcr(dial_creatival, dial_vol, serum_creatinine, tbw, bsa) {
  292. //var this_peri_ccr = dial_vol * dial_creatival / serum_creatinine * 1000 * 7 / 1000 / tbw / bsa / 1.73;
  293. var this_peri_ccr = dial_vol * dial_creatival / (serum_creatinine * 1440); // 20080227 윤혜은 선생님 확인사항 수정. 단위 ml/min
  294. return getCutNumber(this_peri_ccr, 4);
  295. }
  296. function getBSA(weight, height) {
  297. var cal_bsa = 0;
  298. cal_bsa = 71.84 * Math.pow(weight, 0.425) * Math.pow(height,0.725) / 10000;
  299. //cal_bsa = 0.007184 * Math.pow(weight, 0.425) * Math.pow(height,0.725);
  300. return getCutNumber(cal_bsa,4);
  301. }
  302. function setHeight() {
  303. model.copyNode("/root/send/reqdata", "/root/main/condition");
  304. submit("TRMMO08404");
  305. model.setValue("/root/main/condition/patheight", model.getValue("/root/main/patinfoht/info/bdht"));
  306. if(model.getValue("/root/main/condition/patheight") == ""){
  307. model.setValue("/root/main/condition/patheight", 0);
  308. }
  309. model.refresh();
  310. }
  311. function searchPatinfoPop() {
  312. if ( model.getValue ( "/root/init/srchcond1") == "1" ) { // 등록번호 검색
  313. model.makeValue("/root/temp/send/pid", model.getValue("/root/main/condition/srchpid"));
  314. model.makeValue("/root/temp/send/srchcond", "1");
  315. }
  316. if ( model.getValue ( "/root/init/srchcond1") == "2" ) { // 환자이름 검색
  317. model.makeValue("/root/temp/send/hngnm", model.getValue("/root/main/condition/patname"));
  318. model.makeValue("/root/temp/send/srchcond", "2");
  319. }
  320. var xpt = window.screenleft + 100;
  321. var ypt = window.screenTop + 100;
  322. modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/temp/send", "/root/send");
  323. if(model.getValue("/root/main/popupendflag") != "ok") {
  324. return;
  325. }
  326. model.setValue("/root/main/condition/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  327. model.setValue("/root/main/condition/patname", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  328. model.setValue("/root/main/condition/patrrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
  329. var patrrgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
  330. patrrgstno2 = patrrgstno2.substr(0,1) + "******";
  331. //model.setValue("/root/main/condition/patrrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
  332. model.setValue("/root/main/condition/patrrgstno2", patrrgstno2);
  333. model.setValue("/root/main/condition/patsex", model.getValue("/root/main/patinfo/patinfolist/sex"));
  334. model.setValue("/root/main/condition/patage", model.getValue("/root/main/patinfo/patinfolist/age"));
  335. model.refresh();
  336. setHeight();
  337. doSearch("F");
  338. }
  339. function fMoveFocus(vCtrlID){
  340. if( event.keyCode == 13 ) {
  341. if( vCtrlID != "" ) model.setFocus(vCtrlID);
  342. }
  343. }
  344. ]]>
  345. </script>
  346. </model>
  347. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  348. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  349. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  350. </xhtml:head>
  351. <xhtml:body pagewidth="1240" pageheight="676" guideline="1,1194;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  352. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  353. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:160px; height:14px; ">복막투석 적절도 관리</caption>
  354. </group>
  355. <group id="group3" scroll="auto" style="left:0px; top:15px; width:1195px; height:650px; ">
  356. <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  357. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  358. <button id="button1" class="btn1_letter2" style="left:1129px; top:7px; width:56px; height:22px; ">
  359. <caption>조회</caption>
  360. <script type="javascript" ev:event="DOMActivate">
  361. <![CDATA[
  362. if(model.getValue("/root/main/condition/srchpid") ==""){
  363. messageBox("등록번호를 ", "C001");
  364. model.setFocus("ipt_srchpid");
  365. return;
  366. }
  367. doSearch("F");
  368. ]]>
  369. </script>
  370. </button>
  371. <line id="line1" class="line_4" style="x1:1119px; y1:7px; x2:1119px; y2:29px; ">1</line>
  372. <caption id="caption1" class="search_name" style="left:465px; top:9px; width:86px; height:17px; ">환자명 :</caption>
  373. <input id="ipt_patname" ref="/root/main/condition/patname" class="input_s_essential" navindex="2" autonext="false" imemode="hangul" style="left:539px; top:9px; width:75px; height:19px; ">
  374. <script type="javascript" ev:event="onkeyup">
  375. <![CDATA[
  376. model.setValue ( "/root/init/srchcond1", "2");
  377. inputEnterKey ( "btn_bfprcpsrch", "DOMActivate" )
  378. ]]>
  379. </script>
  380. </input>
  381. <input id="ipt_srchpid" ref="/root/main/condition/srchpid" class="input_s_essential" navindex="1" autonext="false" imemode="disabled" style="left:371px; top:9px; width:73px; height:19px; ">
  382. <script type="javascript" ev:event="onkeyup">
  383. <![CDATA[
  384. model.setValue ( "/root/init/srchcond1", "1");
  385. inputEnterKey ( "btn_bfprcpsrch", "DOMActivate" )
  386. ]]>
  387. </script>
  388. </input>
  389. <caption id="caption16" class="search_name" style="left:284px; top:9px; width:99px; height:17px; ">등록번호 :</caption>
  390. <button id="btn_srchpid" class="icon_search" style="left:447px; top:10px; width:16px; height:16px; ">
  391. <caption/>
  392. <script type="javascript" ev:event="DOMActivate">
  393. <![CDATA[
  394. searchPatinfoPop();
  395. ]]>
  396. </script>
  397. </button>
  398. <caption id="caption2" class="search_name" style="left:620px; top:9px; width:86px; height:17px; ">주민번호 :</caption>
  399. <caption id="caption3" class="search_name" style="left:844px; top:9px; width:93px; height:17px; ">성별/나이 :</caption>
  400. <caption id="caption5" class="search_name" style="left:986px; top:9px; width:79px; height:17px; ">Height :</caption>
  401. <caption id="caption7" style="left:1095px; top:13px; width:25px; height:15px; ">cm</caption>
  402. <output id="output1" ref="/root/main/condition/patrrgstno1" class="output_search" style="left:711px; top:9px; width:58px; height:19px; "/>
  403. <output id="output2" ref="/root/main/condition/patsex" class="output_search" style="left:941px; top:9px; width:20px; height:19px; "/>
  404. <output id="output3" ref="/root/main/condition/patage" class="output_search" style="left:963px; top:9px; width:20px; height:19px; "/>
  405. <output id="output4" ref="/root/main/condition/patheight" class="output_search" style="left:1065px; top:9px; width:30px; height:19px; "/>
  406. <output id="output5" ref="/root/main/condition/patrrgstno2" class="output_search" style="left:783px; top:9px; width:56px; height:19px; "/>
  407. <caption id="caption33" class="search_no_b" style="left:770px; top:10px; width:12px; height:17px; ">~</caption>
  408. <caption id="caption46" class="search_no_b" style="left:178px; top:9px; width:12px; height:17px; ">~</caption>
  409. <input id="ipt_todd" ref="/root/main/condition/todd" class="input_default" inputtype="date" style="left:192px; top:9px; width:86px; height:19px; "/>
  410. <caption id="caption44" class="search_name" style="left:3px; top:9px; width:116px; height:17px; ">시행일자 :</caption>
  411. <input id="ipt_fromdd" ref="/root/main/condition/fromdd" class="input_default" inputtype="date" style="left:90px; top:9px; width:86px; height:19px; "/>
  412. </group>
  413. <caption id="caption31" class="tit_2" style="left:5px; top:53px; width:144px; height:14px; vertical-align:middle; ">복막투석 적절도 조회</caption>
  414. <caption id="caption32" class="tit_2" style="left:555px; top:53px; width:170px; height:13px; vertical-align:middle; ">복막투석 적절도 기본정보</caption>
  415. <caption id="caption20" style="left:833px; top:151px; width:45px; height:15px; ">mg/dl</caption>
  416. <caption id="caption42" class="cell_1" style="left:550px; top:144px; width:197px; height:23px; vertical-align:middle; ">urine creatinine</caption>
  417. <caption id="caption21" style="left:1151px; top:126px; width:35px; height:15px; ">ml</caption>
  418. <caption id="caption11" class="cell_1" style="left:873px; top:120px; width:194px; height:23px; vertical-align:middle; ">urine volume</caption>
  419. <line id="line2" class="line_1" style="x1:550px; y1:68px; x2:1191px; y2:68px; "/>
  420. <line id="line4" class="line_2" style="x1:550px; y1:94px; x2:1191px; y2:94px; "/>
  421. <caption id="caption39" class="cell_1" style="left:550px; top:120px; width:197px; height:23px; vertical-align:middle; ">urine collection duration</caption>
  422. <caption id="caption8" class="cell_1" style="left:550px; top:72px; width:197px; height:23px; vertical-align:middle; ">시행일자</caption>
  423. <line id="line5" class="line_2" style="x1:550px; y1:118px; x2:1191px; y2:118px; "/>
  424. <caption id="caption9" class="cell_1" style="left:873px; top:144px; width:194px; height:23px; vertical-align:middle; ">urine urea</caption>
  425. <caption id="caption19" style="left:833px; top:126px; width:34px; height:15px; ">hrs</caption>
  426. <line id="line7" class="line_1" style="x1:550px; y1:297px; x2:1191px; y2:297px; "/>
  427. <datagrid id="grd_dialexamlist" nodeset="/root/main/dialexamlist/info" caption="시행일자^Weekly KT/V^Weekly Ccr^nPNA" colsep="^" colwidth="100, 145, 138, 134" dataheight="25" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:70px; width:540px; height:545px; ">
  428. <col ref="execdt" format="yyyy-mm-dd" style="left:613px; top:32px; width:93px; height:23px; "/>
  429. <col ref="calktv"/>
  430. <col ref="calwccr"/>
  431. <col ref="calnpna"/>
  432. <script type="javascript" ev:event="onclick">
  433. <![CDATA[
  434. if( grd_dialexamlist.rows- grd_dialexamlist.fixedRows > 0 && grd_dialexamlist.mouseRow != 0){
  435. viewDetInfo();
  436. }
  437. ]]>
  438. </script>
  439. </datagrid>
  440. <line id="line3" class="line_1" style="x1:0px; y1:68px; x2:540px; y2:68px; "/>
  441. <group id="grp_btn" style="left:0px; top:620px; width:1194px; height:27px; ">
  442. <button id="button42" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
  443. <caption>삭제</caption>
  444. <script type="javascript" ev:event="DOMActivate">
  445. <![CDATA[
  446. if ( messageBox("데이터를", "Q001") == 6 ) {
  447. if( grd_dialexamlist.rows- grd_dialexamlist.fixedRows > 0 ){
  448. var rowcnt = grd_dialexamlist.selectedRow(0);
  449. if(rowcnt < 1) {
  450. var msg = messageBox("삭제할 정보를 ", "C002");
  451. return;
  452. } else {
  453. model.setValue("/root/send/savedata/state", "D");
  454. model.copyNode("/root/send/req/data1", "/root/send/savedata");
  455. var exec_date = model.getValue("/root/send/savedata/execdt");
  456. exec_date = exec_date.substr(0,4) + "-" + exec_date.substr(4,2) + "-" + exec_date.substr(6,2) + "-00.00.00.000000";
  457. model.setValue("/root/send/req/data1/execdt", exec_date);
  458. submit("TXMMO08404");
  459. // 삭제후 상세정보 지우기
  460. //model.resetInstanceNode("/root/main/condition");
  461. model.resetInstanceNode("/root/send/savedata");
  462. model.resetInstanceNode("/root/send/caladequacy");
  463. model.refresh();
  464. doSearch("D");
  465. }
  466. }
  467. }
  468. ]]>
  469. </script>
  470. </button>
  471. <button id="button8" class="btn4_letter2" style="left:1078px; top:3px; width:56px; height:22px; ">
  472. <caption>저장</caption>
  473. <script type="javascript" ev:event="DOMActivate">
  474. <![CDATA[
  475. if ( messageBox("데이터를", "Q002") == 6 ) {
  476. if (model.getValue("/root/main/condition/srchpid") == "") {
  477. messageBox("등록번호 항목은", "I003");
  478. return;
  479. }
  480. if (model.getValue("/root/send/savedata/execdt") == "") {
  481. messageBox("시행일자 항목은", "I003");
  482. return;
  483. }
  484. if(!calAdequacy()){ // 적절도 계산
  485. return;
  486. }
  487. model.setValue("/root/send/savedata/srchpid", model.getValue("/root/main/condition/srchpid"));
  488. model.setValue("/root/send/savedata/calktv", model.getValue("/root/send/caladequacy/weekktv"));
  489. model.setValue("/root/send/savedata/calwccr", model.getValue("/root/send/caladequacy/weekccr"));
  490. model.setValue("/root/send/savedata/calnpna", model.getValue("/root/send/caladequacy/npna"));
  491. model.setValue("/root/send/savedata/dialflag", "P");
  492. if(model.getValue("/root/send/savedata/dialseq") == ""){
  493. model.setValue("/root/send/savedata/dialseq", 0);
  494. }
  495. model.copyNode("/root/send/req/data1", "/root/send/savedata");
  496. var exec_date = model.getValue("/root/send/savedata/execdt");
  497. exec_date = exec_date.substr(0,4) + "-" + exec_date.substr(4,2) + "-" + exec_date.substr(6,2) + "-00.00.00.000000";
  498. model.setValue("/root/send/req/data1/execdt", exec_date);
  499. submit("TXMMO08404"); // 저장/수정
  500. doSearch("S");
  501. }
  502. ]]>
  503. </script>
  504. </button>
  505. <button id="button16" class="btn4_letter3" style="left:1007px; top:3px; width:68px; height:22px; ">
  506. <caption>초기화</caption>
  507. <script type="javascript" ev:event="DOMActivate">
  508. <![CDATA[
  509. model.resetInstanceNode("/root/send/savedata");
  510. model.resetInstanceNode("/root/send/caladequacy");
  511. model.makeValue("/root/send/savedata/execdt", getCurrentDate());
  512. model.refresh();
  513. ]]>
  514. </script>
  515. </button>
  516. </group>
  517. <caption id="caption13" style="left:1151px; top:151px; width:35px; height:15px; ">mg/dl</caption>
  518. <line id="line6" class="line_2" style="x1:550px; y1:142px; x2:1191px; y2:142px; "/>
  519. <line id="line8" class="line_2" style="x1:550px; y1:167px; x2:1191px; y2:167px; "/>
  520. <line id="line9" class="line_2" style="x1:550px; y1:192px; x2:1191px; y2:192px; "/>
  521. <input id="ipt_execdt" ref="/root/send/savedata/execdt" class="input_essential" inputtype="date" style="left:750px; top:73px; width:117px; height:19px; ">
  522. <script type="javascript" ev:event="onkeyup">
  523. <![CDATA[
  524. fMoveFocus("input16");
  525. ]]>
  526. </script>
  527. </input>
  528. <input id="input16" ref="/root/send/savedata/bdhtval" class="input_default" imemode="disabled" format="#.#" style="left:750px; top:97px; width:81px; height:19px; ">
  529. <script type="javascript" ev:event="onkeyup">
  530. <![CDATA[
  531. fMoveFocus("input1");
  532. ]]>
  533. </script>
  534. </input>
  535. <input id="input1" ref="/root/send/savedata/bdwtval" class="input_default" imemode="disabled" format="#.#" style="left:1070px; top:97px; width:81px; height:19px; ">
  536. <script type="javascript" ev:event="onkeyup">
  537. <![CDATA[
  538. fMoveFocus("input13");
  539. ]]>
  540. </script>
  541. </input>
  542. <input id="input13" ref="/root/send/savedata/urinetm" class="input_default" imemode="disabled" format="#.#" style="left:750px; top:121px; width:81px; height:19px; ">
  543. <script type="javascript" ev:event="onkeyup">
  544. <![CDATA[
  545. fMoveFocus("input6");
  546. ]]>
  547. </script>
  548. </input>
  549. <input id="input6" ref="/root/send/savedata/urinevol" class="input_default" imemode="disabled" format="#.#" style="left:1069px; top:121px; width:82px; height:19px; ">
  550. <script type="javascript" ev:event="onkeyup">
  551. <![CDATA[
  552. fMoveFocus("input9");
  553. ]]>
  554. </script>
  555. </input>
  556. <input id="input9" ref="/root/send/savedata/urinecreatival" class="input_default" imemode="disabled" format="#.#" style="left:750px; top:146px; width:82px; height:19px; ">
  557. <script type="javascript" ev:event="onkeyup">
  558. <![CDATA[
  559. fMoveFocus("input2");
  560. ]]>
  561. </script>
  562. </input>
  563. <input id="input2" ref="/root/send/savedata/urineurea" class="input_default" imemode="disabled" format="#.#" style="left:1070px; top:146px; width:81px; height:19px; ">
  564. <script type="javascript" ev:event="onkeyup">
  565. <![CDATA[
  566. fMoveFocus("input3");
  567. ]]>
  568. </script>
  569. </input>
  570. <input id="input3" ref="/root/send/savedata/serumcreatival" class="input_default" imemode="disabled" format="#.#" style="left:750px; top:171px; width:82px; height:19px; ">
  571. <script type="javascript" ev:event="onkeyup">
  572. <![CDATA[
  573. fMoveFocus("input4");
  574. ]]>
  575. </script>
  576. </input>
  577. <input id="input4" ref="/root/send/savedata/preblodbunval" class="input_default" imemode="disabled" format="#.#" style="left:1070px; top:171px; width:81px; height:19px; ">
  578. <script type="javascript" ev:event="onkeyup">
  579. <![CDATA[
  580. fMoveFocus("input7");
  581. ]]>
  582. </script>
  583. </input>
  584. <input id="input7" ref="/root/send/savedata/dialcreatival" class="input_default" imemode="disabled" format="#.#" style="left:750px; top:196px; width:82px; height:19px; ">
  585. <script type="javascript" ev:event="onkeyup">
  586. <![CDATA[
  587. fMoveFocus("input8");
  588. ]]>
  589. </script>
  590. </input>
  591. <input id="input8" ref="/root/send/savedata/dialurea" class="input_default" imemode="disabled" format="#.#" style="left:1070px; top:196px; width:81px; height:19px; ">
  592. <script type="javascript" ev:event="onkeyup">
  593. <![CDATA[
  594. fMoveFocus("input10");
  595. ]]>
  596. </script>
  597. </input>
  598. <input id="input10" ref="/root/send/savedata/dialprotval" class="input_default" imemode="disabled" format="#.#" style="left:750px; top:221px; width:82px; height:19px; ">
  599. <script type="javascript" ev:event="onkeyup">
  600. <![CDATA[
  601. fMoveFocus("input11");
  602. ]]>
  603. </script>
  604. </input>
  605. <input id="input11" ref="/root/send/savedata/dialvol" class="input_default" imemode="disabled" format="#.#" style="left:1070px; top:221px; width:81px; height:19px; ">
  606. <script type="javascript" ev:event="onkeyup">
  607. <![CDATA[
  608. fMoveFocus("input12");
  609. ]]>
  610. </script>
  611. </input>
  612. <input id="input12" ref="/root/send/savedata/filtvol" class="input_default" imemode="disabled" format="#.#" style="left:750px; top:246px; width:82px; height:19px; "/>
  613. <caption id="caption10" class="cell_1" style="left:550px; top:169px; width:197px; height:23px; vertical-align:middle; ">serum creatinine</caption>
  614. <caption id="caption12" style="left:833px; top:176px; width:45px; height:15px; ">mg/dl</caption>
  615. <caption id="caption14" style="left:1151px; top:176px; width:35px; height:15px; ">mg/dl</caption>
  616. <caption id="caption15" class="cell_1" style="left:873px; top:169px; width:194px; height:23px; vertical-align:middle; ">BUN</caption>
  617. <line id="line10" class="line_2" style="x1:550px; y1:167px; x2:1191px; y2:167px; "/>
  618. <line id="line11" class="line_2" style="x1:550px; y1:217px; x2:1191px; y2:217px; "/>
  619. <line id="line12" class="line_2" style="x1:550px; y1:192px; x2:1191px; y2:192px; "/>
  620. <caption id="caption17" class="cell_1" style="left:550px; top:194px; width:197px; height:23px; vertical-align:middle; ">dialysate creatinine</caption>
  621. <caption id="caption22" style="left:833px; top:201px; width:45px; height:15px; ">mg/dl</caption>
  622. <caption id="caption23" style="left:1151px; top:201px; width:35px; height:15px; ">mg/dl</caption>
  623. <caption id="caption24" class="cell_1" style="left:873px; top:194px; width:194px; height:23px; vertical-align:middle; ">dialysate urea</caption>
  624. <line id="line13" class="line_2" style="x1:550px; y1:242px; x2:1191px; y2:242px; "/>
  625. <line id="line14" class="line_2" style="width:196px; x1:550px; y1:215px; x2:1191px; y2:215px; "/>
  626. <caption id="caption25" style="left:833px; top:226px; width:45px; height:15px; ">mg/dl</caption>
  627. <caption id="caption26" style="left:1151px; top:226px; width:40px; height:15px; ">ml/day</caption>
  628. <caption id="caption27" class="cell_1" style="left:873px; top:219px; width:194px; height:23px; vertical-align:middle; ">dialysis volume</caption>
  629. <caption id="caption28" class="cell_1" style="left:550px; top:219px; width:197px; height:23px; vertical-align:middle; ">dialysate protein</caption>
  630. <line id="line16" class="line_2" style="x1:550px; y1:242px; x2:1191px; y2:242px; "/>
  631. <caption id="caption29" style="left:833px; top:251px; width:45px; height:15px; ">ml/day</caption>
  632. <caption id="caption35" class="cell_1" style="left:550px; top:244px; width:197px; height:23px; vertical-align:middle; ">ultrafiltration volume</caption>
  633. <input id="input14" ref="/root/send/caladequacy/periktv" class="output_search" disabled="false" editable="false" style="left:738px; top:401px; width:82px; height:19px; "/>
  634. <input id="input15" ref="/root/send/caladequacy/periccr" class="output_search" disabled="false" editable="false" style="left:1012px; top:401px; width:76px; height:19px; "/>
  635. <line id="line18" class="line_2" style="x1:550px; y1:397px; x2:1191px; y2:397px; "/>
  636. <line id="line20" class="line_2" style="x1:550px; y1:422px; x2:1191px; y2:422px; "/>
  637. <input id="input17" ref="/root/send/caladequacy/weekktv" class="output_search" disabled="false" editable="false" style="left:738px; top:426px; width:82px; height:19px; "/>
  638. <line id="line21" class="line_2" style="x1:550px; y1:397px; x2:1191px; y2:397px; "/>
  639. <input id="input18" ref="/root/send/caladequacy/weekccr" class="output_search" disabled="false" editable="false" style="left:1012px; top:426px; width:76px; height:19px; "/>
  640. <caption id="caption36" class="cell_1" style="left:550px; top:374px; width:184px; height:23px; vertical-align:middle; ">Kr/V (renal)</caption>
  641. <caption id="caption37" style="left:1091px; top:332px; width:54px; height:15px; ">g/kg/day</caption>
  642. <line id="line23" class="line_2" style="x1:550px; y1:422px; x2:1191px; y2:422px; "/>
  643. <caption id="caption38" style="left:821px; top:406px; width:45px; height:15px; ">L/week</caption>
  644. <caption id="caption40" class="cell_1" style="left:869px; top:326px; width:140px; height:23px; vertical-align:middle; ">n P N A</caption>
  645. <caption id="caption41" style="left:1091px; top:406px; width:99px; height:15px; ">ml/min</caption>
  646. <caption id="caption43" style="left:821px; top:381px; width:45px; height:15px; ">L/week</caption>
  647. <input id="input20" ref="/root/send/caladequacy/npna" class="output_search" disabled="false" editable="false" style="left:1012px; top:327px; width:76px; height:19px; "/>
  648. <caption id="caption45" class="cell_1" style="left:869px; top:399px; width:140px; height:23px; vertical-align:middle; ">Ccr (peritoneal)</caption>
  649. <caption id="caption47" class="cell_1" style="left:550px; top:302px; width:184px; height:23px; vertical-align:middle; ">B S A</caption>
  650. <caption id="caption48" style="left:821px; top:431px; width:45px; height:15px; ">L/week</caption>
  651. <caption id="caption49" style="left:1091px; top:381px; width:99px; height:15px; ">ml/min</caption>
  652. <caption id="caption50" style="left:1091px; top:431px; width:99px; height:15px; ">L/wk/1.73㎡ BSA</caption>
  653. <caption id="caption51" class="cell_1" style="left:869px; top:374px; width:140px; height:23px; vertical-align:middle; ">Ccr (renal)</caption>
  654. <caption id="caption52" class="cell_1" style="left:869px; top:424px; width:140px; height:23px; vertical-align:middle; ">Weekly Ccr</caption>
  655. <caption id="caption53" class="cell_1" style="left:550px; top:424px; width:184px; height:23px; vertical-align:middle; ">KT/V (= Kr/V + Kt/V)</caption>
  656. <caption id="caption54" class="cell_1" style="left:550px; top:399px; width:184px; height:23px; vertical-align:middle; ">Kt/V (peritoneal)</caption>
  657. <input id="input22" ref="/root/send/caladequacy/renalktv" class="output_search" disabled="false" editable="false" style="left:738px; top:376px; width:82px; height:19px; "/>
  658. <caption id="caption56" class="cell_1" style="left:550px; top:326px; width:184px; height:23px; vertical-align:middle; ">P N A</caption>
  659. <line id="line26" class="line_2" style="x1:550px; y1:300px; x2:1191px; y2:300px; "/>
  660. <input id="input23" ref="/root/send/caladequacy/renalccr" class="output_search" disabled="false" editable="false" style="left:1012px; top:376px; width:76px; height:19px; "/>
  661. <caption id="caption59" style="left:821px; top:309px; width:38px; height:15px; ">㎡</caption>
  662. <line id="line27" class="line_2" style="x1:550px; y1:324px; x2:1191px; y2:324px; "/>
  663. <line id="line28" class="line_2" style="x1:550px; y1:348px; x2:1191px; y2:348px; "/>
  664. <input id="input25" ref="/root/send/caladequacy/bsa" class="output_search" disabled="false" editable="false" style="left:738px; top:303px; width:82px; height:19px; "/>
  665. <caption id="caption60" style="left:821px; top:332px; width:35px; height:15px; ">g/day</caption>
  666. <input id="input26" ref="/root/send/caladequacy/pna" class="output_search" disabled="false" editable="false" style="left:738px; top:327px; width:82px; height:19px; "/>
  667. <button id="button2" class="btn2_letter5" style="left:1116px; top:277px; width:75px; height:19px; ">
  668. <caption>적절도 출력</caption>
  669. <script type="javascript" ev:event="DOMActivate">
  670. <![CDATA[
  671. exeReportPreview("RPMMO08300", "XMLSTR", "", "", "false", "", "", "", "", "false");
  672. ]]>
  673. </script>
  674. </button>
  675. <button id="button3" class="btn2_letter5" style="left:1038px; top:277px; width:75px; height:19px; ">
  676. <caption>적절도 계산</caption>
  677. <script type="javascript" ev:event="DOMActivate">
  678. <![CDATA[
  679. calAdequacy();
  680. ]]>
  681. </script>
  682. </button>
  683. <line id="line24" class="line_3" style="x1:550; y1:267px; x2:1191px; y2:267px; "/>
  684. <line id="line15" class="line_3" style="x1:550px; y1:446px; x2:1191px; y2:446px; "/>
  685. <caption id="caption30" style="left:831px; top:102px; width:35px; height:15px; ">cm</caption>
  686. <caption id="caption34" class="cell_1" style="left:550px; top:96px; width:197px; height:23px; vertical-align:middle; ">height</caption>
  687. <button id="btn_bfprcpsrch" class="btn1_letter2" visibility="hidden" style="left:1125px; top:45px; width:56px; height:22px; ">
  688. <caption>조회</caption>
  689. <script type="javascript" ev:event="DOMActivate">
  690. <![CDATA[
  691. model.setValue ( "/root/send/cond1", model.getValue ( "/root/init/srchcond1" ));
  692. if ( model.getValue ( "/root/send/cond1") == "1" ) {
  693. model.setValue ( "/root/send/cond2", model.getValue ("/root/main/condition/srchpid" ));
  694. } else {
  695. model.setValue ( "/root/send/cond2", model.getValue ("/root/main/condition/patname" ));
  696. }
  697. model.setValue ( "/root/send/cond3", getUserInfo("dutplceinstcd"));
  698. model.setValue ( "/root/send/cond99", "patchosinfo");
  699. if (!submit ( "TRMMO02501",false )) { //검색 시작 값이 없으면 clear 한다.
  700. //if (!submit ( "TRPMC02500",false )) { //검색 시작 값이 없으면 clear 한다.
  701. model.resetInstanceNode ("/root/main/condition" );
  702. model.refresh();
  703. return;
  704. }
  705. var srcNodeList = model.instances(0).selectNodes("/root/patinfo/patinfolist");
  706. if ( srcNodeList.length == 1 ) { //값이 한개면 바로 화면에 보여준1다.
  707. ipt_srchpid.text = model.getValue ("/root/patinfo/patinfolist/pid");
  708. ipt_patname.text = model.getValue ("/root/patinfo/patinfolist/hngnm");
  709. output1.text = model.getValue ("/root/patinfo/patinfolist/rrgstno1");
  710. output5.text = model.getValue ("/root/patinfo/patinfolist/rrgstno2");
  711. output2.text = model.getValue ("/root/patinfo/patinfolist/sex");
  712. output3.text = model.getValue ("/root/patinfo/patinfolist/age");
  713. setHeight();
  714. doSearch("F");
  715. } else if ( srcNodeList.length > 1 ) { //값이 한개이상이면 팝업을 띄운다.
  716. searchPatinfoPop();
  717. }
  718. model.refresh();
  719. ]]>
  720. </script>
  721. </button>
  722. <caption id="caption4" class="cell_1" style="left:873px; top:96px; width:194px; height:23px; vertical-align:middle; ">weight</caption>
  723. <caption id="caption18" style="left:1151px; top:103px; width:38px; height:15px; ">kg</caption>
  724. <caption id="caption55" style="left:821px; top:356px; width:39px; height:15px; ">ml/min</caption>
  725. <caption id="caption58" class="cell_1" style="left:550px; top:350px; width:184px; height:23px; vertical-align:middle; ">residual renal function(cr+urea)</caption>
  726. <input id="input19" ref="/root/send/caladequacy/crurea" class="output_search" disabled="false" editable="false" style="left:738px; top:351px; width:82px; height:19px; "/>
  727. <line id="line17" class="line_2" style="x1:550px; y1:372px; x2:1191px; y2:372px; "/>
  728. </group>
  729. </xhtml:body>
  730. </xhtml:html>