1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471 |
- <?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:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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/>
- <ssnnumber/>
- </cond>
- <adddata>outflag▦outreqcd▦outreqflag▦outreqnm▦remcnts▩</adddata>
- <reqdocu/>
- <tmp/>
- </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/>
- <basepatinfo/>
- </req_pat_info>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <popupendflag/>
- <hospinfo>
- <hospinfolist/>
- </hospinfo>
- <hospflag/>
- <reqpopupflag/>
- <reqpopup>
- <reqpopuplist/>
- </reqpopup>
- <recinfo/>
- <sinfo/>
- </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>
- </init>
- <temp>
- <formhardcd/>
- </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="TRARC01411" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/req_info"/>
- <submission id="TRARC01412" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/req_pat_info"/>
- <submission id="TXARC01403" 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="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"/>
- </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); // 전원의뢰팝업 사용여부
-
- 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";
- submit("TRARC01411", false);
-
- }
- // 저장전 필수 체크
- function fCheckDate()
- {
- if (model.getValue("/root/main/req_pat_info/basepatinfo/pid") == "") {
- messageBox("저장하고자 하는 환자를", "C002");
- return false;
- }
-
- var hopedd = model.getValue("/root/main/req_pat_info/patinfo/hopedd");
- var hopetm = model.getValue("/root/main/req_pat_info/patinfo/hopetm");
-
- if ( hopedd != "" ) {
- if ( hopetm == "" ) {
- messageBox("예약희망시분을 입력하시기 바랍니다", "C");
- 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 fSetDefault() {
- model.setValue("/root/main/req_pat_info/patinfo/reqacnfmnm",getUserInfo("usernm"));
- var ioflag = model.getValue("/root/main/req_info/req_pat_list[" + grd_list.row + "]/chosflag");
-
- if (ioflag == "I") {
- var bizflag = "I";
- }
- else {
- var bizflag = "O";
- }
-
- model.setValue("/root/main/req_pat_info/patinfo/bizflag",bizflag);
- model.refresh();
-
- }
-
- // 저장
- function fSave()
- {
-
- model.removeNodeset("/root/send/savedata");
- model.resetInstanceNode("/root/send/savedata");
-
- copyNodeset("/root/send/savedata/reqainfo","/root/main/req_pat_info/patinfo");
- // model.removeNodeset("/root/send/savedata/rsltlist");
- // model.removeNodeset("/root/send/savedata/prcplist");
- // model.removeNodeset("/root/send/savedata/dglist");
- //
- // if ( model.getValue("/root/send/tmp/rsltlist") != "") {
- // model.makeValue("/root/send/savedata/rsltlist", model.getValue("/root/send/tmp/rsltlist"));
- // }
- // if ( model.getValue("/root/send/tmp/prcplist") != "") {
- // model.makeValue("/root/send/savedata/prcplist", model.getValue("/root/send/tmp/prcplist"));
- // }
- // if ( model.getValue("/root/send/tmp/dglist") != "") {
- // model.makeValue("/root/send/savedata/dglist", model.getValue("/root/send/tmp/dglist"));
- // }
-
- if (submit("TXARC01403", false) == true)
- {
- 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()
- {
- clearParameter("SPARH00510_RETURN_organizationoid");
- clearParameter("SPARH00510_RETURN_organizationid");
- clearParameter("SPARH00510_RETURN_organizationname");
- clearParameter("SPARH00510_RETURN_telecom");
- clearParameter("SPARH00510_RETURN_postalcode");
- clearParameter("SPARH00510_RETURN_address");
- clearParameter("SPARH00510_RETURN_departmentcode");
- clearParameter("SPARH00510_RETURN_departmentname");
- clearParameter("SPARH00510_RETURN_flag");
-
- modal("SPARH00510", 1,10, 10, "SPARH00200", "", "");
-
-
- model.makeValue("/root/main/req_pat_info/patinfo/organizationname", getParameter("SPARH00510_RETURN_organizationname"));
- model.makeValue("/root/main/req_pat_info/patinfo/organizationid", getParameter("SPARH00510_RETURN_organizationid"));
- model.makeValue("/root/main/req_pat_info/patinfo/departmentname", getParameter("SPARH00510_RETURN_departmentname"));
- model.makeValue("/root/main/req_pat_info/patinfo/departmentcode", getParameter("SPARH00510_RETURN_departmentcode"));
- model.makeValue("/root/main/req_pat_info/patinfo/organizationtelecom", getParameter("SPARH00510_RETURN_telecom"));
- model.makeValue("/root/main/req_pat_info/patinfo/organizationstreetaddress", getParameter("SPARH00510_RETURN_address"));
-
- 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()
- {
- 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.resetInstanceNode("/root/send/cond");
-
- model.makeValue("/root/send/cond/pid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid"));
- model.makeValue("/root/send/cond/orddd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddd"));
- model.makeValue("/root/send/cond/cretno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/cretno"));
- model.makeValue("/root/send/cond/seqno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/seqno"));
- model.makeValue("/root/send/cond/formrecseq", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/formrecseq"));
- model.makeValue("/root/send/cond/orddeptcd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptcd"));
- model.makeValue("/root/send/cond/orddrid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrid"));
- model.makeValue("/root/send/cond/oldyn", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/oldyn"));
- model.makeValue("/root/send/cond/ssnnumber", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/ssnnumber"));
-
-
- //환자기본정보 및 환자의뢰,회송,요약정보 가져오기
- submit("TRARC01412", false);
-
- var enddd = model.getValue("/root/main/req_pat_info/patinfo/enddd");
-
- if ( enddd == "" || enddd == null) {
- model.makeValue("/root/main/req_pat_info/patinfo/enddd",getCurrentDate());
- }
-
- 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/basepatinfo/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");
-
- model.makeValue("/root/send/iemr/pid", pid);
- model.makeValue("/root/send/iemr/docucd", "1100011397");
-
- 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 fTrans() {
-
-
- model.resetInstanceNode("/root/send/savedata");
-
- model.copyNode("/root/send/savedata","/root/main/req_pat_info/patinfo");
-
- model.makeValue("/root/send/savedata/prntflag", "Y");
-
- if (submit("TXARC01403", false) == true)
- {
- fSearch();
- }
- else
- {
- messageBox("전송시 에러", "E");
- }
-
- }
-
- 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 fShowDetl() {
- model.removeNodeset("/root/send/tmp/rsltlist");
- model.removeNodeset("/root/send/tmp/prcplist");
- model.removeNodeset("/root/send/tmp/dglist");
-
- model.makeNode("/root/send/tmp/rsltlist"); // 결과정보
- model.makeNode("/root/send/tmp/prcplist"); // 처방정보
- model.makeNode("/root/send/tmp/dglist"); // 진단정보(HIE)
-
- modal("SPARC01402", "1", "0", "0" ,"SPARC01402", "/root/main/req_pat_info/patinfo", "/root/main/req_pat_info/patinfo");
-
- }
-
- function fPrintOcrConsent(flag) {
-
- // 전자동의서 모듈 호출
- if ( flag == "A" ) {
- // 공통 파라미터 세팅
- setParameter("SSMRC03160_param_instcd", getUserInfo("dutplceinstcd"));
- setParameter("SSMRC03160_param_patid", model.getValue("/root/main/req_pat_info/patinfo/pid"));
- setParameter("SSMRC03160_param_indate", model.getValue("/root/main/req_pat_info/patinfo/orddd"));
- setParameter("SSMRC03160_param_cretno", model.getValue("/root/main/req_pat_info/patinfo/cretno"));
- setParameter("SSMRC03160_param_class", model.getValue("/root/main/req_pat_info/patinfo/ordtype"));
- setParameter("SSMRC03160_param_flag", "G");
- setParameter("SSMRC03160_param_docucd", "1600018717");
- setParameter("SSMRC03160_param_cuser", getUserInfo("userid"));
- modal("SSMRC03160");
- return getParameter("SSMRC03160_param_rtnocrtag");
- }
- else if(flag == "B" ) {
- // 공통 파라미터 세팅
- setParameter("SMARH01100_param_patid", model.getValue("/root/main/req_pat_info/patinfo/pid"));
- setParameter("SMARH01100_param_indate", model.getValue("/root/main/req_pat_info/patinfo/orddd"));
- setParameter("SMARH01100_param_cretno", model.getValue("/root/main/req_pat_info/patinfo/cretno"));
- setParameter("SMARH01100_param_class", model.getValue("/root/main/req_pat_info/patinfo/ordtype"));
- setParameter("SMARH01100_param_formrecseq", model.getValue("/root/main/req_pat_info/patinfo/formrecseq"));
- setParameter("SMARH01100_param_flag", "G");
- modal("SMARH01100");
- }
-
- }
-
- ]]>
- </script>
- <xhtml:body pagewidth="1265" pageheight="820" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:1px; width:230px; height:13px; ">의뢰.회송.진료요약관리</caption>
- <group id="group2" style="left:515px; top:20px; width:725px; height:740px; ">
- <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:210px; top:20px; width:50px; height:23px; vertical-align:middle; ">성명</caption>
- <caption id="caption76" class="cell_1" style="left:5px; top:21px; width:100px; 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; "/>
- <button id="button5" class="icon_search" style="left:335px; top:105px; 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:100px; width:100px; height:23px; vertical-align:middle; ">병원명/부서명</caption>
- <caption id="caption45" class="cell_1" style="left:5px; top:125px; width:100px; height:23px; vertical-align:middle; ">예약희망일시</caption>
- <caption id="caption52" class="cell_1" style="left:530px; top:100px; width:60px; height:23px; vertical-align:middle; ">전화번호</caption>
- <caption id="caption7" class="cell_1" style="left:5px; top:150px; width:100px; height:57px; vertical-align:middle; ">예약관련내용</caption>
- <caption id="caption8" class="cell_1" style="left:210px; 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="line6" class="line_3" style="x1:5px; y1:72px; x2:709px; y2:72px; "/>
- <caption id="caption21" class="tit_2" style="left:5px; top:80px; width:116px; height:13px; ">수신기관정보</caption>
- <line id="line9" class="line_1" style="x1:5px; y1:97px; x2:709px; y2:96px; "/>
- <output id="opt_pid" ref="/root/main/req_pat_info/basepatinfo/pid" class="output_fix" appearance="output" style="left:107px; top:22px; width:100px; height:19px; text-align:center; "/>
- <output id="opt_hngnm" ref="/root/main/req_pat_info/basepatinfo/hngnm" class="output_fix" appearance="output" style="left:262px; top:22px; width:63px; height:19px; "/>
- <output id="opt_age" ref="/root/main/req_pat_info/basepatinfo/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/basepatinfo/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/basepatinfo/orddrnm" class="output_fix" appearance="output" style="left:417px; top:49px; width:70px; height:19px; "/>
- <output id="opt_coophospnm" ref="/root/main/req_pat_info/patinfo/organizationname" class="output_fix" appearance="output" style="left:107px; top:102px; width:143px; height:19px; "/>
- <output id="opt_telno" ref="/root/main/req_pat_info/patinfo/organizationtelecom" class="output_fix" disabled="true" appearance="output" style="left:592px; top:102px; width:118px; height:19px; "/>
- <input id="ipt_enddd" ref="/root/main/req_pat_info/patinfo/enddd" class="input_default" inputtype="date" style="left:307px; top:279px; width:110px; height:19px; "/>
- <line id="line3" class="line_2" style="x1:5px; y1:275px; x2:709px; y2:275px; "/>
- <output id="opt_rumint" ref="/root/main/req_pat_info/patinfo/departmentname" class="output_fix" appearance="output" style="left:355px; top:102px; width:126px; height:19px; "/>
- <caption id="caption29" class="cell_1" style="left:5px; top:277px; width:100px; height:23px; vertical-align:middle; ">본원담당자</caption>
- <input id="input2" ref="/root/main/req_pat_info/patinfo/reqacnfmnm" style="left:107px; top:279px; width:100px; height:19px; "/>
- <caption id="caption30" class="cell_1" style="left:275px; top:126px; width:60px; height:23px; vertical-align:middle; ">진료구분</caption>
- <select1 id="combo1" ref="/root/main/req_pat_info/patinfo/bizflag" appearance="minimal" style="left:337px; top:127px; width:63px; height:19px; ">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </select1>
- <group id="group6" style="left:0px; top:305px; width:720px; height:428px; ">
- <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="button11" class="btn2_letter4" style="left:48px; top:0px; width:64px; height:19px; ">
- <caption>상세정보</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- messageBox("업무정리 후 사용하실 수 있습니다","I");
- return;
- fShowDetl();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter2" style="left:5px; top:0px; width:42px; height:19px; ">
- <caption>확대</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSize();
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption34" class="cell_1" style="left:5px; top:210px; width:100px; height:63px; vertical-align:middle; ">사유</caption>
- <textarea id="input4" ref="/root/main/req_pat_info/patinfo/yeyakdesc" appearance="textarea" style="left:107px; top:149px; width:600px; height:58px; "/>
- <output id="output2" ref="/root/main/req_pat_info/basepatinfo/telecomnumber" class="output_fix" appearance="output" style="left:587px; top:22px; width:123px; height:19px; "/>
- <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/basepatinfo/wardnm" class="output_fix" appearance="output" style="left:559px; top:49px; width:102px; height:19px; "/>
- <output id="output4" ref="/root/main/req_pat_info/basepatinfo/roomcd" class="output_fix" appearance="output" style="left:665px; top:49px; width:45px; height:19px; "/>
- <output id="output1" ref="/root/main/req_pat_info/basepatinfo/gender" class="output_fix" appearance="output" style="left:510px; top:22px; width:44px; height:19px; text-align:center; "/>
- <input id="input1" ref="/root/main/req_pat_info/patinfo/hopedd" class="input_default" inputtype="date" style="left:107px; top:127px; width:100px; height:19px; "/>
- <textarea id="input3" ref="/root/main/req_pat_info/patinfo/reasonforreferral" appearance="textarea" style="left:108px; top:209px; width:600px; height:65px; "/>
- <caption id="caption5" class="cell_1" style="left:327px; top:20px; width:36px; height:23px; vertical-align:middle; ">동의</caption>
- <output id="output5" ref="/root/main/req_pat_info/basepatinfo/consentyn" class="output_fix" appearance="output" style="left:367px; top:22px; width:39px; height:19px; "/>
- <input id="input5" ref="/root/main/req_pat_info/patinfo/hopetm" format="hh:nn" style="left:210px; top:127px; width:59px; height:19px; "/>
- <output id="output6" ref="/root/main/req_pat_info/patinfo/organizationid" class="output_fix" appearance="output" style="left:255px; top:102px; width:74px; height:19px; "/>
- <output id="output7" ref="/root/main/req_pat_info/patinfo/departmentcode" class="output_fix" appearance="output" style="left:484px; top:102px; width:43px; height:19px; "/>
- <output id="output8" ref="/root/main/req_pat_info/patinfo/organizationstreetaddress" class="output_fix" disabled="true" appearance="output" style="left:405px; top:127px; width:305px; height:19px; "/>
- <button id="button3" class="btn2_letter5" style="left:632px; top:75px; width:75px; height:19px; ">
- <caption>기본값세팅</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetDefault();
- ]]>
- </script>
- </button>
- <caption id="caption9" class="cell_1" style="left:423px; top:278px; width:65px; height:23px; vertical-align:middle; ">전송시각</caption>
- <output id="output9" ref="/root/main/req_pat_info/patinfo/prntdt" class="output_fix" format="yyyy-mm-dd hh:nn:ss" appearance="output" style="left:491px; top:279px; width:174px; height:19px; "/>
- </group>
- <group id="group4" style="left:0px; top:20px; width:510px; height:740px; ">
- <datagrid id="grd_list" nodeset="/root/main/req_info/req_pat_list" caption="상태^formcd^발행^발행일^등록번호^환자명^입/외^병동명^병실^진료과^진료의사^ssnnumber^formrecseq^seqno^formcd^동의서" colsep="^" colwidth="46, 8, 48, 78, 56, 45, 50, 4, 4, 80, 69, 13, 165, 100, 74, 100" dataheight="25" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:175px; width:505px; height:464px; ">
- <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 ref="issflag"/>
- <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="chosflag" style="text-align:center; "/>
- <col ref="wardnm" visibility="hidden"/>
- <col ref="roomcd" visibility="hidden"/>
- <col ref="orddeptnm" style="text-align:center; "/>
- <col ref="orddrnm"/>
- <col ref="ssnnumber"/>
- <col ref="formrecseq"/>
- <col ref="seqno"/>
- <col ref="formcd"/>
- <col/>
- <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:156px; width:152px; height:13px; ">환자 리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:172px; x2:505px; y2:172px; "/>
- <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>
- <input id="ipt_fromdd" ref="/root/send/search/fromdd" class="input_search" inputtype="date" style="left:245px; 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:135px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>%</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>
- <select1 id="radio1" ref="/root/send/search/formcd" appearance="full" cols="4" overflow="visible" style="left:10px; top:89px; width:440px; height:19px; border-style:none; ">
- <choices>
- <item>
- <label>진료의뢰</label>
- <value>0900005340</value>
- </item>
- <item>
- <label>회송</label>
- <value>0000002536</value>
- </item>
- <item>
- <label>진료요약(입퇴원요약기록)</label>
- <value>0000000680</value>
- </item>
- <item>
- <label>진료요약(외래)</label>
- <value>0000000002</value>
- </item>
- </choices>
- </select1>
- <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>
- <caption id="caption13" class="search_no_b" style="left:345px; top:10px; width:12px; height:17px; ">~</caption>
- </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:660px; x2:505px; y2:660px; "/>
- <caption id="caption27" class="tit_2" style="left:5px; top:645px; width:126px; height:13px; ">참고사항</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:772px; width:1220px; height:33px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1156px; 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:1097px; 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");
-
-
- if (!(stat == "3" || stat == "4")) {
- messageBox("전송할 수 있는 상태가 아닙니다","I");
- return;
- }
-
- //전송완료
- if ( stat == "4" ) {
- if ("6" != messageBox("전송완료상태입니다 재전송 하시겠습니까?","Q")) {
- return;
- }
- }
- fTrans();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter2" visibility="hidden" style="left:690px; top:5px; 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;
- }
- //환자등록 및 동의여부파악
- //fConsentChk();
-
- fPrintOcrConsent("A");
-
- //fSendConsentInfo();
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter5" style="left:805px; top:4px; width:92px; height:22px; ">
- <caption>동의.철회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (model.getValue("/root/main/req_pat_info/patinfo/pid") == "") {
- messageBox("환자가 선택되지 않았습니다", "I");
- return;
- }
- //환자등록 및 동의여부파악
- //fConsentChk();
-
- fPrintOcrConsent("B");
-
- //fSendConsentInfo();
-
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <button id="button8" class="btn2_letter4" disabled="false" visibility="hidden" style="left:520px; top:780px; 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>
- <button id="button7" class="btn2_letter2" disabled="false" style="left:460px; top:660px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/main/req_pat_info/basepatinfo/pid") == "") {
- messageBox("저장하고자 하는 환자를", "C002");
- return false;
- }
- fSave();
- model.refresh();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|