123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703 |
- <?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 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>
- <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/>
- </send>
- <init>
- <!-- opener (예:SMPID20300_입원사후심사관리) 화면에서 설정된 검색조건을 보내는 경로임-->
- <pid/>
- <!--
- <ordfromdd/>
- <ordtodd/>
- <srchflag/>
- -->
- </init>
- <hidden>
- <selected>
- <termcd/>
- <engdiagnm/>
- <hngdiagnm/>
- <rdoioflag/>
- <cmborddept/>
- </selected>
- <sppmc02500>
- <cond>
- <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </cond>
- </sppmc02500>
- <smpiz00100>
- <rslt>
- <diag>
- <diagcd/>
- <diagkindcd/>
- <diaghngnm/>
- <diagengnm/>
- </diag>
- </rslt>
- </smpiz00100>
- <base>
- <basedd/>
- </base>
- </hidden>
- </root>
- </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"/>
- <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">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- 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);
- }
- // 화면 권한을 설정한다.
- 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_diaghistlist.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_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", grd_diaghistlist.valueMatrix(row, grd_diaghistlist.colRef("pid")));
- model.makeValue("/root/send/ioflag", grd_diaghistlist.valueMatrix(row, grd_diaghistlist.colRef("ioflagcd")));
- model.makeValue("/root/send/deptcd", grd_diaghistlist.valueMatrix(row, grd_diaghistlist.colRef("orddeptcd")));
- model.makeValue("/root/send/orddd", grd_diaghistlist.valueMatrix(row, grd_diaghistlist.colRef("ordfromdd")));
- model.makeValue("/root/send/clamym", grd_diaghistlist.valueMatrix(row, grd_diaghistlist.colRef("clamym")));
- model.makeValue("/root/send/clamdg", grd_diaghistlist.valueMatrix(row, grd_diaghistlist.colRef("clamdg")));
- model.makeValue("/root/send/pidsn", grd_diaghistlist.valueMatrix(row, grd_diaghistlist.colRef("pidsn")));
- submit("TRPIZ00102");
-
- if (grd_orddiaghist.rows > 1) {
- grd_orddiaghist.row = 1;
- fSelectOrdDiagHist(); // 진료상병이력을 선택한 경우
- }
- else if (grd_clamdiaghist.rows > 1) {
- grd_clamdiaghist.row = 1;
- fSelectClamDiagHist(); // 청구상병이력을 선택한 경우
- }
- }
- // 진료상병이력을 선택한 경우
- function fSelectOrdDiagHist() {
- var row = grd_orddiaghist.row;
- model.setValue("/root/hidden/selected/termcd", grd_orddiaghist.valueMatrix(row, grd_orddiaghist.colRef("termcd")));
- model.setValue("/root/hidden/selected/engdiagnm", grd_orddiaghist.valueMatrix(row, grd_orddiaghist.colRef("termengnm")));
- model.setValue("/root/hidden/selected/hngdiagnm", grd_orddiaghist.valueMatrix(row, grd_orddiaghist.colRef("termhngnm")));
- model.refresh();
- }
- // 청구상병이력을 선택한 경우
- function fSelectClamDiagHist() {
- var row = grd_clamdiaghist.row;
- model.setValue("/root/hidden/selected/termcd", "");
- model.setValue("/root/hidden/selected/engdiagnm", grd_clamdiaghist.valueMatrix(row, grd_clamdiaghist.colRef("diagengnm")));
- model.setValue("/root/hidden/selected/hngdiagnm", grd_clamdiaghist.valueMatrix(row, grd_clamdiaghist.colRef("diaghngnm")));
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1195;" 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:13px; ">상병이력 조회</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" visibility="hidden" style="left:790px; top:10px; width:86px; height:17px; ">진료기간 :</caption>
- <input id="ipt_ordfromdd" ref="/root/send/ordfromdd" class="input_search" navindex="3" visibility="hidden" inputtype="date" style="left:879px; top:9px; width:97px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/send/ordtodd") == "") {
- model.setValue("/root/send/ordtodd", model.getValue("/root/send/ordfromdd"));
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <caption id="caption4" class="search_no_b" visibility="hidden" style="left:979px; top:10px; width:12px; height:17px; ">~</caption>
- <input id="ipt_ordtodd" ref="/root/send/ordtodd" class="input_search" navindex="4" visibility="hidden" inputtype="date" 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:171px; x2:320px; y2:171px; "/>
- <line id="line10" class="line_1" style="x1:325px; y1:171px; x2:615px; y2:171px; "/>
- <line id="line11" class="line_1" style="x1:620px; y1:171px; x2:910px; y2:171px; "/>
- <caption id="caption5" class="tit_2" style="left:325px; top:156px; width:105px; height:13px; ">진료상병이력</caption>
- <caption id="caption16" class="tit_2" style="left:620px; top:156px; width:105px; height:13px; ">청구상병이력</caption>
- <datagrid id="grd_diaghistlist" nodeset="/root/main/diaghist/list1/diagdatelist" caption="청구년월^차수^진료개시일^구분^진료과^진료의^pid^ordfromdd^ioflag^pidsn" colsep="^" colwidth="55, 30, 68, 30, 70, 45, 50, 54, 45, 56" dataheight="23" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:176px; width:320px; height:550px; ">
- <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
- <col ref="clamdg" style="text-align:center; "/>
- <col ref="ordfromdd" format="yyyy-mm-dd"/>
- <col ref="ioflag" style="text-align:center; "/>
- <col disabled="true" ref="orddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="orddrid" type="combo">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="pid" visibility="hidden"/>
- <col ref="ordfromdd" visibility="hidden"/>
- <col ref="ioflagcd" visibility="hidden"/>
- <col ref="pidsn" visibility="hidden"/>
- <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^상병코드^상병명(한글)^termcd^termengnm^termhngnm" colsep="^" colwidth="30, 54, 135, 35, 32, 39" dataheight="23" ellipsis="true" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:325px; top:176px; width:290px; height:550px; ">
- <col checkvalue="R,C" disabled="true" ref="diagkindcd" type="checkbox" style="text-align:center; "/>
- <col ref="diagcd" style="text-align:center; "/>
- <col ref="diaghngnm"/>
- <col ref="termcd" visibility="hidden"/>
- <col ref="termengnm" visibility="hidden"/>
- <col ref="termhngnm" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- 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_clamdiaghist" nodeset="/root/main/diaghist/list01/mmohdiag2" caption="R/O^상병코드^상병명(한글)^diagengnm" colsep="^" colwidth="30, 54, 135, 35" dataheight="23" ellipsis="true" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:620px; top:176px; width:290px; height:550px; ">
- <col checkvalue="R,C" disabled="true" ref="diagkindcd" type="checkbox" style="text-align:center; "/>
- <col ref="diagcd" style="text-align:center; "/>
- <col ref="diaghngnm"/>
- <col ref="diagengnm" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (isDataCell()) { // (tfHelper.js) datagrid click or dbclick 시점에 현재 click target이 data 영역인지 check
- fSelectClamDiagHist();
- } else {
- grd_clamdiaghist.row = 0;
- model.resetInstanceNode("/root/hidden/selected/termcd");
- model.resetInstanceNode("/root/hidden/selected/engdiagnm");
- model.resetInstanceNode("/root/hidden/selected/hngdiagnm");
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <line id="line12" class="line_1" style="x1:915px; y1:171px; x2:1195px; y2:171px; "/>
- <caption id="caption17" class="tit_2" style="left:915px; top:156px; width:109px; height:13px; ">의료정보 Index</caption>
- <datagrid id="grd_medinfoindex" nodeset="/root/main/diaghist/list01/mmohdiag3" caption="R/O^상병코드^상병명(한글)" colsep="^" colwidth="30, 54, 135" dataheight="23" ellipsis="true" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:915px; top:176px; width:280px; height:550px; ">
- <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(grd_medinfoindex.row == 0) {
- // return false;
- // }
- // var row = grd_grd_medinfoindex.row;
- // opt_engdiagnm.value = model.getValue("/root/main/diaghist/list01/mmohdiag3["+row+"]/diagengnm");
- // opt_hngdiagnm.value = model.getValue("/root/main/diaghist/list01/mmohdiag3["+row+"]/diaghngnm");
- ]]>
- </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; "/>
- </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[
- model.removeNodeset("/root/hidden/smpiz00100/rslt");
- var max = 1;
- for (var i = 0; i < grd_orddiaghist.selectedRows; i++) {
- var row = grd_orddiaghist.selectedrow(i);
- var diagcd = model.getValue("/root/main/diaghist/list01/mmohdiag1[" + row + "]/diagcd");
- if (diagcd) {
- model.makeValue("/root/hidden/smpiz00100/rslt/diag[" + max + "]/diagcd", diagcd);
- model.makeValue("/root/hidden/smpiz00100/rslt/diag[" + max + "]/diagkindcd", model.getValue("/root/main/diaghist/list01/mmohdiag1[" + row + "]/diagkindcd"));
- model.makeValue("/root/hidden/smpiz00100/rslt/diag[" + max + "]/diaghngnm", model.getValue("/root/main/diaghist/list01/mmohdiag1[" + row + "]/diaghngnm"));
- model.makeValue("/root/hidden/smpiz00100/rslt/diag[" + max + "]/diagengnm", model.getValue("/root/main/diaghist/list01/mmohdiag1[" + row + "]/diagengnm"));
- max++;
- }
- }
- for (var i = 0; i < grd_clamdiaghist.selectedRows; i++) {
- var row = grd_clamdiaghist.selectedrow(i);
- var diagcd = model.getValue("/root/main/diaghist/list01/mmohdiag2[" + row + "]/diagcd");
- if (diagcd) {
- model.makeValue("/root/hidden/smpiz00100/rslt/diag[" + max + "]/diagcd", diagcd);
- model.makeValue("/root/hidden/smpiz00100/rslt/diag[" + max + "]/diagkindcd", model.getValue("/root/main/diaghist/list01/mmohdiag2[" + row + "]/diagkindcd"));
- model.makeValue("/root/hidden/smpiz00100/rslt/diag[" + max + "]/diaghngnm", model.getValue("/root/main/diaghist/list01/mmohdiag2[" + row + "]/diaghngnm"));
- model.makeValue("/root/hidden/smpiz00100/rslt/diag[" + max + "]/diagengnm", model.getValue("/root/main/diaghist/list01/mmohdiag2[" + row + "]/diagengnm"));
- max++;
- }
- }
- opener.model.removeNodeset("/root/hidden/smpiz00100/rslt");
- opener.model.makeNode("/root/hidden/smpiz00100/rslt");
- model.copyNode(opener.root.hidden.smpiz00100.rslt, "/root/hidden/smpiz00100/rslt");
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|