123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423 |
- <?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>APACHE II 조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <apchpatlist>
- <item>
- <no/>
- <pid/>
- <hngnm/>
- <sexage/>
- <age/>
- <depthngnm/>
- <fromdd/>
- <todd/>
- <todd2/>
- <inapchscore/>
- <indethrate/>
- <inapchscorea/>
- <outapchscore/>
- <outdethrate/>
- <outapchscorea/>
- <ining/>
- <orddd/>
- <cretno/>
- <apchdd/>
- <orddeptcd/>
- </item>
- </apchpatlist>
- </main>
- <send>
- <reqdata/>
- <reqdata2/>
- </send>
- <hidden/>
- <init>
- <ward/>
- <orddept>
- <dept/>
- </orddept>
- <userlist/>
- <orddeptlist/>
- </init>
- <cond>
- <stnddd/>
- <enddd/>
- <range/>
- <ward/>
- <orddept/>
- <status/>
- <outchk/>
- <scorechk/>
- <scoredown/>
- <scoreup/>
- </cond>
- <temp>
- <initlist/>
- </temp>
- <paminfo>
- </paminfo>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- messageBox("아파치 프로그램이 SAPS 프로그램으로 변경되었습니다.\n 문의사항:심사팀","I");
- open("SMMMR04000");
-
- var vNowDD = getCurrentDate();
-
- model.setValue("/root/cond/stnddd",vNowDD);
- model.setValue("/root/cond/enddd",vNowDD);
- model.setValue("/root/cond/status", "2");
- model.setValue("/root/cond/range", "0");
- model.setValue("/root/cond/orddept", "-");
-
- var node = getGlobalVariable("paminfo");
-
- model.removeNodeset("/root/main/paminfo");
- setCSVToNode("/root/main", node, "paminfo");
-
- //zsdfGetInOutOrdDeptList(getUserInfo("dutplceinstcd"),"/root/init/orddept","depthngnm","asc"); //전체 진료과
- mmbfGetDeptCodeComboList("/root/send/reqdata2", "/root/init/orddept", "A");
- addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "-^전체", "dept"); //부서콤보 Item '전체'추가
- var jobkindcd = getUserInfo("jobkindcd");
- //var wardinfo = opener.instance1.getXPathString("/root/main/paminfo");
- var wardinfo = model.getValue("/root/main/paminfo/wardcd");
-
- if(jobkindcd == "0330"){ // 사용자 직종 : 의사
- model.setValue("/root/cond/ward", wardinfo); // 병동정보
- model.refresh();
- }else{
- model.setValue("/root/cond/ward", getUserInfo("dutplcecd")); // 근무부서
- model.refresh();
- }
-
- if(submit("TRMMR03000")){
- copyNodesetType("/root/init/ward","/root/temp/initlist/icudept","replace", model, model);
- }
-
- addComboInstance("/root/init/ward" , "deptcd^deptnm", "-^전체", "icudept"); //중환자실 부서콤보 Item '전체'추가
- model.setValue("/root/cond/ward", "-");
-
- // if(cmb_icu.label == ""){
- // model.setValue("/root/cond/ward", "3060100000"); // 내과중환자실
- // }
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRMMR03000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/init/ward"/>
- <submission id="TRMMR03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/main/apchpatlist"/>
- <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZSD00208" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMRC00050" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/orddept/dept"/>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../emr/anstrecweb/js/MMR03000.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="1055" pageheight="820">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:10px; top:25px; width:1035px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption6" class="tit_1" style="left:20px; top:10px; width:106px; height:13px; ">APACHE II</caption>
- <line id="line13" class="line_4" style="x1:972px; y1:33px; x2:972px; y2:75px; "/>
- <caption id="caption2" class="search_name" style="left:20px; top:33px; width:80px; height:17px; ">조회기준</caption>
- <line id="line12" class="line_1" style="x1:10px; y1:108px; x2:1045px; y2:108px; "/>
- <caption id="caption17" class="tit_2" style="left:13px; top:91px; width:95px; height:13px; ">환자리스트</caption>
- <caption id="caption29" class="search_name" style="left:20px; top:58px; width:85px; height:17px; ">중환자실</caption>
- <datagrid id="grd_apachelist" nodeset="/root/main/apchpatlist/item" caption="NO^등록번호^성 명^S/A^Age^진료과^입실시각^퇴실시각^입실일자^퇴실일자^퇴실일자2^입실시 Score^입실시 Score^입실시 Score^퇴실시 Score^퇴실시 Score^퇴실시 Score^ICU재원기간^입원일자^입원번호^APCHDD^진료과코드^ADJUSTED명칭^재원정보|NO^등록번호^성 명^S/A^Age^진료과^입실시각^퇴실시각^입실일자^퇴실일자^caption1^A^D^D(Adjusted)^A^D^D(Adjusted)^ICU재원기간^입원일자^입원번호^APCHDD^진료과코드^ADJUSTED명칭^재원정보" colsep="^" colwidth="35, 90, 100, 60, 0, 120, 117, 115, 70, 70, 0, 50, 50, 80, 0, 0, 0, 80, 0, 0, 0, 0" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:10px; top:113px; width:1035px; height:672px; text-align:center; ">
- <col ref="no"/>
- <col ref="pid"/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="sexage"/>
- <col ref="age" visibility="hidden"/>
- <col ref="depthngnm"/>
- <col ref="ipsildt" format="yyyy-mm-dd hh:nn"/>
- <col ref="toisildt"/>
- <col ref="fromdd" visibility="hidden"/>
- <col ref="todd" visibility="hidden"/>
- <col ref="todd2" visibility="hidden"/>
- <col ref="inapchscore" style="text-align:center; "/>
- <col ref="indethrate" style="text-align:center; "/>
- <col editable="false" ref="inapchscorea" type="inputbutton" style="text-align:center; "/>
- <col ref="outapchscore" visibility="hidden" style="text-align:center; "/>
- <col ref="outdethrate" visibility="hidden" style="text-align:center; "/>
- <col editable="false" ref="outapchscorea" type="inputbutton" visibility="hidden" style="text-align:center; "/>
- <col ref="ining"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="apchdd" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var curcol = grd_apachelist.col;
- var iRow = grd_apachelist.row - grd_apachelist.fixedRows + 1;
-
- if(model.getValue("/root/main/apchpatlist/item["+ iRow +"]/pid") == ""){
- messageBox("환자를 ","C002");
- return;
- }
-
- if (curcol == 14) {
- setParameter("SPMMR03200_pid", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/pid"));
- setParameter("SPMMR03200_hngnm", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/hngnm"));
- setParameter("SPMMR03200_orddd", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/orddd"));
- setParameter("SPMMR03200_cretno", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/cretno"));
- //setParameter("SPMMR03200_apchdd", model.getValue("/root/cond/stnddd"));
- setParameter("SPMMR03200_apchdd", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/fromdd"));
- setParameter("SPMMR03200_age", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/age"));
- setParameter("SPMMR03200_fromdd", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/fromdd"));
- setParameter("SPMMR03200_todd", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/todd"));
-
- //modal("SPMMR03200", "", "", "", "", "/root/send/param", "/root/send");
- window.load("SPMMR03200_아파치기록정보.xrw", "modeless", "pop1", "width:900px; height:980;");
-
- inputEnterKey("btn_srch", "DOMActivate");
- }else if (curcol == 15) {
- if(model.getValue("/root/main/apchpatlist/item["+ iRow +"]/todd") == "99991231"){
- messageBox("현재 재원중 ","E008");
- return;
- }
-
- setParameter("SPMMR03200_pid", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/pid"));
- setParameter("SPMMR03200_hngnm", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/hngnm"));
- setParameter("SPMMR03200_orddd", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/orddd"));
- setParameter("SPMMR03200_cretno", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/cretno"));
- setParameter("SPMMR03200_apchdd", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/todd"));
- setParameter("SPMMR03200_age", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/age"));
- setParameter("SPMMR03200_fromdd", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/fromdd"));
- setParameter("SPMMR03200_todd", model.getValue("/root/main/apchpatlist/item["+ iRow +"]/todd"));
-
- //modal("SPMMR03200", "", "", "", "", "/root/send/param", "/root/send");
- window.load("SPMMR03200_아파치기록정보.xrw", "modeless", "pop1", "width:900px; height:980;");
-
- inputEnterKey("btn_srch", "DOMActivate");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_apachelist.gridToInstance();
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="bnt_srch" class="btn4_letter4" style="left:965px; top:0px; width:80px; height:22px; ">
- <caption>기간조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMMMR03100");
- ]]>
- </script>
- </button>
- <button id="btn_setting" class="btn4_letter10" visibility="hidden" style="left:810px; top:0px; width:152px; height:22px; ">
- <caption>APACHE II setting</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPMMR03500");
- ]]>
- </script>
- </button>
- <input id="ipt_reqstnddd" ref="/root/cond/stnddd" class="input_essential" inputtype="date" format="yyyy-mm-dd" style="left:105px; top:33px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/cond/stnddd", model.getValue("/root/cond/stnddd"));
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_reqenddd" ref="/root/cond/enddd" class="input_essential" inputtype="date" format="yyyy-mm-dd" style="left:220px; top:33px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/cond/enddd", model.getValue("/root/cond/enddd"));
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="cmb_term" ref="/root/cond/range" class="combo_search" appearance="minimal" style="left:320px; top:33px; width:60px; height:19px; ">
- <choices>
- <item>
- <label/>
- <value>0</value>
- </item>
- <item>
- <label>3개월</label>
- <value>90</value>
- </item>
- <item>
- <label>6개월</label>
- <value>180</value>
- </item>
- <item>
- <label>9개월</label>
- <value>270</value>
- </item>
- <item>
- <label>1년</label>
- <value>365</value>
- </item>
- <item>
- <label>2년</label>
- <value>730</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var date2 = ipt_reqenddd.value;
- var term = cmb_term.value;
- ipt_reqstnddd.value = date2.toDate().getAddDate(-term,"D").getDateFormat("YYYYMMDD") ;
- ]]>
- </script>
- </select1>
- <select1 id="cmb_icu" ref="/root/cond/ward" class="combo_search" appearance="minimal" style="left:105px; top:58px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ward/icudept">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/cond/ward", model.getValue("/root/cond/ward"));
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_orddeptcd" ref="/root/cond/orddept" class="combo_search" appearance="minimal" style="left:320px; top:58px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/cond/orddept", model.getValue("/root/cond/orddept"));
- model.refresh();
- ]]>
- </script>
- </select1>
- <button id="btn_srch" class="btn1_letter2" style="left:980px; top:42px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn2_letter4" style="left:981px; top:87px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_apachelist.saveExcel(fileName, "SheetName", true, false, "", "", true);
- }
- ]]>
- </script>
- </button>
- <select id="opt_outchk" ref="/root/cond/outchk" overflow="visible" appearance="full" style="left:600px; top:35px; width:100px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>퇴실환자 포함</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="caption1" style="left:205px; top:35px; width:15px; height:15px; ">~</caption>
- <caption id="caption3" class="search_name" style="left:245px; top:58px; width:85px; height:17px; ">진 료 과</caption>
- <select1 id="rdo_status" ref="/root/cond/status" appearance="full" cellspacing="8" cols="3" rows="1" overflow="visible" style="left:385px; top:35px; width:210px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>재원중</label>
- <value>0</value>
- </item>
- <item>
- <label>퇴실일자</label>
- <value>1</value>
- </item>
- <item>
- <label>입실일자</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/cond/status", model.getValue("/root/cond/status"));
-
- if(model.getValue("/root/cond/status") == "1"){
- opt_outchk.disabled = true;
- }else{
- opt_outchk.disabled = false;
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <select id="opt_scorechk" ref="/root/cond/scorechk" overflow="visible" appearance="full" style="left:780px; top:35px; width:190px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>APACHE Score 20점 이하</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="opt_scoredown" ref="/root/cond/scoredown" overflow="visible" appearance="full" style="left:600px; top:60px; width:175px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>APACHE Score 21 ~ 25점</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="opt_scoreup" ref="/root/cond/scoreup" overflow="visible" appearance="full" style="left:780px; top:60px; width:180px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>APACHE Score 26점 이상</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:298px; top:87px; width:625px; height:19px; "/>
- <caption id="caption4" style="left:306px; top:88px; width:616px; height:20px; ">* A : APACHE|| score (점) D : Predicted death rate (%) D(Adjusted) : Predicted death rate (%)</caption>
- <button id="button1" class="btn2_letter3" style="left:926px; top:87px; width:64px; height:19px; ">
- <caption>매뉴얼</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMAZZ00101",1,0,0,"SMAZZ00101");
- ]]>
- </script>
- </button>
- <caption id="caption5" style="left:10px; top:790px; width:645px; height:25px; font-weight:bold; ">* APACHE Score 점수 별 조회는 조회된 환자리스트 중에서만 가능합니다.</caption>
- <button id="button2" class="btn1_letter3" style="left:680px; top:0px; width:56px; height:22px; ">
- <caption>SAPS3</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMMMR04000");
- //fSearch();
- //model.refresh();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|