123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432 |
- <?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>
- <srchcncrpat>
- <ordtype/>
- <fromdd/>
- <todd/>
- <deptinfo/>
- <drinfo/>
- <pid/>
- <patnm/>
- <chkcncr/>
- </srchcncrpat>
- <cncrrgstpatlist>
- <list>
- <instcd/>
- <cncrno/>
- <cncrhistno/>
- <seqno/>
- <pid/>
- <cretno/>
- <orddd/>
- <orddeptcd/>
- <orddrid/>
- <orddrnm/>
- <depthngnm/>
- <indg/>
- <totinhospdayno/>
- <dschdd/>
- <dschdeptcd/>
- <dschdrid/>
- <dschdrnm/>
- <depthngnm/>
- <ordtype/>
- <hngnm/>
- <disp_orddeptcd/>
- <disp_orddeptnm/>
- <disp_orddd/>
- <disp_orddrid/>
- <disp_orddrnm/>
- <rrgstno1/>
- <rrgstno2/>
- <epoch/>
- <sex/>
- <age/>
- <hometel/>
- <mpphontel/>
- <zipcd1/>
- <zipcd2/>
- <addr/>
- <detaddr/>
- <maryflag/>
- <forgneryn/>
- <jobcd1/>
- <jobcd2/>
- <etcjob/>
- <reluserhngnm/>
- <relation/>
- <relzipcd1/>
- <relzipcd2/>
- <reladdr/>
- <reldetaddr/>
- <relmpphontel/>
- <relhometel/>
- <wandereryn/>
- <prmycncryn/>
- <sickstatcd/>
- <cureopendd/>
- <dethplcecd/>
- <dethdd/>
- <dethcause/>
- <yearcnt/>
- <monthcnt/>
- <diagdd/>
- <diaghospcd/>
- <diagdrid/>
- <diagdrnm/>
- <lastdiagmthdcd/>
- <clinical/>
- <etcclinical/>
- <tophcd/>
- <tophseqno/>
- <morphcd1/>
- <morphseqno1/>
- <morphcd2/>
- <morphseqno2/>
- <icd10cd/>
- <difrntgrdecd/>
- <seer/>
- <t/>
- <n/>
- <m/>
- <stagingcd/>
- <etcstagflagcd/>
- <etcstagcnts/>
- <rerntmetstaspartcd1/>
- <rerntmetstaspartcd2/>
- <rerntmetstaspartcd3/>
- <rerntmetstaspartcd4/>
- <rerntmetstaspartseq1/>
- <rerntmetstaspartseq2/>
- <rerntmetstaspartseq3/>
- <rerntmetstaspartseq4/>
- <ecog/>
- <regimen1/>
- <regimen2/>
- <validyn/>
- <mig/>
- <etcdiaghospnm/>
- <disp_cncrhistno/>
- <disp_icd10cd/>
- <serdiagno/>
- </list>
- </cncrrgstpatlist>
- <common>
- <com/>
- </common>
- <cond>
- <patsearflag/>
- </cond>
- </main>
- <send>
- <reqdata/>
- </send>
- <init>
- <srchcncrrgst>
- <deptinfo/>
- <drinfo/>
- </srchcncrrgst>
- <instcd/>
- </init>
- <patientgrup>
- <patientgruplist/>
- </patientgrup>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.addLog("===================시작");
- var rgstfromdd = ((getCurrentDate()).toDate()).getAddDate(-30, "D");
- model.makeValue("/root/main/srchcncrpat/fromdd" , rgstfromdd.getDateFormat());
- model.makeValue("/root/main/srchcncrpat/todd" , getCurrentDate());
- model.addLog(getCurrentTime());
-
- rdo_ordtype.select(0);
- zbcfGetCodeList( new Array("C0048"), new Array("/root/init/instcd"));
-
- // zsdfGetInOutOrdDeptList(getUserInfo("dutplceinstcd")
- // , "/root/main/common/com", "depthngnm", "asc");//전체 진료과 조회
- // copyNodeset("/root/init/srchcncrrgst/deptinfo", "/root/main/common/com/dept", "replace");
- // addComboItem("cmb_srchcncrrgst", "전체", "", "above");
- // model.setValue("/root/main/srchcncrpat/deptinfo", "");
- // addComboItem("cmb_drinfo", "전체", "", "above");
- // model.setValue("/root/main/srchcncrpat/drinfo", "");
-
- cncryn = "Y";
- model.refresh();
- model.addLog("===================종료");
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fChngSrchCond(){
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/orddeptcd", model.getValue("/root/main/srchcncrpat/deptinfo"));
- model.makeValue("/root/send/reqdata/queryflag", "total");
- submit("TRMRF02303", true, "/root/send/reqdata", "/root/main/common/drlist");
- copyNodeset("/root/init/srchcncrrgst/drinfo", "/root/main/common/drlist");
- model.setValue("/root/init/srchcncrrgst/drinfo/drid[0]", "");
- model.setValue("/root/main/srchcncrpat/drinfo", "");
- cmb_drinfo.select(0);
- model.refresh();
- }
-
- function fSrchCncrPatRgst(){
- model.makeValue("/root/send/reqdata/ordtype", model.getValue("/root/main/srchcncrpat/ordtype"));
- model.makeValue("/root/send/reqdata/fromdd", model.getValue("/root/main/srchcncrpat/fromdd"));
- model.makeValue("/root/send/reqdata/todd", model.getValue("/root/main/srchcncrpat/todd"));
- model.makeValue("/root/send/reqdata/orddeptcd", model.getValue("/root/main/srchcncrpat/deptinfo"));
- model.makeValue("/root/send/reqdata/orddrid", model.getValue("/root/main/srchcncrpat/drinfo"));
- model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/srchcncrpat/pid"));
- model.makeValue("/root/send/reqdata/chkcncr", model.getValue("/root/main/srchcncrpat/chkcncr"));
- model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/reqdata/userid", getUserId());
-
- submit("TRMRD02301");
- model.removeNodeset("/root/send/reqdata");
- }
-
- function fExecBatch() {
- model.makeValue("/root/send/reqdata/ordtype", model.getValue("/root/main/srchcncrpat/ordtype"));
- model.makeValue("/root/send/reqdata/fromdd", model.getValue("/root/main/srchcncrpat/fromdd"));
- model.makeValue("/root/send/reqdata/todd", model.getValue("/root/main/srchcncrpat/todd"));
- model.makeValue("/root/send/reqdata/orddeptcd", model.getValue("/root/main/srchcncrpat/deptinfo"));
- model.makeValue("/root/send/reqdata/orddrid", model.getValue("/root/main/srchcncrpat/drinfo"));
- model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/srchcncrpat/pid"));
- model.makeValue("/root/send/reqdata/chkcncr", model.getValue("/root/main/srchcncrpat/chkcncr"));
- model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/reqdata/userid", getUserId());
-
- if ( submit("TRMRD02302") ) {
- messageBox("배치실행이", "I001", "실행시간이 오래 걸릴수 있으니 '암환자배치기록' 화면에서 확인하세요");
- }
- model.removeNodeset("/root/send/reqdata");
- }
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMRF02303" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMRD02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/cncrrgstpatlist"/>
- <submission id="TRMRD02302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata"/>
- </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="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1185px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_orddept" class="search_name" visibility="hidden" style="left:20px; top:40px; width:88px; height:17px; ">진료과 :</caption>
- <button id="button2" class="btn1_letter2" style="left:1105px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSrchCncrPatRgst();
- ]]>
- </script>
- </button>
- <select1 id="cmb_srchcncrrgst" ref="/root/main/srchcncrpat/deptinfo" class="combo_search" visibility="hidden" appearance="minimal" itemcount="30" style="left:97px; top:40px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/srchcncrrgst/deptinfo">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChngSrchCond();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_drinfo" ref="/root/main/srchcncrpat/drinfo" class="combo_search" visibility="hidden" appearance="minimal" style="left:360px; top:39px; width:75px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/srchcncrrgst/drinfo">
- <label ref="drnm"/>
- <value ref="drid"/>
- </itemset>
- </choices>
- </select1>
- <input id="input13" ref="/root/main/srchcncrpat/fromdd" class="input_search" inputtype="date" style="left:125px; top:14px; width:90px; height:19px; "/>
- <caption id="caption56" class="search_name" visibility="hidden" style="left:470px; top:40px; width:86px; height:17px; ">내원구분 :</caption>
- <input id="input14" ref="/root/main/srchcncrpat/todd" class="input_search" inputtype="date" style="left:230px; top:14px; width:90px; height:19px; "/>
- <caption id="cap_orddd" class="search_name" style="left:20px; top:15px; width:105px; height:17px; ">진료/퇴원일:</caption>
- <caption id="caption59" class="search_name" visibility="hidden" style="left:285px; top:40px; width:86px; height:17px; ">주치의 :</caption>
- <select1 id="rdo_ordtype" ref="/root/main/srchcncrpat/ordtype" class="radio_search" visibility="hidden" appearance="full" cols="3" rows="1" overflow="visible" style="left:557px; top:40px; width:138px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>퇴원</label>
- <value>I</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removeNodeset("/root/main/common/com/dept");
- if(rdo_ordtype.value == ""){
- cap_orddd.attribute("text") = "진료일자 :";
- cap_orddept.attribute("text") = "진료과 :";
- model.resetInstanceNode("/root/main/common/com/dept");
- zsdfGetInOutOrdDeptList(getUserInfo("dutplceinstcd"), "/root/main/common/com", "depthngnm", "asc");
- } else if(rdo_ordtype.value == "O"){
- cap_orddd.attribute("text") = "진료일자 :";
- cap_orddept.attribute("text") = "진료과 :";
- model.resetInstanceNode("/root/main/common/com/dept");
- zsdfGetOutOrdDeptList(getUserInfo("dutplceinstcd"), "/root/main/common/com", "depthngnm", "asc");
- } else if(rdo_ordtype.value == "I"){
- cap_orddd.attribute("text") = "퇴원일자 :";
- cap_orddept.attribute("text") = "퇴원과 :";
- model.resetInstanceNode("/root/main/common/com/dept");
- zsdfGetInOrdDeptList(getUserInfo("dutplceinstcd"), "/root/main/common/com", "depthngnm", "asc");
- }
- copyNodeset("/root/init/srchcncrrgst/deptinfo", "/root/main/common/com/dept", "replace");
- addComboItem("cmb_srchcncrrgst", "전체", "", "above");
- model.setValue("/root/main/srchcncrpat/deptinfo", "");
- model.removeNodeset("/root/init/srchcncrrgst/drinfo");
- addComboItem("cmb_drinfo", "전체", "", "above");
- model.setValue("/root/main/srchcncrpat/drinfo", "");
- model.refresh();
-
- ]]>
- </script>
- </select1>
- <line id="line4" class="line_4" style="x1:1080px; y1:10px; x2:1080px; y2:36px; "/>
- <datagrid id="grd_cncrrgstlist" nodeset="/root/main/cncrrgstpatlist/list" caption="기관명^암등록번호^등록번호^환자이름^주민번호 앞자리^성별^내원구분^내원일자^진료과코드^진료과명^진료의ID^진료의명^진단일자^진단병원코드^진단의사ID^진단의사명^연고자우편번호앞자리" colsep="^" colwidth="108, 80, 82, 70, 94, 41, 66, 82, 70, 109, 67, 67, 78, 108, 74, 70, 127" dataheight="25" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:70px; width:1185px; height:670px; ">
- <col disabled="true" ref="instcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/instcd/C0048">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="cncrno" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="rrgstno1" style="text-align:center; "/>
- <col ref="sex" style="text-align:center; "/>
- <col disabled="true" ref="ordtype" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>내원</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- </choices>
- </col>
- <col ref="disp_orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="disp_orddeptcd" style="text-align:center; "/>
- <col ref="disp_orddeptnm"/>
- <col ref="disp_orddrid" style="text-align:center; "/>
- <col ref="disp_orddrnm" style="text-align:center; "/>
- <col ref="diagdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="diaghospcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/instcd/C0048">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="diagdrid" style="text-align:center; "/>
- <col ref="diagdrnm" style="text-align:center; "/>
- <col ref="zipcd1" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_cncrrgstlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption60" class="search_no_b" style="left:216px; top:15px; width:12px; height:17px; ">~</caption>
- <button id="button16" class="btn4_letter4" style="left:1092px; top:47px; width:80px; height:22px; ">
- <caption>배치실행</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExecBatch();
- ]]>
- </script>
- </button>
- <select id="checkbox1" ref="/root/main/srchcncrpat/chkcncr" overflow="visible" appearance="full" style="left:330px; top:15px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>암등록일</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- cap_orddd.attribute("text") = "암등록일자 :";
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- if ( rdo_ordtype.value == "I" )
- cap_orddd.attribute("text") = "퇴원일자 :";
- else
- cap_orddd.attribute("text") = "진료/퇴원일:";
- ]]>
- </script>
- </select>
- <button id="btn_patsear" class="icon_search" style="left:730px; top:15px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var refCond = model.getValue("/root/main/srchcncrpat/pid");
- if( refCond.isNumber() ) {//숫자이면 등록번호, 아니면 환자명 체크
- model.setValue("/root/main/cond/patsearflag", "2");
- }else {
- model.setValue("/root/main/cond/patsearflag", "1");
- }
-
- setParameter("refnm", refCond);
- modal("SMMNB00700" ,"", "400", "150", "SMMNB00700", "/root/main/cond/patsearflag", "/root/main/cond/refflag");
-
- var getData = model.getValue("/root/properties/parameters/SendData/SendDatavalue");
- var getDataTemp = getData.split("|");
-
- if( getData == "" ) {
- return;
- }else {
- model.setValue("/root/main/srchcncrpat/pid", getDataTemp[0]);
- model.setValue("/root/main/srchcncrpat/patnm", getDataTemp[1]);
- // model.setValue("/root/main/cond/dept", getDataTemp[9]);
- // model.setValue("/root/main/cond/roomcd", getDataTemp[10]);
- // model.setValue("/root/main/cond/patsearflag", getDataTemp[11]);
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/main/srchcncrpat/pid" class="input_search" disabled="false" imemode="hangul" style="left:645px; top:15px; width:79px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("button2", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" style="left:470px; top:15px; width:86px; height:17px; ">등록번호 :</caption>
- <input id="ipt_patnm" ref="/root/main/srchcncrpat/patnm" class="input_search" disabled="true" imemode="hangul" style="left:560px; top:15px; width:81px; height:19px; "/>
- </xhtml:body>
- </xhtml:html>
|