123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>복막투석적절도관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <condition>
- <srchpid/>
- <diafg/>
- <patsex/>
- <patage/>
- <patheight/>
- <patname/>
- <patrrgstno1/>
- <patrrgstno2/>
- <fromdd/>
- <todd/>
- </condition>
- <dialexamlist/>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <patinfoht/>
- <paminfo/>
- </main>
- <hidden>
- <ret>
- <count/>
- </ret>
- </hidden>
- <send>
- <reqdata/>
- <savedata>
- <execdt>
- </execdt>
- <bdwtval/>
- <urinevol/>
- <urinetm/>
- <urinecreatival/>
- <urineurea/>
- <serumcreatival/>
- <preblodbunval/>
- <postblodbunval/>
- <dialcreatival/>
- <dialurea/>
- <dialprotval/>
- <dialvol/>
- <filtvol/>
- <srchpid/>
- <dialseq/>
- <instcd/>
- <calktv/>
- <calwccr/>
- <calnpna/>
- <dialflag/>
- <state/>
- <bdhtval/>
- </savedata>
- <caladequacy>
- <bsa/>
- <pna/>
- <npna/>
- <renalccr/>
- <renalktv/>
- <periccr/>
- <periktv/>
- <weekktv/>
- <weekccr/>
- <crurea/>
- </caladequacy>
- <req>
- <data1/>
- </req>
- <cond1/>
- <cond2/>
- <cond3/>
- <cond99/>
- </send>
- <init>
- <srchcond1/>
- </init>
- </root>
- </instance>
- <submission id="TRMMO08403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/dialexamlist"/>
- <submission id="TXMMO08404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden/ret"/>
- <submission id="TRMMO08404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/patinfoht"/>
- <submission id="TRMMO02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/patinfo"/>
- <!--submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/patinfo"/-->
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
-
- model.makeValue("/root/send/savedata/execdt", getCurrentDate());
- model.refresh();
-
- var pamInfoCvs = getGlobalVariable("paminfo"); //상단정보가 있을 경우는 검색
- var pid = "";
- //alert(pamInfoCvs);
- if(pamInfoCvs != "" ){ //cvs가 ""이 아닌 경우에만 처리함.
- model.removeNodeSet("/root/main/paminfo/list");
- setCSVToNode("/root/main/paminfo", pamInfoCvs);
- var ioflag = model.getValue("/root/main/paminfo/list/ioflag");
-
- //model.setValue("/root/hidden/condition/psnflag", ioflag);
- model.setValue("/root/main/condition/srchpid", model.getValue("/root/main/paminfo/list/pid") );
- // model.setValue("/root/main/condition/patname", model.getValue("/root/main/paminfo/list/hngnm") );
- // model.setValue("/root/main/condition/patrrgstno1", model.getValue("/root/main/paminfo/list/rrgstno1") );
- // model.setValue("/root/main/condition/patrrgstno2", model.getValue("/root/main/paminfo/list/rrgstno2") );
- // model.setValue("/root/main/condition/patsex", model.getValue("/root/main/paminfo/list/sex") );
- // model.setValue("/root/main/condition/patage", model.getValue("/root/main/paminfo/list/age") );
-
- model.refresh();
-
- model.setValue ( "/root/send/cond1", "1");
- model.setValue ( "/root/send/cond2", model.getValue ("/root/main/condition/srchpid" ));
- model.setValue ( "/root/send/cond3", getUserInfo("dutplceinstcd"));
- model.setValue ( "/root/send/cond99", "patchosinfo");
-
- if (!submit ( "TRMMO02501",false )) { //검색 시작 값이 없으면 clear 한다.
- model.resetInstanceNode ("/root/main/condition" );
- model.refresh();
- return;
- }
-
- var srcNodeList = model.instances(0).selectNodes("/root/patinfo/patinfolist");
- if ( srcNodeList.length == 1 ) { //값이 한개면 바로 화면에 보여준1다.
- ipt_srchpid.text = model.getValue ("/root/patinfo/patinfolist/pid");
- ipt_patname.text = model.getValue ("/root/patinfo/patinfolist/hngnm");
- output1.text = model.getValue ("/root/patinfo/patinfolist/rrgstno1");
- output5.text = model.getValue ("/root/patinfo/patinfolist/rrgstno2");
- output2.text = model.getValue ("/root/patinfo/patinfolist/sex");
- output3.text = model.getValue ("/root/patinfo/patinfolist/age");
-
- setHeight();
-
- doSearch("F");
-
- } else if ( srcNodeList.length > 1 ) { //값이 한개이상이면 팝업을 띄운다.
- searchPatinfoPop();
- }
- model.refresh();
-
- // setHeight();
-
- // doSearch("F");
- }
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
- var idate=new Date();
- var frDate=idate.getAddDate(-1, "M");
-
- model.setValue("/root/main/condition/fromdd", frDate.getDateFormat());
- model.setValue("/root/main/condition/todd", getCurrentDate());
- }
-
- function doSearch(flag) {
- model.setValue("/root/main/condition/diafg", "P");
- model.copyNode("/root/send/reqdata", "/root/main/condition");
-
- var fromdd = model.getValue("/root/main/condition/fromdd");
- fromdd = fromdd.substr(0,4) + "-" + fromdd.substr(4,2) + "-" + fromdd.substr(6,2) + "-00.00.00.000000";
- model.setValue("/root/send/reqdata/fromdd", fromdd);
- var todd = model.getValue("/root/main/condition/todd");
- todd = todd.substr(0,4) + "-" + todd.substr(4,2) + "-" + todd.substr(6,2) + "-00.00.00.000000";
- model.setValue("/root/send/reqdata/todd", todd);
-
- //model.setValue("/root/send/reqdata/diafg", "H");
- submit("TRMMO08403");
- }
-
- function viewDetInfo() {
-
- model.setValue("/root/main/condition/srchpid", model.getValue("/root/main/dialexamlist/info[" + grd_dialexamlist.row + "]/srchpid"));
- model.copyNode("/root/send/savedata", "/root/main/dialexamlist/info[" + grd_dialexamlist.row + "]");
-
- if(model.getValue("/root/send/savedata/bdhtval") == "") {
- model.setValue("/root/send/savedata/bdhtval", model.getValue("/root/main/condition/patheight")) ;
- }
-
- model.refresh();
-
- calAdequacy(); // 적절도 계산
-
- }
-
- function calAdequacy() {
- if (model.getValue("/root/main/condition/patsex") == "" || model.getValue("/root/main/condition/patage") == "" || model.getValue("/root/main/condition/patheight") == "") {
- messageBox("적절도 계산시 성별, 나이, 신장은", "I003", "\n등록번호를 이용하여 환자정보를 조회하세요.");
- model.setFocus("ipt_srchpid");
- return;
- }
-
- // 계산에 필요한 항목
- var pre_hdbun = model.getValue("/root/send/savedata/preblodbunval");
- var post_hdbun = model.getValue("/root/send/savedata/postblodbunval");
- var weight = model.getValue("/root/send/savedata/bdwtval");
- var pat_sex = model.getValue("/root/main/condition/patsex");
- var pat_age = model.getValue("/root/main/condition/patage");
- var pat_height = model.getValue("/root/main/condition/patheight");
- var urine_vol = model.getValue("/root/send/savedata/urinevol"); // 소변량
- var urine_creatinine = model.getValue("/root/send/savedata/urinecreatival");
- var serum_creatinine = model.getValue("/root/send/savedata/serumcreatival");
- var urine_urea = model.getValue("/root/send/savedata/urineurea");
- var urine_time = model.getValue("/root/send/savedata/urinetm"); // 모은시간
- var ultrafilt_vol = model.getValue("/root/send/savedata/filtvol");
- var dial_time = model.getValue("/root/send/savedata/dialtims");
- var dial_vol = model.getValue("/root/send/savedata/dialvol");
- var dial_urea = model.getValue("/root/send/savedata/dialurea");
- var dial_protval = model.getValue("/root/send/savedata/dialprotval");
- var dial_creatival = model.getValue("/root/send/savedata/dialcreatival");
- var height = model.getValue("/root/send/savedata/bdhtval");
-
- if(weight == "") { messageBox("Weight는", "I003"); model.setFocus("input1"); return; }
- if(height == "") { messageBox("Heightt는", "I003"); model.setFocus("input16"); return; }
- if(urine_vol == "") { messageBox("Urine Volume은", "I003"); model.setFocus("input6"); return; }
- if(urine_time == "") { messageBox("Urin Collection Duration은", "I003"); model.setFocus("input13"); return; }
- if(urine_creatinine == "") { messageBox("Urine Creatinine은", "I003"); model.setFocus("input9"); return; }
- if(urine_urea == "") { messageBox("Urin Urea는", "I003"); model.setFocus("input2"); return; }
- if(serum_creatinine == "") { messageBox("Serum Creatinine은", "I003"); model.setFocus("input3"); return; }
- if(pre_hdbun == "") { messageBox("BUN은", "I003"); model.setFocus("input4"); return; }
- if(dial_creatival == "") { messageBox("Dialysate Creatinine은", "I003"); model.setFocus("input7"); return; }
- if(dial_urea == "") { messageBox("Dialysate Urea는", "I003"); model.setFocus("input8"); return; }
- if(dial_protval == "") { messageBox("Dialysate Protein은", "I003"); model.setFocus("input10"); return; }
- if(dial_vol == "") { messageBox("Dialysate Volume은", "I003"); model.setFocus("input11"); return; }
- if(ultrafilt_vol == "") { messageBox("Ultrafiltration Volume은", "I003"); model.setFocus("input12"); return; }
-
- // Divide By Zero 관련 처리
- if(weight == 0) { messageBox("Weight는 '0'값을 입력", "E001"); model.setFocus("input1"); return; }
- if(pre_hdbun == 0) { messageBox("BUN은 '0'값을 입력", "E001"); model.setFocus("input4"); return; }
- if(urine_time == 0) { messageBox("urine collection duration은 '0'값을 입력", "E001"); model.setFocus("input13"); return; }
- if(serum_creatinine == 0) { messageBox("Serum Creatinine은 '0'값을 입력", "E001"); model.setFocus("input3"); return; }
-
- // 적절도 계산
- var bsa = getBSA(weight, height);
- var tbw = getTBW(pat_sex, pat_age, height, weight);
- var pna = getPNA(urine_vol, urine_time, urine_urea, dial_vol, dial_urea, dial_protval);
- var npna = getNPNA(pna, tbw);
- var crurea = getCrUrea(urine_vol, urine_creatinine, serum_creatinine, urine_urea, pre_hdbun, urine_time);
- var renal_ktv = getRenalKtv(urine_urea, urine_vol, pre_hdbun, tbw, urine_time);
- var peritoneal_ktv = getPeritonealKtv(dial_urea, dial_vol, pre_hdbun, tbw);
- var weekly_ktv = renal_ktv + peritoneal_ktv;
- var renal_ccr = getRenalCcr(urine_creatinine, serum_creatinine, urine_vol, urine_time, tbw, bsa);
- var peritoneal_ccr = getPeritonealCcr(dial_creatival, dial_vol, serum_creatinine, tbw, bsa);
- //var weekly_ccr = renal_ccr + peritoneal_ccr;
- //2008-09-03
- //var weekly_ccr = (((renal_ccr + peritoneal_ccr) * 60 * 24 * 7 ) / 1000 ) / bsa * 1.73;
- var week_ccr = (((renal_ccr + peritoneal_ccr) * 60 * 24 * 7 ) / 1000 );
- var weekly_ccr = week_ccr * bsa / 1.73;
-
- model.setValue("/root/send/caladequacy/bsa", bsa); // BSA 계산
- model.setValue("/root/send/caladequacy/pna", pna); // PNA 계산
- model.setValue("/root/send/caladequacy/npna", npna); // NPNA 계산
- model.setValue("/root/send/caladequacy/crurea", crurea); // resudual renal function(cr+urea) 계산
- model.setValue("/root/send/caladequacy/renalktv", renal_ktv); // Renal Kt/V 계산
- model.setValue("/root/send/caladequacy/periktv", peritoneal_ktv); // Peritoneal Kt/V 계산
- model.setValue("/root/send/caladequacy/weekktv", weekly_ktv); // Weekly KT/V 계산
- model.setValue("/root/send/caladequacy/renalccr", renal_ccr); // Renal Ccr 계산
- model.setValue("/root/send/caladequacy/periccr", peritoneal_ccr); // Peritoneal Ccr 계산
- model.setValue("/root/send/caladequacy/weekccr", getCutNumber(weekly_ccr, 4)); // Weekly Ccr 계산
- model.refresh();
- return true;
- }
-
- function getCutNumber(num, place) {
- return Math.floor( num * Math.pow(10,parseInt(place,10)) ) / Math.pow(10,parseInt(place,10));
- }
-
- function pointCalc(temp) {
- var index = temp.indexOf(".");
- var frontStr; var backStr;
- frontStr = temp.substring(0, index+1);
- backStr = temp.substring(index+1);
- temp = frontStr + backStr.substring(0, 4);
- return temp;
- }
-
- function getTBW(pat_sex, pat_age, height, weight) {
- var this_tbw = "";
- if(pat_sex == "M") { // 남자
- this_tbw = 2.447 - (0.09516 * pat_age) + (0.1074 * height) + (0.3362 * weight);
- } else { // 여자
- this_tbw = (0.1069 * height) + (0.2466 * weight) - 2.097;
- }
- return getCutNumber(this_tbw,4);
-
- }
-
- function getPNA(urine_vol, urine_time, urine_urea, dial_vol, dial_urea, dial_protval){
- 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;
- return getCutNumber(pna, 4);
- }
-
- function getNPNA(pna, ptbw){
- var npna;
- if(ptbw == 0) { // Divide by Zero 처리
- npna = 0;
- } else {
- npna = pna/(ptbw/0.58);
- }
- return getCutNumber(npna, 4);
- }
-
- function getCrUrea(urine_vol, urine_creatinine, serum_creatinine, urine_urea, pre_hdbun, urine_time){
- var this_crurea = urine_vol * (urine_creatinine / serum_creatinine + urine_urea / pre_hdbun) / (2 * urine_time * 60);
- return getCutNumber(this_crurea, 4);
- }
-
- function getRenalKtv(urine_urea, urine_vol, pre_hdbun, tbw, urine_time) {
- var this_renal_ktv = urine_vol * urine_urea / (pre_hdbun * urine_time) * 24 * 7 / 1000 / tbw;
- return getCutNumber(this_renal_ktv, 4);
- }
-
- function getPeritonealKtv(dial_urea, dial_vol, pre_hdbun, tbw) {
- var this_peritoneall_ktv = (dial_urea * dial_vol / 1000) / pre_hdbun * 7 / tbw;
- return getCutNumber(this_peritoneall_ktv, 4);
- }
-
- function getRenalCcr(urine_creatinine, serum_creatinine, urine_vol, urine_time, tbw, bsa) {
- //var this_renal_ccr = (urine_vol * urine_creatinine) / (serum_creatinine * urine_time) * 24 * 7 / 1000 / tbw / bsa * 1.73;
- var this_renal_ccr = (urine_vol * urine_creatinine) / (serum_creatinine * urine_time * 60) ; // 20080227 윤혜은 선생님 확인사항 수정. 단위 ml/min
- return getCutNumber(this_renal_ccr, 4);
- }
-
- function getPeritonealCcr(dial_creatival, dial_vol, serum_creatinine, tbw, bsa) {
- //var this_peri_ccr = dial_vol * dial_creatival / serum_creatinine * 1000 * 7 / 1000 / tbw / bsa / 1.73;
- var this_peri_ccr = dial_vol * dial_creatival / (serum_creatinine * 1440); // 20080227 윤혜은 선생님 확인사항 수정. 단위 ml/min
- return getCutNumber(this_peri_ccr, 4);
- }
-
- function getBSA(weight, height) {
- var cal_bsa = 0;
- cal_bsa = 71.84 * Math.pow(weight, 0.425) * Math.pow(height,0.725) / 10000;
- //cal_bsa = 0.007184 * Math.pow(weight, 0.425) * Math.pow(height,0.725);
- return getCutNumber(cal_bsa,4);
- }
- function setHeight() {
- model.copyNode("/root/send/reqdata", "/root/main/condition");
- submit("TRMMO08404");
- model.setValue("/root/main/condition/patheight", model.getValue("/root/main/patinfoht/info/bdht"));
- if(model.getValue("/root/main/condition/patheight") == ""){
- model.setValue("/root/main/condition/patheight", 0);
- }
- model.refresh();
- }
-
- function searchPatinfoPop() {
-
- if ( model.getValue ( "/root/init/srchcond1") == "1" ) { // 등록번호 검색
- model.makeValue("/root/temp/send/pid", model.getValue("/root/main/condition/srchpid"));
- model.makeValue("/root/temp/send/srchcond", "1");
- }
-
- if ( model.getValue ( "/root/init/srchcond1") == "2" ) { // 환자이름 검색
- model.makeValue("/root/temp/send/hngnm", model.getValue("/root/main/condition/patname"));
- model.makeValue("/root/temp/send/srchcond", "2");
- }
- var xpt = window.screenleft + 100;
- var ypt = window.screenTop + 100;
-
- modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/temp/send", "/root/send");
-
- if(model.getValue("/root/main/popupendflag") != "ok") {
- return;
- }
-
- model.setValue("/root/main/condition/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/main/condition/patname", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/main/condition/patrrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
- var patrrgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
- patrrgstno2 = patrrgstno2.substr(0,1) + "******";
- //model.setValue("/root/main/condition/patrrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
- model.setValue("/root/main/condition/patrrgstno2", patrrgstno2);
- model.setValue("/root/main/condition/patsex", model.getValue("/root/main/patinfo/patinfolist/sex"));
- model.setValue("/root/main/condition/patage", model.getValue("/root/main/patinfo/patinfolist/age"));
-
- model.refresh();
-
- setHeight();
-
- doSearch("F");
- }
-
- function fMoveFocus(vCtrlID){
- if( event.keyCode == 13 ) {
- if( vCtrlID != "" ) model.setFocus(vCtrlID);
- }
- }
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="1240" pageheight="676" guideline="1,1194;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:160px; height:14px; ">복막투석 적절도 관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:15px; width:1195px; height:650px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <button id="button1" class="btn1_letter2" style="left:1129px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/main/condition/srchpid") ==""){
- messageBox("등록번호를 ", "C001");
- model.setFocus("ipt_srchpid");
- return;
- }
- doSearch("F");
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" style="x1:1119px; y1:7px; x2:1119px; y2:29px; ">1</line>
- <caption id="caption1" class="search_name" style="left:465px; top:9px; width:86px; height:17px; ">환자명 :</caption>
- <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; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- model.setValue ( "/root/init/srchcond1", "2");
- inputEnterKey ( "btn_bfprcpsrch", "DOMActivate" )
- ]]>
- </script>
- </input>
- <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; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- model.setValue ( "/root/init/srchcond1", "1");
- inputEnterKey ( "btn_bfprcpsrch", "DOMActivate" )
- ]]>
- </script>
- </input>
- <caption id="caption16" class="search_name" style="left:284px; top:9px; width:99px; height:17px; ">등록번호 :</caption>
- <button id="btn_srchpid" class="icon_search" style="left:447px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- searchPatinfoPop();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:620px; top:9px; width:86px; height:17px; ">주민번호 :</caption>
- <caption id="caption3" class="search_name" style="left:844px; top:9px; width:93px; height:17px; ">성별/나이 :</caption>
- <caption id="caption5" class="search_name" style="left:986px; top:9px; width:79px; height:17px; ">Height :</caption>
- <caption id="caption7" style="left:1095px; top:13px; width:25px; height:15px; ">cm</caption>
- <output id="output1" ref="/root/main/condition/patrrgstno1" class="output_search" style="left:711px; top:9px; width:58px; height:19px; "/>
- <output id="output2" ref="/root/main/condition/patsex" class="output_search" style="left:941px; top:9px; width:20px; height:19px; "/>
- <output id="output3" ref="/root/main/condition/patage" class="output_search" style="left:963px; top:9px; width:20px; height:19px; "/>
- <output id="output4" ref="/root/main/condition/patheight" class="output_search" style="left:1065px; top:9px; width:30px; height:19px; "/>
- <output id="output5" ref="/root/main/condition/patrrgstno2" class="output_search" style="left:783px; top:9px; width:56px; height:19px; "/>
- <caption id="caption33" class="search_no_b" style="left:770px; top:10px; width:12px; height:17px; ">~</caption>
- <caption id="caption46" class="search_no_b" style="left:178px; top:9px; width:12px; height:17px; ">~</caption>
- <input id="ipt_todd" ref="/root/main/condition/todd" class="input_default" inputtype="date" style="left:192px; top:9px; width:86px; height:19px; "/>
- <caption id="caption44" class="search_name" style="left:3px; top:9px; width:116px; height:17px; ">시행일자 :</caption>
- <input id="ipt_fromdd" ref="/root/main/condition/fromdd" class="input_default" inputtype="date" style="left:90px; top:9px; width:86px; height:19px; "/>
- </group>
- <caption id="caption31" class="tit_2" style="left:5px; top:53px; width:144px; height:14px; vertical-align:middle; ">복막투석 적절도 조회</caption>
- <caption id="caption32" class="tit_2" style="left:555px; top:53px; width:170px; height:13px; vertical-align:middle; ">복막투석 적절도 기본정보</caption>
- <caption id="caption20" style="left:833px; top:151px; width:45px; height:15px; ">mg/dl</caption>
- <caption id="caption42" class="cell_1" style="left:550px; top:144px; width:197px; height:23px; vertical-align:middle; ">urine creatinine</caption>
- <caption id="caption21" style="left:1151px; top:126px; width:35px; height:15px; ">ml</caption>
- <caption id="caption11" class="cell_1" style="left:873px; top:120px; width:194px; height:23px; vertical-align:middle; ">urine volume</caption>
- <line id="line2" class="line_1" style="x1:550px; y1:68px; x2:1191px; y2:68px; "/>
- <line id="line4" class="line_2" style="x1:550px; y1:94px; x2:1191px; y2:94px; "/>
- <caption id="caption39" class="cell_1" style="left:550px; top:120px; width:197px; height:23px; vertical-align:middle; ">urine collection duration</caption>
- <caption id="caption8" class="cell_1" style="left:550px; top:72px; width:197px; height:23px; vertical-align:middle; ">시행일자</caption>
- <line id="line5" class="line_2" style="x1:550px; y1:118px; x2:1191px; y2:118px; "/>
- <caption id="caption9" class="cell_1" style="left:873px; top:144px; width:194px; height:23px; vertical-align:middle; ">urine urea</caption>
- <caption id="caption19" style="left:833px; top:126px; width:34px; height:15px; ">hrs</caption>
- <line id="line7" class="line_1" style="x1:550px; y1:297px; x2:1191px; y2:297px; "/>
- <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; ">
- <col ref="execdt" format="yyyy-mm-dd" style="left:613px; top:32px; width:93px; height:23px; "/>
- <col ref="calktv"/>
- <col ref="calwccr"/>
- <col ref="calnpna"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( grd_dialexamlist.rows- grd_dialexamlist.fixedRows > 0 && grd_dialexamlist.mouseRow != 0){
- viewDetInfo();
- }
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:0px; y1:68px; x2:540px; y2:68px; "/>
- <group id="grp_btn" style="left:0px; top:620px; width:1194px; height:27px; ">
- <button id="button42" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("데이터를", "Q001") == 6 ) {
- if( grd_dialexamlist.rows- grd_dialexamlist.fixedRows > 0 ){
- var rowcnt = grd_dialexamlist.selectedRow(0);
- if(rowcnt < 1) {
- var msg = messageBox("삭제할 정보를 ", "C002");
- return;
- } else {
- model.setValue("/root/send/savedata/state", "D");
- model.copyNode("/root/send/req/data1", "/root/send/savedata");
- var exec_date = model.getValue("/root/send/savedata/execdt");
- exec_date = exec_date.substr(0,4) + "-" + exec_date.substr(4,2) + "-" + exec_date.substr(6,2) + "-00.00.00.000000";
- model.setValue("/root/send/req/data1/execdt", exec_date);
-
- submit("TXMMO08404");
-
- // 삭제후 상세정보 지우기
- //model.resetInstanceNode("/root/main/condition");
- model.resetInstanceNode("/root/send/savedata");
- model.resetInstanceNode("/root/send/caladequacy");
- model.refresh();
-
- doSearch("D");
- }
- }
- }
- ]]>
- </script>
- </button>
- <button id="button8" class="btn4_letter2" style="left:1078px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("데이터를", "Q002") == 6 ) {
- if (model.getValue("/root/main/condition/srchpid") == "") {
- messageBox("등록번호 항목은", "I003");
- return;
- }
- if (model.getValue("/root/send/savedata/execdt") == "") {
- messageBox("시행일자 항목은", "I003");
- return;
- }
- if(!calAdequacy()){ // 적절도 계산
- return;
- }
- model.setValue("/root/send/savedata/srchpid", model.getValue("/root/main/condition/srchpid"));
- model.setValue("/root/send/savedata/calktv", model.getValue("/root/send/caladequacy/weekktv"));
- model.setValue("/root/send/savedata/calwccr", model.getValue("/root/send/caladequacy/weekccr"));
- model.setValue("/root/send/savedata/calnpna", model.getValue("/root/send/caladequacy/npna"));
- model.setValue("/root/send/savedata/dialflag", "P");
- if(model.getValue("/root/send/savedata/dialseq") == ""){
- model.setValue("/root/send/savedata/dialseq", 0);
- }
- model.copyNode("/root/send/req/data1", "/root/send/savedata");
-
- var exec_date = model.getValue("/root/send/savedata/execdt");
- exec_date = exec_date.substr(0,4) + "-" + exec_date.substr(4,2) + "-" + exec_date.substr(6,2) + "-00.00.00.000000";
- model.setValue("/root/send/req/data1/execdt", exec_date);
-
- submit("TXMMO08404"); // 저장/수정
-
- doSearch("S");
- }
- ]]>
- </script>
- </button>
- <button id="button16" class="btn4_letter3" style="left:1007px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/send/savedata");
- model.resetInstanceNode("/root/send/caladequacy");
- model.makeValue("/root/send/savedata/execdt", getCurrentDate());
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption13" style="left:1151px; top:151px; width:35px; height:15px; ">mg/dl</caption>
- <line id="line6" class="line_2" style="x1:550px; y1:142px; x2:1191px; y2:142px; "/>
- <line id="line8" class="line_2" style="x1:550px; y1:167px; x2:1191px; y2:167px; "/>
- <line id="line9" class="line_2" style="x1:550px; y1:192px; x2:1191px; y2:192px; "/>
- <input id="ipt_execdt" ref="/root/send/savedata/execdt" class="input_essential" inputtype="date" style="left:750px; top:73px; width:117px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input16");
- ]]>
- </script>
- </input>
- <input id="input16" ref="/root/send/savedata/bdhtval" class="input_default" imemode="disabled" format="#.#" style="left:750px; top:97px; width:81px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input1");
- ]]>
- </script>
- </input>
- <input id="input1" ref="/root/send/savedata/bdwtval" class="input_default" imemode="disabled" format="#.#" style="left:1070px; top:97px; width:81px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input13");
- ]]>
- </script>
- </input>
- <input id="input13" ref="/root/send/savedata/urinetm" class="input_default" imemode="disabled" format="#.#" style="left:750px; top:121px; width:81px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input6");
- ]]>
- </script>
- </input>
- <input id="input6" ref="/root/send/savedata/urinevol" class="input_default" imemode="disabled" format="#.#" style="left:1069px; top:121px; width:82px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input9");
- ]]>
- </script>
- </input>
- <input id="input9" ref="/root/send/savedata/urinecreatival" class="input_default" imemode="disabled" format="#.#" style="left:750px; top:146px; width:82px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input2");
- ]]>
- </script>
- </input>
- <input id="input2" ref="/root/send/savedata/urineurea" class="input_default" imemode="disabled" format="#.#" style="left:1070px; top:146px; width:81px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input3");
- ]]>
- </script>
- </input>
- <input id="input3" ref="/root/send/savedata/serumcreatival" class="input_default" imemode="disabled" format="#.#" style="left:750px; top:171px; width:82px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input4");
- ]]>
- </script>
- </input>
- <input id="input4" ref="/root/send/savedata/preblodbunval" class="input_default" imemode="disabled" format="#.#" style="left:1070px; top:171px; width:81px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input7");
- ]]>
- </script>
- </input>
- <input id="input7" ref="/root/send/savedata/dialcreatival" class="input_default" imemode="disabled" format="#.#" style="left:750px; top:196px; width:82px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input8");
- ]]>
- </script>
- </input>
- <input id="input8" ref="/root/send/savedata/dialurea" class="input_default" imemode="disabled" format="#.#" style="left:1070px; top:196px; width:81px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input10");
- ]]>
- </script>
- </input>
- <input id="input10" ref="/root/send/savedata/dialprotval" class="input_default" imemode="disabled" format="#.#" style="left:750px; top:221px; width:82px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input11");
- ]]>
- </script>
- </input>
- <input id="input11" ref="/root/send/savedata/dialvol" class="input_default" imemode="disabled" format="#.#" style="left:1070px; top:221px; width:81px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input12");
- ]]>
- </script>
- </input>
- <input id="input12" ref="/root/send/savedata/filtvol" class="input_default" imemode="disabled" format="#.#" style="left:750px; top:246px; width:82px; height:19px; "/>
- <caption id="caption10" class="cell_1" style="left:550px; top:169px; width:197px; height:23px; vertical-align:middle; ">serum creatinine</caption>
- <caption id="caption12" style="left:833px; top:176px; width:45px; height:15px; ">mg/dl</caption>
- <caption id="caption14" style="left:1151px; top:176px; width:35px; height:15px; ">mg/dl</caption>
- <caption id="caption15" class="cell_1" style="left:873px; top:169px; width:194px; height:23px; vertical-align:middle; ">BUN</caption>
- <line id="line10" class="line_2" style="x1:550px; y1:167px; x2:1191px; y2:167px; "/>
- <line id="line11" class="line_2" style="x1:550px; y1:217px; x2:1191px; y2:217px; "/>
- <line id="line12" class="line_2" style="x1:550px; y1:192px; x2:1191px; y2:192px; "/>
- <caption id="caption17" class="cell_1" style="left:550px; top:194px; width:197px; height:23px; vertical-align:middle; ">dialysate creatinine</caption>
- <caption id="caption22" style="left:833px; top:201px; width:45px; height:15px; ">mg/dl</caption>
- <caption id="caption23" style="left:1151px; top:201px; width:35px; height:15px; ">mg/dl</caption>
- <caption id="caption24" class="cell_1" style="left:873px; top:194px; width:194px; height:23px; vertical-align:middle; ">dialysate urea</caption>
- <line id="line13" class="line_2" style="x1:550px; y1:242px; x2:1191px; y2:242px; "/>
- <line id="line14" class="line_2" style="width:196px; x1:550px; y1:215px; x2:1191px; y2:215px; "/>
- <caption id="caption25" style="left:833px; top:226px; width:45px; height:15px; ">mg/dl</caption>
- <caption id="caption26" style="left:1151px; top:226px; width:40px; height:15px; ">ml/day</caption>
- <caption id="caption27" class="cell_1" style="left:873px; top:219px; width:194px; height:23px; vertical-align:middle; ">dialysis volume</caption>
- <caption id="caption28" class="cell_1" style="left:550px; top:219px; width:197px; height:23px; vertical-align:middle; ">dialysate protein</caption>
- <line id="line16" class="line_2" style="x1:550px; y1:242px; x2:1191px; y2:242px; "/>
- <caption id="caption29" style="left:833px; top:251px; width:45px; height:15px; ">ml/day</caption>
- <caption id="caption35" class="cell_1" style="left:550px; top:244px; width:197px; height:23px; vertical-align:middle; ">ultrafiltration volume</caption>
- <input id="input14" ref="/root/send/caladequacy/periktv" class="output_search" disabled="false" editable="false" style="left:738px; top:401px; width:82px; height:19px; "/>
- <input id="input15" ref="/root/send/caladequacy/periccr" class="output_search" disabled="false" editable="false" style="left:1012px; top:401px; width:76px; height:19px; "/>
- <line id="line18" class="line_2" style="x1:550px; y1:397px; x2:1191px; y2:397px; "/>
- <line id="line20" class="line_2" style="x1:550px; y1:422px; x2:1191px; y2:422px; "/>
- <input id="input17" ref="/root/send/caladequacy/weekktv" class="output_search" disabled="false" editable="false" style="left:738px; top:426px; width:82px; height:19px; "/>
- <line id="line21" class="line_2" style="x1:550px; y1:397px; x2:1191px; y2:397px; "/>
- <input id="input18" ref="/root/send/caladequacy/weekccr" class="output_search" disabled="false" editable="false" style="left:1012px; top:426px; width:76px; height:19px; "/>
- <caption id="caption36" class="cell_1" style="left:550px; top:374px; width:184px; height:23px; vertical-align:middle; ">Kr/V (renal)</caption>
- <caption id="caption37" style="left:1091px; top:332px; width:54px; height:15px; ">g/kg/day</caption>
- <line id="line23" class="line_2" style="x1:550px; y1:422px; x2:1191px; y2:422px; "/>
- <caption id="caption38" style="left:821px; top:406px; width:45px; height:15px; ">L/week</caption>
- <caption id="caption40" class="cell_1" style="left:869px; top:326px; width:140px; height:23px; vertical-align:middle; ">n P N A</caption>
- <caption id="caption41" style="left:1091px; top:406px; width:99px; height:15px; ">ml/min</caption>
- <caption id="caption43" style="left:821px; top:381px; width:45px; height:15px; ">L/week</caption>
- <input id="input20" ref="/root/send/caladequacy/npna" class="output_search" disabled="false" editable="false" style="left:1012px; top:327px; width:76px; height:19px; "/>
- <caption id="caption45" class="cell_1" style="left:869px; top:399px; width:140px; height:23px; vertical-align:middle; ">Ccr (peritoneal)</caption>
- <caption id="caption47" class="cell_1" style="left:550px; top:302px; width:184px; height:23px; vertical-align:middle; ">B S A</caption>
- <caption id="caption48" style="left:821px; top:431px; width:45px; height:15px; ">L/week</caption>
- <caption id="caption49" style="left:1091px; top:381px; width:99px; height:15px; ">ml/min</caption>
- <caption id="caption50" style="left:1091px; top:431px; width:99px; height:15px; ">L/wk/1.73㎡ BSA</caption>
- <caption id="caption51" class="cell_1" style="left:869px; top:374px; width:140px; height:23px; vertical-align:middle; ">Ccr (renal)</caption>
- <caption id="caption52" class="cell_1" style="left:869px; top:424px; width:140px; height:23px; vertical-align:middle; ">Weekly Ccr</caption>
- <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>
- <caption id="caption54" class="cell_1" style="left:550px; top:399px; width:184px; height:23px; vertical-align:middle; ">Kt/V (peritoneal)</caption>
- <input id="input22" ref="/root/send/caladequacy/renalktv" class="output_search" disabled="false" editable="false" style="left:738px; top:376px; width:82px; height:19px; "/>
- <caption id="caption56" class="cell_1" style="left:550px; top:326px; width:184px; height:23px; vertical-align:middle; ">P N A</caption>
- <line id="line26" class="line_2" style="x1:550px; y1:300px; x2:1191px; y2:300px; "/>
- <input id="input23" ref="/root/send/caladequacy/renalccr" class="output_search" disabled="false" editable="false" style="left:1012px; top:376px; width:76px; height:19px; "/>
- <caption id="caption59" style="left:821px; top:309px; width:38px; height:15px; ">㎡</caption>
- <line id="line27" class="line_2" style="x1:550px; y1:324px; x2:1191px; y2:324px; "/>
- <line id="line28" class="line_2" style="x1:550px; y1:348px; x2:1191px; y2:348px; "/>
- <input id="input25" ref="/root/send/caladequacy/bsa" class="output_search" disabled="false" editable="false" style="left:738px; top:303px; width:82px; height:19px; "/>
- <caption id="caption60" style="left:821px; top:332px; width:35px; height:15px; ">g/day</caption>
- <input id="input26" ref="/root/send/caladequacy/pna" class="output_search" disabled="false" editable="false" style="left:738px; top:327px; width:82px; height:19px; "/>
- <button id="button2" class="btn2_letter5" style="left:1116px; top:277px; width:75px; height:19px; ">
- <caption>적절도 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPMMO08300", "XMLSTR", "", "", "false", "", "", "", "", "false");
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter5" style="left:1038px; top:277px; width:75px; height:19px; ">
- <caption>적절도 계산</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- calAdequacy();
- ]]>
- </script>
- </button>
- <line id="line24" class="line_3" style="x1:550; y1:267px; x2:1191px; y2:267px; "/>
- <line id="line15" class="line_3" style="x1:550px; y1:446px; x2:1191px; y2:446px; "/>
- <caption id="caption30" style="left:831px; top:102px; width:35px; height:15px; ">cm</caption>
- <caption id="caption34" class="cell_1" style="left:550px; top:96px; width:197px; height:23px; vertical-align:middle; ">height</caption>
- <button id="btn_bfprcpsrch" class="btn1_letter2" visibility="hidden" style="left:1125px; top:45px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue ( "/root/send/cond1", model.getValue ( "/root/init/srchcond1" ));
- if ( model.getValue ( "/root/send/cond1") == "1" ) {
- model.setValue ( "/root/send/cond2", model.getValue ("/root/main/condition/srchpid" ));
- } else {
- model.setValue ( "/root/send/cond2", model.getValue ("/root/main/condition/patname" ));
- }
- model.setValue ( "/root/send/cond3", getUserInfo("dutplceinstcd"));
- model.setValue ( "/root/send/cond99", "patchosinfo");
-
- if (!submit ( "TRMMO02501",false )) { //검색 시작 값이 없으면 clear 한다.
- //if (!submit ( "TRPMC02500",false )) { //검색 시작 값이 없으면 clear 한다.
- model.resetInstanceNode ("/root/main/condition" );
- model.refresh();
- return;
- }
-
- var srcNodeList = model.instances(0).selectNodes("/root/patinfo/patinfolist");
- if ( srcNodeList.length == 1 ) { //값이 한개면 바로 화면에 보여준1다.
- ipt_srchpid.text = model.getValue ("/root/patinfo/patinfolist/pid");
- ipt_patname.text = model.getValue ("/root/patinfo/patinfolist/hngnm");
- output1.text = model.getValue ("/root/patinfo/patinfolist/rrgstno1");
- output5.text = model.getValue ("/root/patinfo/patinfolist/rrgstno2");
- output2.text = model.getValue ("/root/patinfo/patinfolist/sex");
- output3.text = model.getValue ("/root/patinfo/patinfolist/age");
-
- setHeight();
-
- doSearch("F");
-
- } else if ( srcNodeList.length > 1 ) { //값이 한개이상이면 팝업을 띄운다.
- searchPatinfoPop();
- }
- model.refresh();
-
-
- ]]>
- </script>
- </button>
- <caption id="caption4" class="cell_1" style="left:873px; top:96px; width:194px; height:23px; vertical-align:middle; ">weight</caption>
- <caption id="caption18" style="left:1151px; top:103px; width:38px; height:15px; ">kg</caption>
- <caption id="caption55" style="left:821px; top:356px; width:39px; height:15px; ">ml/min</caption>
- <caption id="caption58" class="cell_1" style="left:550px; top:350px; width:184px; height:23px; vertical-align:middle; ">residual renal function(cr+urea)</caption>
- <input id="input19" ref="/root/send/caladequacy/crurea" class="output_search" disabled="false" editable="false" style="left:738px; top:351px; width:82px; height:19px; "/>
- <line id="line17" class="line_2" style="x1:550px; y1:372px; x2:1191px; y2:372px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|