123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SMPID23300_DRG상세정보 .xrw
- * 수정이력
- * - 2010.07.19 / 최초작성 / 김용민
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>DRG상세정보</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <drginfo>
- <seqno/>
- <ordfromdd/>
- <indd/>
- <pid/>
- <instcd/>
- <histstat/>
- <proccorpcd/>
- <rrgstno1/>
- <rrgstno2/>
- <chosindayno/>
- <ordrsltcd/>
- <age/>
- <diagcd1/>
- <diagcd2/>
- <diagcd3/>
- <diagcd4/>
- <diagcd5/>
- <diagcd6/>
- <diagcd7/>
- <diagcd8/>
- <diagcd9/>
- <diagcd10/>
- <opcd1/>
- <opcd2/>
- <opcd3/>
- <opcd4/>
- <opcd5/>
- <opcd6/>
- <opcd7/>
- <opcd8/>
- <opcd9/>
- <opcd10/>
- <excd1/>
- <excd2/>
- <excd3/>
- <excd4/>
- <excd5/>
- <rgcd1/>
- <rgcd2/>
- <rgcd3/>
- <rgcd4/>
- <rgcd5/>
- <ibcd1/>
- <ibcd2/>
- <ibcd3/>
- <ibcd4/>
- <ibcd5/>
- <arcd1/>
- <arcd2/>
- <arcd3/>
- <arcd4/>
- <arcd5/>
- <ncvcd/>
- <detailcd1/>
- <detailcd2/>
- <detailcd3/>
- <detailcd4/>
- <detailcd5/>
- <bw/>
- <vtl/>
- <mdcno/>
- <pccl/>
- <drgno/>
- <version/>
- <adrg/>
- <drgnm/>
- <nightflag/>
- <totalamt/>
- <nopyamt/>
- <allownbamt/>
- <payamt/>
- <specamt/>
- <totownbamt/>
- <payownbamt/>
- <payinsubamt/>
- <drgnopyamt/>
- <drgpayamt/>
- <drgeatamt/>
- <drggsaddamt/>
- <drgtotalamt/>
- <drgownbamt/>
- <drginsubamt/>
- <drggapamt/>
- <grupgbn/>
- <tdrgno/>
- <tdrgnm/>
- <insukind/>
- <suppkind/>
- <hngnm/>
- <orddeptcd/>
- <drgeatownbamt/>
- <drgeatinsubamt/>
- <drggsaddownbamt/>
- <drggsaddinsubamt/>
- <drgpaydiscamt/>
- <drgnopydiscamt/>
- <drgspecdiscamt/>
- <drgeatdiscamt/>
- <drggsadddiscamt/>
- <drgnm/>
- <drgallownbamt/>
- <drgoverpayinsubamt/>
- <drgoverpayamt/>
- <drgoverpayownbamt/>
- <accnopyamt/>
- <obgaaddyn/>
- <drgaccpayamt/>
- <drgaccpayownbamt/>
- <drgaccpayinsubamt/>
- <drgaccpaydiscamt/>
- <drgpayownbamt/>
- <accnopygapamt/>
- <robotyn/>
- <drgtype/>
- </drginfo>
- </main>
- <send>
- <filepath/>
- <attach>
- <file/>
- </attach>
- <drginfo>
- <seqno/>
- <ordfromdd/>
- <indd/>
- <pid/>
- <instcd/>
- <histstat/>
- <proccorpcd/>
- <rrgstno1/>
- <rrgstno2/>
- <chosindayno/>
- <ordrsltcd/>
- <age/>
- <diagcd1/>
- <diagcd2/>
- <diagcd3/>
- <diagcd4/>
- <diagcd5/>
- <diagcd6/>
- <diagcd7/>
- <diagcd8/>
- <diagcd9/>
- <diagcd10/>
- <opcd1/>
- <opcd2/>
- <opcd3/>
- <opcd4/>
- <opcd5/>
- <opcd6/>
- <opcd7/>
- <opcd8/>
- <opcd9/>
- <opcd10/>
- <excd1/>
- <excd2/>
- <excd3/>
- <excd4/>
- <excd5/>
- <rgcd1/>
- <rgcd2/>
- <rgcd3/>
- <rgcd4/>
- <rgcd5/>
- <ibcd1/>
- <ibcd2/>
- <ibcd3/>
- <ibcd4/>
- <ibcd5/>
- <arcd1/>
- <arcd2/>
- <arcd3/>
- <arcd4/>
- <arcd5/>
- <ncvcd/>
- <detailcd1/>
- <detailcd2/>
- <detailcd3/>
- <detailcd4/>
- <detailcd5/>
- <bw/>
- <vtl/>
- <mdcno/>
- <pccl/>
- <drgno/>
- <version/>
- <adrg/>
- <cretno/>
- <drggbn/>
- <drgmstat/>
- <robotyn/>
- </drginfo>
- </send>
- <init>
- <item1>
- <clamym/>
- <clamdg/>
- <pid/>
- <pidsn/>
- <patnm/>
- <insukind/>
- <suppkind/>
- <orddeptcd/>
- <indd/>
- </item1>
- <!-- 보험유형 -->
- <P0008list>
- <P0008>
- <cdnm/>
- <cdid/>
- </P0008>
- </P0008list>
- <!-- 보조유형 -->
- <P0010list>
- <P0010>
- <cdnm/>
- <cdid/>
- </P0010>
- </P0010list>
- <!-- 진료결과 -->
- <P0110list>
- <P0110>
- <cdnm/>
- <cdid/>
- </P0110>
- </P0110list>
- <orddeptcd2/>
- <PAM>
- <PK015list/>
- <PK016list/>
- <PK023list/>
- <PK030list/>
- </PAM>
- </init>
- <hidden>
- <drginfo/>
- <bind>
- <sum1/>
- <sum2/>
- <sum3/>
- <accnopay_sum/>
- <etcnopay_sum/>
- <drggapamt_sum/>
- </bind>
- <list/>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPID20309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1/ioflag" resultref="root/hidden/tmp"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // ---------------------------------------------------------------
- // 공통코드를 조회한다.
- // (ZBC001.js) com.ZBCMCODE 에서 기초코드 값 Get
- // ---------------------------------------------------------------
- zbcfGetCodeList(
- new Array("P0008" // 보험유형
- ,"P0010" // 보조유형
- ,"P0110" // 진료결과
- ),
- new Array("/root/init/P0008list"
- ,"/root/init/P0010list"
- ,"/root/init/P0110list"
- ) );
- // 2013.02.19 - 부가코드 원무공통코드조회
- pamfGetCodeList(new Array(
- "PK015"
- ,"PK016"
- ,"PK023"
- ,"PK030"
- ),
- new Array("/root/init/PAM/PK015list"
- ,"/root/init/PAM/PK016list"
- ,"/root/init/PAM/PK023list"
- ,"/root/init/PAM/PK030list"
- ));
-
- addComboItem("cmb_ncvcd", " ","", "above");
- addComboItem("cmb_detailcd1", " ","", "above");
-
- // ---------------------------------------------------------------
- // 진료과 초기화
- // ---------------------------------------------------------------
- submit("TRPID20309", false);
- model.copyNode("/root/init/orddeptcd2", "/root/hidden/tmp/orddeptcd2");
- model.removeNodeset("/root/hidden/tmp/orddeptcd");
- model.removeNodeset("/root/hidden/tmp/orddeptcd2");
- model.removeNodeset("/root/hidden/tmp/orddrid");
- model.removeNodeset("/root/hidden/tmp/orddrid2");
- fInitialize();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-close">
- <![CDATA[
- // if (model.getValue("/root/main/drginfo/drggbn") != "Y") {
- // if (model.getValue("/root/send/drginfo/drggbn") == ""){
- // model.setValue("/root/send/drginfo/drggbn","A");
- // };
- // submit("TXPIJ03204");
- // }
- //
- if (model.getValue("/root/send/drginfo/drggbn") == "Y" || model.getValue("/root/send/drginfo/drggbn") == "X") {
- opener.model.makeValue("/root/main/item11/drginfo/rslt","true");
- } else {
- opener.model.makeValue("/root/main/item11/drginfo/rslt","false");
- }
- ]]>
- </script>
- <submission id="TXPIJ03200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/drginfo" resultref="/root/rslt"/>
- <submission id="TXPIJ03201" mediatype="multipart/form-data" method="form-data-post" ref="/root/send"/>
- <submission id="TXPIJ03202" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/main"/>
- <submission id="TRPIJ03200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TXPIJ03204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- <submission id="TXPIJ03208" mediatype="multipart/form-data" method="form-data-post"/>
- <submission id="TRPIJ03203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/drginfo" resultref="/root/main/endchkinfo"/>
- </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/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
- var pid = opener.javascript.getParameter("pid");
- var indd = opener.javascript.getParameter("indd");
- var ordfromdd = opener.javascript.getParameter("ordfromdd");
- var cretno = opener.javascript.getParameter("cretno");
- var drgmstat = opener.javascript.getParameter("drgmstat");
-
- model.setValue("/root/send/drginfo/pid", pid );
- model.setValue("/root/send/drginfo/indd", indd);
- model.setValue("/root/send/drginfo/ordfromdd", ordfromdd);
- model.setValue("/root/send/drginfo/cretno", cretno);
- model.setValue("/root/send/drginfo/drgmstat", drgmstat);
-
- fGetdrgDetail();
- model.refresh();
- }
-
- function fGetdrgDetail() {
- submit("TRPIJ03200");
-
- //진료결과 체크 - 중간청구인경우 : 계속, 퇴원인경우 : 퇴원
- var dschnotiyn = model.getValue("/root/main/drginfo/dschnotiyn");
- var ordrslt = model.getValue("/root/main/drginfo/ordrsltcd");
-
- if(dschnotiyn == "Y"){
- if(ordrslt == "" || ordrslt == "-" || ordrslt == "1"){
- if(ordrslt != "4"){
- model.setValue("/root/main/drginfo/ordrsltcd","9");
- }
- }
- }else{
- if(ordrslt == "" || ordrslt == "-"){
- model.setValue("/root/main/drginfo/ordrsltcd","1");
- }
- }
-
- fGetdrgChk();
-
- }
-
- function fGetdrgChk() {
- var chosindayno = parseInt(model.getValue("/root/main/drginfo/chosindayno"));
- var insukind = model.getValue("/root/main/drginfo/insukind");
- var diagcd1 = model.getValue("/root/main/drginfo/diagcd1");
- var opcd1 = model.getValue("/root/main/drginfo/opcd1");
- var drggbn = model.getValue("/root/main/drginfo/drggbn");
- var drgmstat = model.getValue("/root/send/drginfo/drgmstat");
-
- if (insukind == "11" && chosindayno <= 30) {
- fSetdrgButton(false);
- } else {
- messageBox("재원일수 초과 : "+chosindayno+"일 DRG 대상이 아닙니다.","E");
- fSetdrgButton(true);
- }
-
- if (diagcd1.length > 0 && opcd1.length > 0) {
- fSetdrgButton(false);
- } else {
- messageBox("DRG 진단이나 수술처치가 없습니다.","E");
- fSetdrgButton(true);
- }
-
- if (drggbn == "Y") {
- fSetdrgButton(true);
- }
-
- if (drgmstat != "O") {
- button5.attribute("visibility") = "hidden";
- button7.attribute("visibility") = "hidden";
- }
-
- }
-
- function fSetdrgButton(btnVal) {
- if (btnVal) {
- button4.disabled = true;
- button5.disabled = true;
- button7.disabled = true;
- } else {
- button4.disabled = false;
- button5.disabled = true;
- button7.disabled = false;
- }
- }
-
- function fSleep(filenm) {
- var now = new Date();
- var exitTime = now.getTime() + 3000;
- var fldr = model.getValue("/root/init/PAM/PK023list/PK023[cdid='01']/cdnm");//"C:/Program Files/himed/components/KDRG/";
- var infile = model.getValue("/root/init/PAM/PK023list/PK023[cdid='02']/cdnm");//"kdrg33.in";
- var outfile = model.getValue("/root/init/PAM/PK023list/PK023[cdid='03']/cdnm");//"kdrg33.out";
- var fso = new ActiveXObject("Scripting.FileSystemObject");
-
- while (true) {
- now = new Date();
-
- //3초동안 파일이 있는지 체크한다. 생성되었으면 루프를 나온다.
- if (fso.FileExists(fldr+filenm) && fso.GetFile(fldr+filenm).Size > "0") { break; }
-
- //3초동안 파일이 없으면 빠져나온다.
- if (now.getTime() > exitTime) { break; }
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="800" pageheight="910" guideline="1,1143;2,879;2,892;" style="margin-left:5; margin-top:0; margin-right:5; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:785px; height:13px; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:195px; height:15px; ">DRG 상세정보</caption>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:15px; width:790px; height:890px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:77px; width:230px; height:13px; ">적용내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:92px; x2:778px; y2:92px; "/>
- <group id="group2" style="left:0px; top:4px; width:365px; height:58px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:365px; height:58px; "/>
- <caption id="caption2" class="search_name" style="left:90px; top:8px; width:85px; height:17px; ">등록번호</caption>
- <input id="input1" ref="/root/main/drginfo/pid" disabled="true" style="left:170px; top:7px; width:75px; height:19px; text-align:center; "/>
- <input id="input2" ref="/root/main/drginfo/hngnm" disabled="true" editable="false" style="left:250px; top:6px; width:78px; height:19px; text-align:center; "/>
- <caption id="caption3" class="tit_2" style="left:10px; top:10px; width:75px; height:13px; ">기본정보</caption>
- </group>
- <group id="group3" style="left:372px; top:4px; width:408px; height:58px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" style="left:0px; top:0px; width:405px; height:58px; "/>
- <select1 id="combo1" ref="/root/main/drginfo/suppkind" class="combo_search" disabled="true" navindex="9" appearance="minimal" style="left:277px; top:33px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0010list/P0010">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="search_name" style="left:192px; top:8px; width:86px; height:17px; ">보험유형</caption>
- <caption id="caption5" class="search_name" style="left:5px; top:35px; width:80px; height:17px; ">진료과</caption>
- <select1 id="combo2" ref="/root/main/drginfo/insukind" class="combo_search" disabled="true" navindex="9" appearance="minimal" style="left:277px; top:7px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0008list/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo3" ref="/root/main/drginfo/orddeptcd" class="combo_search" disabled="true" navindex="3" appearance="minimal" style="left:76px; top:34px; width:109px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd2/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption6" class="search_name" style="left:192px; top:34px; width:86px; height:17px; ">보조유형</caption>
- <caption id="caption7" class="search_name" style="left:6px; top:9px; width:80px; height:17px; ">입원일</caption>
- <input id="input3" ref="/root/send/drginfo/indd" class="input_default" disabled="true" navindex="3" format="yyyy-mm-dd" appearance="minimal" style="left:75px; top:8px; width:109px; height:19px; "/>
- </group>
- <caption id="caption8" class="tit_2" style="left:5px; top:381px; width:170px; height:13px; ">분류결과</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:399px; x2:778px; y2:400px; "/>
- <button id="button3" class="btn4_letter2" style="left:718px; top:867px; width:56px; height:22px; ">
- <caption>종료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.dispatch("xforms-close");
- ]]>
- </script>
- </button>
- <caption id="caption9" class="search_name" style="left:11px; top:407px; width:119px; height:17px; ">DRG번호</caption>
- <input id="input4" ref="/root/main/drginfo/drgno" class="input_default" disabled="true" editable="false" appearance="minimal" style="left:140px; top:406px; width:75px; height:39px; "/>
- <caption id="caption10" class="search_name" style="left:10px; top:452px; width:69px; height:17px; ">MDC</caption>
- <input id="input6" ref="/root/main/drginfo/mdcno" class="input_default" disabled="true" editable="false" appearance="minimal" style="left:139px; top:451px; width:75px; height:19px; "/>
- <caption id="caption11" class="search_name" style="left:11px; top:105px; width:119px; height:17px; ">진료개시일</caption>
- <input id="input7" ref="/root/send/drginfo/ordfromdd" class="input_default" disabled="true" visibility="visible" format="yyyy-mm-dd" appearance="minimal" style="left:140px; top:105px; width:80px; height:19px; "/>
- <caption id="caption12" class="search_name" style="left:291px; top:105px; width:84px; height:17px; ">입원일수</caption>
- <input id="input8" ref="/root/main/drginfo/chosindayno" class="input_default" disabled="true" visibility="visible" format="###" appearance="minimal" style="left:390px; top:105px; width:50px; height:19px; "/>
- <caption id="caption13" class="search_name" style="left:501px; top:105px; width:84px; height:17px; ">진료결과</caption>
- <select1 id="combo7" ref="/root/main/drginfo/ordrsltcd" class="combo_search" disabled="true" visibility="visible" appearance="minimal" style="left:600px; top:105px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0110list/P0110">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption14" class="search_name" style="left:11px; top:133px; width:119px; height:17px; ">진단</caption>
- <input id="input9" ref="/root/main/drginfo/diagcd1" class="input_default" disabled="true" visibility="visible" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:140px; top:133px; width:50px; height:19px; "/>
- <input id="input10" ref="/root/main/drginfo/diagcd2" class="input_default" disabled="true" visibility="visible" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:196px; top:133px; width:50px; height:19px; "/>
- <input id="input11" ref="/root/main/drginfo/diagcd3" class="input_default" disabled="true" visibility="visible" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:252px; top:133px; width:50px; height:19px; "/>
- <input id="input12" ref="/root/main/drginfo/diagcd4" class="input_default" disabled="true" visibility="visible" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:308px; top:133px; width:50px; height:19px; "/>
- <input id="input13" ref="/root/main/drginfo/diagcd5" class="input_default" disabled="true" visibility="visible" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:364px; top:133px; width:50px; height:19px; "/>
- <input id="input14" ref="/root/main/drginfo/diagcd6" class="input_default" disabled="true" visibility="visible" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:420px; top:133px; width:50px; height:19px; "/>
- <input id="input15" ref="/root/main/drginfo/diagcd7" class="input_default" disabled="true" visibility="visible" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:477px; top:133px; width:50px; height:19px; "/>
- <input id="input16" ref="/root/main/drginfo/diagcd8" class="input_default" disabled="true" visibility="visible" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:533px; top:133px; width:50px; height:19px; "/>
- <input id="input17" ref="/root/main/drginfo/diagcd9" class="input_default" disabled="true" visibility="visible" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:589px; top:133px; width:50px; height:19px; "/>
- <input id="input18" ref="/root/main/drginfo/diagcd10" class="input_default" disabled="true" visibility="visible" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:645px; top:133px; width:50px; height:19px; "/>
- <caption id="caption15" class="search_name" style="left:11px; top:161px; width:119px; height:17px; ">수술처치</caption>
- <input id="input19" ref="/root/main/drginfo/opcd1" class="input_default" disabled="false" visibility="visible" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:140px; top:161px; width:50px; height:19px; "/>
- <input id="input20" ref="/root/main/drginfo/opcd2" class="input_default" disabled="false" visibility="visible" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:196px; top:161px; width:50px; height:19px; "/>
- <input id="input21" ref="/root/main/drginfo/opcd3" class="input_default" disabled="false" visibility="visible" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:252px; top:161px; width:50px; height:19px; "/>
- <input id="input22" ref="/root/main/drginfo/opcd4" class="input_default" disabled="false" visibility="visible" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:308px; top:161px; width:50px; height:19px; "/>
- <input id="input23" ref="/root/main/drginfo/opcd5" class="input_default" disabled="false" visibility="visible" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:364px; top:161px; width:50px; height:19px; "/>
- <input id="input24" ref="/root/main/drginfo/opcd6" class="input_default" disabled="false" visibility="visible" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:420px; top:161px; width:50px; height:19px; "/>
- <input id="input25" ref="/root/main/drginfo/opcd7" class="input_default" disabled="false" visibility="visible" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:477px; top:161px; width:50px; height:19px; "/>
- <input id="input26" ref="/root/main/drginfo/opcd8" class="input_default" disabled="false" visibility="visible" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:533px; top:161px; width:50px; height:19px; "/>
- <input id="input27" ref="/root/main/drginfo/opcd9" class="input_default" disabled="false" visibility="visible" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:589px; top:161px; width:50px; height:19px; "/>
- <input id="input28" ref="/root/main/drginfo/opcd10" class="input_default" disabled="false" visibility="visible" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:645px; top:161px; width:50px; height:19px; "/>
- <caption id="caption16" class="search_name" style="left:11px; top:189px; width:119px; height:17px; ">검사</caption>
- <input id="input29" ref="/root/main/drginfo/excd1" class="input_default" disabled="true" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:140px; top:189px; width:50px; height:19px; "/>
- <input id="input30" ref="/root/main/drginfo/excd2" class="input_default" disabled="true" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:196px; top:189px; width:50px; height:19px; "/>
- <input id="input31" ref="/root/main/drginfo/excd3" class="input_default" disabled="true" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:252px; top:189px; width:50px; height:19px; "/>
- <input id="input32" ref="/root/main/drginfo/excd4" class="input_default" disabled="true" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:308px; top:189px; width:50px; height:19px; "/>
- <input id="input33" ref="/root/main/drginfo/excd5" class="input_default" disabled="true" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:364px; top:189px; width:50px; height:19px; "/>
- <caption id="caption17" class="search_name" style="left:11px; top:216px; width:119px; height:17px; ">방사선</caption>
- <input id="input34" ref="/root/main/drginfo/rgcd1" class="input_default" disabled="true" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:140px; top:216px; width:50px; height:19px; "/>
- <input id="input35" ref="/root/main/drginfo/rgcd2" class="input_default" disabled="true" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:196px; top:216px; width:50px; height:19px; "/>
- <input id="input36" ref="/root/main/drginfo/rgcd3" class="input_default" disabled="true" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:252px; top:216px; width:50px; height:19px; "/>
- <input id="input37" ref="/root/main/drginfo/rgcd4" class="input_default" disabled="true" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:308px; top:216px; width:50px; height:19px; "/>
- <input id="input38" ref="/root/main/drginfo/rgcd5" class="input_default" disabled="true" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:364px; top:216px; width:50px; height:19px; "/>
- <caption id="caption18" class="search_name" style="left:11px; top:243px; width:119px; height:17px; ">주사및혈액제제</caption>
- <input id="input39" ref="/root/main/drginfo/ibcd1" class="input_default" disabled="true" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:140px; top:243px; width:50px; height:19px; "/>
- <input id="input40" ref="/root/main/drginfo/ibcd2" class="input_default" disabled="true" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:196px; top:243px; width:50px; height:19px; "/>
- <input id="input41" ref="/root/main/drginfo/ibcd3" class="input_default" disabled="true" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:252px; top:243px; width:50px; height:19px; "/>
- <input id="input42" ref="/root/main/drginfo/ibcd4" class="input_default" disabled="true" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:308px; top:243px; width:50px; height:19px; "/>
- <input id="input43" ref="/root/main/drginfo/ibcd5" class="input_default" disabled="true" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:364px; top:243px; width:50px; height:19px; "/>
- <caption id="caption19" class="search_name" style="left:11px; top:271px; width:119px; height:17px; ">마취및호흡치료</caption>
- <input id="input44" ref="/root/main/drginfo/arcd1" class="input_default" disabled="true" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:140px; top:271px; width:50px; height:19px; "/>
- <input id="input45" ref="/root/main/drginfo/arcd2" class="input_default" disabled="true" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:196px; top:271px; width:50px; height:19px; "/>
- <input id="input46" ref="/root/main/drginfo/arcd3" class="input_default" disabled="true" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:252px; top:271px; width:50px; height:19px; "/>
- <input id="input47" ref="/root/main/drginfo/arcd4" class="input_default" disabled="true" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:308px; top:271px; width:50px; height:19px; "/>
- <input id="input48" ref="/root/main/drginfo/arcd5" class="input_default" disabled="true" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:364px; top:271px; width:50px; height:19px; "/>
- <caption id="caption20" class="search_name" style="left:11px; top:356px; width:119px; height:17px; ">입원시체중(g)</caption>
- <input id="input49" ref="/root/main/drginfo/bw" class="input_default" maxlength="4" _chartype="upper" appearance="minimal" style="left:140px; top:356px; width:50px; height:19px; "/>
- <caption id="caption21" class="search_name" style="left:270px; top:356px; width:145px; height:17px; ">인공호흡시간(hour)</caption>
- <input id="input50" ref="/root/main/drginfo/vtl" class="input_default" maxlength="4" _chartype="upper" appearance="minimal" style="left:424px; top:356px; width:50px; height:19px; "/>
- <button id="button4" class="btn4_letter6" style="left:452px; top:68px; width:104px; height:22px; ">
- <caption>DRG번호생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var fldr = model.getValue("/root/init/PAM/PK023list/PK023[cdid='01']/cdnm");//"C:/Program Files/himed/components/KDRG/";
- var infile = model.getValue("/root/init/PAM/PK023list/PK023[cdid='02']/cdnm");//"kdrg33.in";
- var outfile = model.getValue("/root/init/PAM/PK023list/PK023[cdid='03']/cdnm");//"kdrg33.out";
- var exefile = model.getValue("/root/init/PAM/PK023list/PK023[cdid='04']/cdnm");//"kdrg33.exe";
- var updfileyn = model.getValue("/root/init/PAM/PK023list/PK023[cdid='05']/cdnm");//"번호생성프로그램 사용 유무
- var age = model.getValue("/root/main/drginfo/age");// 1세미만환자는 체중과 시간은 필수입력 체크
- var bw = model.getValue("/root/main/drginfo/bw");
- var vtl = model.getValue("/root/main/drginfo/vtl");
- var fso;
- var nofile = "";
-
- if (age < "1" ) {
- if (bw.length == 0 && vtl.length ==0 ){
- messageBox("1세미만 환자입니다. 입원체중, 호홉시간은 ","I003");
- return false;
- }
- }
-
- model.setValue("/root/send/attach/file",fldr+outfile);
-
- fso = new ActiveXObject("Scripting.FileSystemObject");
- if (fso.FolderExists(fldr)){
- var files = new Array();
- var filecnt = model.getXPathValue("count(/root/init/PAM/PK030list/PK030)");
-
- for (var i=1; i <= filecnt; i++) {
- files.push(model.getValue("/root/init/PAM/PK030list/PK030["+ i +"]/cdnm"));
- }
-
- var updfilechk = true;
- for (var i=0; i < files.length; i++) {
- var updfilesize = model.getValue("/root/init/PAM/PK030list/PK030[cdnm='"+ files[i] +"']/dispseq");
- var updfilepath = model.getValue("/root/init/PAM/PK030list/PK030[cdnm='"+ files[i] +"']/detl");
-
- if (fso.FileExists(fldr+files[i])){
- if (updfileyn == "Y") {
- var nowfilesize = fso.GetFile(fldr+files[i]).Size;
- if (updfilesize != nowfilesize && updfilepath.length > 0 )
- {
- //model.download(getActionURL("TXPIJ03208") + "&attfilepath=" + updfilepath + "&filepathcolnm=attfilepath", fldr+files[i], false);
- download("TXPIJ03208", "&attfilepath=" + updfilepath + "&filepathcolnm=attfilepath", fldr+files[i], false);
- updfilechk = false;
- }
- }
- } else {
- if (updfileyn == "Y") {
- //model.download(getActionURL("TXPIJ03208") + "&attfilepath=" + updfilepath + "&filepathcolnm=attfilepath", fldr+files[i], false);
- download("TXPIJ03208", "&attfilepath=" + updfilepath + "&filepathcolnm=attfilepath", fldr+files[i], false);
- updfilechk = false;
- } else {
- nofile += files[i]+"의 구성요서가 없습니다.! 다운로드 하세요.\n";
- }
- }
- }
- if (!updfilechk) {
- alert("파일이 업데이트 되었습니다. 다시 시도 해주세요." );
- return false;
- }
- if (nofile.length>0) {
- alert(nofile);
- return false;
- } else {
- //기존파일 삭제
- if (fso.FileExists(fldr + infile)){ fso.DeleteFile(fldr + infile); }
- if (fso.FileExists(fldr + outfile)){ fso.DeleteFile(fldr + outfile); }
- //1in파일 생성 및 다운로드
- var pid = model.getValue("/root/send/drginfo/pid");
- var indd = model.getValue("/root/send/drginfo/indd");
- var ordfromdd = model.getValue("/root/send/drginfo/ordfromdd");
- var cretno = model.getValue("/root/send/drginfo/cretno");
- //화면에있는 내용으로 마스터테이블에 저장후 in 파일을 다운로드한다.
- submit("TXPIJ03200",false);
- download("TXPIJ03201", "&pid=" + pid +
- "ªromdd=" + ordfromdd +
- "&indd=" + indd +
- "&cretno=" + cretno +
- "&infilenm=" + infile
- ,fldr + infile
- ,false);
-
- fSleep(infile);
- model.refresh();
-
- //2in파일이 다운로드되었으면 exe파일실행.
- if (fso.FileExists(fldr + infile)) {
- window.exec(fldr + exefile, fldr + infile, fldr);
-
- fSleep(outfile);
- model.refresh();
- if (fso.FileExists(fldr+outfile)) {
-
- upload2.refresh();
- if (submit("TXPIJ03202")) {
- //완료되었습니다.
- messageBox("DRG번호생성이","I002");
- button5.disabled = false;
- } else {
- //실패하였습니다.
- messageBox("DRG번호생성을","E009");
- button5.disabled = true;
- }
- //생성파일 삭제
- if (fso.FileExists(fldr + infile)){ fso.DeleteFile(fldr + infile); }
- if (fso.FileExists(fldr + outfile)){ fso.DeleteFile(fldr + outfile); }
- } else {
- messageBox("out 파일이 존재 하지 않습니다.","E");
- }
-
- } else {
- messageBox("in 파일이 존재 하지 않습니다.","E");
- }
-
- }
-
- } else {
- //폴더가 없으면 다운로드 한다.
- fso.CreateFolder(fldr);
- messageBox("DRG 번호생성 프로그램을 다운로드하거나 다시 시도 ","I008");
-
- }
-
- ]]>
- </script>
- </button>
- <upload id="upload2" nodeset="/root/send/attach/file" style="left:260px; top:65px; width:100px; height:20px; "/>
- <caption id="caption22" class="search_name" style="left:11px; top:328px; width:119px; height:17px; ">부가코드</caption>
- <select1 id="cmb_detailcd1" ref="/root/main/drginfo/detailcd1" appearance="minimal" style="left:140px; top:328px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/PAM/PK015list/PK015">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_detailcd2" ref="/root/main/drginfo/detailcd2" appearance="minimal" style="left:250px; top:329px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/PAM/PK015list/PK015">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_detailcd3" ref="/root/main/drginfo/detailcd3" appearance="minimal" style="left:360px; top:329px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/PAM/PK015list/PK015">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_detailcd4" ref="/root/main/drginfo/detailcd4" appearance="minimal" style="left:470px; top:329px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/PAM/PK015list/PK015">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_detailcd5" ref="/root/main/drginfo/detailcd5" appearance="minimal" style="left:580px; top:329px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/PAM/PK015list/PK015">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption23" class="search_name" style="left:10px; top:299px; width:167px; height:17px; ">알콜및약물중독재활치료</caption>
- <select1 id="cmb_ncvcd" ref="/root/main/drginfo/ncvcd" appearance="minimal" style="left:195px; top:300px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/PAM/PK016list/PK016">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption24" class="search_name" style="left:230px; top:450px; width:69px; height:17px; ">ADRG</caption>
- <input id="input51" ref="/root/main/drginfo/adrg" class="input_default" disabled="true" editable="false" appearance="minimal" style="left:310px; top:450px; width:75px; height:19px; "/>
- <input id="input52" ref="/root/main/drginfo/pccl" class="input_default" disabled="true" editable="false" appearance="minimal" style="left:484px; top:450px; width:75px; height:19px; "/>
- <caption id="caption25" class="search_name" style="left:410px; top:450px; width:69px; height:17px; ">PCCL</caption>
- <input id="input53" ref="/root/main/drginfo/version" class="input_default" disabled="true" editable="false" appearance="minimal" style="left:670px; top:450px; width:75px; height:19px; "/>
- <caption id="caption26" class="search_name" style="left:580px; top:450px; width:90px; height:17px; ">Version</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:510px; x2:778px; y2:510px; "/>
- <caption id="caption27" class="tit_2" style="left:5px; top:492px; width:170px; height:13px; ">DRG 진료비 계산 내역</caption>
- <button id="button5" accesskey="ctrl+f2" class="btn4_letter2" disabled="true" style="left:652px; top:68px; width:56px; height:22px; ">
- <caption>확정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRPIJ03203");
- var formendyn = model.getValue("/root/main/endchkinfo/formendyn");
- if (formendyn != "Y") {
- messageBox("의료질평가서 종결이 되지 않았습니다. 확인하세요. ","E");
- return false;
- }
- var msg = messageBox("DRG 확정 하시겠습니까?","S001");
- if (msg == 6) {
- model.setValue("/root/send/drginfo/drggbn", "Y");
- model.setValue("/root/send/drginfo/drgno", model.getValue("/root/main/drginfo/drgno"));
-
- if (submit("TXPIJ03204")) {
-
- } else {
- messageBox("DRG 확정중 에러 발생 ","E");
- return false;
- }
-
- model.dispatch("xforms-close");
- }
- ]]>
- </script>
- </button>
- <caption id="caption66" class="search_name" style="left:536px; top:358px; width:145px; height:17px; ">야간,공휴,심야가산</caption>
- <button id="button7" accesskey="f6" class="btn4_letter3" disabled="true" style="left:710px; top:68px; width:68px; height:22px; ">
- <caption>재심사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/drginfo/drggbn", "A");
-
- submit("TXPIJ03204");
-
- model.dispatch("xforms-close");
- ]]>
- </script>
- </button>
- <textarea id="textarea1" ref="/root/main/drginfo/drgnm" disabled="true" scroll="auto" style="left:221px; top:406px; width:549px; height:39px; "/>
- <caption id="caption28" class="search_name" style="left:360px; top:300px; width:144px; height:17px; ">산부인과가산 유무</caption>
- <caption id="caption29" style="left:4px; top:872px; width:378px; height:15px; font-weight:bold; color:#ff6600; ">* 열외군보상(★) = ((1) + (2) + (3)) - ((4) + (5) + (7) + (8))</caption>
- <caption id="caption30" style="left:395px; top:872px; width:320px; height:15px; font-weight:bold; color:#ff6600; ">* 진료비총액 차액(C) = (A) - (B)</caption>
- <button id="button1" class="btn4_letter5" style="left:558px; top:68px; width:92px; height:22px; ">
- <caption>DRG 제외</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var msg = messageBox("DRG 대상에서 제외 하시겠습니까?","S001");
- if (msg == 6) {
- model.setValue("/root/send/drginfo/drggbn", "X");
-
- submit("TXPIJ03204");
- model.dispatch("xforms-close");
- }
- ]]>
- </script>
- </button>
- <bool id="bool1" checkvalue="Y,N" ref="/root/main/drginfo/obgaaddyn" style="left:495px; top:300px; width:20px; height:15px; "/>
- <button id="button2" accesskey="ctrl+f5" class="btn4_letter2" disabled="true" visibility="hidden" style="left:604px; top:867px; width:56px; height:22px; ">
- <caption>배포</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- open("SPPIJ03202");
- ]]>
- </script>
- </button>
- <bool id="bool2" checkvalue="Y,N" ref="/root/main/drginfo/nightflag" style="left:675px; top:360px; width:20px; height:15px; "/>
- <button id="button6" class="btn6_letter2" disabled="false" visibility="visible" style="left:661px; top:867px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- window.print();
- ]]>
- </script>
- </button>
- <import id="import1" src="../../../pam/bfjudgweb/xrw/SPPIJ03203_DRG계산내역.xrw" style="left:0px; top:515px; width:780px; height:349px; "/>
- <button id="btn_nopy" class="btn3_letter11" style="left:615px; top:485px; width:164px; height:22px; ">
- <caption>비급여 처방 내역 조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/list");
-
- model.makeValue("/root/hidden/list/instcd", model.getValue("/root/main/drginfo/instcd"));
- model.makeValue("/root/hidden/list/pid", model.getValue("/root/main/drginfo/pid"));
- model.makeValue("/root/hidden/list/indd", model.getValue("/root/main/drginfo/indd"));
- model.makeValue("/root/hidden/list/cretno", model.getValue("/root/main/drginfo/cretno"));
- model.makeValue("/root/hidden/list/ordfromdd",model.getValue("/root/main/drginfo/ordfromdd"));
- modal("SPPIJ03204", 1, "", "","SPPIJ03204", "/root/hidden/list", "/root/hidden/list");
- ]]>
- </script>
- </button>
- <bool id="bool3" checkvalue="Y,N" ref="/root/main/drginfo/robotyn" style="left:635px; top:300px; width:20px; height:15px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (bool3.value == "Y") {
- bool1.disabled = true;
- bool2.disabled = true;
- bool1.value = "N";
- bool2.value = "N";
- } else {
- bool1.disabled = false;
- bool2.disabled = false;
- }
- ]]>
- </script>
- </bool>
- <caption id="caption31" class="search_name" style="left:530px; top:300px; width:105px; height:17px; ">로봇수술유무</caption>
- <input id="input5" ref="/root/main/drginfo/drgtype" class="input_default" disabled="true" editable="false" appearance="minimal" style="left:139px; top:475px; width:75px; height:19px; "/>
- <caption id="caption32" class="search_name" style="left:10px; top:475px; width:90px; height:17px; ">대분류</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|