123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>환자검색</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <patsrchinfo>
- <patsrchlist>
- <pid/>
- <hngnm/>
- <sa/>
- <orddd/>
- <orddeptcd/>
- <orddeptnm/>
- <orddrid/>
- <orddrnm/>
- <insukind/>
- <diagnm/>
- <serdiag/>
- <cnst/>
- <roomcd/>
- <cretno/>
- <ioflag/>
- <instcd/>
- <rsrv/>
- <stat/>
- <conctypenm/>
- <preworkup/>
- <hsctpredd/>
- <trnpttype/>
- <hsctday/>
- <postcxday/>
- <dschdd/>
- </patsrchlist>
- </patsrchinfo>
- <cond>
- <fromdd/>
- <todd/>
- <orddeptcd/>
- <orddrid/>
- <patflagcd>O</patflagcd>
- <pid/>
- <hngnm/>
- <sortcol/>
- <orderby/>
- <prid/>
- </cond>
- <totcnt>
- <totcnt/>
- </totcnt>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <hidden>
- </hidden>
- <init>
- <userlist/>
- <orddept/>
- <P0008/>
- </init>
- <popupmenu>
- <menu>
- <item>
- <name>관심환자등록</name>
- <func>fCallWndConcPatRgst</func>
- </item>
- <item>
- <name/>
- <func/>
- </item>
- </menu>
- </popupmenu>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize_SMMMO04700();
- ]]>
- </script>
- <submission id="TRMMO04701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/patsrchinfo"/>
- <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
- <submission id="TRMMB01103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/userscrnenvinfo"/>
- <submission id="TRMMO04303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/rsltgetdata"/>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMO04129" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/recinfo"/>
- <submission id="TRMMO02705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/aftcert" resultref="/root/hidden/aftcert"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04100.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04700.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1174;2,716;2,8;1,213;1,622;1,949;2,61;2,9;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1174px; height:62px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption7" class="search_name" style="left:5px; top:9px; width:50px; height:17px; ">총</caption>
- <line id="line3" style="x1:1096px; y1:6px; x2:1096px; y2:55px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption2" style="left:96px; top:9px; width:30px; height:20px; font-weight:bold; vertical-align:middle; ">명</caption>
- <output id="input3" ref="/root/main/totcnt/totcnt" format="yyyy-mm-dd" appearance="output" style="left:55px; top:9px; width:35px; height:19px; text-align:center; "/>
- <caption id="caption3" class="tit_2" style="left:0px; top:64px; width:126px; height:13px; vertical-align:middle; ">환자검색 리스트</caption>
- <line id="line6" class="line_1" style="x1:0px; y1:79px; x2:1174px; y2:79px; "/>
- <caption id="caption5" class="search_name" style="left:138px; top:9px; width:76px; height:17px; ">진 료 일</caption>
- <caption id="caption8" class="search_name" style="left:547px; top:9px; width:76px; height:17px; ">진 료 과</caption>
- <input id="input4" ref="/root/main/cond/fromdd" class="input" inputtype="date" style="left:216px; top:9px; width:90px; height:19px; "/>
- <caption id="caption29" class="search_name" style="left:873px; top:10px; width:76px; height:17px; ">진 료 의</caption>
- <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" maxlength="10" style="left:625px; top:36px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_reqpatnm", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption4" class="search_name" style="left:873px; top:36px; width:76px; height:17px; ">환 자 명</caption>
- <input id="input1" ref="/root/main/cond/hngnm" class="input_search" style="left:952px; top:36px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_patsrch", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption6" class="search_name" style="left:547px; top:36px; width:76px; height:17px; ">등록번호</caption>
- <caption id="caption10" class="search_name" style="left:138px; top:36px; width:76px; height:17px; ">환자구분</caption>
- <select1 id="radio1" ref="/root/main/cond/patflagcd" appearance="full" cellspacing="15" cols="4" rows="1" overflow="visible" style="left:217px; top:36px; width:225px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>T</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- </choices>
- </select1>
- <input id="input2" ref="/root/main/cond/todd" class="input" inputtype="date" style="left:333px; top:9px; width:90px; height:19px; "/>
- <button id="btn_prcpclsnm" class="icon_search" style="left:1045px; top:36px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPMC02500");
-
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- model.setValue("/root/main/cond/pid", pid);
- model.setValue("/root/main/cond/hngnm", hngnm);
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption1" style="left:313px; top:10px; width:15px; height:20px; ">~</caption>
- <button id="btn_reqpatnm" disabled="true" style="left:730px; top:34px; width:45px; height:20px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPidTrim("/root/main/cond/pid");
- var pid = model.getValue("/root/main/cond/pid");
- if(pid == ""){
- return;
- }
-
- if(reqPatInfo("pid", "ptbs", pid)==true){
- var hngnm = model.getValue("/root/init/patnm/patnm/hngnm");
- model.setValue("/root/main/cond/hngnm", hngnm);
- model.refresh();
-
- fReqPatSrchList();
- }
- ]]>
- </script>
- </button>
- <button id="btn_req" class="btn1_letter2" style="left:1109px; top:21px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReqPatSrchList();
- ]]>
- </script>
- </button>
- <datagrid id="grd_srchpatlist" nodeset="/root/main/patsrchinfo/patsrchlist" caption="caption1^caption2^caption3^caption4^caption5^caption6^caption7^퇴원일^등록번호^환자명^S/A^진료(입원)일^센터^진료과^세부과^전문의^병실^진단명^보험유형^예약^의뢰^상태^관심^특이^PreWork Up^BMT예정일^이식형태^BMT Day^Post Cx Day" colsep="^" colwidth="1, 1, 1, 0, 2, 0, 0, 1, 76, 72, 57, 91, 100, 95, 100, 66, 59, 271, 70, 58, 54, 65, 65, 39, 74, 82, 63, 67, 80" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:84px; width:1174px; height:630px; ">
- <col ref="cretno" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="ordtype" visibility="hidden"/>
- <col ref="rrgstno1" visibility="hidden"/>
- <col ref="roomcd" visibility="hidden"/>
- <col ref="orddrid" visibility="hidden"/>
- <col ref="dschdd" visibility="hidden"/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm"/>
- <col ref="sa" style="text-align:center; "/>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="centcd" style="text-align:center; "/>
- <col disabled="true" ref="orddeptcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="subdeptcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="orddrnm"/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="diagnm" style="text-align:left; "/>
- <col disabled="true" ref="insukind" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0008/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="rsrv" style="text-align:center; "/>
- <col ref="cnst" style="text-align:center; "/>
- <col ref="stat" style="text-align:center; "/>
- <col ref="conctypenm" style="text-align:center; "/>
- <col ref="spclflag" style="text-align:center; "/>
- <col ref="preworkup" style="text-align:center; "/>
- <col ref="hsctpredd" style="text-align:center; "/>
- <col ref="trnpttype" style="text-align:center; "/>
- <col ref="hsctday" style="text-align:center; "/>
- <col ref="postcxday" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (isDataCell() == true) {
- fReqPatSrchPamInfo();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_srchpatlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_srchpatlist", false, "/root/popupmenu/menu/item", "name", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_srchpatlist.isCell(event.target)){
- if(grd_srchpatlist.row == 0){
- var currow = grd_srchpatlist.row;
- var curcol = grd_srchpatlist.col;
- if(sORDERBY == "asc"){
- sORDERBY = "desc";
- }else{
- sORDERBY = "asc";
- }
- model.setValue("/root/main/cond/sortcol", curcol);
- model.setValue("/root/main/cond/orderby", sORDERBY);
- model.copyNode(opener.root.cond.srchpatlist, root.main.cond);
- nodeListSort(grd_srchpatlist.nodeset, grd_srchpatlist.colAttribute(curcol, "ref"), sORDERBY);
- grd_srchpatlist.refresh();
- }else if(grd_srchpatlist.row > 0){
- var pid = model.getValue("/root/main/patsrchinfo/patsrchlist[" + grd_srchpatlist.row + "]/pid");
- model.setValue(opener.root.source.pid, pid);
- }
- }
- ]]>
- </script>
- </datagrid>
- <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_search" appearance="minimal" editmode="search" _inputmode="koreanOnly" style="left:625px; top:9px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removeNodeset("/root/init/userlist");
- model.makeNode("/root/init/userlist/usercombo");
-
- if(cmb_orddept.value == "-"){
- model.removeNode("/root/init/userlist/usercombo");
- model.makeValue("/root/init/userlist/usercombo/userid", "-");
- model.makeValue("/root/init/userlist/usercombo/usernm", "전체");
- }else{
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , cmb_orddept.value, "0330"); //진료과 의사콤보 조회
- addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
- }
- model.setValue("/root/main/cond/orddrid", "-");
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_orddrid" ref="/root/main/cond/orddrid" class="combo_default" appearance="minimal" itemcount="30" style="left:952px; top:9px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userlist/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_patsrch" disabled="true" style="left:1045px; top:9px; width:45px; height:20px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/main/cond/pid");
- var hngnm = model.getValue("/root/main/cond/hngnm");
- if((pid =="")&&(hngnm !="")){
- fPatSrch(hngnm, "2");
- } else if((pid !="")&&(hngnm == "")){
- fPatSrch(pid, "1");
- } else {
- modal("SPPMC02500")
- }
-
- model.setValue("/root/main/cond/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/main/cond/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_prid" ref="/root/main/cond/prid" appearance="minimal" style="left:430px; top:9px; width:55px; height:19px; ">
- <choices>
- <item>
- <label>3개월</label>
- <value>3M</value>
- </item>
- <item>
- <label>6개월</label>
- <value>6M</value>
- </item>
- <item>
- <label>9개월</label>
- <value>9M</value>
- </item>
- <item>
- <label>1년</label>
- <value>1Y</value>
- </item>
- <item>
- <label>2년</label>
- <value>2Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var today = getCurrentDate();
- var idate = new Date();
- var prid = model.getValue("/root/main/cond/prid");
- // model.makeValue("/root/send/cond/fromdd", peveDate.getDateFormat());
- // model.makeValue("/root/send/cond/todd", today);
-
- if (prid =="3M") {
- var threeMDate = idate.getAddDate(-3, "M");
- model.setValue("/root/main/cond/fromdd", threeMDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
- } else if (prid =="6M") {
- var sixMDate = idate.getAddDate(-6, "M");
- model.setValue("/root/main/cond/fromdd", sixMDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
- } else if (prid =="9M") {
- var nineMDate = idate.getAddDate(-9, "M");
- model.setValue("/root/main/cond/fromdd", nineMDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
- } else if (prid =="1Y") {
- var oneYDate = idate.getAddDate(-1, "Y");
- model.setValue("/root/main/cond/fromdd", oneYDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
- } else if (prid =="2Y") {
- var twoYDate = idate.getAddDate(-2, "Y");
- model.setValue("/root/main/cond/fromdd", twoYDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- </xhtml:body>
- </xhtml:html>
|