12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SMPIZ00100_외래입원상병이력조회.xrw
- * 수정이력
- * - 2007.03.22 / 최초작성 / 정주미
- * - 2007.05.08 / aftjudgweb에서 insucomweb으로 변경 / 정주미
- * - 2007.05.08 / SMPID20600.xrw에서 SMPIZ00100.xrw으로 변경 / 정주미
- * - 2007.06.19 / 화면 수정 및 기능 보완 / 이창재
- * - 2007.12.26 / 심사화면에서 들어온 경우에도 진료기간은 전체로 조회되도록 수정 / 박지욱
- *
- * - opener 에서 전달받는 조건 경로
- /root/init
- * - SPPMC02500_환자조회.xrw 로 전달하는 조건 경로
- /root/hidden/sppmc02500/cond
- * - SPPMC02500_환자조회.xrw 에서 전달받는 결과 경로
- /root/main/patinfo/patinfolist
- /root/main/popupendflag
- -->
- <?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>청구상병관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <diaghist>
- <item1>
- <pmcmptbs>
- <pid/>
- <gender/>
- <age/>
- <patnm/>
- <patrrgstno/>
- </pmcmptbs>
- </item1>
- <list1>
- <diagdatelist/>
- </list1>
- <list01>
- <mmohdiag1>
- <diagcd/>
- <diagkindcd/>
- <diaghngnm/>
- <diagengnm/>
- <termcd/>
- <termhngnm/>
- <termengnm/>
- </mmohdiag1>
- <mmohdiag2>
- <diagcd/>
- <diagkindcd/>
- <diaghngnm/>
- <diagengnm/>
- </mmohdiag2>
- <mmohdiag3>
- <diagcd/>
- <diagkindcd/>
- <diaghngnm/>
- <diagengnm/>
- </mmohdiag3>
- </list01>
- </diaghist>
- <!-- SPPMC02500_환자조회 화면에서 선택된 검색결과를 받는 경로임 -->
- <patinfo>
- <patinfolist/>
- </patinfo>
- <orddeptcd>
- <orddeptlist>
- <cd/>
- <nm/>
- </orddeptlist>
- </orddeptcd>
- </main>
- <send>
- <pid/>
- <ordfromdd/>
- <ordtodd/>
- <ioflag/>
- <deptcd/>
- <orddd/>
- <clamym/>
- <clamdg/>
- <pid/>
- <pidsn/>
- <refterm/>
- <todd/>
- <fromdd/>
- <clamfromdd/>
- <clamtodd/>
- </send>
- <init>
- <!-- opener (예:SMPID20300_입원사후심사관리) 화면에서 설정된 검색조건을 보내는 경로임-->
- <pid/>
- <!--
- <ordfromdd/>
- <ordtodd/>
- <srchflag/>
- -->
- <P0322list/>
- </init>
- <hidden>
- <selected>
- <termcd/>
- <engdiagnm/>
- <hngdiagnm/>
- <rdoioflag/>
- <cmborddept/>
- </selected>
- <sppmc02500>
- <cond>
- <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </cond>
- </sppmc02500>
- <smpiz00200>
- <rslt>
- <diag>
- <diagcd/>
- <diagkindcd/>
- <diaghngnm/>
- <diagengnm/>
- </diag>
- </rslt>
- </smpiz00200>
- <sppiz00600>
- <cond>
- <!-- 상병 Grid '치식' 컬럼 에서 SPPIZ00600_상병및처방별치식 에 전달하기 위한 조건 값 -->
- <clamym/>
- <clamdg/>
- <pid/>
- <pidsn/>
- <indd/>
- <cretno/>
- <toot/>
- <flag/>
- <list/>
- <popyn/>
- </cond>
- <rslt>
- <list/>
- </rslt>
- </sppiz00600>
- <base>
- <basedd/>
- </base>
- <popupmenu>
- <gridcldi>
- <item>
- <name>상병순서 위로</name>
- <func>fDiagSeqUp</func>
- </item>
- <item>
- <name>상병순서 아래로</name>
- <func>fDiagSeqDown</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>행 삽입</name>
- <func>fDiagGridInsertRow</func>
- </item>
- <item>
- <name>행 추가</name>
- <func>fDiagGridAddRow</func>
- </item>
- <item>
- <name>행 추가(5줄)</name>
- <func>fDiagGridInsertRowMulti</func>
- </item>
- <item>
- <name>행 삭제</name>
- <func>fDiagGridDeleteRow</func>
- </item>
- <!-- 2008-12-10 행 삭제시 rowHidden하므로 삭제취소 불필요하여 주석처리함.
- <delitem>
- <name>삭제 취소</name>
- <func>fDiagGridDeleteCancel</func>
- </delitem>
- -->
- </gridcldi>
- </popupmenu>
- <list1>
- <cldi>
- <oldseq/>
- <olddiagcd/>
- <olddiagnm/>
- <oldengnm/>
- <oldrowstat/>
- <oldordfromdd/>
- </cldi>
- </list1>
- <list3>
- <msgspclformat/>
- </list3>
- <sppiz00400>
- <cond/>
- </sppiz00400>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- <submission id="TRPIZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/diaghist"/>
- <submission id="TRPIZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/diaghist/list01"/>
- <submission id="TXPIZ00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/exepidhcldi" resultref="/root/main/diaghist"/>
- <submission id="TXPIZ00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/diaghist/list01/mmohdiag2"/>
- <submission id="TRPID20313" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/getvcode/cond" resultref="/root/hidden/getvcode"/>
- <submission id="TRPID20306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/sppiz00400/cond" resultref="/root/hidden/sppiz00400"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var today = new Date();
- var baseyear = today.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
- var basemonth = today.getDateFormat("MM");
- var baseday = today.getDateFormat("DD");
- var currentdd = baseyear + basemonth + baseday;
- model.setValue("/root/hidden/base/basedd", currentdd);
-
- // (PAM.js) submission id="TRPAM00101" 를 사용하여 진료과 / 의사명 Combo item을 가져온다.
- // model.copyNode("root/init/orddeptcd", "root/hidden/tmp/orddeptcd"); model.copyNode("root/init/orddrid", "root/hidden/tmp/orddrid"); 처리가 이뤄짐
- pamGetDeptCDDrIDList();
-
- fInitialize(); // 화면을 초기화한다.
- fCheckAuth(); // 화면 권한을 설정한다.
- fCheckOpener(); // 심사화면에서 팝업용으로 호출한 경우, 조건값을 받아 조회한다.
- // // 기간 default 3개월 설정
- // model.makeValue("/root/send/refterm","2");
- // var currentdate = getCurrentDate();
- // model.makeValue("/root/send/fromdd", currentdate);
- // model.makeValue("/root/send/todd", currentdate);
- model.refresh();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/insucomweb/js/SMPIZ00200.js"/>
- <script type="javascript">
- <![CDATA[
- var diagSelIdx = 0; //진료상병이력에 선택된 인덱스 정보
- var clamSelIdx = 0; //청구상병이력에 선택된 인덱스 정보
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- //청구대상명세서 grid제목줄에 checkbox 생성
- grd_clamhistlist.fixedcellcheckbox(0,0) = true;
-
- model.setFocus("ipt_pid");
- // model.resetInstanceNode("/root/main"); 의 경우 이전 조회한 값들의 빈 node 가 남아 Grid에 빈줄이 남게 된다.
- model.resetInstanceNode("/root/main/diaghist/item1");
- model.removeNodeset("/root/main/diaghist/list1");
- model.removeNodeset("/root/main/diaghist/list01");
-
- if (isPopup()) { // (common.js) 자신이 팝업인지 아닌지를 리턴한다.
- // 심사화면 팝업용인 경우 "초기화" 하여도 pid 값을 유지하도록 변경함.
- var oldpid = model.getValue("/root/send/pid");
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/pid", oldpid);
- } else {
- model.resetInstanceNode("/root/send");
- }
- //model.setValue("/root/send/srchflag", "emr"); // 검색구분 Radio의 초기값을 설정한다.
- model.setValue("/root/send/ordtodd", model.getValue("/root/hidden/base/basedd"));
- //model.resetInstanceNode("/root/init"); 은 opener(예:SMPID20300_입원사후심사관리)에서 조회조건을 전달받는 경로임
- model.resetInstanceNode("/root/hidden/selected");
- model.setValue("/root/hidden/selected/rdoioflag", "-");
-
- // 기간 default 6개월 설정, 현재일 설정
- model.makeValue("/root/send/refterm","3");
- var currentdate = getCurrentDate();
- model.makeValue("/root/send/fromdd", currentdate);
- model.makeValue("/root/send/todd", currentdate);
-
- // SMPID20500_외래사후심사관리.xrw에서 전달한 청구년월 정보로 청구대상기간 조회 조건 정보를 셋팅(시작일: yyyy-mm-01, 종료일: yyyy-mm-달의 마지막날)
- var clamym = model.getValue("/root/init/clamym");
- model.makeValue("/root/send/clamfromdd", clamym + "01" );
- model.makeValue("/root/send/clamtodd", clamym + getDayCountForMonth(clamym.substr(0, 4), clamym.substr(4, 2)));
-
- model.makeNode("/root/init/P0322list/P0322");
- zbcfGetCodeList(
- new Array(
- "P0322" // 청구세부
- ),
- new Array(
- "/root/init/P0322list"
- ),
- false ); // minimum을 'false'로 설정한 경우에는 코드의 모든속성을 가져온다.
- }
- // 화면 권한을 설정한다.
- function fCheckAuth() {
- if (isPopup()) { // (common.js) 자신이 팝업인지 아닌지를 리턴한다.
- btn_judgdiag.disabled = false;
- btn_close.disabled = false;
- } else {
- btn_judgdiag.disabled = true;
- btn_close.disabled = true;
- }
- }
- // 심사화면에서 팝업용으로 호출한 경우, 조건값을 받아 조회한다.
- function fCheckOpener() {
- // roo/send 는 초기화 되므로 init 경로에 값을 전달받는다.
- if (model.getValue("/root/init/pid")) {
- model.makeValue("/root/send/pid", model.getValue("/root/init/pid"));
- // model.copyNode("/root/send", "/root/init");
- // 기간 default 6개월 설정
- model.makeValue("/root/send/refterm","3");
- var currentdate = getCurrentDate();
- model.makeValue("/root/send/fromdd", currentdate);
- model.makeValue("/root/send/todd", currentdate);
-
- submit("TRPIZ00101");
-
- // 상병이력에 해당되는 진료과만 보이도록 해준다.
- fSetOrdDeptCdList();
- }
- }
-
- // 등록번호 입력 후 Enter 또는 "조회" 버튼을 누르면 상병이력을 조회한다.
- function fGetIODiagHistList() {
- var ipt_pid = model.getValue("/root/send/pid");
- if (ipt_pid == "") {
- messageBox("검색할 등록번호를", "C001"); ///검색할 등록번호를 입력하십시오.
- return;
- }
- var fromdd = model.getValue("/root/send/fromdd");
- var todd = model.getValue("/root/send/todd");
- if (fromdd != "" && todd != "") {
- if (fromdd > todd) {
- messageBox("검색 시작날짜가 종료날짜 보다 클 수", "I004"); ///검색 시작날짜가 종료날짜 보다 클 수 없습니다.
- return;
- }
- }
- /*
- // [2007.03.23] Table Layout 상에는 pid가 VARCHAR(10) 이지만, 테스트용 data에서는 VARCHAR(8) 이므로 8자리로 구현함
- // [2007.04.27] 외래등록에서 입력한 테스트용 data의 pid가 8자리 미만인 경우가 많아서 입력된 pid 그대로 조회하도록 함.
- if (ipt_pid.length < 8) {
- ipt_pid = ipt_pid.getLeftPad(8, "0"); // (stringHelper.js) 저장된 숫자 값에 원하는 길이만큼 '0'을 붙여 표현
- model.setValue("/root/send/pid", ipt_pid);
- }
- */
- model.resetInstanceNode("/root/main/diaghist/item1/pmcmptbs");
- model.resetInstanceNode("/root/hidden/selected");
- model.setValue("/root/hidden/selected/rdoioflag", "-");
- grd_diaghistlist.attribute("nodeset") = "/root/main/diaghist/list1/diagdatelist";
- grd_diaghistlist.rebuild();
-
- submit("TRPIZ00101");
- fSetOrdDeptCdList();
- if (model.getValue("/root/main/diaghist/item1/pmcmptbs/pid") == "") {
- messageBox("입력된 등록번호의 환자정보가", "I004"); ///입력된 등록번호의 환자정보가 없습니다.
- }
- }
-
- // 진료과 Combo 목록을 작성한다.
- function fSetOrdDeptCdList() {
- model.removeNodeset("/root/main/orddeptcd");
- model.makeNode("/root/main/orddeptcd/orddeptlist/cd");
- model.makeNode("/root/main/orddeptcd/orddeptlist/nm");
- for (var i = 1; i < grd_diaghistlist.rows; i++) {
- var deptcd = model.getValue("/root/main/diaghist/list1/diagdatelist["+ i +"]/orddeptcd");
- var orddeptcNode = instance1.selectSingleNode("/root/main/orddeptcd");
- var nodeList = orddeptcNode.childNodes;
- var isFind = false;
- for (var j = 1; j <= nodeList.length; j++) {
- var cd = model.getValue("/root/main/orddeptcd/orddeptlist[" + j + "]/cd");
- if (deptcd == cd) { // 진료과 필터링 콤보에 이미 추가된 진료과인지 확인한다.
- isFind = true;
- j = nodeList.length + 1;
- }
- }
- if (!isFind) {
- var deptnm = grd_diaghistlist.labelMatrix(i, grd_diaghistlist.colRef("orddeptcd"));
- if (deptnm) {
- model.makeValue("/root/main/orddeptcd/orddeptlist[" + (nodeList.length + 1) + "]/nm", deptnm);
- } else { // 해당 진료과 명칭이 없는 경우 진료과코드로 대신한다.
- model.makeValue("/root/main/orddeptcd/orddeptlist[" + (nodeList.length + 1) + "]/nm", deptcd);
- }
- model.makeValue("/root/main/orddeptcd/orddeptlist[" + (nodeList.length + 1) + "]/cd", deptcd);
- }
- }
- // 상병이력목록 첫번째 날짜가 선택되도록 한다.
- grd_diaghistlist.row = 1;
- var pid = model.getValue("/root/main/diaghist/list1/diagdatelist/pid");
- if (pid) {
- // 상병 이력 목록 Grid를 선택한 경우
- fPatIODiagHistList();
- } else {
- model.refresh();
- }
- }
-
- // 입원외래구분 Radio / 진료과 Combo 필터링 적용
- function fSelectedIODept() {
- var ioflag = model.getValue("/root/hidden/selected/rdoioflag");
- var selCond = "";
- if (ioflag == "I") {
- selCond = "ioflagcd='I'";
- }
- else if (ioflag == "O") {
- selCond = "ioflagcd='O'";
- }
- var orddept = model.getValue("/root/hidden/selected/cmborddept");
- if (orddept != "") {
- if (selCond == "") {
- selCond = "orddeptcd='" + orddept + "'";
- } else {
- selCond += "and orddeptcd='" + orddept + "'";
- }
- }
- if (selCond) {
- grd_diaghistlist.attribute("nodeset") = "/root/main/diaghist/list1/diagdatelist[" + selCond + "]";
- grd_clamhistlist.attribute("nodeset") = "/root/main/diaghist/list2/clamhistlist[" + selCond + "]";
- grd_diaghistlist.rebuild();
- grd_clamhistlist.rebuild();
-
- model.resetInstanceNode("/root/hidden/selected/termcd");
- model.resetInstanceNode("/root/hidden/selected/engdiagnm");
- model.resetInstanceNode("/root/hidden/selected/hngdiagnm");
- model.removeNodeset("/root/main/diaghist/list01");
- model.refresh();
- } else{
- grd_diaghistlist.attribute("nodeset") = "/root/main/diaghist/list1/diagdatelist";
- grd_clamhistlist.attribute("nodeset") = "/root/main/diaghist/list2/clamhistlist";
- grd_diaghistlist.rebuild();
-
- // 상병이력목록 첫번째 날짜가 선택되도록 한다.
- grd_diaghistlist.row = 1;
- var pid = model.getValue("/root/main/diaghist/list1/diagdatelist/pid");
- if (pid) {
- // 상병 이력 목록 Grid를 선택한 경우
- fPatIODiagHistList();
- }
- }
- }
-
- // 상병 이력 목록 Grid를 선택한 경우
- function fPatIODiagHistList() {
- model.resetInstanceNode("/root/hidden/selected/termcd");
- model.resetInstanceNode("/root/hidden/selected/engdiagnm");
- model.resetInstanceNode("/root/hidden/selected/hngdiagnm");
-
- var row = grd_diaghistlist.row;
- model.makeValue("/root/send/pid", model.getValue("/root/main/diaghist/list1/diagdatelist["+ row +"]/pid"));
- model.makeValue("/root/send/ioflag", model.getValue("/root/main/diaghist/list1/diagdatelist["+ row +"]/ioflagcd"));
- model.makeValue("/root/send/deptcd", model.getValue("/root/main/diaghist/list1/diagdatelist["+ row +"]/orddeptcd"));
- model.makeValue("/root/send/orddd", model.getValue("/root/main/diaghist/list1/diagdatelist["+ row +"]/ordfromdd"));
- model.makeValue("/root/send/clamym", model.getValue("/root/main/diaghist/list1/diagdatelist["+ row +"]/clamym"));
- model.makeValue("/root/send/clamdg", model.getValue("/root/main/diaghist/list1/diagdatelist["+ row +"]/clamdg"));
- model.makeValue("/root/send/pidsn", model.getValue("/root/main/diaghist/list1/diagdatelist["+ row +"]/pidsn"));
- // 화면ID정보 전달
- model.makeValue("/root/send/screenid", getScreenID(null));
- submit("TRPIZ00102");
-
- if (grd_orddiaghist.rows > 1) {
- grd_orddiaghist.row = 1;
- fSelectOrdDiagHist(); // 진료상병이력을 선택한 경우
- }
- else if (grd_cldihist.rows > 1) {
- grd_cldihist.row = 1;
- fSelectClamDiagHist(); // 청구상병이력을 선택한 경우
- }
- }
- // 진료상병이력을 선택한 경우
- function fSelectOrdDiagHist() {
- var row = grd_orddiaghist.row;
- model.setValue("/root/hidden/selected/termcd", model.getValue("/root/main/diaghist/list01/mmohdiag1["+row+"]/termcd"));
- model.setValue("/root/hidden/selected/engdiagnm", model.getValue("/root/main/diaghist/list01/mmohdiag1["+row+"]/termengnm"));
- model.setValue("/root/hidden/selected/hngdiagnm", model.getValue("/root/main/diaghist/list01/mmohdiag1["+row+"]/termhngnm"));
- model.refresh();
- }
- // 청구상병이력을 선택한 경우
- function fSelectClamDiagHist() {
- var row = grd_cldihist.row;
- model.setValue("/root/hidden/selected/termcd", "");
- model.setValue("/root/hidden/selected/engdiagnm", model.getValue("/root/main/diaghist/list01/mmohdiag2["+row+"]/diagengnm"));
- model.setValue("/root/hidden/selected/hngdiagnm", model.getValue("/root/main/diaghist/list01/mmohdiag2["+row+"]/diaghngnm"));
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,950;1,296;2,663;2,140;1,740;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:98px; height:14px; ">청구상병 관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
- <input id="ipt_pid" ref="/root/send/pid" class="input_s_essential" navindex="1" format="####" style="left:104px; top:8px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
- fGetIODiagHistList(); // 등록번호 입력 후 Enter 입력으로 상병이력을 조회한다.
- }
- ]]>
- </script>
- </input>
- <button id="btn_srchpid" class="icon_search" navindex="2" style="left:195px; top:10px; width:19px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var ipt_pid = model.getValue("/root/send/pid");
- if (ipt_pid) {
- /*
- if (ipt_pid.length < 8) {
- ipt_pid = ipt_pid.getLeftPad(8, "0"); // (stringHelper.js) 저장된 숫자 값에 원하는 길이만큼 '0'을 붙여 표현
- }
- */
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
- model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
- } else {
- model.resetInstanceNode("/root/hidden/sppmc02500/cond");
- }
- modal("SPPMC02500", 1, 150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", "");
- 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/pid", srch_pid);
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:770px; top:10px; width:102px; height:17px; ">청구대상기간</caption>
- <input id="ipt_ordfromdd" ref="/root/send/clamfromdd" class="input_search" navindex="3" inputtype="date" format="yyyy-mm-dd" style="left:879px; top:9px; width:97px; height:19px; "/>
- <caption id="caption4" class="search_no_b" style="left:979px; top:10px; width:12px; height:17px; ">~</caption>
- <input id="ipt_ordtodd" ref="/root/send/clamtodd" class="input_search" navindex="4" inputtype="date" format="yyyy-mm-dd" style="left:994px; top:9px; width:97px; height:19px; "/>
- <line id="line1" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
- <button id="btn_srch" class="btn1_letter2" navindex="5" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetIODiagHistList(); // "조회" 버튼을 누르면 상병이력을 조회한다.
- ]]>
- </script>
- </button>
- <select1 id="rdo_refterm" ref="/root/send/refterm" appearance="full" cellspacing="5" cols="5" overflow="visible" style="left:315px; top:9px; width:235px; height:17px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>1개월</label>
- <value>1</value>
- </item>
- <item>
- <label>3개월</label>
- <value>2</value>
- </item>
- <item>
- <label>6개월</label>
- <value>3</value>
- </item>
- <item>
- <label/>
- <value>4</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var refterm = model.getValue("/root/send/refterm");
-
- if (refterm == "4") {
- opt_fromdd.disabled = false;
- opt_todd.disabled = false;
- } else {
- opt_fromdd.disabled = true;
- opt_todd.disabled = true;
- fGetIODiagHistList(); // "조회" 버튼을 누르면 상병이력을 조회한다.
- }
- ]]>
- </script>
- </select1>
- <caption id="caption18" class="search_name" style="left:250px; top:9px; width:73px; height:17px; ">기간 :</caption>
- <caption id="caption19" style="left:645px; top:8px; width:12px; height:19px; ">~</caption>
- <input id="opt_todd" ref="/root/send/todd" class="input_search" disabled="true" inputtype="date" style="left:665px; top:8px; width:85px; height:19px; "/>
- <input id="opt_fromdd" ref="/root/send/fromdd" class="input_search" disabled="true" inputtype="date" style="left:555px; top:8px; width:85px; height:19px; "/>
- </group>
- <caption id="caption6" class="tit_2" style="left:5px; top:55px; width:69px; height:13px; ">환자정보</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:340px; y2:70px; "/>
- <output id="opt_gender" ref="/root/main/diaghist/item1/pmcmptbs/gender" class="output_fix" style="left:116px; top:76px; width:20px; height:19px; "/>
- <output id="opt_age" ref="/root/main/diaghist/item1/pmcmptbs/age" class="output_fix" style="left:139px; top:76px; width:30px; height:19px; "/>
- <caption id="caption10" class="cell_1" style="left:0px; top:75px; width:35px; height:23px; ">이름</caption>
- <output id="opt_patnm" ref="/root/main/diaghist/item1/pmcmptbs/patnm" class="output_fix" style="left:38px; top:76px; width:75px; height:19px; "/>
- <caption id="caption11" class="cell_1" style="left:172px; top:75px; width:59px; height:23px; ">주민번호</caption>
- <output id="opt_patrrgstno" ref="/root/main/diaghist/item1/pmcmptbs/patrrgstno" class="output_fix" format="999999 - 9999999" style="left:234px; top:76px; width:106px; height:19px; "/>
- <caption id="caption12" class="tit_2" style="left:350px; top:55px; width:118px; height:14px; ">선택된 상병 정보</caption>
- <line id="line5" class="line_1" style="x1:345px; y1:70px; x2:1194px; y2:70px; "/>
- <caption id="caption13" class="cell_1" style="left:345px; top:99px; width:80px; height:23px; ">영문상병명</caption>
- <output id="opt_engdiagnm" ref="/root/hidden/selected/engdiagnm" class="output_fix" style="left:428px; top:100px; width:766px; height:19px; "/>
- <line id="line6" class="line_2" style="x1:345px; y1:121px; x2:1194px; y2:121px; "/>
- <caption id="caption14" class="cell_1" style="left:345px; top:123px; width:80px; height:23px; ">한글상병명</caption>
- <output id="opt_hngdiagnm" ref="/root/hidden/selected/hngdiagnm" class="output_fix" style="left:428px; top:124px; width:766px; height:19px; "/>
- <line id="line7" class="line_3" style="x1:345px; y1:145px; x2:1194px; y2:145px; "/>
- <caption id="caption15" class="tit_2" style="left:5px; top:156px; width:105px; height:13px; ">상병 이력 목록</caption>
- <line id="line8" class="line_1" style="x1:0px; y1:172px; x2:538px; y2:171px; "/>
- <line id="line10" class="line_1" style="x1:0px; y1:513px; x2:346px; y2:514px; "/>
- <line id="line11" class="line_1" style="x1:356px; y1:513px; x2:1190px; y2:512px; "/>
- <caption id="caption5" class="tit_2" style="left:0px; top:497px; width:130px; height:13px; ">진료상병이력</caption>
- <caption id="caption16" class="tit_2" style="left:355px; top:497px; width:105px; height:13px; ">청구상병이력</caption>
- <datagrid id="grd_diaghistlist" nodeset="/root/main/diaghist/list1/diagdatelist" caption="청구년월^차수^진료개시일^구분^진료과^진료의" colsep="^" colwidth="97, 40, 89, 70, 103, 87" dataheight="23" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:176px; width:540px; height:312px; ">
- <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
- <col ref="clamdg" style="text-align:center; "/>
- <col ref="ordfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="ioflag" style="text-align:center; "/>
- <col disabled="true" ref="orddeptcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="orddrid" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (grd_diaghistlist.isCell(event.target) && grd_diaghistlist.row >= grd_diaghistlist.fixedRows) {
- // 상병 이력 목록 Grid를 선택한 경우
- fPatIODiagHistList();
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_orddiaghist" nodeset="/root/main/diaghist/list01/mmohdiag1" caption="R/O^상병코드^상병명(한글)" colsep="^" colwidth="30, 54, 241" dataheight="23" ellipsis="true" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:1px; top:518px; width:346px; height:220px; ">
- <col checkvalue="R,C" disabled="true" ref="diagkindcd" type="checkbox" style="text-align:center; "/>
- <col ref="diagcd" style="text-align:center; "/>
- <col ref="diaghngnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(diagSelIdx == grd_orddiaghist.row){
- grd_orddiaghist.row = 0;
- diagSelIdx = 0;
- }else{
- diagSelIdx = grd_orddiaghist.row
- }
- if (isDataCell()) { // (tfHelper.js) datagrid click or dbclick 시점에 현재 click target이 data 영역인지 check
- fSelectOrdDiagHist();
- } else {
- grd_orddiaghist.row = 0;
- model.resetInstanceNode("/root/hidden/selected/termcd");
- model.resetInstanceNode("/root/hidden/selected/engdiagnm");
- model.resetInstanceNode("/root/hidden/selected/hngdiagnm");
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_cldihist" nodeset="/root/main/diaghist/list01/mmohdiag2" caption="X^R/O^no^상병코드^상 병 명^청구과^MT002^치식EDI^치식^진료일자^특정기호^wundresncd^diagengnm^seqno^workflag^kcd6chk" colsep="^" colwidth="20, 30, 20, 56, 345, 67, 44, 30, 73, 118, 74, 68, 40, 60, 100, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:356px; top:517px; width:835px; height:221px; ">
- <col ref="rowstat"/>
- <col checkvalue="R,C" ref="diagkindcd" type="checkbox"/>
- <col imemode="disabled" ref="diagseq" type="input" format="##"/>
- <col imemode="disabled" ref="diagcd" type="input" _chartype="upper"/>
- <col ref="diagnm"/>
- <col disabled="true" ref="clamdeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0322list/P0322">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="vcode" style="text-align:center; "/>
- <col ref="toot" visibility="hidden" style="background-color:#c0c0c0; "/>
- <col ref="toot1"/>
- <col ref="ordfromdd" type="inputdate" format="yyyy/mm/dd"/>
- <col ref="estmspclcd" visibility="hidden" style="background-color:#c0c0c0; "/>
- <col ref="wundresncd" visibility="hidden" style="background-color:#c0c0c0; "/>
- <col ref="diagengnm" visibility="hidden" style="background-color:#c0c0c0; "/>
- <col ref="seqno" visibility="hidden" style="background-color:#c0c0c0; "/>
- <col ref="workflag" visibility="hidden" style="background-color:#c0c0c0; "/>
- <col ref="kcd6chk" visibility="hidden" style="background-color:#c0c0c0; "/>
- <script type="javascript" ev:event="onstartedit">
- <![CDATA[
- var row = grd_cldihist.row;
- model.makeValue("/root/hidden/list1/cldi/oldseq", model.getValue(grd_cldihist.nodeset + "["+ row +"]/diagseq"));
- model.makeValue("/root/hidden/list1/cldi/olddiagcd", model.getValue(grd_cldihist.nodeset + "["+ row +"]/diagcd"));
- model.makeValue("/root/hidden/list1/cldi/olddiagnm", model.getValue(grd_cldihist.nodeset + "["+ row +"]/diagnm"));
- model.makeValue("/root/hidden/list1/cldi/oldengnm", model.getValue(grd_cldihist.nodeset + "["+ row +"]/diagengnm"));
- model.makeValue("/root/hidden/list1/cldi/oldrowstat", grd_cldihist.rowstatus(row));
- model.makeValue("/root/hidden/list1/cldi/oldordfromdd", model.getValue(grd_cldihist.nodeset + "["+ row +"]/ordfromdd"));
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- // event="xforms-value-changed" 사용시에는 오류 발생한다.
- // 숫자 입력 후 마우스 커서 위치를 바꾸거나 Enter 입력 시에 호출된다.
- var col = grd_cldihist.col;
- if (col == grd_cldihist.colRef("diagseq")) { // no (상병순서)
- if (model.getValue(grd_cldihist.nodeset + "["+ grd_cldihist.row +"]/diagseq") != model.getValue("/root/hidden/list1/cldi/oldseq")) {
- // 사용자가 입력한 숫자를 기준으로 상병순서 부여
- fChangeDiagNo();
- }
- }
- /*
- else if (col == grd_cldihist.colRef("diagcd")) { // '상병코드'
- if (model.getValue(grd_cldihist.nodeset + "["+ grd_cldihist.row +"]/diagcd") != model.getValue("/root/hidden/list1/cldi/olddiagcd")) {
- model.resetInstanceNode(grd_cldihist.nodeset + "["+ grd_cldihist.row +"]/diagnm");
- model.resetInstanceNode(grd_cldihist.nodeset + "["+ grd_cldihist.row +"]/diagengnm");
- fSearchDiageCode();
- }
- }
- */
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if (event.button == 3) { // 3 : 오른쪽 버튼
- if (grd_cldihist.isCell(event.target) && grd_cldihist.mouseRow >= grd_cldihist.fixedrows) {
- var rowstatus = grd_cldihist.rowstatus(grd_cldihist.mouseRow);
- if (rowstatus == 4) { // 4 : delete
- setPopupMenu("grd_cldihist", false, "/root/hidden/popupmenu/gridcldi/delitem", "name", "func"); // (tfHelper.js) 컨트롤에서 사용자 팝업 설정 함수
- } else {
- setPopupMenu("grd_cldihist", false, "/root/hidden/popupmenu/gridcldi/item", "name", "func"); // (tfHelper.js) 컨트롤에서 사용자 팝업 설정 함수
- }
- }
- // else {
- // // 상병이 한줄도 없는 경우에도 "행 추가"를 하기 위해 사용함
- // window.showPopupMenu(true);
- // window.setPopupMenu(true, "/root/hidden/popupmenu/gridcldi/inititem", "name", "func", false);
- // }
- } else {
- // if (grd_cldihist.isCell(event.target) && grd_cldihist.mouseRow >= grd_cldihist.fixedrows) {
- // // 해당 상병의 한글상병명과 영문상병명이 Message 용 output 컨트롤에 표시된다.
- // var diagcd = model.getValue(grd_cldihist.nodeset + "["+ grd_cldihist.mouseRow +"]/diagcd");
- // var diagnm = model.getValue(grd_cldihist.nodeset + "["+ grd_cldihist.mouseRow +"]/diagnm");
- // var diagengnm = model.getValue(grd_cldihist.nodeset + "["+ grd_cldihist.mouseRow +"]/diagengnm");
- // model.setValue("/root/hidden/list3/msgspclformat", "상병코드 - "+ diagcd +" / "+ diagnm +" / "+ diagengnm);
- // model.refresh();
- // }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu(); // (tfHelper.js) 사용자 팝업 설정 초기화
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var row = grd_cldihist.mouseRow;
- grd_cldihist.row = row;
-
- if (grd_cldihist.isCell(event.target) && row >= grd_cldihist.fixedrows) {
- var col = grd_cldihist.mouseCol;
- if (col == grd_cldihist.colRef("diagnm")) { // '상병명'
- // 상병코드 조회를 위해 SPPIZ00400_상병코드조회.xrw 를 호출한다.
- fSearchSPPIZ00400();
- fSortDiagNo(true);
- }
- else if (col == grd_cldihist.colRef("toot1")) { // 상병 - 치식여부 (Y/N)
- fDiagOrderToothInput("Diag");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onentercell">
- <![CDATA[
- // col@type = "input" 일 경우 onentercell시점에 EditMode 상태 만들기
- if (grd_cldihist.colType(grd_cldihist.col) == "input") {
- grd_cldihist.editCell();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var col = grd_cldihist.col;
- var row = grd_cldihist.row;
- if (col == grd_cldihist.colRef("ordfromdd")) { // 진료개시일이 변경된 경우
- var ordfromdd = model.getValue(grd_cldihist.nodeset + "["+ row +"]/ordfromdd");
- if (!isValidDateTime(ordfromdd)) { // (dateHelper.js) 유효한 날짜, 시간 인지 점검
- model.setValue(grd_cldihist.nodeset + "["+ row +"]/ordfromdd", model.getValue("/root/hidden/list1/cldi/oldordfromdd"));
- grd_cldihist.rowstatus(row) = model.getValue("/root/hidden/list1/cldi/oldrowstat");
- grd_cldihist.refresh();
- }
- }
- else if (col == grd_cldihist.colRef("diagcd")) { // '상병코드'
- if (model.getValue("/root/hidden/list1/cldi/olddiagcd") != model.getValue(grd_cldihist.nodeset + "["+ row +"]/diagcd")) {
- model.resetInstanceNode(grd_cldihist.nodeset + "["+ grd_cldihist.row +"]/diagnm");
- model.resetInstanceNode(grd_cldihist.nodeset + "["+ grd_cldihist.row +"]/diagengnm");
- fSearchDiageCode();
- }
- }
- ]]>
- </script>
- <!-- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (grd_cldihist.colType(grd_cldihist.col) == "input") {
- grd_cldihist.editCell();
- }
- ]]>
- </script>-->
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // if (grd_cldihist.isCell(event.target) && grd_cldihist.mouseRow >= grd_cldihist.fixedrows) {
- // var row = grd_cldihist.mouseRow;
- // // 해당 상병의 한글상병명과 영문상병명이 Message 용 output 컨트롤에 표시된다.
- // var diagcd = model.getValue(grd_cldihist.nodeset + "["+ row +"]/diagcd");
- // var diagnm = model.getValue(grd_cldihist.nodeset + "["+ row +"]/diagnm");
- // var diagengnm = model.getValue(grd_cldihist.nodeset + "["+ row +"]/diagengnm");
- // model.setValue("/root/hidden/list3/msgspclformat", "상병코드 - "+ diagcd +" / "+ diagnm +" / "+ diagengnm);
- // model.refreshpart("/root/hidden/list3/msgspclformat");
- // }
- ///////////////
- if(clamSelIdx == grd_cldihist.row){
- grd_cldihist.row = 0;
- clamSelIdx = 0;
- }else{
- clamSelIdx = grd_cldihist.row
- }
- if (isDataCell()) { // (tfHelper.js) datagrid click or dbclick 시점에 현재 click target이 data 영역인지 check
- fSelectClamDiagHist();
- } else {
- grd_cldihist.row = 0;
- model.resetInstanceNode("/root/hidden/selected/termcd");
- model.resetInstanceNode("/root/hidden/selected/engdiagnm");
- model.resetInstanceNode("/root/hidden/selected/hngdiagnm");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="oncopy">
- <![CDATA[
- // 그리드 내용 복사
- if (grd_cldihist.selectedRows == 1) { // 한줄
- var row = grd_cldihist.row;
- var col = grd_cldihist.col;
- if (col == grd_cldihist.colRef("diagcd") || col == grd_cldihist.colRef("diagnm")) {
- // 상병코드/상병명
- // var clip = grd_cldihist.valueMatrix(row, col);
- var clip = grd_cldihist.labelMatrix(row, col);
- // var clip = grd_cldihist.labelMatrix(grd_cldihist.mouseRow, grd_cldihist.mouseCol);
- window.clipBoardData = clip;
- } else {
- grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
- }
- }
- else if (grd_cldihist.selectedRows > 1) { // 여러줄
- grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
- }
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_2" style="x1:0px; y1:97px; x2:340px; y2:97px; "/>
- <select1 id="rdo_ioflag" ref="/root/hidden/selected/rdoioflag" appearance="full" cols="3" vcellspacing="5" overflow="visible" style="left:38px; top:100px; width:130px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 입원외래구분 Radio / 진료과 Combo 필터링 적용
- fSelectedIODept();
- ]]>
- </script>
- </select1>
- <caption id="caption7" class="cell_1" style="left:172px; top:99px; width:59px; height:23px; ">진료과</caption>
- <select1 id="cmb_orddept" ref="/root/hidden/selected/cmborddept" class="combo_default" appearance="minimal" style="left:234px; top:100px; width:106px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/orddeptcd/orddeptlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 입원외래구분 Radio / 진료과 Combo 필터링 적용
- fSelectedIODept();
- ]]>
- </script>
- </select1>
- <caption id="caption8" class="cell_1" style="left:0px; top:99px; width:35px; height:23px; ">구분</caption>
- <line id="line4" class="line_3" style="x1:0px; y1:121px; x2:340px; y2:121px; "/>
- <line id="line13" class="line_2" style="x1:345px; y1:97px; x2:1194px; y2:97px; "/>
- <caption id="caption9" class="cell_1" style="left:345px; top:75px; width:80px; height:23px; ">확장상병</caption>
- <output id="opt_termcd" ref="/root/hidden/selected/termcd" class="output_fix" style="left:428px; top:76px; width:766px; height:19px; "/>
- <datagrid id="grd_clamhistlist" nodeset="/root/main/diaghist/list2/clamhistlist" caption="^청구년월^진료과^진료개시일^총진료비^본인부담금^청구액^원외처방금액" colsep="^" colwidth="21, 54, 104, 71, 79, 82, 80, 113" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:550px; top:176px; width:641px; height:312px; ">
- <col ref="chkstatus" type="checkbox"/>
- <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
- <col disabled="true" ref="orddeptcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="ordfromdd" format="yyyy-mm-dd"/>
- <col ref="totordamt" format="#,###" style="text-align:right; "/>
- <col ref="ownbamt" format="#,###" style="text-align:right; "/>
- <col ref="insuclamamt" format="#,###" style="text-align:right; "/>
- <col ref="ediunitcost" format="#,###" style="text-align:right; "/>
- </datagrid>
- <line id="line12" class="line_1" style="x1:552px; y1:172px; x2:1190px; y2:173px; "/>
- <caption id="caption17" class="tit_2" style="left:552px; top:155px; width:138px; height:13px; ">청구대상명세서</caption>
- <button id="button3" class="btn5_letter6" style="left:1103px; top:491px; width:86px; height:19px; ">
- <caption>청구상병저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_cldihist.rows == 0){
- return;
- }
-
- var exeNodePath = "/root/exepidhcldi";
- model.removeNodeset(exeNodePath);
- model.makeNode(exeNodePath);
-
- var chkstatus = "";
-
- model.makeValue(exeNodePath + "/clamhistlist/clamym", model.getValue(grd_diaghistlist.nodeset + "[" + grd_diaghistlist.row + "]/clamym"));
- model.makeValue(exeNodePath + "/clamhistlist/clamdg", model.getValue(grd_diaghistlist.nodeset + "[" + grd_diaghistlist.row + "]/clamdg"));
- model.makeValue(exeNodePath + "/clamhistlist/pid", model.getValue(grd_diaghistlist.nodeset + "[" + grd_diaghistlist.row + "]/pid"));
- model.makeValue(exeNodePath + "/clamhistlist/pidsn", model.getValue(grd_diaghistlist.nodeset + "[" + grd_diaghistlist.row + "]/pidsn"));
- model.makeValue(exeNodePath + "/clamhistlist/workflag", model.getValue(grd_diaghistlist.nodeset + "[" + grd_diaghistlist.row + "]/workflag"));
- model.makeValue(exeNodePath + "/clamhistlist/clamdeptcd", model.getValue(grd_diaghistlist.nodeset + "[" + grd_diaghistlist.row + "]/clamdeptcd"));
- model.makeValue(exeNodePath + "/clamhistlist/ordfromdd", model.getValue(grd_diaghistlist.nodeset + "[" + grd_diaghistlist.row + "]/ordfromdd"));
- model.makeValue(exeNodePath + "/clamhistlist/exist", "Y");
-
- // 진료상병 이력 정보에서 선택된 정보를 심사상병으로 저장
- var diaghCnt = 1;
-
- if(grd_cldihist.rows > 0){
- for(var idx=1; idx<grd_cldihist.rows; idx++){
- var status = model.getValue(grd_cldihist.nodeset + "[" + idx + "]/status");
- var diagcd = model.getValue(grd_cldihist.nodeset + "[" + idx + "]/diagcd");
- var diagnm = model.getValue(grd_cldihist.nodeset + "[" + idx + "]/diagnm");
- var diagseq = model.getValue(grd_cldihist.nodeset + "[" + idx + "]/diagseq");
- var rowstatus = grd_cldihist.rowstatus(idx);
-
- if(diagcd != "" && diagnm != "" && diagseq != "" && rowstatus != 4){
- model.makeValue(exeNodePath + "/diaglist[" + diaghCnt + "]/diagkindcd" , model.getValue(grd_cldihist.nodeset + "[" + idx + "]/diagkindcd"), true);
- model.makeValue(exeNodePath + "/diaglist[" + diaghCnt + "]/diagcd" , model.getValue(grd_cldihist.nodeset + "[" + idx + "]/diagcd"), true);
- model.makeValue(exeNodePath + "/diaglist[" + diaghCnt + "]/diagseq" , model.getValue(grd_cldihist.nodeset + "[" + idx + "]/diagseq"), true);
- model.makeValue(exeNodePath + "/diaglist[" + diaghCnt + "]/diagengnm" , model.getValue(grd_cldihist.nodeset + "[" + idx + "]/diagengnm"), true);
- model.makeValue(exeNodePath + "/diaglist[" + diaghCnt + "]/diaghngnm" , model.getValue(grd_cldihist.nodeset + "[" + idx + "]/diagnm"), true);
- model.makeValue(exeNodePath + "/diaglist[" + diaghCnt + "]/toot" , model.getValue(grd_cldihist.nodeset + "[" + idx + "]/toot"), true);
- model.makeValue(exeNodePath + "/diaglist[" + diaghCnt + "]/orddiagflag" , "N", true);
- }
- diaghCnt++;
- }
- }
-
- submit("TXPIZ00201");
-
- fGetIODiagHistList(); // "조회" 버튼을 누르면 상병이력을 조회한다.
- // 진료상병에서 선택된 정보가 없을 경우 청구상병에 선택된 정보를 심사상병에 저장
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_init" class="btn4_letter3" navindex="6" style="left:956px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line9" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="btn_close" class="btn4_letter2" navindex="7" style="left:1134px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <close ev:event="DOMActivate"/>
- </button>
- <button id="btn_judgdiag" class="btn4_letter6" navindex="6" style="left:1027px; top:5px; width:104px; height:22px; ">
- <caption>일괄상병적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_orddiaghist.row == 0 && grd_cldihist.row == 0){
- return;
- }
-
- if(grd_orddiaghist.selectedRows == 0 && grd_cldihist.selectedRows == 0){
- return;
- }
-
-
- var exeNodePath = "/root/exepidhcldi";
- model.removeNodeset(exeNodePath);
- model.makeNode(exeNodePath);
-
- var chkstatus = "";
- for(var rowIdx=0; rowIdx<grd_clamhistlist.rows; rowIdx++){
- chkstatus = model.getValue(grd_clamhistlist.nodeset + "[" + rowIdx + "]/chkstatus");
- if(chkstatus == "true"){
- copyNodeListType(exeNodePath, grd_clamhistlist.nodeset + "[" + rowIdx + "]", "after");
- }
- }
-
- // 진료상병 이력 정보에서 선택된 정보를 심사상병으로 저장
- var diaghCnt = 1;
- if(grd_orddiaghist.selectedRows > 0 && grd_orddiaghist.row != 0){
- for(var idx=0; idx<grd_orddiaghist.selectedRows; idx++){
- var selectedIdx = null;
- selectedIdx = grd_orddiaghist.selectedRow(idx);
-
- model.makeValue(exeNodePath + "/diaglist[" + diaghCnt + "]/diagkindcd" , model.getValue(grd_orddiaghist.nodeset + "[" + selectedIdx + "]/diagkindcd"), true);
- model.makeValue(exeNodePath + "/diaglist[" + diaghCnt + "]/diagcd" , model.getValue(grd_orddiaghist.nodeset + "[" + selectedIdx + "]/diagcd"), true);
- model.makeValue(exeNodePath + "/diaglist[" + diaghCnt + "]/diagengnm" , model.getValue(grd_orddiaghist.nodeset + "[" + selectedIdx + "]/diagengnm"), true);
- model.makeValue(exeNodePath + "/diaglist[" + diaghCnt + "]/diaghngnm" , model.getValue(grd_orddiaghist.nodeset + "[" + selectedIdx + "]/diaghngnm"), true);
- model.makeValue(exeNodePath + "/diaglist[" + diaghCnt + "]/orddiagflag" , "Y", true);
- model.makeValue(exeNodePath + "/diaglist[" + diaghCnt + "]/diagseq" , diaghCnt);
-
- diaghCnt++;
- }
- }
-
- if(grd_cldihist.selectedRows > 0 && grd_cldihist.row != 0){
- for(var idx=0; idx<grd_cldihist.selectedRows; idx++){
- var selectedIdx = null;
- selectedIdx = grd_cldihist.selectedRow(idx);
-
- model.makeValue(exeNodePath + "/diaglist[" + diaghCnt + "]/diagkindcd" , model.getValue(grd_cldihist.nodeset + "[" + selectedIdx + "]/diagkindcd"), true);
- model.makeValue(exeNodePath + "/diaglist[" + diaghCnt + "]/diagcd" , model.getValue(grd_cldihist.nodeset + "[" + selectedIdx + "]/diagcd"), true);
- model.makeValue(exeNodePath + "/diaglist[" + diaghCnt + "]/diagengnm" , model.getValue(grd_cldihist.nodeset + "[" + selectedIdx + "]/diagengnm"), true);
- model.makeValue(exeNodePath + "/diaglist[" + diaghCnt + "]/diaghngnm" , model.getValue(grd_cldihist.nodeset + "[" + selectedIdx + "]/diagnm"), true);
- model.makeValue(exeNodePath + "/diaglist[" + diaghCnt + "]/orddiagflag" , "N", true);
- model.makeValue(exeNodePath + "/diaglist[" + diaghCnt + "]/diagseq" , diaghCnt);
-
- diaghCnt++;
- }
- }
-
- submit("TXPIZ00201");
- fGetIODiagHistList();
- // 진료상병에서 선택된 정보가 없을 경우 청구상병에 선택된 정보를 심사상병에 저장
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|