123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <cond>
- <pid/>
- <hngnm/>
- <prid>1M</prid>
- <fromdd/>
- <todd/>
- <orddeptcd/>
- <ordgubun>T</ordgubun>
- <orddrid/>
- <prcpcd/>
- <specdrid/>
- <specdrnm/>
- <prcpgubun>T</prcpgubun>
- </cond>
- <prcpinfo>
- <prcplist/>
- </prcpinfo>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <send>
- <reqdata/>
- </send>
- <init>
- <orddept/>
- </init>
- <hidden/>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- function fReqGetPrcpList() {
- model.resetInstanceNode("/root/main/prcpinfo/prcplist");
- submit("TRMMO33901")
-
- setTree(datagrid1, datagrid1.colRef("execprcplevel"), datagrid1.colRef("prcpnm") , true);
- model.refresh();
- }
- ]]>
- </script>
- <submission id="TRMMO33901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/prcpinfo"/>
- <submission id="TRMMB04102" 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"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.setValue("/root/main/cond/fromdd" ,((getCurrentDate().toDate()).getAddDate(-1,"M")).getDateFormat()); //시작일자는 1개월 전
- model.setValue("/root/main/cond/todd" , getCurrentDate()); //종료일자는 현재일자
-
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept" , "A"); //부서코드 콤보
-
-
- var sPid = getPatientInfo("pid");
- if(!isNull(sPid) ) {
- model.setValue("/root/main/cond/pid", sPid);
- model.setValue("/root/main/cond/hngnm", getPatientInfo("pname"));
- btn_req.dispatch("DOMActivate");
- }
- ]]>
- </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/tfHelper.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="1030" pageheight="750" guideline="1,1009;" 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:20px; width:1010px; height:85px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption9" class="tit_1" style="left:0px; top:0px; width:160px; height:14px; vertical-align:middle; ">환자별 처방조회</caption>
- <caption id="caption2" class="search_name" style="left:271px; top:30px; width:95px; height:17px; vertical-align:middle; ">처방일자 :</caption>
- <input id="input4" ref="/root/main/cond/fromdd" class="input" inputtype="date" style="left:358px; top:29px; width:85px; height:19px; "/>
- <caption id="caption3" style="left:445px; top:30px; width:15px; height:20px; ">~</caption>
- <input id="input3" ref="/root/main/cond/todd" class="input" inputtype="date" style="left:458px; top:29px; width:85px; height:19px; "/>
- <select1 id="cmb_prid" ref="/root/main/cond/prid" appearance="minimal" style="left:545px; top:29px; width:55px; height:19px; ">
- <choices>
- <item>
- <label>1개월</label>
- <value>1M</value>
- </item>
- <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>
- <caption id="caption10" class="search_name" style="left:611px; top:30px; width:101px; height:17px; vertical-align:middle; ">등 록 번 호 :</caption>
- <input id="input1" ref="/root/main/cond/pid" style="left:720px; top:30px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_req", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_patsrch" class="icon_search" style="left:904px; top:30px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPMC02500");
- var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- model.setValue("/root/main/cond/pid", sPid);
- model.setValue("/root/main/cond/hngnm", sHngnm);
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="input2" ref="/root/main/cond/hngnm" disabled="true" style="left:805px; top:30px; width:95px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:6px; top:55px; width:95px; height:17px; vertical-align:middle; ">진 료 과 :</caption>
- <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_default" appearance="minimal" editmode="search" style="left:95px; top:55px; width:166px; 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/orddrlist");
- model.makeNode("/root/init/orddrlist/usercombo");
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/orddrlist", cmb_orddept.value, "0330");
- addComboInstance("/root/init/orddrlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
- cmb_orddrid.select(0);
- model.refresh();
- btn_req.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <line id="line3" style="x1:935px; y1:30px; x2:935px; y2:100px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_req" class="btn1_letter2" style="left:945px; top:30px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPidTrim("/root/main/cond/pid")
- var pid = model.getValue("/root/main/cond/pid");
- if(pid == ""){
- messageBox("조회 하실 환자번호를", "C001");
- 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();
-
- fReqGetPrcpList();
- }
- ]]>
- </script>
- </button>
- <datagrid id="datagrid1" nodeset="/root/main/prcpinfo/prcplist" caption="입/외^처방적용일^처방번호^액팅처방번호^액팅처방레벨^믹스번호^히스토리번호^진료과코드^진료과^진료의아이디^진료의^급비^구분^분류^처방코드^처방명^1회용량^1회용량^1회수량^1회수량^횟수^일수^진행상태^시행일^선택^선택진료의^처방입력자^처방입력시간" colsep="^" colwidth="40, 75, 100, 100, 100, 100, 100, 100, 84, 100, 55, 55, 45, 45, 70, 164, 35, 35, 35, 35, 30, 30, 65, 75, 35, 70, 70, 120" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:110px; width:1009px; height:335px; ">
- <col ref="ordgubun" style="text-align:center; "/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="execprcpno" visibility="hidden"/>
- <col ref="execprcplevel" visibility="hidden"/>
- <col ref="prcpmixno" visibility="hidden"/>
- <col ref="prcphistno" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="orddeptnm"/>
- <col ref="orddrid" visibility="hidden"/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="payflagcd" style="text-align:center; "/>
- <col ref="prcpkindcd" style="text-align:center; "/>
- <col ref="prcpclscd" style="text-align:center; "/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="drprcpetc7" style="text-align:center; "/>
- <col ref="prcpvolunitnm" style="text-align:center; "/>
- <col ref="drprcpetc8" style="text-align:center; "/>
- <col ref="prcpqtyunitnm" style="text-align:center; "/>
- <col ref="prcptims" style="text-align:center; "/>
- <col ref="prcpdayno" style="text-align:center; "/>
- <col ref="execprcpstatcd" style="text-align:center; "/>
- <col ref="execdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="choiordflag" style="text-align:center; "/>
- <col ref="specdrnm" style="text-align:center; "/>
- <col ref="rgstrnm" style="text-align:center; "/>
- <col ref="rgsttime" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- </datagrid>
- <caption id="caption4" class="search_name" style="left:6px; top:30px; width:95px; height:17px; vertical-align:middle; ">진료구분 :</caption>
- <select1 id="radio1" ref="/root/main/cond/ordgubun" appearance="full" cellspacing="15" cols="4" rows="1" overflow="visible" style="left:95px; top:30px; width:165px; 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>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" style="left:270px; top:55px; width:95px; height:17px; vertical-align:middle; ">진 료 의 :</caption>
- <caption id="caption7" class="search_name" style="left:5px; top:80px; width:95px; height:17px; vertical-align:middle; ">조회구분:</caption>
- <caption id="caption8" class="search_name" style="left:610px; top:57px; width:104px; height:17px; vertical-align:middle; ">선택 진료의 :</caption>
- <select1 id="cmb_orddrid" ref="/root/main/cond/orddrid" class="combo_default" appearance="minimal" itemcount="30" style="left:357px; top:54px; width:133px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrlist/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <input id="input6" ref="/root/main/cond/specdrnm" disabled="true" style="left:720px; top:57px; width:180px; height:19px; "/>
- <input id="input5" ref="/root/main/cond/specdrid" disabled="true" visibility="hidden" style="left:725px; top:50px; width:50px; height:19px; "/>
- <button id="btn_specdrid" class="icon_search" style="left:905px; top:57px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- clearParameter ( "SPMMB08300_flag");
- clearParameter ( "SPMMB08300_useyn" );
- clearParameter ( "SPMMB08300_userid" );
- clearParameter ( "SPMMB08300_orddeptcd" );
- clearParameter ( "SPMMB08300_userinfo" );
- var ordtype = model.getValue ( "/root/patflag/list/prcpgenrflag" );
- var xpt = window.screenLeft + 400;
- var ypt = window.screenTop + 60;
- var coord = getRelativeCoordinate(xpt, ypt);
- var mon = coord[0];
- xpt = coord[1];
- ypt = coord[2];
-
- modal("SPMMB08300", mon, xpt, ypt, null, null, null, null, false);
- var useyn = getParameter("SPMMB08300_useyn");
-
- if(useyn == "Y"){
- var userid = getParameter("SPMMB08300_userid");
- var userinfo = getParameter("SPMMB08300_userinfo");
-
- model.setValue ( "/root/main/cond/specdrid", userid );
- model.setValue ( "/root/main/cond/specdrnm", userinfo );
- } else {
- model.setValue ( "/root/main/cond/specdrid", "" );
- model.setValue ( "/root/main/cond/specdrnm", "" );
- }
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <select1 id="radio2" ref="/root/main/cond/prcpgubun" appearance="full" cellspacing="15" cols="4" rows="1" overflow="visible" style="left:95px; top:80px; width:165px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>T</value>
- </item>
- <item>
- <label>항암제</label>
- <value>A</value>
- </item>
- </choices>
- </select1>
- </xhtml:body>
- </xhtml:html>
|