123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439 |
- <?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>항응고약물(ACS)서비스</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <patinfo>
- <pid/>
- <sna/>
- <hngnm/>
- <roomcd/>
- <reqdeptnm/>
- <requsernm/>
- <prcpflag/>
- <recvdeptnm/>
- <recvusernm/>
- </patinfo>
- <cnstinfo>
- <cnstkind>1</cnstkind>
- <cnstseqno/>
- <cretno/>
- <formrecseq/>
- <formcd>0000000964</formcd>
- <cnststat/>
- <reqdd/>
- <reqhm/>
- <chosflag/>
- <orddd/>
- <eryn>N</eryn>
- <reqdeptcd/>
- <requserid/>
- <cnstcnts1/>
- <cnstcnts2/>
- <cnstcnts3/>
- <cnstcnts4/>
- <cnstcnts5/>
- <cnstcnts6/>
- <cnstcnts7/>
- <cnstcnts8/>
- <cnstflag>3</cnstflag>
- <recvdeptcd>3240000000</recvdeptcd>
- <cnstcnts30/>
- </cnstinfo>
- </main>
- <send>
- <req/>
- <srchinfo/>
- </send>
- <hidden>
- <item/>
- </hidden>
- <paminfo>
- </paminfo>
- <temp>
- <cnstinfo/>
- </temp>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- function finit(){
-
- if(fCnstType()){
- model.toggle("case2");
- fSetPatinfo();
- btn_cnst.disabled = true;
- }else{
- model.toggle("case1");
- var pamInfoCvs = getGlobalVariable("paminfo");
-
- if(!isNull(pamInfoCvs)){ //cvs가 null이 아닌 경우에만 처리함.
- model.removeNodeSet ( "/root/paminfo/list" ); //상단화면 정보 초기화
- setCSVToNode ( "/root/paminfo", pamInfoCvs );
- model.setValue("/root/main/patinfo/pid",model.getValue("/root/paminfo/list/pid"));
- var sna = model.getValue("/root/paminfo/list/sex") +"/"+ model.getValue("/root/paminfo/list/age");
- model.setValue("/root/main/patinfo/sna", sna);
- model.setValue("/root/main/patinfo/hngnm", model.getValue("/root/paminfo/list/hngnm"));
- model.setValue("/root/main/patinfo/roomcd", model.getValue("/root/paminfo/list/roomcd"));
- model.setValue("/root/main/patinfo/reqdeptnm", getUserInfo("dutplcenm"));
- model.setValue("/root/main/cnstinfo/reqdeptcd", getUserInfo("dutplcecd"));
- model.setValue("/root/main/patinfo/requsernm", getUserName());
- model.setValue("/root/main/cnstinfo/requserid", getUserId());
- var prcpflag ="";
- var ioflag = model.getValue("/root/paminfo/list/ioflag");
- if(ioflag == "O" || ioflag == "S"){
- prcpflag = "외래";
- model.setValue("/root/main/cnstinfo/orddd", model.getValue("/root/paminfo/list/orddd"));
- }else {
- prcpflag = "입원";
- model.setValue("/root/main/cnstinfo/orddd", model.getValue("/root/paminfo/list/indd"));
- }
- if(model.getValue("/root/paminfo/list/fsexamflag") == "F"){
- prcpflag += "/초진";
- }else if(model.getValue("/root/paminfo/list/fsexamflag") =="R"){
- prcpflag += "/재진";
- }
- model.setValue("/root/main/patinfo/prcpflag", prcpflag);
-
- model.setValue("/root/main/cnstinfo/chosflag", model.getValue("/root/paminfo/list/ioflag"));
- model.setValue("/root/main/cnstinfo/cretno", model.getValue("/root/paminfo/list/cretno"));
- }else{
- var msg = messageBox("환자를 ", "C002");
- return false;
- }
- }
- model.refresh();
- }
-
- function fCnstType(){
- if(model.getValue("/root/temp/cnstinfo/formrecseq") == ""){
- return false;
- }else return true;
- }
-
- function fSetPatinfo(){
-
- model.setValue("/root/main/patinfo/pid", model.getValue("/root/temp/cnstinfo/pid"));
- model.setValue("/root/main/patinfo/hngnm", model.getValue("/root/temp/cnstinfo/pidnm"));
- model.setValue("/root/main/patinfo/reqdeptnm", model.getValue("/root/temp/cnstinfo/reqdeptnm"));
- model.setValue("/root/main/patinfo/requsernm", model.getValue("/root/temp/cnstinfo/requsernm"));
- model.setValue("/root/main/patinfo/recvdeptnm", model.getValue("/root/temp/cnstinfo/recvdeptnm"));
- model.setValue("/root/main/patinfo/recvusernm", model.getValue("/root/temp/cnstinfo/recvusernm"));
- model.copyNode("/root/send/srchinfo", "/root/temp/cnstinfo");
- submit("TRADC61701");
- }
- // 현재시간 구하기 : 시간 분
- function astgetCurrentTime()
- {
- var sDate = getNewDate();
-
- rtnTime = (( sDate.getHours() > 9 ) ? sDate.getHours() : "0" + sDate.getHours());
- rtnTime = rtnTime.toString() + (( sDate.getMinutes() > 9 ) ? sDate.getMinutes() : "0" + sDate.getMinutes());
-
- return rtnTime;
- }
-
- // ACS 자문의뢰 정보 저장
- function fSaveCnst(){
- if(model.getValue("/root/main/patinfo/pid") != ""){
- model.makeNode("/root/main/cnstinfo/pid");
- model.setValue("/root/main/cnstinfo/pid", model.getValue("/root/main/patinfo/pid"));
-
- submit("TXADC61701");
-
- model.refresh();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- finit();
- ]]>
- </script>
- <submission id="TXADC61701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cnstinfo" replace="instance" resultref="/root/hidden"/>
- <submission id="TRADC61701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="490" pageheight="300" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:470px; height:255px; ">
- <caption id="caption24" class="cell_1" style="left:0px; top:190px; width:130px; height:60px; ">전달사항</caption>
- <textarea id="textarea1" ref="/root/main/cnstinfo/cnstcnts30" navindex="5" style="left:135px; top:190px; width:335px; height:60px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:120px; width:110px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">ACS 자문 의뢰</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:140px; x2:470px; y2:140px; "/>
- <caption id="caption10" class="cell_1" style="left:0px; top:145px; width:130px; height:20px; ">적응증</caption>
- <line id="line2" class="line_2" style="x1:0px; y1:165px; x2:470px; y2:165px; "/>
- <caption id="caption11" class="cell_1" style="left:0px; top:167px; width:130px; height:20px; ">Target INR</caption>
- <line id="line3" class="line_2" style="x1:0px; y1:187px; x2:470px; y2:187px; "/>
- <caption id="caption13" class="cell_1" visibility="hidden" style="left:285px; top:195px; width:130px; height:20px; ">예상복용기간</caption>
- <caption id="caption14" class="cell_1" visibility="hidden" style="left:280px; top:200px; width:130px; height:20px; ">관련위험인자</caption>
- <caption id="caption8" class="cell_1" visibility="hidden" style="left:155px; top:205px; width:130px; height:20px; ">처방된 항응고제 용량</caption>
- <caption id="caption6" visibility="hidden" style="left:275px; top:195px; width:190px; height:15px; ">** Warfarin(COMD or COMD02) (</caption>
- <caption id="caption7" visibility="hidden" style="left:365px; top:200px; width:66px; height:15px; ">) mg</caption>
- <caption id="caption16" visibility="hidden" style="left:275px; top:195px; width:190px; height:15px; ">Cf) 제안 용량 : 65세 미만 - 5mg</caption>
- <caption id="caption17" visibility="hidden" style="left:310px; top:200px; width:90px; height:15px; ">65세 이상 - 2mg</caption>
- <input id="ipt_cnstcnts2" ref="/root/main/cnstinfo/cnstcnts2" disabled="true" navindex="2" editable="true" maxlength="33" style="left:290px; top:146px; width:180px; height:19px; ">
- <script type="javascript" ev:event="onmaxlength">
- <![CDATA[
- messageBox("입력가능한 글자수를", "E003");
- ]]>
- </script>
- </input>
- <select1 id="cmb_cnstcnts1" ref="/root/main/cnstinfo/cnstcnts1" class="combo_search" navindex="1" appearance="minimal" style="left:135px; top:146px; width:150px; height:19px; ">
- <choices>
- <item>
- <label>Deep vein thrombosis</label>
- <value>1</value>
- </item>
- <item>
- <label>Pulmonary embolism</label>
- <value>2</value>
- </item>
- <item>
- <label>Recurrent embolism</label>
- <value>3</value>
- </item>
- <item>
- <label>Myocardial infarction</label>
- <value>4</value>
- </item>
- <item>
- <label>Atrial fibrillation</label>
- <value>5</value>
- </item>
- <item>
- <label>Mechanical Prosthetic valve</label>
- <value>6</value>
- </item>
- <item>
- <label>Bioprosthetic valve</label>
- <value>7</value>
- </item>
- <item>
- <label>PTCA</label>
- <value>8</value>
- </item>
- <item>
- <label>Cerebral thrombosis</label>
- <value>9</value>
- </item>
- <item>
- <label>Cancer</label>
- <value>10</value>
- </item>
- <item>
- <label>Other</label>
- <value>11</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if(cmb_cnstcnts1.value == 11){
- ipt_cnstcnts2.disabled = false;
- }else{
- ipt_cnstcnts2.value = "";
- ipt_cnstcnts2.disabled = true;
- }
- ]]>
- </script>
- </select1>
- <select1 id="cmb_cnstcnts3" ref="/root/main/cnstinfo/cnstcnts3" class="combo_search" navindex="3" appearance="minimal" style="left:135px; top:168px; width:150px; height:19px; ">
- <choices>
- <item>
- <label>1.5 - 2.5</label>
- <value>1</value>
- </item>
- <item>
- <label>2.0 - 3.0</label>
- <value>2</value>
- </item>
- <item>
- <label>2.5 - 3.5</label>
- <value>3</value>
- </item>
- <item>
- <label>Other</label>
- <value>4</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if(cmb_cnstcnts3.value == 4){
- ipt_cnstcnts4.disabled = false;
- }else{
- ipt_cnstcnts4.value = "";
- ipt_cnstcnts4.disabled = true;
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_cnstcnts4" ref="/root/main/cnstinfo/cnstcnts4" disabled="true" navindex="4" maxlength="33" style="left:290px; top:168px; width:180px; height:19px; ">
- <script type="javascript" ev:event="onmaxlength">
- <![CDATA[
- messageBox("입력가능한 글자수를", "E003");
- ]]>
- </script>
- </input>
- <select1 id="cmb_cnstcnts5" ref="/root/main/cnstinfo/cnstcnts5" class="combo_search" visibility="hidden" appearance="minimal" style="left:290px; top:195px; width:150px; height:19px; ">
- <choices>
- <item>
- <label>6주</label>
- <value>1</value>
- </item>
- <item>
- <label>3개월</label>
- <value>2</value>
- </item>
- <item>
- <label>6개월</label>
- <value>3</value>
- </item>
- <item>
- <label>1년</label>
- <value>4</value>
- </item>
- <item>
- <label>장기복용</label>
- <value>5</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_cnstcnts6" ref="/root/main/cnstinfo/cnstcnts6" class="combo_search" visibility="hidden" appearance="minimal" style="left:295px; top:195px; width:150px; height:19px; ">
- <choices>
- <item>
- <label>Hypertension</label>
- <value>1</value>
- </item>
- <item>
- <label>Diabetes</label>
- <value>2</value>
- </item>
- <item>
- <label>Hepatic disease</label>
- <value>3</value>
- </item>
- <item>
- <label>Hyperlipidemia</label>
- <value>4</value>
- </item>
- <item>
- <label>Hyperthyroidism</label>
- <value>5</value>
- </item>
- <item>
- <label>Hypothroidism</label>
- <value>6</value>
- </item>
- <item>
- <label>Renal disease</label>
- <value>7</value>
- </item>
- <item>
- <label>Other</label>
- <value>8</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if(cmb_cnstcnts6.value == 8){
- ipt_cnstcnts7.disabled = false;
- }else{
- ipt_cnstcnts7.value = "";
- ipt_cnstcnts7.disabled = true;
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_cnstcnts7" ref="/root/main/cnstinfo/cnstcnts7" disabled="true" visibility="hidden" maxlength="33" style="left:255px; top:195px; width:180px; height:19px; ">
- <script type="javascript" ev:event="onmaxlength">
- <![CDATA[
- messageBox("입력가능한 글자수를", "E003");
- ]]>
- </script>
- </input>
- <input id="ipt_cnstcnts8" ref="/root/main/cnstinfo/cnstcnts8" visibility="hidden" maxlength="10" format="9999999999" style="left:330px; top:195px; width:60px; height:19px; ">
- <script type="javascript" ev:event="onmaxlength">
- <![CDATA[
- messageBox("입력가능한 범위를", "E003");
- ]]>
- </script>
- </input>
- <line id="line7" class="line_6" style="x1:0px; y1:251px; x2:470px; y2:251px; "/>
- <switch id="switch1" class="sw_no_border" style="left:0px; top:0px; width:470px; height:120px; ">
- <case id="case1" selected="true">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:470px; height:115px; "/>
- <output id="output1" ref="/root/main/patinfo/sna" class="output_search" style="left:350px; top:35px; width:110px; height:19px; "/>
- <output id="output2" ref="/root/main/patinfo/requsernm" class="output_search" style="left:105px; top:85px; width:110px; height:19px; "/>
- <output id="output3" ref="/root/main/patinfo/hngnm" class="output_search" style="left:350px; top:60px; width:110px; height:19px; "/>
- <caption id="caption9" class="search_name" style="left:10px; top:35px; width:90px; height:17px; ">병실 :</caption>
- <output id="output4" ref="/root/main/patinfo/pid" class="output_search" style="left:350px; top:10px; width:110px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:10px; top:60px; width:90px; height:17px; ">진료과 :</caption>
- <caption id="caption3" class="search_name" style="left:10px; top:85px; width:90px; height:17px; ">처방의사 :</caption>
- <caption id="caption12" class="search_name" style="left:10px; top:10px; width:90px; height:17px; ">처방구분 :</caption>
- <output id="output5" ref="/root/main/patinfo/reqdeptnm" class="output_search" style="left:105px; top:60px; width:110px; height:19px; "/>
- <output id="output6" ref="/root/main/patinfo/prcpflag" class="output_search" style="left:105px; top:10px; width:110px; height:19px; "/>
- <output id="output7" ref="/root/main/patinfo/roomcd" class="output_search" style="left:105px; top:35px; width:110px; height:19px; "/>
- <caption id="caption4" class="search_name" style="left:250px; top:10px; width:90px; height:17px; ">등록번호 :</caption>
- <caption id="caption5" class="search_name" style="left:250px; top:35px; width:95px; height:17px; ">성별/나이 :</caption>
- <caption id="caption18" class="search_name" style="left:250px; top:60px; width:90px; height:17px; ">이름 :</caption>
- </case>
- <case id="case2">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:470px; height:115px; "/>
- <output id="output8" ref="/root/temp/cnstinfo/recvdeptnm" class="output_search" style="left:105px; top:60px; width:110px; height:19px; "/>
- <output id="output9" ref="/root/temp/cnstinfo/reqdeptnm" class="output_search" style="left:105px; top:10px; width:110px; height:19px; "/>
- <output id="output10" ref="/root/temp/cnstinfo/requsernm" class="output_search" style="left:105px; top:35px; width:110px; height:19px; "/>
- <caption id="caption15" class="search_name" style="left:10px; top:35px; width:90px; height:17px; ">의뢰자 :</caption>
- <caption id="caption19" class="search_name" style="left:10px; top:60px; width:90px; height:17px; ">수신부서 :</caption>
- <caption id="caption20" class="search_name" style="left:10px; top:85px; width:90px; height:17px; ">수신자 :</caption>
- <caption id="caption21" class="search_name" style="left:10px; top:10px; width:90px; height:17px; ">의뢰부서 :</caption>
- <output id="output11" ref="/root/temp/cnstinfo/recvusernm" class="output_search" style="left:105px; top:85px; width:110px; height:19px; "/>
- <output id="output12" ref="/root/temp/cnstinfo/pid" class="output_search" style="left:350px; top:10px; width:110px; height:19px; "/>
- <caption id="caption22" class="search_name" style="left:250px; top:10px; width:90px; height:17px; ">등록번호 :</caption>
- <caption id="caption23" class="search_name" style="left:250px; top:35px; width:95px; height:17px; ">이름 :</caption>
- <output id="output13" ref="/root/temp/cnstinfo/pidnm" class="output_search" style="left:350px; top:35px; width:110px; height:19px; "/>
- </case>
- </switch>
- </group>
- <group id="group2" style="left:0px; top:255px; width:470px; height:30px; ">
- <button id="btn_save" class="btn4_letter2" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:293px; top:5px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/main/cnstinfo/cnststat", "11");
- fSaveCnst();
- ]]>
- </script>
- </button>
- <button id="btn_close" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:413px; top:5px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.close();
- ]]>
- </script>
- </button>
- <button id="btn_cnst" class="btn4_letter2" navindex="6" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:353px; top:5px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>의뢰</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("의뢰내용을","Q002")==6 ){
- model.setValue("/root/main/cnstinfo/cnststat", "12");
- model.setValue("/root/main/cnstinfo/reqdd", getCurrentDate());
- model.setValue("/root/main/cnstinfo/reqhm", astgetCurrentTime());
- fSaveCnst();
-
- model.close();
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|