123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SMPIS01000_외래상기도감염항생제처방조회.xrw
- ************************************************
- * [ Maps ]
- * TRZBC00102 : 공통코드
- * TRPID20309 : 진료과, 주치의
- * TRPID20407 : 청구차수
- -->
- <?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>
- <!-- SPPMC02500_환자조회 화면에서 선택된 검색결과를 받는 경로임 -->
- <patinfo>
- <patinfolist/>
- </patinfo>
- <popupendflag/>
- <grdlist>
- <diagclamlist>
- <clamym/>
- <clamflagcd/>
- <clamdg/>
- <ioflag/>
- <ordfildcd/>
- <docuseqno/>
- <pid/>
- <patnm/>
- <patrrgstno/>
- <orddeptcd/>
- <orddrnm/>
- <diagseq/>
- <judgrid/>
- <indd/>
- <fromdd/>
- <todd/>
- <insukind/>
- <suppkind/>
- <edimedcaretotamt/>
- <acptno/>
- <diagcd1/>
- <diagcd2/>
- <diagcd3/>
- <diagcd4/>
- <diagcd5/>
- <diagcd6/>
- <hngnm/>
- </diagclamlist>
- </grdlist>
- </main>
- <init>
- <!-- 진료과 -->
- <orddeptcdlist>
- <cd/>
- <nm/>
- </orddeptcdlist>
- <!-- 보험유형 -->
- <P0008list>
- <P0008>
- <cdnm/>
- <cdid/>
- </P0008>
- </P0008list>
- <!-- 진료분야 -->
- <P0291list>
- <P0291>
- <cdnm/>
- <cdid/>
- </P0291>
- </P0291list>
- <!-- 청구구분 -->
- <P0155list>
- <P0155>
- <cdnm/>
- <cdid/>
- <cdengabbrnm/>
- </P0155>
- </P0155list>
- </init>
- <hidden>
- <sppiz00400>
- <cond>
- <!-- 상병코드 Grid '상병코드' 컬럼 에서 SPPIZ00400_상병코드조회 에 전달하기 위한 조건 값 -->
- <basedd/>
- <diagcd/>
- <diagnm/>
- <selectedrdodiagkind/>
- </cond>
- <rslt>
- <diagcd/>
- <diaghngnm/>
- <diagengnm/>
- </rslt>
- </sppiz00400>
- <!-- 환자조회 팝업용도-->
- <sppmc02500>
- <cond>
- <srchcond/>
- <pid/>
- <hngnm/>
- </cond>
- </sppmc02500>
- </hidden>
- <send>
- <item1>
- <clamymfrom/>
- <clamymto/>
- <insukind/>
- <ioflag>O</ioflag>
- <diagcd/>
- <diagcond>S</diagcond>
- <diagcdfr>J00</diagcdfr>
- <diagcdto>J06.9</diagcdto>
- <ordfildcd/>
- <orddeptcd/>
- <pid/>
- <agechk/>
- </item1>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 화면 초기화
- fInitialize();
- ]]>
- </script>
- <!-- submission -->
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPIS01000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/main"/>
- <submission id="TRPID20309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/init/tmp"/>
- </model>
- <!-- js import -->
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.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/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <!-- 뽕숑 -->
- <script type="javascript">
- <![CDATA[
- // 화면 초기화
- function fInitialize()
- {
- rdo_diagcd.value = "S";
- model.removeNodeset("/root/main/grdlist/diagclamlist"); // 그리드 초기화
-
- zbcfGetCodeList(
- new Array("P0008" // 보험유형
- ,"P0291" // 진료분야
- ,"P0155" // 청구구분
- ),
- new Array("/root/init/P0008list"
- ,"/root/init/P0291list"
- ,"/root/init/P0155list"
- )
- ,false
- );
- cmb_insukind.refresh();
- cmb_ordfild.refresh();
-
- rdo_ioflag.value = "O"; // 내원유형:입원
- // 청구년월 셋팅 시작
- var today = new Date();
- var baseyear = today.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
- var basemonth = today.getDateFormat("MM");
- var currentym = baseyear + basemonth;
- model.setValue("/root/send/item1/clamymfrom",currentym);
- model.setValue("/root/send/item1/clamymto",currentym);
- ipt_clamymfrom.refresh();
- // 청구년월 셋팅 끝
-
- fGetOrdDept(); // 진료과 콤보 리스트
- }
-
- // 진료과 리스트 가져오기
- function fGetOrdDept()
- {
- submit("TRPID20309");
- }
-
- // 상병조건(팝업에서 호출함)
- function fSetDiagCdNm() {
- var diagcd = model.getValue("/root/hidden/sppiz00400/rslt/diagcd");
- if (diagcd) {
- model.setValue("/root/send/item1/diagcdfr", diagcd);
- model.setValue("/root/send/item1/diagcdto", diagcd);
- model.refreshpart("/root/send/item1/diagcdfr");
- model.refreshpart("/root/send/item1/diagcdto");
- }
- }
-
- // 환자단위 조회
- function fPatSrch()
- {
- var ipt_pid = model.getValue("/root/send/item1/pid");
- if (ipt_pid) {
- if ( !isNaN(ipt_pid) )
- {
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
- model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
- }
- else
- {
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "2"); // 검색조건 : 환자명으로 설정
- model.setValue("/root/hidden/sppmc02500/cond/hngnm", ipt_pid);
- }
- } else {
- model.resetInstanceNode("/root/hidden/sppmc02500/cond");
- }
- // pam/commonweb/xrw/SPPMC02500_환자조회.xrw
- modal("SPPMC02500", "1", "150", "150", "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", ""); // SPPMC02500_환자조회.xrw
- var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
- model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
- model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
- model.setValue("/root/send/item1/pid", srch_pid);
- }
- model.refresh();
- }
-
- // 조회
- function fSearch()
- {
- var chk_clamymfrom = model.getValue("/root/send/item1/clamymfrom");
- var chk_clamymto = model.getValue("/root/send/item1/clamymto");
- var chk_ioflag = model.getValue("/root/send/item1/ioflag");
- var chk_ordfild = model.getValue("/root/send/item1/ordfildcd");
- var chk_diagcdfr = model.getValue("/root/send/item1/diagcdfr");
- var chk_diagcdto = model.getValue("/root/send/item1/diagcdto");
- var chk_pid = model.getValue("/root/send/item1/pid");
-
- if ( chk_clamymfrom == "" | chk_clamymfrom == "")
- {
- messageBox("청구년월은 ", "I003");
- model.setFocus("ipt_clamymfrom");
- return;
- }
- /*
- else if ( chk_ioflag == "O" && chk_ordfild == "" )
- {
- // 외래는 진료분야를 필수조건으로 정한다
- messageBox("진료분야는 ","I003");
- cmb_ordfild.select(1);
- model.setFocus("cmb_ordfild");
- return;
- }
- */
- // PID값이 있다면(팝업호출 됐을 경우) 상병조건이 없어도 조회가 되게 한다
- if ( chk_pid == "" && (chk_diagcdfr == "" | chk_diagcdto == "") )
- {
- messageBox("상병조건은 ", "I003");
- model.setFocus("ipt_diagfr");
- return;
- }
-
- submit("TRPIS01000");
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1213;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <!-- TITLE -->
- <group id="group1" style="left:0px; top:0px; width:1190px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:253px; height:14px; ">외래 항생제 처방조회</caption>
- </group>
- <!-- 전체 그룹 -->
- <group id="group2" scroll="no" style="left:0px; top:13px; width:1190px; height:732px; ">
- <!-- 조회조건 -->
- <group id="group4" style="left:0px; top:10px; width:1190px; height:65px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" style="left:0px; top:0px; width:1190px; height:60px; "/>
- <caption id="caption5" class="search_name" style="left:10px; top:10px; width:76px; height:17px; ">청구년월</caption>
- <input id="ipt_clamymfrom" ref="/root/send/item1/clamymfrom" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" style="left:98px; top:10px; width:80px; height:19px; "/>
- <caption id="caption6" class="search_name" style="left:517px; top:10px; width:76px; height:17px; ">진료분야</caption>
- <select1 id="cmb_ordfild" ref="/root/send/item1/ordfildcd" class="combo_search" appearance="minimal" style="left:605px; top:10px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0291list/P0291">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line2" class="line_4" style="x1:1075px; y1:5px; x2:1075px; y2:54px; "/>
- <button id="button1" class="btn1_letter2" navindex="2" style="left:1100px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <caption id="caption9" class="search_name" style="left:272px; top:10px; width:76px; height:17px; ">내원유형</caption>
- <select1 id="rdo_ioflag" ref="/root/send/item1/ioflag" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:360px; top:10px; width:95px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetOrdDept(); // 진료과 콤보 리스트
- if ( rdo_ioflag.value == "O" )
- {
- cmb_ordfild.select(1);
- }
- ]]>
- </script>
- </select1>
- <caption id="caption13" class="search_name" style="left:750px; top:10px; width:76px; height:17px; ">보험유형</caption>
- <output id="opt_insukind" ref="/root/send/item1/insukind" class="output_search" style="left:940px; top:10px; width:20px; height:19px; "/>
- <select1 id="cmb_insukind" ref="/root/send/item1/insukind" class="combo_search" appearance="minimal" style="left:835px; top:10px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0008list/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo1" ref="/root/send/item1/orddeptcd" class="combo_search" appearance="minimal" style="left:835px; top:35px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/tmp/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:750px; top:35px; width:65px; height:17px; ">진료과</caption>
- <caption id="caption3" class="search_name" style="left:10px; top:35px; width:76px; height:17px; ">상병조건</caption>
- <select1 id="rdo_diagcd" ref="/root/send/item1/diagcond" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:98px; top:35px; width:237px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>주상병만</label>
- <value>M</value>
- </item>
- <item>
- <label>부상병포함</label>
- <value>S</value>
- </item>
- <item>
- <label>제1,2상병만</label>
- <value>M1</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_diagfr" ref="/root/send/item1/diagcdfr" class="input_search" navindex="12" imemode="alpha" inputtype="button" _chartype="upper" style="left:335px; top:35px; width:68px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- model.removeNodeset("/root/hidden/sppiz00400/rslt");
- model.makeNode("/root/hidden/sppiz00400/rslt/diagcd");
- model.makeNode("/root/hidden/sppiz00400/rslt/diaghngnm");
- model.makeNode("/root/hidden/sppiz00400/rslt/diagengnm");
-
- model.resetInstanceNode("/root/hidden/sppiz00400/cond");
- model.setValue("/root/hidden/sppiz00400/cond/basedd", getCurrentDate()); // (dateHelper.js) 현재날짜 반환
- model.setValue("/root/hidden/sppiz00400/cond/diagcd", model.getValue("/root/send/diagcd"));
- model.setValue("/root/hidden/sppiz00400/cond/diagnm", "");
- model.setValue("/root/hidden/sppiz00400/cond/selectedrdodiagkind","3"); // 사용자가 직접검색하여 입력 할수 있도록 임의의 값(3)을 넣어줌
- modal("SPPIZ00400", "1", "10", "10", "SPPIZ00400", "/root/hidden/sppiz00400/cond", "/root/init", "", ""); // SPPIZ00400_상병코드조회.xrw
- /*
- var clamkey = model.getValue("/root/main/item1/clbs/clamkey");
- if (clamkey) { // 조회된 심사대상자가 있음
- fSortDiagNo(true);
- } */
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/item1/diagcdto", model.getValue("/root/send/item1/diagcdfr"));
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") { // Enter 입력 시에
- setInputNodeCurText(); // 현재 입력값 노드에 반영
- model.setValue("/root/send/item1/diagcdto",ipt_diagfr.value);
- ipt_diagto.refresh();
- }
- ]]>
- </script>
- </input>
- <caption id="caption4" style="left:405px; top:35px; width:15px; height:20px; ">~</caption>
- <input id="ipt_diagto" ref="/root/send/item1/diagcdto" class="input_search" navindex="4" imemode="alpha" _chartype="upper" style="left:420px; top:35px; width:68px; height:19px; "/>
- <select id="chk_age" ref="/root/send/item1/agechk" overflow="visible" appearance="full" style="left:495px; top:37px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>만15세 미만</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- <caption id="caption12" class="tit_2" style="left:0px; top:80px; width:100px; height:13px; ">환자 리스트</caption>
- <button id="button2" class="btn2_letter4" style="left:1120px; top:79px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_outjudg.rows > 1) {
- var fileName = window.fileDialog("save", "", false, "외래 상기도감염 항생제처방 조회_" + getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
- // grd_clbsmast.saveExcel(fileName, "SheetName", true, true, "", "", true);
- grd_outjudg.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
- }
- } else {
- messageBox("엑셀저장할 대상이 ", "I004"); ///엑셀저장할 대상자가 없습니다.
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_outjudg" nodeset="/root/main/grdlist/diagclamlist" class="datagrid2" caption="청구년월^차수^청구구분^내원유형^분야^등록번호^수신자^보
험^보
조^진료과^진료의^상병1^상병2^상병3^상병4^상병5^상병6^항생제처방^항생제처방(원외)^심사자^입원일자^유형시작^유형종료^주민번호^총진료비^접수번호^명일련" colsep="^" colwidth="64, 37, 37, 37, 42, 76, 60, 25, 25, 91, 60, 45, 45, 45, 46, 45, 45, 402, 276, 60, 75, 75, 83, 113, 70, 72, 100" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:100px; width:1190px; height:625px; ">
- <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
- <col ref="clamdg" style="text-align:center; "/>
- <col disabled="true" ref="clamflagcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0155list/P0155">
- <label ref="cdengabbrnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="ordfildcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0291list/P0291">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="insukind"/>
- <col ref="suppkind" style="text-align:center; "/>
- <col ref="orddeptcd" style="text-align:center; "/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="diagcd1"/>
- <col ref="diagcd2"/>
- <col ref="diagcd3"/>
- <col ref="diagcd4"/>
- <col ref="diagcd5"/>
- <col ref="diagcd6"/>
- <col ref="hngnm"/>
- <col ref="hngnm2"/>
- <col ref="judgrid" style="text-align:center; "/>
- <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="patrrgstno" format="999999-9999999" style="text-align:center; "/>
- <col ref="edimedcaretotamt" format="#,###" style="text-align:right; "/>
- <col ref="acptno" style="text-align:center; "/>
- <col ref="docuseqno" style="text-align:right; "/>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|