12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>전원의뢰관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <search>
- <fromdd/>
- <todd/>
- <orddeptcd/>
- <orddrid/>
- <stat>%</stat>
- <pid/>
- <hngnm/>
- <coophospnm/>
- <olddateyn/>
- <formcd>0000002536</formcd>
- <dayflag>A</dayflag>
- </search>
- <savedata/>
- <doctor/>
- <cond>
- <pid/>
- <orddd/>
- <cretno/>
- <seqno/>
- <formrecseq/>
- <orddeptcd/>
- <orddrid/>
- <oldyn/>
- </cond>
- <adddata>outflag▦outreqcd▦outreqflag▦outreqnm▦remcnts▩</adddata>
- <reqdocu/>
- <hiratrans/>
- <hieconsent>
- <hieconsentyn/>
- </hieconsent>
- </send>
- <main>
- <req_info>
- <req_pat_list>
- <stat/>
- <formrecdd/>
- <pid/>
- <hngnm/>
- <orddeptnm/>
- <orddrnm/>
- <orddd/>
- <cretno/>
- <acptseqno/>
- <seqno/>
- <orddeptcd/>
- <orddrid/>
- <formrecseq/>
- <age/>
- <sex/>
- <coophospnm/>
- <coophospcd/>
- <rsltcd/>
- <areacd/>
- <telno/>
- <faxno/>
- <resncd/>
- <enddd/>
- <reqcoophospnm/>
- <reqdrnm/>
- <reqdd/>
- <reqorddeptnm/>
- <reqorddrnm/>
- <reqorddd/>
- <reqcretno/>
- <reqacptseqno/>
- <reqseqno/>
- <reqflag/>
- <remfact/>
- <coopdrcd/>
- <fromdd/>
- <oldyn/>
- <status/>
- <wardnm/>
- <roomcd/>
- </req_pat_list>
- </req_info>
- <req_pat_info>
- <patinfo>
- <stat/>
- <formrecdd/>
- <pid/>
- <hngnm/>
- <orddeptnm/>
- <orddrnm/>
- <orddd/>
- <cretno/>
- <acptseqno/>
- <seqno/>
- <orddeptcd/>
- <orddrid/>
- <formrecseq/>
- <age/>
- <sex/>
- <coophospnm/>
- <coophospcd/>
- <coopdrcd/>
- <drnm/>
- <fromdd/>
- <rsltcd/>
- <areacd/>
- <telno/>
- <faxno/>
- <resncd/>
- <enddd/>
- <reqcoophospnm/>
- <reqdrnm/>
- <reqdd/>
- <reqorddeptnm/>
- <reqorddrnm/>
- <reqorddd/>
- <reqcretno/>
- <reqacptseqno/>
- <reqseqno/>
- <reqflag/>
- <remfact/>
- <status/>
- <rumint/>
- <aprvflag/>
- <reqpseqno/>
- <reqacnfmnm/>
- <trnscnfmnm/>
- <reqaseqno/>
- <bizflag/>
- <reqaflag/>
- <crsn/>
- <ncrsn/>
- <ncrsnetc/>
- <stat/>
- <hp/>
- <roomcd/>
- <wardnm/>
- <referdd/>
- <hopedschdd/>
- <fcontact/>
- <drcnfmyn/>
- <cdchk/>
- <recordchk/>
- <resultchk/>
- <dschdd/>
- <transhosp1/>
- <transhosp2/>
- <transhosp3/>
- <addr/>
- <hieyn/>
- <hirahospnm/>
- <hiratelno/>
- <hiraaddr/>
- <disphospnm/>
- <disptelno/>
- <dispaddr/>
- </patinfo>
- </req_pat_info>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <popupendflag/>
- <hospinfo>
- <hospinfolist/>
- </hospinfo>
- <hospflag/>
- <reqpopupflag/>
- <reqpopup>
- <reqpopuplist/>
- </reqpopup>
- <recinfo/>
- <sinfo/>
- <hirainfo>
- <reqsdbkno>3710001718030600012</reqsdbkno>
- <ssn>4202011143615</ssn>
- <name>박찬규</name>
- <telno>01035552853</telno>
- <drnm>김성국</drnm>
- <lcsno>29134</lcsno>
- <sndyadmcd>37100017</sndyadmcd>
- <sndyadmnm>경북대학교병원</sndyadmnm>
- <rcvyadmscd>37200542</rcvyadmscd>
- <rcvyadmsnm>청도대남병원</rcvyadmsnm>
- <snddeptcd>01</snddeptcd>
- <snddeptnm>소화기내과</snddeptnm>
- <snddeptdtlcd>01</snddeptdtlcd>
- <snddeptdtlnm>소화기내과</snddeptdtlnm>
- <sickcd>C1699</sickcd>
- <sickkornm>위암 NOS, 상세불명</sickkornm>
- <sickeditnm>위암 NOS, 상세불명</sickeditnm>
- <vsttp>01</vsttp>
- <sdbktp>03</sdbktp>
- <diagsdbkclirs>02</diagsdbkclirs>
- <diagsdbknonclirs>02</diagsdbknonclirs>
- <diagsdbknonclirstxt>비임상 사유 기타</diagsdbknonclirstxt>
- <patstatdiagopintxt>환자 상태 및 진료 소견</patstatdiagopintxt>
- </hirainfo>
- </main>
- <init>
- <dept>
- </dept>
- <doctlist>
- <medispcl>
- <doctid/>
- <doctnm/>
- </medispcl>
- <atdoct>
- <doctid/>
- <doctnm/>
- </atdoct>
- </doctlist>
- <areacd>
- </areacd>
- <resncd>
- <A0437/>
- </resncd>
- <rsltcd>
- <A0438/>
- </rsltcd>
- <hardcd/>
- <mouserght>
- <label>개인정보동의서</label>
- <value>fOCRView</value>
- </mouserght>
- <mouserght>
- <label>발행이미지보기</label>
- <value>fViewimage</value>
- </mouserght>
- <resnable/>
- <dayflaglist>
- <label>작성일</label>
- <value>A</value>
- </dayflaglist>
- <dayflaglist>
- <label>완료일</label>
- <value>B</value>
- </dayflaglist>
- <consentinfo/>
- </init>
- <temp>
- <formhardcd/>
- <formhardcd_6009/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRMRF02001" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMR01301" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRARC01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/doctor" resultref="/root/init/doctlist"/>
- <submission id="TRARC01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/req_info"/>
- <submission id="TRARC01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/req_pat_info"/>
- <submission id="TXARC01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root"/>
- <!--<submission id="TXARC01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root"/>-->
- <submission id="TXARC01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root"/>
- <submission id="TRARC01405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/hirareq" resultref="/root/main/hirainfo"/>
- <submission id="TRMMB04103" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRARC01403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/req_pat_addinfo"/>
- <submission id="TRMRF03104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/hardcdlist"/>
- <submission id="TXARC01404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/hieconsent"/>
- <submission id="TRARC01416" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/consentinfo"/>
- </model>
- </xhtml:head>
- <script src="../../../com/commonweb/js/common.js" type="javascript"/>
- <script src="../../../com/commonweb/js/utilHelper.js" type="javascript"/>
- <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
- <script src="../../../com/commonweb/js/stringHelper.js" type="javascript"/>
- <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
- <script src="../../../com/basiccodeweb/js/ZBC001.js" type="javascript"/>
- <script src="../../../com/departmentcodeweb/js/common.js" type="javascript"/>
- <script src="../../../com/departmentcodeweb/js/ZSD001.js" type="javascript"/>
- <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
- <script type="javascript" src="../../../emr/medirecweb/js/MMRCommon.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../emr/medirecweb/js/MMR02900.js"/>
- <!--script type="javascript" src="../../../ast/healcarecoopweb/js/SMARC01400.js"/-->
- <script type="javascript">
- <![CDATA[
- /**
- * 하드코드 조회
- *
- * @param
- * ref reference path
- * rsltref result reference path
- * hardcd - 하드코드
- */
- function mmbfGetHardCodeInfo(ref, rsltref, hardcd){
- var mmb_rsltref = "/root/hidden/mmb/hardcd";
- model.removeNode(mmb_rsltref);
- model.makeNode(mmb_rsltref);
- model.removeNode(ref);
- model.makeValue(ref + "/hardcd", hardcd);
- if(submit("TRMMB04103", "false", ref, mmb_rsltref)==true){
- model.copyNode(rsltref, mmb_rsltref); model.removeNode(mmb_rsltref);
- }
- model.refresh();
- }
-
- // 초기값
- function fInit()
- {
- mmbfGetHardCodeInfo("/root/send/formhrdcd", "/root/temp/formhardcd", 1300); // 전원의뢰팝업 사용여부
- //mmbfGetHardCodeInfo("/root/send/formhrdcd_6009", "/root/temp/formhardcd_6009", 6009); // HIE동의체크 사용여부
-
- //HIE 동의여부 가져오기
- submit("TRARC01416", false);
-
- // HIE 동의여부에 따른 체크박스 배경 지정
- var hieconsentyn = model.getValue("/root/init/consentinfo/hieconsent/hieconsentyn");
- if(isNull(hieconsentyn) || hieconsentyn != "Y"){
- chk_hieconsent.attribute("background-color") = "yellow";
- }else{
- chk_hieconsent.attribute("background-color") = "white";
- }
-
- if(model.getValue("/root/temp/formhardcd/hardcd/hardcd") == "Y")
- {
- button2.visible = true;
-
- }
- iviewer1.window.javascript.fInitPage(false, false, parseInt(iviewer1.attribute("height")));
-
- // 오늘 날짜로 세팅
- var CurrentDate = getCurrentDate();
- model.setValue("/root/send/search/fromdd", CurrentDate);
- model.setValue("/root/send/search/todd", CurrentDate);
-
- // 공통코드 목록 가져오기
- zbcfGetCodeList(new Array("A0439", "A0438", "A0426"), new Array("/root/init/resncd", "/root/init/rsltcd", "/root/init/areacd") , true);
-
- // 유형코드 가져오기
- zbcfGetKindCodeList(
- new Array("A0014"),
- new Array("A0426"),
- new Array("/root/init/areacd"),
- true,
- new Array(""),
- new Array("")
- );
- // 진료과
- //var instcd = "012";
- var instcd = getUserInfo("dutplceinstcd");
- //var standard_yn = "orduseyn";
- var standard_yn = "rcptuseyn";
- var ord_deptflag = 'D';
- var rslt_ref = "/root/init/dept";
- var sort_method = "depthngnm";
- //zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
- sort_field = "depthngnm"
- zsdfGetInOutOrdDeptList(instcd, rslt_ref, sort_field, sort_method);
-
- addComboItem("cmb_orddeptcd", "", "", "above");
-
- fDoctSerach();
-
- model.removeNodeset("/root/main/req_info/req_pat_list");
- model.resetInstanceNode("/root/main/req_pat_info/patinfo/patinfo");
-
- model.refresh();
- }
-
-
- // 진료의사 조회
- function fDoctSerach()
- {
- // 진료의사
- model.removenode("/root/send/doctor");
- model.makeValue("/root/send/doctor/orddd", model.getValue("/root/send/search/fromdd"));
- model.makeValue("/root/send/doctor/orddeptcd", model.getValue("/root/send/search/orddeptcd"));
-
- submit("TRARC01302", false);
-
- cmb_orddrid.select(0);
- //model.setValue("/root/main/patient/orddrid", orddrid);
- }
-
- // 조회전 필수 체크
- function fCheckDateSend()
- {
- var fromdd = model.getValue("/root/send/search/fromdd");
- var todd = model.getValue("/root/send/search/todd");
- var pid = model.getValue("/root/send/search/pid");
- var olddateyn = model.getValue("/root/send/search/olddateyn");
-
- if (isNull(pid) == true)
- {
- if (olddateyn != "Y")
- {
- if( ! isValidDateTime( fromdd, 'YYYYMMDD') || ! isValidDateTime( todd, 'YYYYMMDD') ){
-
- messageBox("입력하신 일자구분이 정확한 날짜타입이 아닙니다.", "E999", "");
- return false;
- }
-
- if( getDateInterval(fromdd, todd) > 7 ){
- messageBox("조회가능한 최대 기간은 7일입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
- return false;
- }
-
- if( getDateInterval(fromdd, todd) < 0 ){
- messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
- return false;
- }
-
- // 날짜 계산
- var daycnt = getDateInterval(fromdd, todd);
-
- // 1일이 아닌 경우는 조건을 타야 함
- if (daycnt != 0)
- {
- // 진료과 체크
- // if (model.getValue("/root/send/search/orddeptcd") == "")
- // {
- // messageBox("일자구분에서 하루 이상의 기간을 선택했을 경우, 진료과는 조회 필수 조건입니다. 진료과를 입력하세요.", "E999", "");
- // //messageBox("진료과를 ","C002");
- // return false;
- // }
-
- if (ipt_hngnm.currentText.length > 0 && ipt_hngnm.currentText.length < 2) {
- messageBox("환자명은 2글자 이상으로 해주십시요!","E999","");
- model.setFocus("ipt_hngnm");
- return false;
- }
-
- if (ipt_rumint.currentText.length > 0 && ipt_rumint.currentText.length < 2) {
- messageBox("전원의뢰병원명은 2글자 이상으로 해주십시요!","E999","");
- model.setFocus("ipt_rumint");
- return false;
- }
-
- }
- }
- }
- return true;
- }
-
- //조회(전원의뢰내역)
- function fSearch()
- {
- model.resetInstanceNode("/root/main/req_pat_info/patinfo");
- iviewer1.src = "../../../emr/medirecweb/xrw/SMMMR00000_Empty.xrw";
- //var formcd = "0000001539";
- //iviewer1.window.javascript.fLoadNewForm(formcd);
-
- // getReqPatList
- if (submit("TRARC01401", false) == true)
- {
- //var formrecseq = 0;
-
- //iviewer1.object1.RemoveAll();
- //iviewer1.window.javascript.fLoadRecForm(formrecseq);
-
- //iviewer1.window.javascirpt.fLoadNewForm();
- //model.refresh();
- }
- else
- {
- messageBox("조회를", "E009");
- }
-
-
- }
- // 저장전 필수 체크
- function fCheckDate()
- {
- if (model.getValue("/root/main/req_pat_info/patinfo/pid") == "") {
- messageBox("저장하고자 하는 환자를", "C002");
- return false;
- }
-
- // if (model.getValue("/root/main/req_pat_info/patinfo/ncrsn") == "") {
- // messageBox("비임상적사유가 선택되지 않았습니다", "I");
- // return false;
- // }
- //
- // if (model.getValue("/root/main/req_pat_info/patinfo/crsn") == "") {
- // messageBox("임상적사유가 선택되지 않았습니다", "I");
- // return false;
- // }
- //
- // if (model.getValue("/root/main/req_pat_info/patinfo/reqaflag") == "") {
- // messageBox("회송유형 선택되지 않았습니다", "I");
- // return false;
- // }
- //
- // if (model.getValue("/root/main/req_pat_info/patinfo/enddd") == "") {
- // messageBox("전원의뢰완료일이 선택되지 않았습니다", "I");
- // return false;
- // }
-
-
-
- if (model.getValue("/root/main/req_pat_info/patinfo/stat") == "4") {
- messageBox("전송완료된 건은 저장할 수 없습니다","I");
- return false;
- }
-
- return true;
- }
-
- // 저장
- function fSave()
- {
-
- model.setValue("/root/main/req_pat_info/patinfo/reqflag", "C");
- var enddd = model.getValue("/root/main/req_pat_info/patinfo/enddd");
-
- if (enddd == "")
- {
- model.setValue("/root/main/req_pat_info/patinfo/enddd", "00000000");
- }
-
- model.resetInstanceNode("/root/send/savedata");
-
- model.copyNode("/root/send/savedata","/root/main/req_pat_info/patinfo");
-
- if(model.getValue("/root/temp/formhardcd/hardcd/hardcd") == "Y")
- {
- var originNode = findNode(model, "/root/send/savedata");
- var copyNode = findNode(model, "/root/send/adddata");
-
- originNode.appendChild(copyNode);
- model.makeValue("/root/send/savedata/popup", "Y");
- }
- else
- model.makeValue("/root/send/savedata/popup", "N");
-
-
- if (submit("TXARC01401", false) == true)
- {
- //var formcd = "0000001539";
- //iviewer1.window.javascript.fLoadNewForm(formcd);
- fSearch();
- }
- else
- {
- messageBox("저장에", "E009");
- }
- }
-
- // 전원의뢰 환자 삭제
- function fReqAgnPatDelete(){
- if (grd_list.rows <= 1) return;
- if (grd_list.row < 1) return;
-
- var lrow = grd_list.row;
-
-
- var stat = model.getValue("/root/main/req_info/req_pat_list["+lrow+"]/stat");
-
- if(stat == "3"){
- messageBox("완료 상태의 데이터는 삭제할 수 없습니다.", "E999", "");
- return;
- }
-
- if(messageBox("해당 데이터를", "Q001")== "6")
- {
- //초기 정보 셋팅
- model.resetInstanceNode("/root/send/cond");
- model.setValue("/root/send/cond/pid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid"));
- model.setValue("/root/send/cond/orddd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddd"));
- model.setValue("/root/send/cond/cretno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/cretno"));
- model.setValue("/root/send/cond/seqno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/seqno"));
- model.setValue("/root/send/cond/formrecseq", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/formrecseq"));
- model.setValue("/root/send/cond/orddeptcd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptcd"));
- model.setValue("/root/send/cond/orddrid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrid"));
- model.setValue("/root/send/cond/oldyn", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/oldyn"));
-
- if (submit("TRARC01402", false) == true)
- {
- if (model.getValue("/root/main/req_pat_info/patinfo/pid") == "")
- {
- model.setValue("/root/main/req_pat_info/patinfo/pid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid"));
- model.setValue("/root/main/req_pat_info/patinfo/hngnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/hngnm"));
- model.setValue("/root/main/req_pat_info/patinfo/sex", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/sex"));
- model.setValue("/root/main/req_pat_info/patinfo/age", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/age"));
- model.setValue("/root/main/req_pat_info/patinfo/orddd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddd"));
- model.setValue("/root/main/req_pat_info/patinfo/cretno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/cretno"));
- model.setValue("/root/main/req_pat_info/patinfo/orddeptnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptnm"));
- model.setValue("/root/main/req_pat_info/patinfo/orddrnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrnm"));
- model.setValue("/root/main/req_pat_info/patinfo/orddeptcd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptcd"));
- model.setValue("/root/main/req_pat_info/patinfo/orddrid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrid"));
-
- model.setValue("/root/main/req_pat_info/patinfo/formrecseq", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/formrecseq"));
- model.setValue("/root/main/req_pat_info/patinfo/status", "i");
- }
-
- mmbfGetHardCodeInfo("/root/send/formhrdcd", "/root/temp/formhardcd", 1300); // 전원의뢰팝업 사용여부
-
- if(model.getValue("/root/temp/formhardcd/hardcd/hardcd") == "Y")
- {
- if (submit("TRARC01403", false) == true)
- {
- //fSetPopup();
- }
- }
- }
- model.setValue("/root/send/adddata","outflag▦outreqcd▦outreqflag▦outreqnm▦remcnts▩");
- // 초기 정보 셋팅 완료
-
- //되의뢰/전원구분 설정(C:전원)
- //되의뢰완료일 설정
- model.setValue("/root/main/req_pat_info/patinfo/reqflag", "C");
- var enddd = model.getValue("/root/main/req_pat_info/patinfo/enddd");
-
- //되의뢰
- if (enddd == "")
- {
- model.setValue("/root/main/req_pat_info/patinfo/enddd", "00000000");
- //enddd = "00000000";
- }
-
- model.resetInstanceNode("/root/send/savedata");
- model.copyNode("/root/send/savedata","/root/main/req_pat_info/patinfo");
- if(model.getValue("/root/temp/formhardcd/hardcd/hardcd") == "Y")
- {
- var originNode = findNode(model, "/root/send/savedata");
- var copyNode = findNode(model, "/root/send/adddata");
-
- originNode.appendChild(copyNode);
- model.makeValue("/root/send/savedata/popup", "Y");
- }
- else
- model.makeValue("/root/send/savedata/popup", "N");
-
-
- model.makeValue("/root/send/savedata/delyn", "Y");
-
-
-
- if (submit("TXARC01401", false) == true)
- {
- model.removenode("/root/main/req_info/req_pat_list[" + lrow + "]");
- model.resetInstanceNode("/root/main/req_pat_info/patinfo");
- iviewer1.src = "../../../emr/medirecweb/xrw/SMMMR00000_Empty.xrw";
- model.refresh();
- grd_list.refresh();
- }
- else
- {
- messageBox("삭제에", "E009");
- }
-
- }
-
- }
-
- // 삭제
- function fDelete()
- {
- if (grd_list.rows <= 1) return;
- if (grd_list.row < 1) return;
-
- // 데이터 삭제시
- if(messageBox("해당 데이터를", "Q001")== "6")
- {
- if (isNull(cmb_confflag.value) == true)
- {
- messageBox("구분", "C001");
- model.setFocus("cmb_flag");
- return;
- }
-
- if (isNull(ipt_confdd.value) == true)
- {
- messageBox("등록일자를", "C001");
- model.setFocus("ipt_confdd");
- return;
- }
-
- model.setValue("/root/send/savedata/status", "d");
-
- if (submit("TXARC01401") == true)
- {
- fSearch();
- }
- else
- {
- messageBox("삭제에", "E009");
- }
-
- }
- else
- {
- return;
- }
- }
-
- // 병원 팝업
- function fHospPopup()
- {
- model.setValue("/root/main/hospflag", "N");
- //modal("SPARH00200",1,1,1);
-
- // 심평원연계 병원조회 팝업창
- modal("SPARH01200", 1,10, 10, "SPARH01200", "", "");
-
- var hospflag = model.getValue("/root/main/hospflag");
- if( hospflag == "H" ) // 심평원연계 병원조회이면
- {
- var hospnm = model.getValue("/root/main/hospinfo/hospinfolist/coophospnm");
- var hospcd = model.getValue("/root/main/hospinfo/hospinfolist/coophospcd");
- var telno = model.getValue("/root/main/hospinfo/hospinfolist/telno");
- var addr = model.getValue("/root/main/hospinfo/hospinfolist/addr");
- model.setValue("/root/main/req_pat_info/patinfo/disphospnm", hospnm);
- model.setValue("/root/main/req_pat_info/patinfo/coophospcd", hospcd);
- model.setValue("/root/main/req_pat_info/patinfo/disptelno", telno);
- model.setValue("/root/main/req_pat_info/patinfo/dispaddr", addr);
- model.setValue("/root/main/req_pat_info/patinfo/hirahospnm", hospnm);
- model.setValue("/root/main/req_pat_info/patinfo/hiratelno", telno);
- model.setValue("/root/main/req_pat_info/patinfo/hiraaddr", addr);
-
-
- }else if ( hospflag == "Y" ) // 병원내부DB 병원조회이면
- {
- var hospnm = model.getValue("/root/main/hospinfo/hospinfolist/coophospnm");
- var hospcd = model.getValue("/root/main/hospinfo/hospinfolist/coophospcd");
- var telno = model.getValue("/root/main/hospinfo/hospinfolist/telno");
- var addr = model.getValue("/root/main/hospinfo/hospinfolist/addr");
- model.setValue("/root/main/req_pat_info/patinfo/disphospnm", hospnm);
- model.setValue("/root/main/req_pat_info/patinfo/disptelno", telno);
- model.setValue("/root/main/req_pat_info/patinfo/dispaddr", addr);
-
- model.setValue("/root/main/req_pat_info/patinfo/coophospnm", hospnm);
- model.setValue("/root/main/req_pat_info/patinfo/coophospcd", hospcd);
- model.setValue("/root/main/req_pat_info/patinfo/areacd", model.getValue("/root/main/hospinfo/hospinfolist/areacd"));
- model.setValue("/root/main/req_pat_info/patinfo/telno", telno);
- model.setValue("/root/main/req_pat_info/patinfo/faxno", model.getValue("/root/main/hospinfo/hospinfolist/faxno"));
-
- model.setValue("/root/main/req_pat_info/patinfo/drnm", model.getValue("/root/main/hospinfo/hospinfolist/drnm"));
- model.setValue("/root/main/req_pat_info/patinfo/coopdrcd", model.getValue("/root/main/hospinfo/hospinfolist/coopdrcd"));
- model.setValue("/root/main/req_pat_info/patinfo/fromdd", model.getValue("/root/main/hospinfo/hospinfolist/fromdd"));
-
- model.setValue("/root/main/req_pat_info/patinfo/dispaddr", model.getValue("/root/main/hospinfo/hospinfolist/detladdr1"));
- }
-
- // 심평원연계에서인지 병원내부DB에서 가져온 정보인지 판단 위해 전송 시 APP로 전달
- model.makeValue("/root/main/req_pat_info/patinfo/hospflag", hospflag );
-
- model.refresh();
-
- }
-
-
- // 의뢰환자 정보 Popup
- function fReqPatPopup()
- {
- var pid = setParameter("pid", model.getValue("/root/main/req_pat_info/patinfo/pid")); //팝업 등록화면의 교육명에 값 가져가기
-
- if (isNull(opt_pid.value) == true)
- {
- messageBox("등록일자를", "C001");
- model.setFocus("opt_pid");
- return;
- }
-
- model.setValue("/root/main/reqpopupflag", "N");
- modal("SPARC02100", 1,10, 10, "SPARC02100", "", "");
-
- if( model.getValue("/root/main/reqpopupflag") == "Y" )
- {
- //alert(model.getValue("/root/main/reqpopupflag"));
- model.setValue("/root/main/req_pat_info/patinfo/reqcoophospnm", model.getValue("/root/main/reqpopup/reqpopuplist/coophospnm"));
- model.setValue("/root/main/req_pat_info/patinfo/reqdrnm", model.getValue("/root/main/reqpopup/reqpopuplist/drnm"));
- model.setValue("/root/main/req_pat_info/patinfo/reqdd", model.getValue("/root/main/reqpopup/reqpopuplist/reqdd"));
- model.setValue("/root/main/req_pat_info/patinfo/reqorddeptnm", model.getValue("/root/main/reqpopup/reqpopuplist/orddeptnm"));
- model.setValue("/root/main/req_pat_info/patinfo/reqorddrnm", model.getValue("/root/main/reqpopup/reqpopuplist/orddrnm"));
- model.setValue("/root/main/req_pat_info/patinfo/reqorddd", model.getValue("/root/main/reqpopup/reqpopuplist/orddd"));
- model.setValue("/root/main/req_pat_info/patinfo/reqcretno", model.getValue("/root/main/reqpopup/reqpopuplist/cretno"));
- model.setValue("/root/main/req_pat_info/patinfo/reqacptseqno", model.getValue("/root/main/reqpopup/reqpopuplist/acptseqno"));
- model.setValue("/root/main/req_pat_info/patinfo/reqseqno", model.getValue("/root/main/reqpopup/reqpopuplist/seqno"));
- model.setValue("/root/main/req_pat_info/patinfo/reqpseqno", model.getValue("/root/main/reqpopup/reqpopuplist/reqpseqno"));
-
-
- model.refresh();
- }
- }
-
- function fReqAgnInfo()
- {
- if (grd_list.rows <= 0) return;
- if (grd_list.row < 0) return;
- //그리드에서 해당 환자 선택
- var idxRow = grd_list.row;
- var pid = model.getValue("/root/main/req_pat_list["+idxRow+"]/pid");
- var hngnm = model.getValue("/root/main/req_pat_list["+idxRow+"]/hngnm");
- var orddd = model.getValue("/root/main/req_pat_list["+idxRow+"]/orddd");
- var deptnm = model.getValue("/root/main/req_pat_list["+idxRow+"]/deptnm");
- var atdoctnm = model.getValue("/root/main/req_pat_list["+idxRow+"]/atdoctnm");
-
- model.setValue("/root/main/req_pat_info/patinfo/pid", pid);
- model.setValue("/root/main/req_pat_info/patinfo/hngnm", hngnm);
- model.setValue("/root/main/req_pat_info/patinfo/orddd", orddd);
- model.setValue("/root/main/req_pat_info/patinfo/deptnm", deptnm);
- model.setValue("/root/main/req_pat_info/patinfo/atdoctnm", atdoctnm);
-
- model.refresh();
- }
-
- // 등록번호 조회 팝업
- function fPatPopUp()
- {
- model.makeValue("/root/temp/pid", model.getValue("/root/send/search/pid"));
- model.makeValue("/root/temp/srchcond","1");
- model.makeValue("/root/temp/autoflag","N");
-
- modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/temp", "/root/send");
-
- //model.resetInstanceNode("/root/main/patinfo/patinfolist");
- //model.resetInstanceNode("/root/send/cond");
- if (model.getValue("/root/main/popupendflag") == "ok")
- {
- model.setValue("/root/send/search/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/search/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- }
-
- //fHistSearch();
-
- model.refresh();
-
- }
-
- // 전원의뢰 리스트 선택
- function fGrdClick()
- {
- //debugger;
-
- if (grd_list.rows <= 1) return;
- if (grd_list.row < 1) return;
-
- var lrow = grd_list.row;
- if(grd_list.isCell(event.target) && grd_list.mouseRow >= grd_list.fixedrows)
- {
- //fBiztrgtClick();
- }
- else
- {
- return;
- }
-
- /*
- model.copyNode("/root/main/req_pat_info/patinfo", "/root/main/req_info/req_pat_list[" + lrow + "]");
- //model.setValue("/root/main/req_pat_into/reqflag", "A");
- */
-
- model.resetInstanceNode("/root/send/cond");
-
- model.setValue("/root/send/cond/pid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid"));
- model.setValue("/root/send/cond/orddd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddd"));
- model.setValue("/root/send/cond/cretno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/cretno"));
- model.setValue("/root/send/cond/seqno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/seqno"));
- model.setValue("/root/send/cond/formrecseq", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/formrecseq"));
- model.setValue("/root/send/cond/orddeptcd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptcd"));
- model.setValue("/root/send/cond/orddrid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrid"));
- model.setValue("/root/send/cond/oldyn", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/oldyn"));
-
- if (submit("TRARC01402", false) == true)
- {
-
- model.setValue("/root/main/req_pat_info/patinfo/wardnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/wardnm"));
- model.setValue("/root/main/req_pat_info/patinfo/roomcd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/roomcd"));
-
- if (model.getValue("/root/main/req_pat_info/patinfo/pid") == "")
- {
- model.setValue("/root/main/req_pat_info/patinfo/pid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid"));
- model.setValue("/root/main/req_pat_info/patinfo/hngnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/hngnm"));
- model.setValue("/root/main/req_pat_info/patinfo/sex", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/sex"));
- model.setValue("/root/main/req_pat_info/patinfo/age", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/age"));
- model.setValue("/root/main/req_pat_info/patinfo/orddd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddd"));
- model.setValue("/root/main/req_pat_info/patinfo/cretno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/cretno"));
- model.setValue("/root/main/req_pat_info/patinfo/orddeptnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptnm"));
- model.setValue("/root/main/req_pat_info/patinfo/orddrnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrnm"));
- model.setValue("/root/main/req_pat_info/patinfo/orddeptcd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptcd"));
- model.setValue("/root/main/req_pat_info/patinfo/orddrid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrid"));
- model.setValue("/root/main/req_pat_info/patinfo/formrecseq", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/formrecseq"));
- model.setValue("/root/main/req_pat_info/patinfo/status", "i");
- }
-
- mmbfGetHardCodeInfo("/root/send/formhrdcd", "/root/temp/formhardcd", 1300); // 전원의뢰팝업 사용여부
-
- if(model.getValue("/root/temp/formhardcd/hardcd/hardcd") == "Y")
- {
- if (submit("TRARC01403", false) == true)
- {
- //fSetPopup();
- }
- }
- }
-
- var oldyn = model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/oldyn");
-
- // if (oldyn != "Y")
- // {
- iviewer1.src= "../../../emr/medirecweb/xrw/SSMMR01100_서식로더.xrw";
- iviewer1.window.javascript.fInitPage(false, false, parseInt(iviewer1.attribute("height")), parseInt(iviewer1.attribute("width")));
-
- // 서식 로드
- var formrecseq = model.getValue("/root/send/cond/formrecseq");
- //alert(formrecseq);
-
- iviewer1.window.javascript.fLoadRecForm(formrecseq, false);
- //}
- model.setValue("/root/send/adddata","outflag▦outreqcd▦outreqflag▦outreqnm▦remcnts▩");
- model.refresh();
- }
-
- // 의뢰정보 삭제
- function fReqDel()
- {
- /*
- opt_reqcoophospnm.value = "";
- opt_reqdrnm.value = "";
- opt_reqdd.value = "";
- opt_reqorddeptnm.value = "";
- opt_reqorddrnm.value = "";
- */
- var stat = model.getValue("/root/main/req_info/req_pat_list[" +grd_list.row + "]/stat");
-
- model.setValue("/root/main/req_pat_info/patinfo/reqcoophospnm", "");
- model.setValue("/root/main/req_pat_info/patinfo/reqdrnm", "");
- model.setValue("/root/main/req_pat_info/patinfo/reqdd", "");
- model.setValue("/root/main/req_pat_info/patinfo/reqorddeptnm", "");
- model.setValue("/root/main/req_pat_info/patinfo/reqorddrnm", "");
- model.setValue("/root/main/req_pat_info/patinfo/reqorddd", "");
- model.setValue("/root/main/req_pat_info/patinfo/reqcretno", "0");
- model.setValue("/root/main/req_pat_info/patinfo/reqacptseqno", "0");
- model.setValue("/root/main/req_pat_info/patinfo/reqseqno", "0");
- model.setValue("/root/main/req_pat_info/patinfo/reqpseqno", "");
-
-
- model.refresh();
-
- }
- // 전원의뢰 정보 삭제
- function fReqAgnDel()
- {
- var stat = model.getValue("/root/main/req_info/req_pat_list[" +grd_list.row + "]/stat");
-
- model.setValue("/root/main/req_pat_info/patinfo/coophospnm", "");
- model.setValue("/root/main/req_pat_info/patinfo/rsltcd", "");
- model.setValue("/root/main/req_pat_info/patinfo/areacd", "");
- model.setValue("/root/main/req_pat_info/patinfo/telno", "");
- model.setValue("/root/main/req_pat_info/patinfo/faxno", "");
- model.setValue("/root/main/req_pat_info/patinfo/resncd", "");
- model.setValue("/root/main/req_pat_info/patinfo/enddd", "");
- model.setValue("/root/main/req_pat_info/patinfo/coophospcd", "");
- model.refresh();
-
- }
- // 출력
- function fReplcheck()
- {
- var currow = grd_list.row;
- var sREPLDOCULIST_PATH = "/root/main/req_pat_info/patinfo";
- var formrecseq = model.getValue(sREPLDOCULIST_PATH+"/formrecseq")
- var pid = model.getValue(sREPLDOCULIST_PATH+"/pid")
-
- if (pid == "")
- {
- messageBox("저장하고자 하는 환자를", "C002");
- return;
- }
- var ivwCtrl = iviewer1.window.document.controls("ivw_base");
- copyNodeset("/root/main/recinfo", "/root/main/recinfo", "replace", model, ivwCtrl.model); //서식지 정보 설정
- model.makeValue("/root/hidden/docinfo/signimge", ivwCtrl.model.getValue("/root/hidden/docinfo/signimge")); //서식서명이미지 설정
-
- setParameter("reportprintyn", "");
- exeReportPreview("RFM1111397", "XMLSTR");
-
- model.refresh();
- }
-
-
- /**
- * 단어에 특정 문자 제거
- *
- * @param
- * word 단어
- * ch 문자
- */
- function removeChar(word, ch){
- var temp = "";
- var res = "";
- var len = word.length
- for(i = 0; i < len; i++){
- temp = word.charAt(i);
- if(temp == ch){
- continue;
-
- }else{
- res += temp;
- }
- }
- return res;
- }
-
- /**
- * 단어에 step간격 특정 문자 삽입
- *
- * @param
- * word 단어
- * ch 문자
- * step 간격
- */
- function insertChar(word, ch, step){
- var temp = "";
- var res = "";
- var cnt = 0;
- var len = word.length;
- for(i = 0; i < len; i++){
- cnt++;
- temp = word.charAt(i);
- if(cnt % step == 0 && cnt != len){
- temp = temp + ch;
- }
- res += temp;
- }
- return res;
- }
-
- function fSize() {
- var text = button4.attribute("text") ;
- var pid = model.getValue("/root/main/req_pat_info/patinfo/pid");
-
- if (text == "확대") {
- button4.attribute("text") = "축소";
- group6.attribute("top") = 0;
- group6.attribute("height") = 733 ;
- iviewer1.attribute("height") ="705";
- if (pid != "" ) {
- iviewer1.ivw_base.attribute("height") ="703";
- }
-
- }
- else {
- button4.attribute("text") = "확대";
- group6.attribute("top") = 305;
- group6.attribute("height") = 428 ;
- iviewer1.attribute("height") ="400";
- if (pid != "" ) {
- iviewer1.ivw_base.attribute("height") ="398";
- }
- }
- }
-
- //개인정보동의서보기
- function fOCRView() {
-
- var lrow = grd_list.selectedRow(0);
-
- var pid = model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid");
-
- model.makeValue("/root/send/iemr/pid", pid);
- model.makeValue("/root/send/iemr/docucd", "1100011224");
-
- if(window.children.item("imgemrviewer") == null)
- {
- window.load("../../../emr/imgemrweb/xrw/SSMRC03130.xrw", "modeless", "imgemrviewer", "", "/root/send/iemr", "/root/hidden/temp");
- }
- else
- {
- // 팝업 EMR Viewer 사용중인 상태에서 리로드 기능 추가 - 20080416
- var iemrNode = instance1.selectSingleNode("/root/send/iemr");
- window.children.item("imgemrviewer").javascript.reloadChart(iemrNode);
- // 팝업 EMR Viewer 화면 맨 앞으로 가져오기
- window.children.item("imgemrviewer").modelesstopmost = true;
- window.children.item("imgemrviewer").modelesstopmost = false;
- }
-
- }
-
- function fViewimage() {
- var lrow = grd_list.selectedRow(0);
-
- var pid = model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid");
- var docucd = model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/formcd");
-
- model.makeValue("/root/send/iemr/pid", pid);
- model.makeValue("/root/send/iemr/docucd", docucd);
-
- if(window.children.item("imgemrviewer") == null)
- {
- window.load("../../../emr/imgemrweb/xrw/SSMRC03130.xrw", "modeless", "imgemrviewer", "", "/root/send/iemr", "/root/hidden/temp");
- }
- else
- {
- // 팝업 EMR Viewer 사용중인 상태에서 리로드 기능 추가 - 20080416
- var iemrNode = instance1.selectSingleNode("/root/send/iemr");
- window.children.item("imgemrviewer").javascript.reloadChart(iemrNode);
- // 팝업 EMR Viewer 화면 맨 앞으로 가져오기
- window.children.item("imgemrviewer").modelesstopmost = true;
- window.children.item("imgemrviewer").modelesstopmost = false;
- }
- }
-
- function fSetDefault() {
- model.setValue("/root/main/req_pat_info/patinfo/reqacnfmnm",getUserInfo("usernm"));
- model.setValue("/root/main/req_pat_info/patinfo/aprvflag","Y");
-
- var ioflag = model.getValue("/root/main/req_info/req_pat_list[" + grd_list.row + "]/chosflag");
-
- if (ioflag == "I") {
- var bizflag = "01";
- }
- else {
- var bizflag = "02";
- }
-
- model.setValue("/root/main/req_pat_info/patinfo/bizflag",bizflag);
- model.refresh();
-
- }
-
- function fTrans() {
-
-
- model.resetInstanceNode("/root/send/savedata");
-
- model.copyNode("/root/send/savedata","/root/main/req_pat_info/patinfo");
-
- //var reqaseqno = model.getValue("/root/hirainfo/reqsdbkno");
-
- model.makeValue("/root/send/savedata/prntflag", "Y");
- if (submit("TXARC01401") == false) {
- messageBox("전송시 에러", "E");
- return;
- }
-
- fSearch();
-
- }
-
- function fCnclTrans() {
-
-
- model.resetInstanceNode("/root/send/savedata");
-
- model.copyNode("/root/send/savedata","/root/main/req_pat_info/patinfo");
-
- if(model.getValue("/root/temp/formhardcd/hardcd/hardcd") == "Y") {
- var originNode = findNode(model, "/root/send/savedata");
- var copyNode = findNode(model, "/root/send/adddata");
-
- originNode.appendChild(copyNode);
- model.makeValue("/root/send/savedata/popup", "Y");
- }
- else {
- model.makeValue("/root/send/savedata/popup", "N");
- }
-
- model.makeValue("/root/send/savedata/prntflag", "N");
-
- if (submit("TXARC01401", false) == true)
- {
- fSearch();
- }
- else
- {
- messageBox("전송취소시 에러", "E");
- }
-
- }
-
- function fPop(){
- if(isDataCell()){
- setPopupMenu("grd_list", false, "/root/init/mouserght", "label", "value");
- } else {
- initPopupMenu();
- }
- }
-
- // 심평원 자동 회송 프로그램
- function fHira_Trans(){
-
- var lib;
- try{
- lib = new ActiveXObject("Hira.Di.Com.Service.Library.ServiceLibrary");
- }catch(e){
- messageBox("진료의뢰회송 중계포털 Agent 다운받아 설치 후 이용바랍니다.\n( https://di.hira.or.kr/rsweb/index.do )","E999");
- return ;
- }
-
- model.removeNodeset("/root/main/hirainfo");
-
- var lrow = grd_list.row;
- var pid = model.getValue("/root/main/req_pat_info/patinfo/pid");
- var formrecseq = model.getValue("/root/main/req_info/req_pat_list[" + lrow+ "]/formrecseq")
-
- model.makeValue("/root/send/hirareq/pid",pid);
- model.makeValue("/root/send/hirareq/formrecseq",formrecseq);
-
- if (submit("TRARC01405",false) == false) {
- return false;
- }
-
- var HIRA_PATH = "/root/main/hirainfo/";
-
- var reqsdbkno = model.getValue(HIRA_PATH + "reqsdbkno");
- var ssn = model.getValue(HIRA_PATH + "ssn");
- var name = model.getValue(HIRA_PATH + "name");
- var telno = model.getValue(HIRA_PATH + "telno");
- var drnm = model.getValue(HIRA_PATH + "drnm");
- var lcsno = model.getValue(HIRA_PATH + "lcsno");
- var sndyadmcd = model.getValue(HIRA_PATH + "sndyadmcd");
- var sndyadmnm = model.getValue(HIRA_PATH + "sndyadmnm");
- var rcvyadmscd = model.getValue(HIRA_PATH + "rcvyadmscd");
- var rcvyadmsnm = model.getValue(HIRA_PATH + "rcvyadmsnm");
- var snddeptcd = model.getValue(HIRA_PATH + "snddeptcd");
- var snddeptnm = model.getValue(HIRA_PATH + "snddeptnm");
- var snddeptdtlcd = model.getValue(HIRA_PATH + "snddeptdtlcd");
- var snddeptdtlnm = model.getValue(HIRA_PATH + "snddeptdtlnm");
- var sickcd = model.getValue(HIRA_PATH + "sickcd");
- var sickkornm = model.getValue(HIRA_PATH + "sickkornm");
- var sickeditnm = model.getValue(HIRA_PATH + "sickeditnm");
- var vsttp = parseInt(model.getValue(HIRA_PATH + "vsttp"));
- var sdbktp = parseInt(model.getValue(HIRA_PATH + "sdbktp"));
- var diagsdbkclirs = parseInt(model.getValue(HIRA_PATH + "diagsdbkclirs"));
- var diagsdbknonclirs = parseInt(model.getValue(HIRA_PATH + "diagsdbknonclirs"));
- var diagsdbknonclirstxt = model.getValue(HIRA_PATH + "diagsdbknonclirstxt");
- var patstatdiagopintxt = model.getValue(HIRA_PATH + "patstatdiagopintxt"); //"환자 상태 및 진료 소견";
-
- if(isNull(reqsdbkno)){
- messageBox("[심평원전송실패] 심평원에 전송할 데이터가 존재하지 않습니다.","I");
- return false;
- }
- // if (rcvyadmscd == "" || isNull(rcvyadmscd)) {
- // messageBox("전원기관 요양기관 기호가 없습니다","I");
- // return;
- // }
- //
- // if (lcsno == "" || isNull(lcsno)) {
- // messageBox("의사 면허번호가 없습니다","I");
- // return false;
- // }
-
- // 회송서 개체 생성
- var sdbk = new ActiveXObject("Hira.Di.Com.Model.Sdbk");
- sdbk.reqSdbkNo = reqsdbkno;
- sdbk.VstTp = vsttp; // 진료구분(01:입원,02:외래)
- sdbk.SdbkTp = sdbktp; // 유형구분(01:외래되의뢰,02:외래회송,03:입원회송)
- sdbk.DiagSdbkCliRs = diagsdbkclirs; // 임상적사유(01:수술후 관리필요,02:수술이외의 치료 후 관리(복약,관리 등 포함) 필요)
- sdbk.DiagSdbkNonCliRs = diagsdbknonclirs; // 비임상적사유(01:환자수용 불가(입원실/의료진 부족 등),02:환자 또는 가족의 요청,03:기타)
- if(diagsdbknonclirs == 3){
- sdbk.DiagSdbkNonCliRsTxt = diagsdbknonclirstxt;
- }
- sdbk.PatStatDiagOpinTxt = patstatdiagopintxt;
-
- // 환자정보
- var ptnt = new ActiveXObject("Hira.Di.Com.Model.Ptnt");
- ptnt.ssn = ssn;
- ptnt.Name = name;
- ptnt.TelNo = telno;
- sdbk.Ptnt = ptnt;
-
- // 담당의사 정보
- var chrgDr = new ActiveXObject("Hira.Di.Com.Model.ChrgDr");
- chrgDr.DrNm = drnm;
- chrgDr.LcsNo = lcsno;
- sdbk.ChrgDr = chrgDr;
-
- // 송신요양기관 정보
- var sndYadm = new ActiveXObject("Hira.Di.Com.Model.Yadm");
- sndYadm.code = sndyadmcd;
- sndYadm.Name = sndyadmnm;
- sdbk.SndYadm = sndYadm;
- // 수신요양기관 정보
- var rcvYadm1 = new ActiveXObject("Hira.Di.Com.Model.Yadm");
- //if(!isNull(rcvyadmscd)){
- rcvYadm1.Code = rcvyadmscd;
- rcvYadm1.Name = rcvyadmsnm;
- sdbk.AddRcvYadm(rcvYadm1);
- //}
-
- // 진료과목
- var sndDept = new ActiveXObject("Hira.Di.Com.Model.Dept");
- sndDept.code = snddeptcd;
- sndDept.Name = snddeptnm;
- sdbk.SndDept = sndDept;
-
- // 내과상세진료과목
- var sndDeptDtl = new ActiveXObject("Hira.Di.Com.Model.Dept");
- if(!isNull(snddeptdtlcd)){
- sndDeptDtl.code = snddeptdtlcd;
- sndDeptDtl.Name = snddeptdtlnm;
- sdbk.SndDeptDtl = sndDeptDtl;
- }
- // 상병
- var sick = new ActiveXObject("Hira.Di.Com.Model.Sick");
- sick.code = sickcd;
- sick.korNm = sickkornm;
- sick.EditNm = sickeditnm;
- sdbk.Sick = sick;
-
- var res = lib.CreSdbk(sndyadmcd, sdbk);
-
- if (!res.success) {
- messageBox( "심평원 진료의뢰회송 연계 프로그램에 조건 오류가 발생했습니다.\n\n" + res.ErrCd + ": " + res.ErrMsg + "\n\n조건 수정 후 전송 바랍니다.", "E999");
- return false;
- }
-
- return true;
- }
- ]]>
- </script>
- <xhtml:body pagewidth="1265" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1245px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:111px; height:14px; ">전원의뢰관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1245px; height:744px; ">
- <group id="group2" style="left:515px; top:5px; width:725px; height:735px; ">
- <line id="line72" class="line_1" style="x1:5px; y1:18px; x2:709px; y2:17px; "/>
- <caption id="caption112" class="tit_2" style="left:5px; top:1px; width:116px; height:13px; ">환자기본정보</caption>
- <caption id="caption96" class="cell_1" style="left:145px; top:20px; width:35px; height:23px; vertical-align:middle; ">성명</caption>
- <caption id="caption76" class="cell_1" style="left:5px; top:21px; width:65px; height:23px; vertical-align:middle; ">등록번호</caption>
- <caption id="caption77" class="cell_1" style="left:410px; top:21px; width:95px; height:23px; vertical-align:middle; ">성별/나이/HP</caption>
- <caption id="caption12" class="cell_1" style="left:210px; top:47px; width:50px; height:24px; vertical-align:middle; ">진료과</caption>
- <caption id="caption4" class="cell_1" style="left:5px; top:47px; width:100px; height:24px; vertical-align:middle; ">진료일자</caption>
- <caption id="caption16" class="cell_1" style="left:365px; top:47px; width:50px; height:24px; vertical-align:middle; ">주치의</caption>
- <line id="line44" class="line_2" style="x1:5px; y1:45px; x2:709px; y2:45px; "/>
- <line id="line47" class="line_2" style="x1:5px; y1:199px; x2:709px; y2:199px; "/>
- <line id="line2" class="line_2" style="x1:5px; y1:224px; x2:709px; y2:224px; "/>
- <button id="button5" class="icon_search" style="left:272px; top:180px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fHospPopup();
- ]]>
- </script>
- </button>
- <caption id="caption20" class="cell_1" style="left:5px; top:175px; width:100; height:23px; vertical-align:middle; ">전원의뢰병원명</caption>
- <caption id="caption45" class="cell_1" style="left:5px; top:200px; width:100px; height:23px; vertical-align:middle; ">회송번호</caption>
- <caption id="caption52" class="cell_1" style="left:290px; top:175px; width:65px; height:23px; vertical-align:middle; ">주소/전화</caption>
- <caption id="caption7" class="cell_1" style="left:5px; top:226px; width:100px; height:23px; vertical-align:middle; ">비임상적사유</caption>
- <caption id="caption8" class="cell_1" style="left:410px; top:277px; width:95px; height:23px; vertical-align:middle; ">전원의뢰완료일</caption>
- <line id="line17" class="line_3" style="x1:5px; y1:301px; x2:709px; y2:301px; "/>
- <line id="line5" class="line_1" style="x1:5px; y1:95px; x2:709px; y2:94px; "/>
- <caption id="caption13" class="tit_2" style="left:5px; top:78px; width:116px; height:13px; ">의뢰정보</caption>
- <line id="line6" class="line_3" style="x1:5px; y1:72px; x2:709px; y2:72px; "/>
- <caption id="caption14" class="cell_1" style="left:5px; top:98px; width:100px; height:24px; vertical-align:middle; ">의뢰병원</caption>
- <caption id="caption15" class="cell_1" style="left:545px; top:98px; width:60px; height:24px; vertical-align:middle; ">의뢰의사</caption>
- <caption id="caption17" class="cell_1" style="left:5px; top:124px; width:100px; height:24px; vertical-align:middle; ">진료과</caption>
- <caption id="caption18" class="cell_1" style="left:335px; top:97px; width:60px; height:24px; vertical-align:middle; ">의뢰일자</caption>
- <caption id="caption19" class="cell_1" style="left:207px; top:124px; width:50px; height:24px; vertical-align:middle; ">주치의</caption>
- <button id="button1" class="icon_search" style="left:308px; top:100px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReqPatPopup();
- ]]>
- </script>
- </button>
- <line id="line7" class="line_3" style="x1:5px; y1:149px; x2:710px; y2:149px; "/>
- <line id="line8" class="line_2" style="x1:0px; y1:122px; x2:705px; y2:122px; "/>
- <caption id="caption21" class="tit_2" style="left:5px; top:155px; width:116px; height:13px; ">전원의뢰정보</caption>
- <line id="line9" class="line_1" style="x1:5px; y1:172px; x2:709px; y2:171px; "/>
- <output id="opt_pid" ref="/root/main/req_pat_info/patinfo/pid" class="output_fix" appearance="output" style="left:74px; top:22px; width:68px; height:19px; text-align:center; "/>
- <output id="opt_hngnm" ref="/root/main/req_pat_info/patinfo/hngnm" class="output_fix" appearance="output" style="left:182px; top:22px; width:71px; height:19px; "/>
- <select1 id="cmb_sex" ref="/root/main/req_pat_info/patinfo/sex" disabled="true" appearance="minimal" style="left:507px; top:22px; width:50; height:19px; ">
- <choices>
- <item>
- <label>남</label>
- <value>M</value>
- </item>
- <item>
- <label>여</label>
- <value>F</value>
- </item>
- </choices>
- </select1>
- <output id="opt_age" ref="/root/main/req_pat_info/patinfo/age" class="output_fix" appearance="output" style="left:559px; top:22px; width:26px; height:19px; text-align:right; "/>
- <output id="opt_orddd" ref="/root/main/req_pat_info/patinfo/orddd" class="output_fix" format="yyyy-mm-dd" inputtype="date" appearance="output" style="left:107px; top:49px; width:100px; height:19px; text-align:center; "/>
- <output id="opt_orddeptnm" ref="/root/main/req_pat_info/patinfo/orddeptnm" class="output_fix" appearance="output" style="left:262px; top:49px; width:100px; height:19px; "/>
- <output id="opt_orddrnm" ref="/root/main/req_pat_info/patinfo/orddrnm" class="output_fix" appearance="output" style="left:417px; top:49px; width:70px; height:19px; "/>
- <output id="opt_reqcoophospnm" ref="/root/main/req_pat_info/patinfo/reqcoophospnm" class="output_fix" inputtype="date" appearance="output" style="left:107px; top:100px; width:193px; height:19px; "/>
- <output id="opt_reqdrnm" ref="/root/main/req_pat_info/patinfo/reqdrnm" class="output_fix" appearance="output" style="left:607px; top:100px; width:103px; height:19px; "/>
- <output id="opt_reqdd" ref="/root/main/req_pat_info/patinfo/reqdd" class="output_fix" format="yyyy-mm-dd" inputtype="date" appearance="output" style="left:397px; top:99px; width:143px; height:19px; text-align:center; "/>
- <output id="opt_reqorddeptnm" ref="/root/main/req_pat_info/patinfo/reqorddeptnm" class="output_fix" appearance="output" style="left:107px; top:126px; width:98px; height:19px; "/>
- <output id="opt_reqorddrnm" ref="/root/main/req_pat_info/patinfo/reqorddrnm" class="output_fix" appearance="output" style="left:260px; top:126px; width:72px; height:19px; "/>
- <output id="opt_coophospnm" ref="/root/main/req_pat_info/patinfo/disphospnm" class="output_fix" appearance="output" style="left:107px; top:177px; width:163px; height:19px; "/>
- <output id="opt_telno" ref="/root/main/req_pat_info/patinfo/disptelno" class="output_fix" disabled="true" appearance="output" style="left:624px; top:177px; width:85px; height:19px; "/>
- <select1 id="cmb_resncd" ref="/root/main/req_pat_info/patinfo/resncd" visibility="hidden" appearance="minimal" style="left:600px; top:150px; width:15px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/resncd/A0439">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_enddd" ref="/root/main/req_pat_info/patinfo/enddd" class="input_default" inputtype="date" style="left:507px; top:279px; width:110px; height:19px; "/>
- <caption id="caption22" class="cell_1" style="left:538px; top:200px; width:60px; height:23px; vertical-align:middle; ">의뢰결과</caption>
- <select1 id="cmb_rsltcd" ref="/root/main/req_pat_info/patinfo/rsltcd" appearance="minimal" style="left:600px; top:202px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/rsltcd/A0438">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_reqdel" class="btn2_letter3" style="left:658px; top:73px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReqDel();
- ]]>
- </script>
- </button>
- <line id="line3" class="line_2" style="x1:5px; y1:275px; x2:709px; y2:275px; "/>
- <select1 id="cmb_replflag" ref="/root/main/req_pat_info/patinfo/aprvflag" class="input" appearance="minimal" style="left:107px; top:279px; width:98px; height:19px; ">
- <choices>
- <item>
- <label>예</label>
- <value>Y</value>
- </item>
- <item>
- <label>아니오</label>
- <value>N</value>
- </item>
- <item>
- <label>누락</label>
- <value>O</value>
- </item>
- </choices>
- </select1>
- <caption id="caption69" class="cell_1" style="left:5px; top:277px; width:100px; height:23px; vertical-align:middle; ">동의여부</caption>
- <output id="output1" ref="/root/main/req_pat_info/patinfo/reqpseqno" class="output_fix" appearance="output" style="left:397px; top:127px; width:313px; height:19px; "/>
- <caption id="caption28" class="cell_1" style="left:335px; top:125px; width:60px; height:24px; vertical-align:middle; ">의뢰번호</caption>
- <caption id="caption29" class="cell_1" style="left:210px; top:275px; width:95px; height:23px; vertical-align:middle; ">본원담당자</caption>
- <input id="input1" ref="/root/main/req_pat_info/patinfo/trnscnfmnm" style="left:617px; top:254px; width:93px; height:19px; "/>
- <input id="input2" ref="/root/main/req_pat_info/patinfo/reqacnfmnm" style="left:307px; top:279px; width:100px; height:19px; "/>
- <input id="input3" ref="/root/main/req_pat_info/patinfo/reqaseqno" format="99999999-999999-99999" appearance="output" style="left:107px; top:202px; width:163px; height:19px; "/>
- <line id="line11" class="line_2" style="x1:5px; y1:250px; x2:709px; y2:250px; "/>
- <caption id="caption30" class="cell_1" style="left:380px; top:201px; width:60px; height:23px; vertical-align:middle; ">진료구분</caption>
- <select1 id="combo1" ref="/root/main/req_pat_info/patinfo/bizflag" appearance="minimal" style="left:442px; top:202px; width:93px; height:19px; ">
- <choices>
- <item>
- <label>입원</label>
- <value>01</value>
- </item>
- <item>
- <label>외래</label>
- <value>02</value>
- </item>
- </choices>
- </select1>
- <caption id="caption31" class="cell_1" style="left:380px; top:253px; width:65px; height:23px; vertical-align:middle; ">회송유형</caption>
- <select1 id="combo2" ref="/root/main/req_pat_info/patinfo/reqaflag" appearance="minimal" style="left:447px; top:254px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>외래되의뢰</label>
- <value>01</value>
- </item>
- <item>
- <label>외래회송</label>
- <value>02</value>
- </item>
- <item>
- <label>입원회송</label>
- <value>03</value>
- </item>
- </choices>
- </select1>
- <group id="group6" style="left:0px; top:305px; width:720px; height:428px; ">
- <button id="button2" class="btn2_letter8" visibility="hidden" style="left:603px; top:0px; width:108px; height:19px; ">
- <caption>타병원체크리스트</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/main/req_pat_info/patinfo/pid") == "") {
- messageBox("환자를", "C002");
- return false;
- }
- modal("SPARC02900",1 ,50, 50);
- ]]>
- </script>
- </button>
- <caption id="caption9" class="tit_2" style="left:5px; top:3px; width:98px; height:13px; ">전원의뢰서</caption>
- <line id="line4" class="line_1" style="x1:5px; y1:22px; x2:710px; y2:21px; "/>
- <iviewer id="iviewer1" src="../../../emr/medirecweb/xrw/SSMMR01100_서식로더.xrw" style="left:5px; top:25px; width:705px; height:400px; border-style:sunken; "/>
- <button id="button4" class="btn2_letter2" style="left:105px; top:0px; width:42px; height:19px; ">
- <caption>확대</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSize();
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption33" class="cell_1" style="left:549px; top:253px; width:66px; height:23px; vertical-align:middle; ">확인자</caption>
- <caption id="caption34" class="cell_1" style="left:5px; top:252px; width:100px; height:23px; vertical-align:middle; ">임상사유</caption>
- <select1 id="combo3" ref="/root/main/req_pat_info/patinfo/ncrsn" appearance="minimal" style="left:107px; top:227px; width:268px; height:19px; ">
- <choices>
- <item>
- <label>01.환자수용불가(입원실/의료진 부족등)</label>
- <value>01</value>
- </item>
- <item>
- <label>02.환자 또는 가족의 요청</label>
- <value>02</value>
- </item>
- <item>
- <label>03.기타</label>
- <value>03</value>
- </item>
- </choices>
- </select1>
- <select1 id="combo4" ref="/root/main/req_pat_info/patinfo/crsn" appearance="minimal" style="left:107px; top:254px; width:270px; height:19px; ">
- <choices>
- <item>
- <label>01.수술후 관리 필요</label>
- <value>01</value>
- </item>
- <item>
- <label>02.수술이외의 치료 후 관리(복약,관리 등 포함)필요</label>
- <value>02</value>
- </item>
- </choices>
- </select1>
- <input id="input4" ref="/root/main/req_pat_info/patinfo/ncrsnetc" style="left:380px; top:227px; width:330px; height:19px; "/>
- <input id="input5" ref="/root/main/req_pat_info/patinfo/stat" visibility="hidden" style="left:540px; top:150px; width:50px; height:19px; "/>
- <output id="output2" ref="/root/main/req_pat_info/patinfo/hp" class="output_fix" appearance="output" style="left:587px; top:22px; width:123px; height:19px; "/>
- <button id="button9" class="btn2_letter5" style="left:635px; top:150px; width:75px; height:19px; ">
- <caption>기본값세팅</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetDefault();
- ]]>
- </script>
- </button>
- <caption id="caption32" class="cell_1" style="left:489px; top:46px; width:67px; height:24px; vertical-align:middle; ">병동/병실</caption>
- <output id="output3" ref="/root/main/req_pat_info/patinfo/wardnm" class="output_fix" appearance="output" style="left:559px; top:49px; width:102px; height:19px; "/>
- <output id="output4" ref="/root/main/req_pat_info/patinfo/roomcd" class="output_fix" appearance="output" style="left:665px; top:49px; width:45px; height:19px; "/>
- <caption id="caption42" class="cell_1" style="left:258px; top:20px; width:46px; height:23px; vertical-align:middle; ">퇴원일</caption>
- <output id="output5" ref="/root/main/req_pat_info/patinfo/dschdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:307px; top:22px; width:96px; height:19px; "/>
- <output id="output6" ref="/root/main/req_pat_info/patinfo/dispaddr" class="output_fix" disabled="true" appearance="output" style="left:357px; top:177px; width:266px; height:19px; "/>
- </group>
- <group id="group4" style="left:0px; top:0px; width:510px; height:740px; ">
- <datagrid id="grd_list" nodeset="/root/main/req_info/req_pat_list" caption="상태^formcd^작성일^등록번호^환자명^발행^처방^유형^차^보훈^청구^개인^무료사본^회송번호^seqno^formrecseq^formcd^입/외^병동명^병실^진료과^작성과^진료의사" colsep="^" colwidth="46, 8, 78, 56, 45, 40, 43, 37, 27, 39, 38, 39, 61, 166, 51, 100, 100, 50, 100, 100, 80, 80, 69" dataheight="25" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:181px; width:505px; height:386px; ">
- <col disabled="true" ref="stat" type="combo">
- <choices>
- <item>
- <label>미해결</label>
- <value>1</value>
- </item>
- <item>
- <label>삭제</label>
- <value>9</value>
- </item>
- <item>
- <label>완료</label>
- <value>3</value>
- </item>
- <item>
- <label>전송완료</label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col ref="formcd" visibility="hidden"/>
- <col disabled="true" ref="formrecdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="issflag"/>
- <col ref="prcpcds"/>
- <col ref="insukind" style="color:#000000; "/>
- <col ref="chayn" style="font-weight:bold; color:#ff0000; text-align:center; "/>
- <col ref="boyn" style="font-weight:bold; color:#ff0000; text-align:center; "/>
- <col ref="chungyn" visibility="visible" style="text-align:center; "/>
- <col ref="pyn" style="text-align:left; "/>
- <col ref="saboncnt" style="text-align:left; "/>
- <col ref="reqaseqno" format="99999999-999999-99999"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="formrecseq" visibility="hidden"/>
- <col ref="formcd"/>
- <col ref="chosflag" style="text-align:center; "/>
- <col ref="wardnm"/>
- <col ref="roomcd"/>
- <col ref="orddeptnm" style="text-align:center; "/>
- <col ref="formrecdeptnm" style="text-align:center; "/>
- <col ref="orddrnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGrdClick();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_list.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if(event.button == 3){
- fPop();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:5px; top:161px; width:152px; height:15px; ">의뢰환자 리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:176px; x2:505px; y2:176px; "/>
- <group id="grp_sea" style="left:0px; top:5px; width:505px; height:145px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:504px; height:140px; "/>
- <caption id="caption3" class="search_name" style="left:10px; top:10px; width:91px; height:17px; ">조회기간 :</caption>
- <caption id="caption5" class="search_no_b" style="left:345px; top:10px; width:12px; height:17px; ">~</caption>
- <input id="ipt_fromdd" ref="/root/send/search/fromdd" class="input_search" inputtype="date" style="left:240px; top:10px; width:100px; height:19px; text-align:center; "/>
- <input id="ipt_todd" ref="/root/send/search/todd" class="input_search" inputtype="date" style="left:360px; top:10px; width:100px; height:19px; text-align:center; "/>
- <button id="btn_search" class="btn1_letter2" style="left:432px; top:115px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !fCheckDateSend() ) return; //필수 저장여부 체크
-
- fSearch();
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:10px; top:62px; width:91px; height:17px; ">진료과 :</caption>
- <caption id="caption10" class="search_name" style="left:285px; top:62px; width:91px; height:17px; ">담당의사 :</caption>
- <caption id="caption11" class="search_name" style="left:10px; top:114px; width:91px; height:17px; ">상태구분 :</caption>
- <select1 id="cmb_orddeptcd" ref="/root/send/search/orddeptcd" class="combo_search" appearance="minimal" style="left:125px; top:62px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/dept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fDoctSerach();
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_orddrid" ref="/root/send/search/orddrid" class="combo_search" appearance="minimal" style="left:380px; top:62px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/doctlist/medispcl/">
- <label ref="doctnm"/>
- <value ref="doctid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="rdo_stat" ref="/root/send/search/stat" appearance="full" cols="5" rows="1" overflow="visible" style="left:125px; top:115px; width:280px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>%</value>
- </item>
- <item>
- <label>미해결</label>
- <value>1</value>
- </item>
- <item>
- <label>삭제</label>
- <value>9</value>
- </item>
- <item>
- <label>완료</label>
- <value>3</value>
- </item>
- <item>
- <label>전송완료</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_pid" ref="/root/send/search/pid" class="input_search" maxlength="10" style="left:125px; top:35px; width:120px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == 13 && ipt_pid.currentText.length> 0)
- {
- inputEnterKey("btn_pat", "DOMActivate");
-
- }
- ]]>
- </script>
- </input>
- <caption id="caption23" class="search_name" style="left:10px; top:36px; width:95px; height:17px; ">등록번호 :</caption>
- <button id="btn_pat" class="icon_search" style="left:249px; top:35px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPatPopUp();
- ]]>
- </script>
- </button>
- <input id="ipt_hngnm" ref="/root/send/search/hngnm" class="input_search" imemode="hangul" style="left:380px; top:35px; width:120px; height:19px; "/>
- <caption id="caption24" class="search_name" style="left:285px; top:36px; width:80px; height:17px; ">환자명 :</caption>
- <caption id="caption25" class="search_name" style="left:10px; top:88px; width:126px; height:17px; ">전원의뢰병원 :</caption>
- <input id="ipt_rumint" ref="/root/send/search/coophospnm" class="input_search" imemode="hangul" style="left:125px; top:88px; width:120px; height:19px; "/>
- <select1 id="combo5" ref="/root/send/search/dayflag" appearance="minimal" style="left:125px; top:10px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/dayflaglist">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo6" ref="/root/send/search/formcd" appearance="minimal" style="left:260px; top:88px; width:175px; height:19px; ">
- <choices>
- <item>
- <label>전원의뢰</label>
- <value>0000002536</value>
- </item>
- <item>
- <label>진료의뢰</label>
- <value>0900005340</value>
- </item>
- <item>
- <label>응급환자진료의뢰서</label>
- <value>1600018117</value>
- </item>
- <item>
- <label>의료급여의뢰서</label>
- <value>1600017534</value>
- </item>
- <item>
- <label>의료급여회송서</label>
- <value>1400015254</value>
- </item>
- </choices>
- </select1>
- </group>
- <textarea id="tar_remfact" ref="/root/main/req_pat_info/patinfo/remfact" imemode="hangul" maxlength="1000" style="left:0px; top:665px; width:505px; height:70px; "/>
- <line id="line10" class="line_1" style="x1:0px; y1:570px; x2:505px; y2:570px; "/>
- <button id="button3" class="btn2_letter2" style="left:445px; top:155px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReqAgnPatDelete();
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="input6" ref="/root/main/req_pat_info/patinfo/referdd" class="input_default" inputtype="date" style="left:78px; top:575px; width:100px; height:19px; "/>
- <input id="input7" ref="/root/main/req_pat_info/patinfo/fcontact" style="left:93px; top:599px; width:410px; height:19px; "/>
- <caption id="caption35" class="cell_1" style="left:0px; top:575px; width:75px; height:20px; ">전원의뢰일</caption>
- <caption id="caption36" class="cell_1" style="left:185px; top:575px; width:70px; height:20px; ">퇴원예정일</caption>
- <caption id="caption37" class="cell_1" style="left:0px; top:599px; width:90px; height:20px; ">보호자 연락처</caption>
- <caption id="caption38" class="cell_1" style="left:0px; top:622px; width:100px; height:20px; ">주치의확인여부</caption>
- <input id="input8" ref="/root/main/req_pat_info/patinfo/hopedschdd" class="input_default" inputtype="date" style="left:260px; top:575px; width:100px; height:19px; "/>
- <bool id="bool1" checkvalue="Y,N" ref="/root/main/req_pat_info/patinfo/drcnfmyn" style="left:99px; top:620px; width:24px; height:21px; "/>
- <caption id="caption27" class="cell_1" style="left:129px; top:622px; width:50px; height:20px; ">cd체크</caption>
- <caption id="caption39" class="cell_1" style="left:315px; top:622px; width:75px; height:20px; ">결과지체크</caption>
- <caption id="caption40" class="cell_1" style="left:210px; top:622px; width:67px; height:20px; ">기록물체크</caption>
- <bool id="bool2" checkvalue="Y,N" ref="/root/main/req_pat_info/patinfo/cdchk" style="left:180px; top:620px; width:24px; height:21px; "/>
- <bool id="bool3" checkvalue="Y,N" ref="/root/main/req_pat_info/patinfo/recordchk" style="left:280px; top:620px; width:24px; height:21px; "/>
- <bool id="bool4" checkvalue="Y,N" ref="/root/main/req_pat_info/patinfo/resultchk" style="left:390px; top:620px; width:24px; height:21px; "/>
- <caption id="caption41" class="cell_1" style="left:0px; top:645px; width:63px; height:20px; ">전원병원</caption>
- <button id="button10" class="btn2_letter2" disabled="false" style="left:460px; top:575px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/main/req_pat_info/patinfo/pid") == "") {
- messageBox("저장하고자 하는 환자를", "C002");
- return false;
- }
- fSave();
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="input9" ref="/root/main/req_pat_info/patinfo/transhosp1" style="left:65px; top:645px; width:140px; height:19px; "/>
- <input id="input10" ref="/root/main/req_pat_info/patinfo/transhosp2" style="left:212px; top:645px; width:140px; height:19px; "/>
- <input id="input11" ref="/root/main/req_pat_info/patinfo/transhosp3" style="left:359px; top:645px; width:143px; height:19px; "/>
- </group>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:757px; width:1245px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1171px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !fCheckDate() ) return; //필수 저장여부 체크
-
- fSave();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:385px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReplcheck();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button6" class="btn4_letter2" style="left:1112px; top:3px; width:56px; height:22px; ">
- <caption>전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
-
- if (model.getValue("/root/main/req_pat_info/patinfo/pid") == "") {
- messageBox("환자가 선택되지 않았습니다", "I");
- return;
- }
-
-
- var stat = model.getValue("/root/main/req_pat_info/patinfo/stat");
-
-
- var lrow = grd_list.row;
- var chayn = model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/chayn");
-
- if (chayn == "Y") {
- messageBox("차상위 환자는 전송할 수 없습니다","I");
- return;
- }
-
- var boyn = model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/boyn");
-
- if (boyn == "Y") {
- messageBox("보훈 환자는 전송할 수 없습니다","I");
- return;
- }
-
- var insukind = model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/insukind");
-
- if (insukind != "건보") {
- messageBox("건보 유형 환자 이외는 전송할 수 없습니다","I");
- return;
- }
-
- if (!(stat == "3" || stat == "4")) {
- messageBox("전송할 수 있는 상태가 아닙니다","I");
- return;
- }
-
- if (model.getValue("/root/main/req_pat_info/patinfo/disphospnm") == "") {
- messageBox("전원의뢰병원이 선택되지 않았습니다", "I");
- return false;
- }
-
- if (model.getValue("/root/main/req_pat_info/patinfo/ncrsn") == "") {
- messageBox("비임상적사유가 선택되지 않았습니다", "I");
- return false;
- }
-
-
- if (model.getValue("/root/main/req_pat_info/patinfo/ncrsn") == "") {
- messageBox("비임상적사유가 선택되지 않았습니다", "I");
- return false;
- }
-
- if (model.getValue("/root/main/req_pat_info/patinfo/crsn") == "") {
- messageBox("임상적사유가 선택되지 않았습니다", "I");
- return false;
- }
-
- if (model.getValue("/root/main/req_pat_info/patinfo/reqaflag") == "") {
- messageBox("회송유형 선택되지 않았습니다", "I");
- return false;
- }
-
- if (model.getValue("/root/main/req_pat_info/patinfo/enddd") == "") {
- messageBox("전원의뢰완료일이 선택되지 않았습니다", "I");
- return false;
- }
-
- //if (bool5.value == "Y") {
- var hiratrans = model.getValue("/root/send/hiratrans");
- if (hiratrans == "Y") {
- if ("6" != messageBox("심평원 연계하여 자동전송하시겠습니까?","Q") ) {
- return false;
- }
- if(fHira_Trans() == false) {
- return false;
- }
- }
-
- // 심평원 연계 성공 시 이후 트랜잭션 수행
- fTrans();
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button7" class="btn4_letter4" style="left:595px; top:3px; width:80px; height:22px; ">
- <caption>전송취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (model.getValue("/root/main/req_pat_info/patinfo/pid") == "") {
- messageBox("환자가 선택되지 않았습니다", "I");
- return;
- }
-
- var stat = model.getValue("/root/main/req_pat_info/patinfo/stat");
-
-
- if (stat != "4") {
- messageBox("전송취소 할 수 있는 상태가 아닙니다","I");
- return;
- }
-
- if ( "6" != messageBox("전송취소 하시겠습니까","Q") ) {
- return;
- }
-
- fCnclTrans();
- model.refresh();
- ]]>
- </script>
- </button>
- <select id="chk_hirayn" ref="/root/send/hiratrans" overflow="visible" appearance="full" style="left:1005px; top:5px; width:85px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>심평원전송</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="chk_hieconsent" ref="/root/init/consentinfo/hieconsent/hieconsentyn" overflow="visible" appearance="full" style="left:685px; top:5px; width:105px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>HIE동의체크</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- //var hardcd = model.getValue("/root/temp/formhardcd_6009/hardcd/hardcd");
- var hardcd = chk_hieconsent.value;
- var hieconsentyn;
-
- if(!isNull(hardcd) && hardcd == "Y"){
- chk_hieconsent.attribute("background-color") = "white";
- hieconsentyn = "Y";
-
- model.setValue("/root/send/hieconsent/hieconsentyn",hieconsentyn);
- submit("TXARC01404");
- }else{
-
- var rtn = messageBox("HIE동의체크 해제 시 원무재증명 창구 재로그인이 필요합니다.\n\n", "Q003");
- if(rtn != 6){
- chk_hieconsent.value = "Y";
- return;
- }
-
- chk_hieconsent.attribute("background-color") = "yellow";
- hieconsentyn = "N";
- model.setValue("/root/send/hieconsent/hieconsentyn",hieconsentyn);
- submit("TXARC01404");
-
-
-
-
- }
-
-
-
-
- model.refresh();
-
-
-
- ]]>
- </script>
- </select>
- </group>
- <button id="button8" class="btn2_letter4" disabled="false" visibility="visible" style="left:520px; top:760px; width:64px; height:19px; ">
- <caption>미리보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var currow = grd_list.row;
- if(currow < 0){
- return;
- }
- var ivwCtrl = iviewer1.window.document.controls("ivw_base");
- var formcd = model.getValue("/root/main/req_info/req_pat_list["+ currow +"]/formcd");
-
- //서식 두번째 코드가 8인 경우,
- if(formcd.charAt(1)=="8")
- {
- formcd = formcd.substr(7, 3);
- rexid = "RFM" + "80" + formcd + "00";
- }
- else if (formcd.charAt(0) == "1") // knuh_20110118 추가
- {
- var precd = formcd.substr(0, 2);
- formcd = formcd.substr(5, 5);
- rexid = "RFM" + precd + formcd;
- }
- else
- {
- formcd = formcd.substr(5, 5);
- rexid = "RFM" + formcd + "00";
- }
-
- copyNodeset("/root/main/recinfo", "/root/main/recinfo", "replace", model, ivwCtrl.model); //서식지 정보 설정
- model.makeValue("/root/hidden/docinfo/signimge", ivwCtrl.model.getValue("/root/hidden/docinfo/signimge")); //서식서명이미지 설정
-
- fDoMakeProfPrntInfo(ivwCtrl);
-
- exeReportPreview(rexid, "XMLSTR"); //미리보기만 가능
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|