123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401 |
- <?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/>
- <prcpclscd/>
- <prcpkindcd/>
- <spcldrug/>
- <prcpstatcd/>
- <prcpcd/>
- <prcpnm/>
- </cond>
- <prcpinfo>
- <prcplist/>
- </prcpinfo>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <send>
- <reqdata/>
- </send>
- <init>
- <orddept/>
- <prcpkindcd/>
- <prcpclscd/>
- <spcldrug/>
- <prcpstatcd/>
- <orddrlist/>
- </init>
- <hidden/>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- function fReqGetPrcpList() {
- model.resetInstanceNode("/root/main/prcpinfo/prcplist");
- model.refresh(); // 트리가 접힌 상태에서 재조회 하면 그리드에 접힌 수만큼 조회 되지 않는 오류 수정.
- submit("TRMMO33901");
-
- setTree(datagrid1, datagrid1.colRef("execprcplevel"), datagrid1.colRef("prcpnm") , true);
- }
- ]]>
- </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"); //부서코드 콤보
-
- zbcfGetCodeList(new Array( "M0003"
- , "M0005"
- , "M0011"
- , "A0006"),
- new Array( "/root/init/prcpkindcd"
- , "/root/init/prcpclscd"
- , "/root/init/prcpstatcd"
- ,"/root/init/spcldrug"));
-
- addComboInstance("/root/init/orddept", "deptcd^depthngnm", "-^전체", "dept"); //진료과 전체항목 추가
- cmb_orddept.select(0);
- model.makeNode("/root/init/orddrlist/usercombo");
- addComboInstance("/root/init/orddrlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
- cmb_orddrid.select(0);
-
- addComboInstance("/root/init/prcpstatcd", "cdid^cdnm", "-^전체", "M0011"); //진행상태 전체항목 추가
- com_prcpstatcd.select(0);
-
- addComboInstance("/root/init/prcpkindcd", "cdid^cdnm", "-^전체", "M0003"); //처방종류 전체항목 추가
- com_prcpkindcd.select(0);
- addComboInstance("/root/init/prcpclscd", "cdid^cdnm", "-^전체", "M0005"); //처방분류 전체항목 추가
- com_prcpclscd.select(0);
-
- addComboInstance("/root/init/spcldrug", "cdid^cdnm", "-^전체", "A0006"); //특별약품 전체항목 추가
- com_spcldrug.select(0);
- model.refresh();
- 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"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.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:110px; 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:270px; top:30px; width:95px; height:17px; vertical-align:middle; ">처방일자 :</caption>
- <input id="input4" ref="/root/main/cond/fromdd" class="input" inputtype="date" style="left:357px; top:30px; 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:30px; width:85px; height:19px; "/>
- <select1 id="cmb_prid" ref="/root/main/cond/prid" appearance="minimal" style="left:545px; top:30px; 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:610px; top:30px; width:101px; height:17px; vertical-align:middle; ">등록번호:</caption>
- <input id="input1" ref="/root/main/cond/pid" style="left:695px; 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:879px; 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:780px; 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[
- if(cmb_orddept.value != "-") {
- 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();
- }
- ]]>
- </script>
- </select1>
- <line id="line3" style="x1:930px; y1:30px; x2:930px; y2:120px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_req" class="btn1_letter2" style="left:945px; top:40px; 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);
- input2.refresh();
-
- fReqGetPrcpList();
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn3_letter6" style="left:795px; top:134px; width:104px; height:22px; ">
- <caption>통합기록조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/main/cond/pid");
- if(pid == ""){
- messageBox("통합기록조회를 검색할 환자를", "C002");
- return;
- }
- var wndobj = getOpenWindow("SMMRI00400");
- if(wndobj != null){
- setParameter("SMMRI00400_param_pid", pid);
- wndobj.javascript.fInitalize();
- }else{
- setParameter("SMMRI00400_param_pid", pid);
- open("SMMRI00400", 2, 0, 0);
- }
- ]]>
- </script>
- </button>
- <button id="button5" class="btn3_letter6" style="left:904px; top:134px; width:104px; height:22px; ">
- <caption>통합결과조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/main/cond/pid");
- model.makeValue("/root/source/pid", pid);
- if(pid == ""){
- messageBox("통합결과조회를 검색할 환자를", "C002");
- return;
- }
-
- curExamRsltObj = getOpenWindow("SMAER00800"); //활성화된 검사결과 화면 object loading
- if(curExamRsltObj != null){
- //curExamRsltObj.javascript.model.dispatch("xforms-ready");
- curExamRsltObj.model.setvalue("/root/send/data/singdata/srchpid", pid );
- curExamRsltObj.javascript.btn_srch.dispatch("DOMActivate");
- } else {
- open("SMAER00800", "", "", "", "SMAER00800", "/root/source/pid", "/root/send/data/singdata/srchpid");
- }
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:0px; y1:160px; x2:1009px; y2:161px; "/>
- <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, 50, 40, 40, 70, 184, 35, 35, 35, 35, 30, 30, 60, 45, 50, 70, 35, 70, 70, 120" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:165px; width:1009px; height:585px; ">
- <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" style="left:615px; top:23px; width:100px; height:23px; "/>
- <col ref="orddeptnm" style="left:715px; top:23px; width:84px; height:23px; "/>
- <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="testrsltcnts" style="text-align:center; "/>
- <col ref="testrsltunit" 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:610px; top:80px; width:95px; 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:55px; width:133px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrlist/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption6" class="search_name" style="left:6px; top:80px; width:95px; height:17px; vertical-align:middle; ">처방종류:</caption>
- <select1 id="com_prcpkindcd" ref="/root/main/cond/prcpkindcd" class="combo_default" appearance="minimal" editmode="search" style="left:95px; top:80px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/prcpkindcd/M0003">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="com_prcpclscd" ref="/root/main/cond/prcpclscd" class="combo_default" appearance="minimal" editmode="search" style="left:357px; top:80px; width:133px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/prcpclscd/M0005">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption8" class="search_name" style="left:270px; top:80px; width:95px; height:17px; vertical-align:middle; ">처방분류:</caption>
- <select1 id="com_spcldrug" ref="/root/main/cond/spcldrug" class="combo_default" appearance="minimal" editmode="search" style="left:695px; top:80px; width:166px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/spcldrug/A0006">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="com_prcpstatcd" ref="/root/main/cond/prcpstatcd" class="combo_default" appearance="minimal" editmode="search" style="left:695px; top:55px; width:166px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/prcpstatcd/M0011">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption11" class="search_name" style="left:610px; top:55px; width:95px; height:17px; vertical-align:middle; ">진행상태:</caption>
- <caption id="caption12" class="search_name" style="left:6px; top:103px; width:95px; height:17px; vertical-align:middle; ">처방코드:</caption>
- <input id="input5" ref="/root/main/cond/prcpcd" style="left:95px; top:103px; width:165px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_req", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption13" class="search_name" style="left:270px; top:103px; width:95px; height:17px; vertical-align:middle; ">처방명:</caption>
- <input id="input6" ref="/root/main/cond/prcpnm" style="left:357px; top:103px; width:165px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_req", "DOMActivate");
- ]]>
- </script>
- </input>
- </xhtml:body>
- </xhtml:html>
|