1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>의뢰환자등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <patient>
- <pid/>
- <sex/>
- <age/>
- <hngnm/>
- <engnm/>
- <rrgstno1/>
- <rrgstno2/>
- <brthdd/>
- <hometel/>
- <mpphontel/>
- <zipcd1/>
- <zipcd2/>
- <addr/>
- <detladdr/>
- <forgeryn/>
- <nati/>
- <psptno/>
- <religncd/>
- </patient>
- <reqinfo>
- <pid/>
- <coophospcd/>
- <coophospnm/>
- <orddd/>
- <orddeptcd/>
- <depthngnm/>
- <orddrid/>
- <usernm/>
- <emailnm/>
- <drnm/>
- <chospath/>
- <fsexamflag/>
- <cptype/>
- <reqtype/>
- <reqpath/>
- <replmthd/>
- <reqdd/>
- <repltype>1</repltype>
- <rgstdd/>
- <endtype/>
- <replflag/>
- <endflag/>
- <cc/>
- <rem/>
- <cretno/>
- <reqseqno/>
- <hospflag/>
- <status/>
- <coopdrcd/>
- <acptseqno/>
- <fromdd/>
- <hospgrade/>
- <clsmatyn/>
- <hosptelno/>
- <hospfaxno/>
- <fstprntdt/>
- <indschprntdt/>
- <reqaprntdt/>
- <reqaenddd/>
- <reqahospnm/>
- <status/>
- <enddd/>
- <reqagntype/>
- <staffid/>
- <staffnm/>
- <mpphontel/>
- <smsmsgkey/>
- <hieyn/>
- <msg/>
- <smsdd/>
- <reqpseqno/>
- <outrecyn/>
- <outcdyn/>
- <outcnstyn/>
- <outcmtyn/>
- </reqinfo>
- <patreq>
- <reqlist>
- <reqdd/>
- <depthngnm/>
- <usernm/>
- <coophospnm/>
- <drnm/>
- <chospath/>
- <fsexamflag/>
- <reqtype/>
- <cptype/>
- <reqpath/>
- <replmthd/>
- <orddd/>
- <repltype/>
- <reqagntype/>
- <rgstdd/>
- <endflag/>
- <replflag/>
- <endtype/>
- <enddd/>
- <cc/>
- <rem/>
- <orddrid/>
- <emailid/>
- <orddeptcd/>
- <coophospcd/>
- <emailaddr/>
- <coopdrcd/>
- <cretno/>
- <acptseqno/>
- <reqseqno/>
- <fromdd/>
- <hospgrade/>
- <clsmatyn/>
- <hosptelno/>
- <hospfaxno/>
- <fstprntdt/>
- <indschprntdt/>
- <reqaprntdt/>
- <reqahospnm/>
- <pid/>
- <status/>
- <staffid/>
- <staffnm/>
- <outrecyn/>
- <outcdyn/>
- </reqlist>
- <patlist>
- <pid/>
- <sex/>
- <age/>
- <hngnm/>
- <engnm/>
- <rrgstno1/>
- <rrgstno2/>
- <brthdd/>
- <hometel/>
- <mpphontel/>
- <zipcd1/>
- <zipcd2/>
- <addr/>
- <detladdr/>
- <forignyn/>
- <nati/>
- <psptno/>
- <religncd/>
- <orddd/>
- <orddeptcd/>
- <depthngnm/>
- <orddrid/>
- <usernm/>
- <cretno/>
- </patlist>
- <otptlist>
- <orddd/>
- <ordtm/>
- <orddeptnm/>
- <orddrnm/>
- <stat/>
- <fsexamflagnm/>
- <insukindnm/>
- <reqdocuyn/>
- <orddeptcd/>
- <orddrid/>
- <cretno/>
- <acptseqno/>
- <fsexamflagnm/>
- <fstacptdd/>
- <rsrvflag/>
- <pid/>
- </otptlist>
- <inptlist>
- <indd/>
- <intm/>
- <orddeptnm/>
- <atdoctnm/>
- <wardnm/>
- <roomcd/>
- <dschdd/>
- <dschtm/>
- <yn/>
- <mskind/>
- <orddeptcd/>
- <atdoctid/>
- <cretno/>
- <acptseqno/>
- <pid/>
- <wardcd/>
- <ordtype/>
- </inptlist>
- <acptlist>
- <pid/>
- <orddd/>
- <orddeptcd/>
- <orddrid/>
- <fsexamflag/>
- <rsrvflag/>
- <onestop/>
- <cretno/>
- <acptseqno/>
- <fstacptdd/>
- </acptlist>
- <diaglist/>
- </patreq>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <paminfo>
- <list/>
- </paminfo>
- <popupendflag/>
- <hospinfo>
- <hospinfolist/>
- </hospinfo>
- <hospflag/>
- <listinfo>
- <diaglist>
- <diagcd/>
- <diaghngnm/>
- <diagengnm/>
- <orddd/>
- <estmexptyn/>
- </diaglist>
- <doctreqlist>
- <lastformrecdd/>
- <prntdt/>
- <orddeptnm/>
- <orddrnm/>
- </doctreqlist>
- <nursereqlist>
- <lastformrecdd/>
- <prntdt/>
- <orddeptnm/>
- <orddrnm/>
- </nursereqlist>
- <repllist>
- <replyn/>
- <reqayn/>
- <reqcyn/>
- </repllist>
- </listinfo>
- <reqexist>
- <exist>
- <existyn/>
- </exist>
- </reqexist>
- <userinfo>
- <userid/>
- <usernm/>
- </userinfo>
- </main>
- <hidden>
- <smsdata/>
- </hidden>
- <send>
- <reqdata/>
- <doctor/>
- <cond>
- <pid/>
- <orddd/>
- <cretno/>
- <acptseqno/>
- </cond>
- <savedata/>
- <reqcond/>
- <sms>
- <req>
- <pid/>
- <instcd/>
- <reqdd/>
- <reqseqno/>
- </req>
- <smsdata/>
- </sms>
- <search/>
- </send>
- <init>
- <nati>
- <P0353/>
- </nati>
- <religncd>
- <P0157/>
- </religncd>
- <dept/>
- <doctlist>
- <medispcl>
- <doctid/>
- <doctnm/>
- </medispcl>
- <atdoct>
- <doctid/>
- <doctnm/>
- </atdoct>
- </doctlist>
- <cptype>
- <A0420/>
- </cptype>
- <fsexamflag>
- <P0021/>
- </fsexamflag>
- <reqtype>
- <A0418/>
- </reqtype>
- <replmthd>
- <A0422/>
- </replmthd>
- <reqpath>
- <A0421/>
- </reqpath>
- <repltype>
- <A0423/>
- </repltype>
- <endflag>
- <A0424/>
- </endflag>
- <endtype>
- <A0425/>
- </endtype>
- <hospgrade>
- <A0429/>
- </hospgrade>
- <replinfo>
- <replseqno/>
- <fstyn/>
- </replinfo>
- <reqagntype>
- <A0583/>
- </reqagntype>
- <replflag>
- <A0636/>
- </replflag>
- <hardcd/>
- </init>
- <temp>
- </temp>
- <tmp>
- <reqinfo/>
- </tmp>
- <baseinfo/>
- </root>
- </instance>
- <submission id="TRZBP00102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRARC01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/doctor" resultref="/root/init/doctlist"/>
- <submission id="TRARC00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/patreq"/>
- <submission id="TXARC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root"/>
- <submission id="TXARC00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sms/req" resultref="/root/temp"/>
- <submission id="TRARC02513" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/baseinfo"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fCmbSetting();
- fInit();
- ]]>
- </script>
- <submission id="TRARC00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqcond" resultref="/root/main/listinfo"/>
- <submission id="TRARC00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/reqexist"/>
- <submission id="TRMMB04103" mediatype="application/x-www-form-urlencoded" method="post"/>
- <script type="javascript" ev:event="xforms-close">
- <![CDATA[
- if ( checkOpener() ) {
- //var openuid = getOpenerUID();
- //alert(openuid);
- curEmrRecObj = getOpenWindow("SMARC00101"); //활성화된 진료기록 화면 object loading
-
- if (curEmrRecObj != null)
- {
- opener.javascript.fSearch();
- opener.model.refresh();
- }
- }
-
- ]]>
- </script>
- </model>
- </xhtml:head>
- <script src="../../../com/commonweb/js/common.js" type="javascript"/>
- <script src="../../../com/basiccodeweb/js/ZBC001.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="../../../ast/soclworkweb/js/AWMCommon.js" type="javascript"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script src="../../../com/departmentcodeweb/js/common.js" type="javascript"/>
- <script src="../../../com/departmentcodeweb/js/ZSD001.js" type="javascript"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../com/shortmsgweb/js/ZMS001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript">
- <![CDATA[
-
- var gdutplceinstcd = getUserInfo("dutplceinstcd");
-
- // 콤보 초기값 셋팅
- function fCmbSetting()
- {
- // 진료과
- //var instcd = "012";
- var instcd = getUserInfo("dutplceinstcd");
- 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);
-
- fDoctSerach();
-
- // 공통코드 목록 가져오기/root/main/reqinfo
- zbcfGetCodeList(new Array("P0353", "P0157", "A0420", "P0021", "A0418", "A0422", "A0421", "A0423", "A0424", "A0425", "A0429","A0583","A0636"),
- new Array("/root/init/nati", "/root/init/religncd", "/root/init/cptype", "/root/init/fsexamflag", "/root/init/reqtype", "/root/init/replmthd", "/root/init/reqpath", "/root/init/repltype", "/root/init/endflag", "/root/init/endtype", "/root/init/hospgrade","/root/init/reqagntype", "/root/init/replflag") , true);
-
-
- // One Stop 유형
- addComboItem("cmb_cptype", "해당 없슴", "", "above");
-
- // knuh_20101228_start 의료협력부서 가져옴
- mmbfGetHardCodeInfo("/root/send/harddatadept", "/root/init/hardcd", 9915);
-
- }
-
- // 화면 오픈시
- function fInit() {
-
- mmbfGetHardCodeInfo("/root/send/reqdata", "/root/init/aformcd", 1310); //타병원
- mmbfGetHardCodeInfo("/root/send/reqdata", "/root/init/bformcd", 5561); //개인정보
-
- if (gdutplceinstcd == "031") {
- button8.attribute("visibility") = "visible";
- button9.attribute("visibility") = "visible";
- }
-
- model.removeNodeset("/root/main/patreq/reqlist");
- model.resetInstanceNode("/root/main/reqinfo");
- model.removeNodeset("/root/main/listinfo/diaglist");
- model.removeNodeset("/root/main/listinfo/doctreqlist");
- model.removeNodeset("/root/main/listinfo/nursereqlist");
-
- //상단 환자 정보 가져오기
- model.removeNodeset("/root/main/paminfo");
- model.makeNode("/root/main/paminfo");
-
-
- var replseqno = opener.javascript.getParameter("replseqno");
- var pid = opener.javascript.getParameter("pid");
- var fstyn = opener.javascript.getParameter("fstyn");
-
- // knuh_20101228_박성호_start
- var orddd = opener.javascript.getParameter("orddd");
- var orddeptcd = opener.javascript.getParameter("orddeptcd");
- var orddrid = opener.javascript.getParameter("orddrid");
- // knuh_20101228_end
-
- model.resetInstanceNode("/root/init/replinfo");
-
- model.setValue("/root/init/replinfo/replseqno", replseqno);
- model.setValue("/root/init/replinfo/fstyn", fstyn); // N인 경우만 회신서에 업데이트(의뢰건과 회신건 맵핑)
-
- //alert(pid);
- //alert(isNull(pid));
- if (isNull(pid) == false)
- {
- model.setValue("/root/main/patient/pid", pid);
- model.resetInstanceNode("/root/send/cond");
- // 환자정보, 진료내역, 의뢰내역
- model.setValue("/root/send/cond/pid", pid);
- //model.setValue("/root/send/cond/orddd", model.getValue("/root/main/paminfo/list/orddd"));
- //model.setValue("/root/send/cond/cretno", model.getValue("/root/main/paminfo/list/cretno"));
- //model.setValue("/root/send/cond/acptseqno", model.getValue("/root/main/paminfo/list/acptseqno"));
-
- // 조회
- fSearch();
-
- // KNUH_20101228_박성호_start 원무 접수에서 open 한 경우 등록번호, 진료일자, 진료과 셋팅
- // 원무 등록에서 call 한 경우
- if (fstyn == "P")
- {
- model.setValue("/root/main/reqinfo/orddd", orddd);
- model.setValue("/root/main/reqinfo/orddeptcd", orddeptcd);
-
- model.setValue("/root/main/reqinfo/orddrid", orddrid);
- }
- // knuh_20101228_end
-
- }
- else
- {
- var node = getGlobalVariable("paminfo");
- setCSVToNode("/root/main/paminfo", node);
-
- //상단 정보 있는지 유무 체크
- if(node != "")
- {
- model.setValue("/root/send/cond/pid", model.getValue("/root/main/paminfo/list/pid"));
- model.setValue("/root/send/cond/orddd", model.getValue("/root/main/paminfo/list/orddd"));
- model.setValue("/root/send/cond/cretno", model.getValue("/root/main/paminfo/list/cretno"));
- model.setValue("/root/send/cond/acptseqno", model.getValue("/root/main/paminfo/list/acptseqno"));
-
- //alert(model.getValue("/root/main/paminfo/list/pid"));
-
- // 조회
- fSearch();
-
- }
- }
- model.setFocus("ipt_pid");
- model.refresh();
- }
-
- // 조회
- function fSearch()
- {
- // 조회전에 조회조건을 셋팅할 것(pid, orddd, cretno, acptseqno)
- // 환자정보, 진료내역, 의뢰내역
- model.resetInstanceNode("/root/main/reqinfo");
- model.removeNodeset("/root/main/listinfo/diaglist");
- model.removeNodeset("/root/main/listinfo/doctreqlist");
- model.removeNodeset("/root/main/listinfo/nursereqlist");
- model.removenode("/root/temp/reqlistrow"); // 141002 - AYS
-
- submit("TRARC00102", false);
-
- opt_fstprntdt.disabled = true;
- opt_indschprntdt.disabled = true;
- if (model.instances(0).selectNodes("/root/main/patreq/reqlist").length > 0){
- fPatientSet();
- model.setValue("/root/main/reqinfo/status",'i');
- }
- else
- { // 의뢰내역이 없는경우
- // 환자정보 셋팅
- fPatientSet();
-
- // 접수정보 셋팅
- fAcptSet();
-
- // Default값 셋팅
- fDefaultSet();
-
- //등록 status설정
- model.setValue("/root/main/reqinfo/status",'i');
- }
-
- }
- // 환자 기본정보 setting
- function fPatientSet()
- {
- model.setValue("/root/main/patient/pid", model.getValue("/root/main/patreq/patlist/pid"));
- model.setValue("/root/main/patient/sex", model.getValue("/root/main/patreq/patlist/sex"));
- model.setValue("/root/main/patient/age", model.getValue("/root/main/patreq/patlist/age"));
- model.setValue("/root/main/patient/hngnm", model.getValue("/root/main/patreq/patlist/hngnm"));
- model.setValue("/root/main/patient/engnm", model.getValue("/root/main/patreq/patlist/engnm"));
- model.setValue("/root/main/patient/rrgstno1", model.getValue("/root/main/patreq/patlist/rrgstno1"));
- model.setValue("/root/main/patient/rrgstno2", model.getValue("/root/main/patreq/patlist/rrgstno2"));
- model.setValue("/root/main/patient/brthdd", model.getValue("/root/main/patreq/patlist/brthdd"));
- model.setValue("/root/main/patient/hometel", model.getValue("/root/main/patreq/patlist/hometel"));
- model.setValue("/root/main/patient/mpphontel", model.getValue("/root/main/patreq/patlist/mpphontel"));
- model.setValue("/root/main/patient/zipcd1", model.getValue("/root/main/patreq/patlist/zipcd1"));
- model.setValue("/root/main/patient/zipcd2", model.getValue("/root/main/patreq/patlist/zipcd2"));
- model.setValue("/root/main/patient/addr", model.getValue("/root/main/patreq/patlist/addr"));
- model.setValue("/root/main/patient/detladdr", model.getValue("/root/main/patreq/patlist/detladdr"));
- model.setValue("/root/main/patient/forgeryn", model.getValue("/root/main/patreq/patlist/forgeryn"));
- model.setValue("/root/main/patient/nati", model.getValue("/root/main/patreq/patlist/nati"));
- model.setValue("/root/main/patient/psptno", model.getValue("/root/main/patreq/patlist/psptno"));
- model.setValue("/root/main/patient/religncd", model.getValue("/root/main/patreq/patlist/religncd"));
-
- // knuh_20101228_박성호_start
- model.setValue("/root/main/reqinfo/pid", model.getValue("/root/main/patreq/patlist/pid"));
- }
-
- // 접수내역 셋팅
- function fAcptSet()
- {
- // 접수내역 셋팅
- model.setValue("/root/main/reqinfo/orddd", model.getValue("/root/main/patreq/acptlist/orddd"));
- model.setValue("/root/main/reqinfo/orddeptcd", model.getValue("/root/main/patreq/acptlist/orddeptcd"));
- model.setValue("/root/main/reqinfo/depthngnm", model.getValue("/root/main/patreq/acptlist/orddeptnm"));
-
- fDoctSerach();
-
- model.setValue("/root/main/reqinfo/orddrid", model.getValue("/root/main/patreq/acptlist/orddrid"));
- model.setValue("/root/main/reqinfo/usernm", model.getValue("/root/main/patreq/acptlist/orddrnm"));
- model.setValue("/root/main/reqinfo/cretno", model.getValue("/root/main/patreq/acptlist/cretno"));
- model.setValue("/root/main/reqinfo/acptseqno", model.getValue("/root/main/patreq/acptlist/acptseqno"));
- model.setValue("/root/main/reqinfo/fsexamflag", model.getValue("/root/main/patreq/acptlist/fsexamflag"));
-
- // knuh_20101228_박성호_start
- //model.setValue("/root/main/reqinfo/pid", model.getValue("/root/main/patreq/acptlist/pid"));
- model.setValue("/root/main/reqinfo/pid", model.getValue("/root/main/patreq/patlist/pid"));
-
- // 예약구분에 따라
- var rsrvflag = model.getValue("/root/main/patreq/acptlist/rsrvflag") ;
- if (rsrvflag == "1")
- {
- model.setValue("/root/main/reqinfo/reqpath", "1");
- model.setValue("/root/main/reqinfo/reqdd", model.getValue("/root/main/patreq/acptlist/fstacptdd"));
- }
- else if (rsrvflag == "7")
- {
- model.setValue("/root/main/reqinfo/reqpath", "3");
- model.setValue("/root/main/reqinfo/reqdd", model.getValue("/root/main/patreq/acptlist/fstacptdd"));
- }
- else{
-
- var CurrentDate = getCurrentDate();
- model.setValue("/root/main/reqinfo/reqdd", CurrentDate);
- }
- }
-
- // default 설정
- function fDefaultSet()
- {
- model.setValue("/root/main/reqinfo/chospath", "O"); // 내원경로
- model.setValue("/root/main/reqinfo/reqtype", "1"); // 의뢰구분(1:진료, 2:검사, 3:수술)
- //model.setValue("/root/main/reqinfo/reqpath", "D"); // 의뢰경로(1:전화, 2:FAX, 3:E-Hospital, 4:직접내원, 9:기타)
- model.setValue("/root/main/reqinfo/replflag", "Y"); // 의뢰서 동의여부(Y, N, O)
- //model.setValue("/root/main/reqinfo/repltype", "E"); // 회신유형(1의뢰완료예정, 2회신대상, 3회신필, 4회신불필요, 5되의뢰필)
- //model.setValue("/root/main/reqinfo/fsexamflag", "R"); // 초재진
- //model.setValue("/root/main/reqinfo/replmthd", "P"); // 회신방법
- //model.setValue("/root/main/reqinfo/endflag", "R"); // 완료구분
- //model.setValue("/root/main/reqinfo/endtype", "F"); // 완료형태
- var CurrentDate = getCurrentDate();
-
- // 의뢰일자 현재일자로 셋팅요청(20080715)
- model.setValue("/root/main/reqinfo/reqdd", CurrentDate);
- model.setValue("/root/main/reqinfo/rgstdd", CurrentDate);
-
- }
-
- // 진료의사 조회
- function fDoctSerach()
- {
- var CurrentDate = getCurrentDate();
- // 진료의사
- model.removenode("/root/send/doctor");
- //model.makeValue("/root/send/doctor/orddd", model.getValue("/root/send/search/fromdd"));
- model.makeValue("/root/send/doctor/orddd", getCurrentDate());
- model.makeValue("/root/send/doctor/orddeptcd", model.getValue("/root/main/reqinfo/orddeptcd"));
-
- submit("TRARC01302", false);
-
- cmb_orddrid.select(0);
- //model.setValue("/root/main/patient/orddrid", orddrid);
- }
- // 초기화
- function fAllClear()
- {
- //model.resetInstanceNode("/root/main/reqinfo");
- //model.removeNodeset("/root/main/reqinfo");
-
- model.removeNodeset("/root/main/patreq/reqlist");
- model.resetInstanceNode("/root/main/reqinfo");
- model.removeNodeset("/root/main/listinfo/diaglist");
- model.removeNodeset("/root/main/listinfo/doctreqlist");
- model.removeNodeset("/root/main/listinfo/nursereqlist");
-
- model.resetInstanceNode("/root/main/patient");
- model.removeNodeset("/root/main/patreq/otptlist");
- model.removeNodeset("/root/main/patreq/inptlist");
-
- opt_fstprntdt.disabled = true;
- opt_indschprntdt.disabled = true;
-
- //되의뢰 유형 해당무 Default
- cmb_reqagntype.select(2);
- model.setFocus("ipt_pid");
- model.refresh();
- }
-
- // 의뢰내역 클릭시 상세정보 조회
- function fReqClick()
- {
- if (grd_reqlist.rows<= 1) return;
- if (grd_reqlist.row< 1) return;
-
- if(grd_reqlist.isCell(event.target) && grd_reqlist.mouseRow >= grd_reqlist.fixedrows)
- {
- }
- else
- {
- return;
- }
-
-
- var row = grd_reqlist.row;
- model.setValue("/root/main/reqinfo/orddeptcd", model.getValue("/root/main/patreq/reqlist[" + row + "]/orddeptcd"));
- fDoctSerach();
- model.copyNode("/root/main/reqinfo", "/root/main/patreq/reqlist[" + row + "]");
- model.setValue("/root/main/reqinfo/status", "u");
- model.removeNodeset("/root/send/reqcond");
- model.makeValue("/root/send/reqcond/pid", model.getValue("/root/main/reqinfo/pid"));
- model.makeValue("/root/send/reqcond/orddd", model.getValue("/root/main/reqinfo/orddd"));
- model.makeValue("/root/send/reqcond/cretno", model.getValue("/root/main/reqinfo/cretno"));
- model.makeValue("/root/send/reqcond/acptseqno", model.getValue("/root/main/reqinfo/acptseqno"));
- model.makeValue("/root/send/reqcond/reqseqno", model.getValue("/root/main/reqinfo/reqseqno"));
- model.makeValue("/root/send/reqcond/orddeptcd", model.getValue("/root/main/reqinfo/orddeptcd"));
- model.makeValue("/root/send/reqcond/orddrid", model.getValue("/root/main/reqinfo/orddrid"));
-
- //입퇴원요약지 출력일자 수정가능
- if (model.getValue("/root/main/reqinfo/indschprntdt") != "00000000000000" && model.getValue("/root/main/reqinfo/indschprntdt") != "") {
- opt_indschprntdt.disabled = false;
- }
- else {
- opt_indschprntdt.disabled = true;
- }
-
- //1차회신 출력일자 수정가능
- if (model.getValue("/root/main/reqinfo/fstprntdt") != "00000000000000" && model.getValue("/root/main/reqinfo/fstprntdt") != "") {
- opt_fstprntdt.disabled = false;
- }
- else {
- opt_fstprntdt.disabled = true;
- }
-
-
- // reqGetListInfo
- if (submit("TRARC00103", false) == true)
- {
- var replyn = model.getValue("/root/main/listinfo/repllist/replyn");
- var reqayn = model.getValue("/root/main/listinfo/repllist/reqayn");
- var reqcyn = model.getValue("/root/main/listinfo/repllist/reqcyn");
-
- var repltype = model.getValue("/root/main/reqinfo/repltype");
-
- //alert("replyn : " + replyn);
- //alert("repltype : " + repltype);
-
- // 회신대상, 회신필
- if (repltype == "2" || repltype == "3")
- {
- if (replyn == "Y")
- {
- // 의뢰완료예정
- model.setValue("/root/main/reqinfo/endflag", "1");
- }
- else
- {
- // 회신서 요청
- model.setValue("/root/main/reqinfo/endflag", "3");
- }
- }
- // 되의뢰필
- else if (repltype == "5")
- {
- if (replyn == "Y")
- {
- // 의뢰완료예정
- model.setValue("/root/main/reqinfo/endflag", "2");
- }
- else
- {
- // 회신서 요청
- model.setValue("/root/main/reqinfo/endflag", "3");
- }
- }
-
- // 되의뢰
- if (reqayn == "Y")
- {
- model.setValue("/root/main/reqinfo/endtype", "3")
- }
-
- // 전원의뢰
- if (reqcyn == "Y")
- {
- model.setValue("/root/main/reqinfo/endtype", "2")
- }
- }
- model.refresh();
- }
-
- // 환자정보 PopUp
- function fPatPopUp()
- {
- modal("SPPMC02500",1,100,100);
- if (model.getValue("/root/main/popupendflag") == "ok")
- {
- model.resetInstanceNode("/root/send/cond");
- // 환자정보, 진료내역, 의뢰내역
- model.setValue("/root/send/cond/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- //model.setValue("/root/send/cond/orddd", model.getValue("/root/main/paminfo/list/orddd"));
- //model.setValue("/root/send/cond/cretno", model.getValue("/root/main/paminfo/list/cretno"));
- //model.setValue("/root/send/cond/acptseqno", model.getValue("/root/main/paminfo/list/acptseqno"));
-
- // 조회
- fSearch();
- model.setFocus("ipt_pid");
- model.refresh();
-
- /*
- model.setValue("/root/main/patient/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/main/patient/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/main/patient/sex", model.getValue("/root/main/patinfo/patinfolist/sex"));
- model.setValue("/root/main/patient/age", model.getValue("/root/main/patinfo/patinfolist/age"));
- model.setValue("/root/main/patient/rrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
- model.setValue("/root/main/patient/rrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
- model.setValue("/root/main/patient/brthdd", model.getValue("/root/main/patinfo/patinfolist/brthdd"));
- model.setValue("/root/main/patient/hometel", model.getValue("/root/main/patinfo/patinfolist/hometel"));
- model.setValue("/root/main/patient/mpphontel", model.getValue("/root/main/patinfo/patinfolist/mpphontel"));
- model.setValue("/root/main/patient/zipcd1", model.getValue("/root/main/patinfo/patinfolist/zipcd1"));
- model.setValue("/root/main/patient/zipcd2", model.getValue("/root/main/patinfo/patinfolist/zipcd2"));
- model.setValue("/root/main/patient/addr", model.getValue("/root/main/patinfo/patinfolist/addr"));
- model.setValue("/root/main/patient/detladdr", model.getValue("/root/main/patinfo/patinfolist/detladdr"));
- model.setValue("/root/main/patient/forgeryn", model.getValue("/root/main/patinfo/patinfolist/forgeryn"));
- model.setValue("/root/main/patient/nati", model.getValue("/root/main/patinfo/patinfolist/nati"));
- model.setValue("/root/main/patient/psptno", model.getValue("/root/main/patinfo/patinfolist/psptno"));
- model.setValue("/root/main/patient/religncd", model.getValue("/root/main/patinfo/patinfolist/religncd"));
- */
- }
-
- model.refresh();
- }
-
- // 등록번호 입력후 Enter
- function fPatKeyDown()
- {
- if (event.keyCode == 13)
- {
- /*
- model.makeValue("/root/temp/srchcond",pFlag);
- model.makeValue("/root/temp/autoflag","Y");
-
- modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/temp", "/root/send");
- */
-
- model.resetInstanceNode("/root/send/cond");
- // 환자정보, 진료내역, 의뢰내역
- model.setValue("/root/send/cond/pid", ipt_pid.currentText);
- //model.setValue("/root/send/cond/orddd", model.getValue("/root/main/paminfo/list/orddd"));
- //model.setValue("/root/send/cond/cretno", model.getValue("/root/main/paminfo/list/cretno"));
- //model.setValue("/root/send/cond/acptseqno", model.getValue("/root/main/paminfo/list/acptseqno"));
-
- // 조회
- fSearch();
- model.setFocus("ipt_pid");
- model.refresh();
- }
- }
-
- // 의뢰병원 Popup
- function fHospPopUp()
- {
- model.setValue("/root/main/hospflag", "N");
- modal("SPARH00200",1,1,1);
-
- if( model.getValue("/root/main/hospflag") == "Y" )
- {
- model.setValue("/root/main/reqinfo/coophospnm", model.getValue("/root/main/hospinfo/hospinfolist/coophospnm"));
- model.setValue("/root/main/reqinfo/coophospcd", model.getValue("/root/main/hospinfo/hospinfolist/coophospcd"));
- model.setValue("/root/main/reqinfo/coopdrcd", model.getValue("/root/main/hospinfo/hospinfolist/coopdrcd"));
- model.setValue("/root/main/reqinfo/clsmatyn", model.getValue("/root/main/hospinfo/hospinfolist/clsmatyn"));
- model.setValue("/root/main/reqinfo/drnm", model.getValue("/root/main/hospinfo/hospinfolist/drnm"));
- model.setValue("/root/main/reqinfo/emailnm", model.getValue("/root/main/hospinfo/hospinfolist/emailnm"));
- model.setValue("/root/main/reqinfo/fromdd", model.getValue("/root/main/hospinfo/hospinfolist/fromdd"));
-
- model.setValue("/root/main/reqinfo/hospgrade", model.getValue("/root/main/hospinfo/hospinfolist/hospgrade"));
- model.setValue("/root/main/reqinfo/clsmatyn", model.getValue("/root/main/hospinfo/hospinfolist/clsmatyn"));
- model.setValue("/root/main/reqinfo/hosptelno", model.getValue("/root/main/hospinfo/hospinfolist/telno"));
- model.setValue("/root/main/reqinfo/hospfaxno", model.getValue("/root/main/hospinfo/hospinfolist/faxno"));
- model.setValue("/root/main/reqinfo/replmthd", model.getValue("/root/main/hospinfo/hospinfolist/replmethod"));
- model.setValue("/root/main/reqinfo/repltype", model.getValue("/root/main/hospinfo/hospinfolist/repltype"));
- model.setValue("/root/main/reqinfo/replflag", model.getValue("/root/main/hospinfo/hospinfolist/replflag"));
-
- if (gdutplceinstcd == "031") {
-
- var hospgrade = model.getValue("/root/main/reqinfo/hospgrade");
- if (!(hospgrade == "C2" || hospgrade == "C3" )) {
- model.makeValue("/root/main/reqinfo/replflag","N");
- model.makeValue("/root/main/reqinfo/repltype","4");
- }
- }
-
- }
- model.refresh();
- }
-
- // 진료의뢰서내역조회 팝업
- function fReqDocuPopup()
- {
- var pid = model.getValue("/root/main/patient/pid");
- //var orddeptcd = model.getValue("/root/main/reservation/orddeptcd");
- var hngnm = model.getValue("/root/main/patient/hngnm");
- var parameter = pid + "▦" + hngnm;
- setParameter("SMPMO01200_PARM", parameter);
- modal("SPPMO01200", "1", "200", "200", "SPPMO01200", "", "");
- }
-
- // 사용자선택 팝업
- function fStaffPopUp()
- {
- modal("SPMRF03200",1,100,100);
- }
-
- //SPMRF03200 화면의 fGetUserInfo
- function fGetUserInfo(userid,usernm)
- {
- model.setValue("/root/main/reqinfo/staffid", userid);
- model.setValue("/root/main/reqinfo/staffnm", usernm);
- model.setFocus("btn_staff");
- model.refresh();
- }
-
- // 저장전 필수 체크
- function fCheckDate()
- {
- if (model.getValue("/root/main/patient/pid") == "") {
- messageBox("등록번호를 ","C001");
- model.setFocus("ipt_pid");
- return false;
- }
-
- if (model.getValue("/root/main/reqinfo/coophospnm") == "") {
- messageBox("의뢰병원을 ","C001");
- model.setFocus("btn_hosplist");
- return false;
- }
-
- // knuh_20101228_start
- var dutplcecd = getUserInfo("dutplcecd");
- if(model.getValue("/root/init/hardcd/hardcd[hardcd='" + dutplcecd + "']/hardcd") != "" && userid != "AST")
- {
- if (model.getValue("/root/main/reqinfo/orddd") == "") {
- messageBox("진료일자를 ","C001");
- model.setFocus("opt_orddd");
- return false;
- }
-
- if (model.getValue("/root/main/reqinfo/replflag") == "") {
- messageBox("진료정보공개 동의여부를","C001");
- model.setFocus("cmb_replflag");
- return false;
- }
-
- if (model.getValue("/root/main/reqinfo/replmthd") == "") {
- messageBox("회신방법을 ","C001");
- model.setFocus("cmb_replmthd");
- return false;
- }
- }
- // knuh_20101228_end
-
- if (model.getValue("/root/main/reqinfo/rgstdd") == "") {
- messageBox("등록일자를 ","C001");
- model.setFocus("ipt_rgstdd");
- return false;
- }
-
- if (model.getValue("/root/main/reqinfo/reqdd") == "") {
- messageBox("의뢰일자를 ","C001");
- model.setFocus("ipt_reqdd");
- return false;
- }
-
- if (model.getValue("/root/main/reqinfo/reqpath") == "6" && model.getValue("/root/main/reqinfo/reqpseqno") == "") {
- messageBox("선택하신 의뢰경로는 반드시 의뢰번호(1차)를 입력하셔야 합니다!","I");
- model.setFocus("input1");
- return false;
- }
-
- if ( getUserInfo("dutplceinstcd") == "031" ) {
- if ( bool_outcnstyn.selected == false && bool_outcdyn.selected == false && bool_outrecyn.selected == false && bool_outcmtyn.selected == false) {
- messageBox("진료의뢰서,CD,기록지,소견서 중 최소 1개 이상 선택하셔야 합니다!","I");
- return false;
- }
- }
-
-
- // if (model.getValue("/root/main/reqinfo/repltype") == "") {
- // messageBox("회신유형을 ","C001");
- // model.setFocus("cmb_repltype");
- // return false;
- // }
- return true;
- }
-
- // 저장
- function fSave()
- {
- // 종료일자 셋팅
- var oldenddd = model.getValue("/root/main/reqinfo/enddd");
-
- // 의뢰일자 기준에서 등록일자 기준으로 변경
- if (oldenddd == "")
- {
- //var reqdd = model.getValue("/root/main/reqinfo/reqdd");
- //var enddd = reqdd.toDate().getAddDate(100, "D").getDateFormat();
- var rgstdd = model.getValue("/root/main/reqinfo/rgstdd");
- var enddd = rgstdd.toDate().getAddDate(100, "D").getDateFormat();
- model.setValue("/root/main/reqinfo/enddd", enddd);
- }
-
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.copyNode("/root/send/savedata", "/root/main/reqinfo")
- model.makeValue("/root/send/savedata/replseqno", model.getValue("/root/init/replinfo/replseqno"));
- model.makeValue("/root/send/savedata/fstyn", model.getValue("/root/init/replinfo/fstyn"));
-
- /*
- var existyn = "N";
- if (submit("TRARC00104", false) == true)
- {
- existyn = model.getValue("/root/main/reqexist/exist/existyn");
-
- if (existyn == "Y")
- {
- var btn = messageBox("의뢰등록내역이 존재합니다. 기존 의뢰등록내역은 완료됩니다.", "Q004");
-
- if (btn == '6')
- {
- */
- if (submit("TXARC00101", false) == true)
- {
- messageBox("저장이", "I002");
- model.resetInstanceNode("/root/main/reqinfo");
- fSearch();
- }
- /*
- }
- }
- else
- {
- if (submit("TXARC00101", false) == true)
- {
- messageBox("저장이", "I002");
- model.resetInstanceNode("/root/main/reqinfo");
- fSearch();
- }
- }
- }
-
- */
-
- }
-
- // 삭제
- function fDelete()
- {
- if (grd_reqlist.rows<= 1) return;
- if (grd_reqlist.row< 1) return;
-
- var btn = messageBox("선택한 의뢰등록내역을", "Q001");
- if (btn == '6')
- {
- model.setValue("/root/main/reqinfo/status",'d');
- model.copyNode("/root/send/savedata","/root/main/reqinfo")
-
- if (submit("TXARC00101", false) == true)
- {
- messageBox("삭제가", "I002");
- model.resetInstanceNode("/root/main/reqinfo");
- fSearch();
- }
- }
- }
-
- // 외래진료내역 선택시 의뢰내역정보에 셋팅
- function fOutOrdSelect()
- {
- var CurrentDate = getCurrentDate();
-
- // 0:입원, 1: 외래
- if (switch2.selectedIndex == "1")
- {
- if (grd_outlist.row < 1) return;
-
- if (grd_outlist.rows <= 1) return;
-
- var lrow = grd_outlist.row;
-
- /*
- model.resetInstanceNode("/root/main/reqinfo/coophospcd");
- model.resetInstanceNode("/root/main/reqinfo/coophospnm");
- model.resetInstanceNode("/root/main/reqinfo/orddd");
- model.resetInstanceNode("/root/main/reqinfo/orddeptcd");
- model.resetInstanceNode("/root/main/reqinfo/depthngnm");
- model.resetInstanceNode("/root/main/reqinfo/orddrid");
- model.resetInstanceNode("/root/main/reqinfo/usernm");
- model.resetInstanceNode("/root/main/reqinfo/emailnm");
- model.resetInstanceNode("/root/main/reqinfo/drnm");
- model.resetInstanceNode("/root/main/reqinfo/chospath");
- model.resetInstanceNode("/root/main/reqinfo/fsexamflag");
- model.resetInstanceNode("/root/main/reqinfo/reqtype");
- model.resetInstanceNode("/root/main/reqinfo/cptype");
- model.resetInstanceNode("/root/main/reqinfo/reqpath");
- model.resetInstanceNode("/root/main/reqinfo/replmthd");
- model.resetInstanceNode("/root/main/reqinfo/reqdd");
- model.resetInstanceNode("/root/main/reqinfo/repltype");
- model.resetInstanceNode("/root/main/reqinfo/rgstdd");
- model.resetInstanceNode("/root/main/reqinfo/endflag");
- model.resetInstanceNode("/root/main/reqinfo/replflag");
- model.resetInstanceNode("/root/main/reqinfo/endtype");
- model.resetInstanceNode("/root/main/reqinfo/cc");
- model.resetInstanceNode("/root/main/reqinfo/rem");
- model.resetInstanceNode("/root/main/reqinfo/cretno");
- model.resetInstanceNode("/root/main/reqinfo/seqno");
- model.resetInstanceNode("/root/main/reqinfo/hospflag");
- model.resetInstanceNode("/root/main/reqinfo/status");
- model.resetInstanceNode("/root/main/reqinfo/coopdrcd");
- model.resetInstanceNode("/root/main/reqinfo/acptseqno");
- model.resetInstanceNode("/root/main/reqinfo/fromdd");
- model.resetInstanceNode("/root/main/reqinfo/hospgrade");
- model.resetInstanceNode("/root/main/reqinfo/clsmatyn");
- model.resetInstanceNode("/root/main/reqinfo/hosptelno");
- model.resetInstanceNode("/root/main/reqinfo/hospfaxno");
- */
-
- // KNUH_20101228_박성호_start 의뢰내역에서 선택한 경우 수정으로 유지
- if (model.getValue("/root/main/reqinfo/status") == "")
- {
- model.resetInstanceNode("/root/main/reqinfo");
- }
-
- model.setValue("/root/main/reqinfo/orddd" , model.getValue("/root/main/patreq/otptlist[" + lrow + "]/orddd"));
- model.setValue("/root/main/reqinfo/cretno" , model.getValue("/root/main/patreq/otptlist[" + lrow + "]/cretno"));
- model.setValue("/root/main/reqinfo/orddeptcd" , model.getValue("/root/main/patreq/otptlist[" + lrow + "]/orddeptcd"));
- model.setValue("/root/main/reqinfo/depthngnm" , model.getValue("/root/main/patreq/otptlist[" + lrow + "]/orddeptnm"));
-
- fDoctSerach();
-
- model.setValue("/root/main/reqinfo/orddrid" , model.getValue("/root/main/patreq/otptlist[" + lrow + "]/orddrid"));
- model.setValue("/root/main/reqinfo/usernm" , model.getValue("/root/main/patreq/otptlist[" + lrow + "]/orddrnm"));
-
- model.setValue("/root/main/reqinfo/acptseqno" , model.getValue("/root/main/patreq/otptlist[" + lrow + "]/acptseqno"));
- model.setValue("/root/main/reqinfo/fsexamflag" , model.getValue("/root/main/patreq/otptlist[" + lrow + "]/fsexamflag"));
- model.setValue("/root/main/reqinfo/pid" , model.getValue("/root/main/patreq/otptlist[" + lrow + "]/pid"));
-
- // 내원경로
- model.setValue("/root/main/reqinfo/chospath" , "O");
- model.setValue("/root/main/reqinfo/reqtype" , "1"); // 의뢰구분(1:진료, 2:검사, 3:수술)
-
- // 예약구분에 따라
- // KNUH_20110108_박성호
- if (model.getValue("/root/main/reqinfo/rgstdd") == "")
- {
- model.setValue("/root/main/reqinfo/rgstdd", CurrentDate);
-
- var rsrvflag = model.getValue("/root/main/patreq/otptlist[" + lrow + "]/rsrvflag") ;
- if (rsrvflag == "1")
- {
- model.setValue("/root/main/reqinfo/reqpath", "1");
- model.setValue("/root/main/reqinfo/reqdd", model.getValue("/root/main/patreq/otptlist[" + lrow + "]/fstacptdd"));
- }
- else if (rsrvflag == "7")
- {
- model.setValue("/root/main/reqinfo/reqpath", "3");
- model.setValue("/root/main/reqinfo/reqdd", model.getValue("/root/main/patreq/otptlist[" + lrow + "]/fstacptdd"));
- }
- else{
- model.setValue("/root/main/reqinfo/reqdd", CurrentDate);
- }
- }
-
- // KNUH_20101228_박성호_start 의뢰내역에서 선택한 경우 수정으로 유지
- if (model.getValue("/root/main/reqinfo/status") == "")
- {
- model.setValue("/root/main/reqinfo/status", "i");
- }
- }
- else
- {
- if (grd_inlist.row < 1) return;
-
- if (grd_inlist.rows <= 1) return;
-
- var lrow = grd_inlist.row;
-
- // KNUH_20101228_박성호_start 의뢰내역에서 선택한 경우 수정으로 유지
- if (model.getValue("/root/main/reqinfo/status") == "")
- {
- model.resetInstanceNode("/root/main/reqinfo");
- }
-
- model.setValue("/root/main/reqinfo/orddd" , model.getValue("/root/main/patreq/inptlist[" + lrow + "]/indd"));
- model.setValue("/root/main/reqinfo/cretno" , model.getValue("/root/main/patreq/inptlist[" + lrow + "]/cretno"));
- model.setValue("/root/main/reqinfo/orddeptcd" , model.getValue("/root/main/patreq/inptlist[" + lrow + "]/orddeptcd"));
- model.setValue("/root/main/reqinfo/depthngnm" , model.getValue("/root/main/patreq/inptlist[" + lrow + "]/orddeptnm"));
-
- fDoctSerach();
-
- model.setValue("/root/main/reqinfo/orddrid" , model.getValue("/root/main/patreq/inptlist[" + lrow + "]/atdoctid"));
- model.setValue("/root/main/reqinfo/usernm" , model.getValue("/root/main/patreq/inptlist[" + lrow + "]/atdoctnm"));
-
- model.setValue("/root/main/reqinfo/acptseqno" , model.getValue("/root/main/patreq/inptlist[" + lrow + "]/acptseqno"));
- model.setValue("/root/main/reqinfo/fsexamflag" , model.getValue("/root/main/patreq/inptlist[" + lrow + "]/fsexamflag"));
- model.setValue("/root/main/reqinfo/pid" , model.getValue("/root/main/patreq/inptlist[" + lrow + "]/pid"));
-
- model.setValue("/root/main/reqinfo/reqtype", "1"); // 의뢰구분(1:진료, 2:검사, 3:수술)
-
- // 예약구분에 따라
- var rsrvflag = model.getValue("/root/main/patreq/otptlist[" + lrow + "]/rsrvflag") ;
- if (rsrvflag == "1")
- {
- model.setValue("/root/main/reqinfo/reqpath", "1");
- model.setValue("/root/main/reqinfo/reqdd", model.getValue("/root/main/patreq/otptlist[" + lrow + "]/fstacptdd"));
- }
- else if (rsrvflag == "7")
- {
- model.setValue("/root/main/reqinfo/reqpath", "3");
- model.setValue("/root/main/reqinfo/reqdd", model.getValue("/root/main/patreq/otptlist[" + lrow + "]/fstacptdd"));
- }
- else
- {
- var CurrentDate = getCurrentDate();
- model.setValue("/root/main/reqinfo/reqdd", CurrentDate);
- }
-
- model.setValue("/root/main/reqinfo/rgstdd" , CurrentDate);
-
- // KNUH_20101228_박성호_start 의뢰내역에서 선택한 경우 수정으로 유지
- if (model.getValue("/root/main/reqinfo/status") == "")
- {
- model.setValue("/root/main/reqinfo/status", "i");
- }
- }
-
- }
-
- // 엑셀 파일
- function fExcel()
- {
- // 0:입원, 1: 외래
- if (switch2.selectedIndex == "1")
- {
- if (grd_outlist.rows <= 1) return;
-
- var fileName = window.fileDialog("save", ",", false, "외래진료내역 리스트", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_outlist.saveExcel(fileName, "외래진료내역", false, false, "", "", false);
- }
- }
- else
- {
- if (grd_inlist.rows <= 1) return;
-
- var fileName = window.fileDialog("save", ",", false, "입원진료내역 리스트", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_inlist.saveExcel(fileName, "입원진료내역", false, false, "", "", false);
- }
- }
- }
-
- // 통합기록조회
- function fRecPopup()
- {
- var pid = model.getValue("/root/main/patient/pid");
- setParameter("SMMRI00400_param_pid", pid);
- open("SMMRI00400");
- }
-
- // OCRVIEW
- function fOCRView(flag)
- {
- var pid = model.getValue("/root/main/patient/pid");
- var formcd = "";
-
- if ( pid =="" || isNull(pid) ) {
- messageBox("등록번호가 선택되지 않았습니다","I");
- return;
- }
-
- if ( flag == "A") {
- formcd = model.getValue("/root/init/aformcd/hardcd/hardcd"); //타병원
- }
- else if ( flag == "B" ) {
- formcd = model.getValue("/root/init/bformcd/hardcd/hardcd"); //개인정보
- }
-
- model.resetInstanceNode("/root/send/iemr");
-
- model.makeValue("/root/send/iemr/pid", pid);
- model.makeValue("/root/send/iemr/docucd", formcd);
-
- if(window.children.item("imgemrviewer") == null)
- {
- window.load("../../../emr/imgemrweb/xrw/SSMRC03130.xrw", "modeless", "imgemrviewer", "", "/root/send/iemr", "/root/hidden/temp");
- }
- else
- {
- var iemrNode = instance1.selectSingleNode("/root/send/iemr");
- window.children.item("imgemrviewer").javascript.reloadChart(iemrNode);
- window.children.item("imgemrviewer").modelesstopmost = true;
- window.children.item("imgemrviewer").modelesstopmost = false;
- }
- }
-
-
- // SMS 전송후 의뢰내역정보 Refresh
- function fReqClickSMS(ReqlistRow)
- {
- if (grd_reqlist.rows<= 1) return;
- var row = ReqlistRow;
- if(row < 1) return; // 141002 - AYS
-
- model.setValue("/root/main/reqinfo/orddeptcd", model.getValue("/root/main/patreq/reqlist[" + row + "]/orddeptcd"));
- fDoctSerach();
-
- model.copyNode("/root/main/reqinfo", "/root/main/patreq/reqlist[" + row + "]");
- model.setValue("/root/main/reqinfo/status", "u");
- model.removeNodeset("/root/send/reqcond");
- model.makeValue("/root/send/reqcond/pid", model.getValue("/root/main/reqinfo/pid"));
- model.makeValue("/root/send/reqcond/orddd", model.getValue("/root/main/reqinfo/orddd"));
- model.makeValue("/root/send/reqcond/cretno", model.getValue("/root/main/reqinfo/cretno"));
- model.makeValue("/root/send/reqcond/acptseqno", model.getValue("/root/main/reqinfo/acptseqno"));
- model.makeValue("/root/send/reqcond/reqseqno", model.getValue("/root/main/reqinfo/reqseqno"));
- model.makeValue("/root/send/reqcond/orddeptcd", model.getValue("/root/main/reqinfo/orddeptcd"));
- model.makeValue("/root/send/reqcond/orddrid", model.getValue("/root/main/reqinfo/orddrid"));
-
- //입퇴원요약지 출력일자 수정가능
- if (model.getValue("/root/main/reqinfo/indschprntdt") != "00000000000000" && model.getValue("/root/main/reqinfo/indschprntdt") != "") {
- opt_indschprntdt.disabled = false;
- }
- else {
- opt_indschprntdt.disabled = true;
- }
-
- //1차회신 출력일자 수정가능
- if (model.getValue("/root/main/reqinfo/fstprntdt") != "00000000000000" && model.getValue("/root/main/reqinfo/fstprntdt") != "") {
- opt_fstprntdt.disabled = false;
- }
- else {
- opt_fstprntdt.disabled = true;
- }
-
-
- // reqGetListInfo
- if (submit("TRARC00103", false) == true)
- {
- var replyn = model.getValue("/root/main/listinfo/repllist/replyn");
- var reqayn = model.getValue("/root/main/listinfo/repllist/reqayn");
- var reqcyn = model.getValue("/root/main/listinfo/repllist/reqcyn");
-
- var repltype = model.getValue("/root/main/reqinfo/repltype");
-
- //alert("replyn : " + replyn);
- //alert("repltype : " + repltype);
-
- // 회신대상, 회신필
- if (repltype == "2" || repltype == "3")
- {
- if (replyn == "Y")
- {
- // 의뢰완료예정
- model.setValue("/root/main/reqinfo/endflag", "1");
- }
- else
- {
- // 회신서 요청
- model.setValue("/root/main/reqinfo/endflag", "3");
- }
- }
- // 되의뢰필
- else if (repltype == "5")
- {
- if (replyn == "Y")
- {
- // 의뢰완료예정
- model.setValue("/root/main/reqinfo/endflag", "2");
- }
- else
- {
- // 회신서 요청
- model.setValue("/root/main/reqinfo/endflag", "3");
- }
- }
-
- // 되의뢰
- if (reqayn == "Y")
- {
- model.setValue("/root/main/reqinfo/endtype", "3")
- }
-
- // 전원의뢰
- if (reqcyn == "Y")
- {
- model.setValue("/root/main/reqinfo/endtype", "2")
- }
- }
- model.refresh();
- }
-
- function fHIEReferView() {
-
- model.makeValue("/root/send/search/pid",model.getValue("/root/main/reqinfo/pid"));
- model.makeValue("/root/send/search/reqseqno",model.getValue("/root/main/reqinfo/reqseqno"));
-
-
- if (submit("TRARC02513")) {
- var patientid = model.getValue("/root/baseinfo/baselist/patientid");
- var documentuniqueid = model.getValue("/root/baseinfo/baselist/documentuniqueid");
- var repositoryid = model.getValue("/root/baseinfo/baselist/repositoryid");
- var entryuuid = model.getValue("/root/baseinfo/baselist/entryuuid");
- }
-
-
- setParameter("SPARC02820_PARAM1",patientid);
- setParameter("SPARC02820_PARAM2",documentuniqueid);
- setParameter("SPARC02820_PARAM3",repositoryid);
- setParameter("SPARC02820_PARAM4",entryuuid);
-
- modal("SPARC02820");
-
- }
-
- ]]>
- </script>
- <xhtml:body pagewidth="1211" pageheight="785" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">의뢰환자 등록</caption>
- </group>
- <group id="group5" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button17" class="btn4_letter3" style="left:1010px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAllClear();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter2" style="left:1079px; top:5px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelete();
-
- model.refresh();
-
- //model.close();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !fCheckDate() ) return; //필수 저장여부 체크
-
- fSave();
-
- model.refresh();
-
- //model.close();
- ]]>
- </script>
- </button>
- <button id="button19" class="btn3_letter7" style="left:0px; top:5px; width:116px; height:22px; ">
- <caption>의뢰서내역조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReqDocuPopup();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn3_letter7" style="left:120px; top:5px; width:116px; height:22px; ">
- <caption>통합기록조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRecPopup();
- ]]>
- </script>
- </button>
- <button id="button12" class="btn3_letter8" style="left:235px; top:5px; width:116px; height:22px; ">
- <caption>타병원진료의뢰</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOCRView("A");
- ]]>
- </script>
- </button>
- <button id="button13" class="btn3_letter10" style="left:365px; top:5px; width:116px; height:22px; ">
- <caption>개인정보이용동의서</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOCRView("B");
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:20px; width:1195px; height:742px; ">
- <datagrid id="grd_reqlist" nodeset="/root/main/patreq/reqlist" caption="SMSDD^의뢰일자^진료과^주치의^의뢰병원^의뢰의^내원경로^초/재진^의뢰구분^One-Stop 유형^의뢰경로^회신방법^진료일자^회신유형^되의뢰유형^등록일자^진행상태^회신서 동의여부^완료형태^완료일자^주호소^참고사항^의뢰번호^타병원기록^타병원진료의뢰서^타병원cd^타병원소견서^mpphontel^orddrid" colsep="^" colwidth="49, 80, 80, 80, 150, 80, 60, 60, 60, 95, 60, 100, 80, 80, 100, 80, 60, 100, 60, 80, 400, 200, 100, 100, 100, 100, 100, 100, 100" dataheight="23" extendlastcol="scroll" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:0px; top:249px; width:1194px; height:96px; ">
- <col ref="smsdd" visibility="hidden" style="text-align:center; "/>
- <col ref="reqdd" format="yyyy-mm-dd" style="left:20px; top:23px; width:92px; height:23px; text-align:center; "/>
- <col ref="depthngnm" style="text-align:center; "/>
- <col ref="usernm" style="text-align:center; "/>
- <col ref="coophospnm" style="text-align:center; "/>
- <col ref="drnm" style="text-align:center; "/>
- <col disabled="true" ref="chospath" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="fsexamflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/fsexamflag/P0021">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="reqtype" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/reqtype/A0418">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="cptype" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/cptype/A0420">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="reqpath" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/reqpath/A0421">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="replmthd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/replmthd/A0422">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="repltype" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/repltype/A0423">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="reqagntype" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/reqagntype/A0583">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="rgstdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="endflag" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/endflag/A0424">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="replflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/replflag/A0636">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="endtype" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/endtype/A0425">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="enddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="cc"/>
- <col ref="rem"/>
- <col ref="reqpseqno"/>
- <col ref="outrecyn"/>
- <col ref="outcnstyn"/>
- <col ref="outcdyn"/>
- <col ref="outcmtyn"/>
- <col ref="mpphontel"/>
- <col ref="orddrid" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fReqClick();
- ]]>
- </script>
- </datagrid>
- <line id="line27" class="line_2" style="x1:0px; y1:630px; x2:760px; y2:630px; "/>
- <line id="line35" class="line_2" style="x1:0px; y1:729px; x2:760px; y2:729px; "/>
- <line id="line43" class="line_2" style="x1:0px; y1:196px; x2:380px; y2:196px; "/>
- <caption id="caption5" class="tit_2" style="left:5px; top:7px; width:111px; height:13px; ">인적사항</caption>
- <line id="line44" class="line_1" style="x1:0px; y1:25px; x2:395px; y2:25px; "/>
- <line id="line45" class="line_2" style="x1:0px; y1:52px; x2:380px; y2:52px; "/>
- <input id="ipt_pid" ref="/root/main/patient/pid" navindex="1" maxlength="10" appearance="input" style="left:118px; top:32px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- //inputEnterKey("btn_patinfo", "DOMActivate");
- fPatKeyDown();
- ]]>
- </script>
- </input>
- <line id="line46" class="line_2" style="x1:0px; y1:76px; x2:380px; y2:76px; "/>
- <line id="line47" class="line_2" style="x1:0px; y1:100px; x2:380px; y2:100px; "/>
- <line id="line50" class="line_2" style="x1:0px; y1:124px; x2:380px; y2:124px; "/>
- <caption id="caption38" class="cell_1" style="left:0px; top:54px; width:115px; height:23px; vertical-align:middle; ">성명[한/영]</caption>
- <caption id="caption43" class="cell_1" style="left:0px; top:78px; width:115px; height:23px; vertical-align:middle; ">주민번호</caption>
- <caption id="caption46" class="cell_1" style="left:0px; top:30px; width:115px; height:23px; vertical-align:middle; ">등록번호</caption>
- <caption id="caption47" class="cell_1" style="left:244px; top:30px; width:65px; height:23px; vertical-align:middle; ">성별/나이</caption>
- <caption id="caption48" class="cell_1" style="left:244px; top:78px; width:65px; height:23px; vertical-align:middle; ">생년월일</caption>
- <caption id="caption49" class="cell_1" style="left:0px; top:102px; width:115px; height:23px; vertical-align:middle; ">연락처/휴대폰</caption>
- <line id="line51" class="line_2" style="x1:0px; y1:148px; x2:380px; y2:148px; "/>
- <line id="line52" class="line_2" style="x1:0px; y1:172px; x2:380px; y2:172px; "/>
- <caption id="caption50" class="cell_1" style="left:0px; top:174px; width:115px; height:23px; vertical-align:middle; ">외국인 여부</caption>
- <select id="checkbox1" ref="/root/main/patient/forgeryn" visibility="hidden" overflow="visible" appearance="full" cellspacing="0" cols="1" style="left:73px; top:178px; width:15px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="caption51" class="cell_1" style="left:211px; top:174px; width:65px; height:23px; vertical-align:middle; ">여권번호</caption>
- <line id="line55" class="line_1" style="x1:769px; y1:367px; x2:1192px; y2:367px; "/>
- <caption id="caption52" class="tit_2" style="left:776px; top:352px; width:144px; height:13px; ">상병내역</caption>
- <line id="line56" class="line_1" style="x1:0px; y1:244px; x2:1194px; y2:244px; "/>
- <caption id="caption53" class="tit_2" style="left:0px; top:227px; width:144px; height:13px; ">의뢰내역</caption>
- <caption id="caption54" class="cell_1" style="left:0px; top:126px; width:115px; height:23px; vertical-align:middle; ">우편번호</caption>
- <caption id="caption55" class="cell_1" style="left:0px; top:150px; width:115px; height:23px; vertical-align:middle; ">주소</caption>
- <caption id="caption56" class="cell_1" style="left:255px; top:449px; width:115px; height:23px; vertical-align:middle; ">진료과</caption>
- <caption id="caption58" class="cell_1" style="left:510px; top:527px; width:115px; height:23px; vertical-align:middle; ">의뢰일자</caption>
- <caption id="caption59" class="cell_1" style="left:255px; top:501px; width:115px; height:23px; vertical-align:middle; ">One-Stop 유형</caption>
- <caption id="caption60" class="cell_1" style="left:510px; top:501px; width:115px; height:23px; vertical-align:middle; ">완료일자</caption>
- <caption id="caption61" class="cell_1" style="left:0px; top:475px; width:115px; height:23px; vertical-align:middle; ">초재진구분</caption>
- <caption id="caption62" class="cell_1" style="left:350px; top:371px; width:65px; height:23px; vertical-align:middle; ">의뢰 의사</caption>
- <line id="line57" class="line_2" style="x1:0px; y1:395px; x2:760px; y2:395px; "/>
- <caption id="caption63" class="cell_1" style="left:0px; top:371px; width:115px; height:23px; vertical-align:middle; ">의뢰 병원명</caption>
- <caption id="caption64" class="cell_1" style="left:0px; top:580px; width:115px; height:24px; vertical-align:middle; ">주호소</caption>
- <caption id="caption65" class="cell_1" style="left:255px; top:527px; width:115px; height:23px; vertical-align:middle; ">의뢰경로</caption>
- <line id="line60" class="line_3" style="x1:0px; y1:220px; x2:1194px; y2:220px; "/>
- <line id="line61" class="line_3" style="x1:0px; y1:734px; x2:1194px; y2:734px; "/>
- <caption id="caption66" class="cell_1" style="left:375px; top:580px; width:130px; height:22px; vertical-align:middle; ">참고사항</caption>
- <caption id="caption67" class="cell_1" style="left:0px; top:198px; width:115px; height:23px; vertical-align:middle; ">종교</caption>
- <caption id="caption68" class="cell_1" style="left:0px; top:553px; width:75px; height:23px; vertical-align:middle; ">회신유형</caption>
- <button id="button2" class="btn2_letter2" navindex="2" style="left:1152px; top:5px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExcel();
- ]]>
- </script>
- </button>
- <button id="button6" class="btn_sw" group="tab" selected="true" style="left:405px; top:5px; width:100px; height:22px; ">
- <caption>외래 진료내역</caption>
- <toggle case="case4" ev:event="onclick"/>
- </button>
- <button id="button7" class="btn_sw" group="tab" style="left:505px; top:5px; width:100px; height:22px; ">
- <caption>입원 진료내역</caption>
- <toggle case="case3" ev:event="onclick"/>
- </button>
- <switch id="switch2" style="left:400px; top:25px; width:795px; height:195px; ">
- <case id="case3">
- <line id="line62" class="line_1" style="x1:0px; y1:0px; x2:792px; y2:0px; margin:0; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; "/>
- <datagrid id="grd_inlist" nodeset="/root/main/patreq/inptlist" caption="입원일자^입원시간^진료과^전문의^병동^병실^퇴원일자^퇴원시간" colsep="^" colwidth="95, 80, 140, 100, 90, 80, 95, 80" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:0px; top:4px; width:792px; height:181px; ">
- <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="intm" format="hh:nn" style="text-align:center; "/>
- <col ref="orddeptnm"/>
- <col ref="atdoctnm" style="text-align:center; "/>
- <col ref="wardnm" style="text-align:center; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="dschtm" format="hh:nn" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fOutOrdSelect();
- model.setValue("/root/main/reqinfo/repltype", "1"); // 회신유형 해당무
- model.setValue("/root/main/reqinfo/reqagntype", "3"); //되의뢰유형 해당무
- model.refresh();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case4" selected="true">
- <line id="line63" class="line_1" style="x1:0px; y1:0px; x2:792px; y2:0px; margin:0; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; "/>
- <datagrid id="grd_outlist" nodeset="/root/main/patreq/otptlist" caption="진료일자^진료시간^진료과^진료의^상태^초/재^예약구분^보험유형^의뢰서유무" colsep="^" colwidth="100, 80, 140, 130, 70, 80, 100, 80, 80" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:0px; top:3px; width:793px; height:182px; ">
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="ordtm" format="hh:nn" style="text-align:center; "/>
- <col ref="orddeptnm"/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="stat" style="text-align:center; "/>
- <col ref="fsexamflagnm" style="text-align:center; "/>
- <col ref="rsrvflag"/>
- <col ref="insukindnm" style="text-align:center; "/>
- <col ref="reqdocuyn" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fOutOrdSelect();
-
- model.setValue("/root/main/reqinfo/repltype", "1"); // 회신유형 해당무
- model.setValue("/root/main/reqinfo/reqagntype", "3"); //되의뢰유형 해당무
- opt_fstprntdt.disabled = true;
- opt_indschprntdt.disabled = true;
- model.refresh();
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <caption id="caption69" class="cell_1" style="left:0px; top:527px; width:115px; height:23px; vertical-align:middle; ">정보공개 동의여부</caption>
- <caption id="caption70" class="cell_1" style="left:0px; top:501px; width:115px; height:23px; vertical-align:middle; ">등록일자</caption>
- <caption id="caption71" class="cell_1" style="left:510px; top:475px; width:115px; height:23px; vertical-align:middle; ">회신방법</caption>
- <caption id="caption72" class="cell_1" style="left:255px; top:423px; width:115px; height:23px; vertical-align:middle; ">E-MAIL</caption>
- <caption id="caption73" class="cell_1" style="left:255px; top:475px; width:115px; height:23px; vertical-align:middle; ">진행상태</caption>
- <caption id="caption74" class="cell_1" style="left:395px; top:553px; width:75px; height:23px; vertical-align:middle; ">내원경로</caption>
- <caption id="caption75" class="cell_1" style="left:572px; top:553px; width:75px; height:23px; vertical-align:middle; ">의뢰구분</caption>
- <caption id="caption76" class="cell_1" style="left:0px; top:449px; width:115px; height:23px; vertical-align:middle; ">진료일자</caption>
- <line id="line64" class="line_1" style="x1:769px; y1:500px; x2:1192px; y2:500px; "/>
- <caption id="caption77" class="tit_2" style="left:776px; top:485px; width:144px; height:13px; ">의사회신</caption>
- <caption id="caption78" class="tit_2" style="left:6px; top:635px; width:144px; height:13px; ">1차회신</caption>
- <line id="line65" class="line_1" style="x1:0px; y1:650px; x2:252px; y2:650px; "/>
- <caption id="caption79" class="tit_2" style="left:263px; top:635px; width:144px; height:13px; ">입퇴원요약지 회신</caption>
- <line id="line66" class="line_1" style="x1:255px; y1:650px; x2:765px; y2:650px; "/>
- <caption id="caption81" class="cell_1" style="left:0px; top:655px; width:115px; height:23px; vertical-align:middle; ">출력일자</caption>
- <caption id="caption83" class="cell_1" style="left:255px; top:655px; width:115px; height:23px; vertical-align:middle; ">출력일자</caption>
- <line id="line67" class="line_2" style="x1:0px; y1:680px; x2:365px; y2:680px; "/>
- <line id="line68" class="line_1" style="x1:0px; y1:367px; x2:765px; y2:367px; "/>
- <caption id="caption84" class="tit_2" style="left:0px; top:352px; width:144px; height:13px; ">의뢰내역정보</caption>
- <caption id="caption85" class="cell_1" style="left:510px; top:449px; width:115px; height:23px; vertical-align:middle; ">주치의</caption>
- <select1 id="cmb_sex" ref="/root/main/patient/sex" disabled="true" navindex="5" appearance="minimal" style="left:312px; top:31px; width:40px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>남</label>
- <value>M</value>
- </item>
- <item>
- <label>여</label>
- <value>F</value>
- </item>
- </choices>
- </select1>
- <output id="opt_age" ref="/root/main/patient/age" class="output_fix" appearance="output" style="left:355px; top:31px; width:40px; height:19px; text-align:right; "/>
- <output id="opt_hngnm" ref="/root/main/patient/hngnm" class="output_fix" appearance="output" style="left:118px; top:55px; width:120px; height:19px; "/>
- <output id="opt_engnm" ref="/root/main/patient/engnm" class="output_fix" appearance="output" style="left:244px; top:55px; width:151px; height:19px; "/>
- <output id="opt_rrgstno1" ref="/root/main/patient/rrgstno1" class="output_fix" navindex="3" format="999999" autonext="false" appearance="output" style="left:118px; top:80px; width:60px; height:19px; text-align:center; "/>
- <secret id="opt_rrgstno2" ref="/root/main/patient/rrgstno2" class="output_fix" format="9999999" autonext="false" appearance="secret" style="left:180px; top:80px; width:60px; height:19px; text-align:center; "/>
- <output id="opt_brthdd" ref="/root/main/patient/brthdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:312px; top:79px; width:83px; height:19px; text-align:center; "/>
- <output id="opt_hometel" ref="/root/main/patient/hometel" class="output_fix" appearance="output" style="left:118px; top:103px; width:123px; height:19px; "/>
- <output id="opt_mpphontel" ref="/root/main/patient/mpphontel" class="output_fix" appearance="output" style="left:244px; top:103px; width:151px; height:19px; "/>
- <output id="opt_zipcd1" ref="/root/main/patient/zipcd1" class="output_fix" format="###" appearance="output" style="left:118px; top:127px; width:30px; height:19px; text-align:center; "/>
- <output id="opt_zipcd2" ref="/root/main/patient/zipcd2" class="output_fix" format="###" appearance="output" style="left:151px; top:127px; width:30px; height:19px; text-align:center; "/>
- <output id="opt_addr" ref="/root/main/patient/addr" class="output_fix" appearance="output" style="left:186px; top:127px; width:209px; height:19px; "/>
- <output id="opt_detladdr" ref="/root/main/patient/detladdr" class="output_fix" appearance="output" style="left:118px; top:151px; width:277px; height:19px; "/>
- <select1 id="cmb_nati" ref="/root/main/patient/nati" class="combo_default" disabled="true" appearance="minimal" style="left:118px; top:175px; width:87px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/nati/P0353">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <output id="opt_psptno" ref="/root/main/patient/psptno" class="output_fix" appearance="output" style="left:279px; top:175px; width:116px; height:19px; "/>
- <select1 id="cmb_religncd" ref="/root/main/patient/religncd" class="combo_default" disabled="true" appearance="minimal" style="left:118px; top:199px; width:87px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/religncd/P0157">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_patinfo" class="icon_search" style="left:222px; top:32px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPatPopUp();
- ]]>
- </script>
- </button>
- <button id="btn_hosplist" class="icon_search" style="left:328px; top:374px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fHospPopUp();
- ]]>
- </script>
- </button>
- <datagrid id="grd_diaglist" nodeset="/root/main/listinfo/diaglist" autoresize="true" caption="코드^상병명[한글]^상병명[영문]^진료일자^산정특례여부" colsep="^" colwidth="78, 116, 127, 89, 80" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:769px; top:372px; width:421px; height:103px; ">
- <col ref="diagcd"/>
- <col ref="diaghngnm"/>
- <col ref="diagengnm"/>
- <col ref="orddd" format="yyyy-mm-dd" style="left:298px; top:23px; width:91px; height:18px; text-align:center; "/>
- <col ref="estmexptyn" style="text-align:center; "/>
- </datagrid>
- <datagrid id="grd_repllist" nodeset="/root/main/listinfo/doctreqlist" caption="회신작성일자^출력일자^진료과^진료의사" colsep="^" colwidth="90, 90, 118, 100" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:769px; top:505px; width:423px; height:100px; ">
- <col ref="lastformrecdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="prntdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="orddeptnm" style="left:298px; top:23px; width:91px; height:18px; "/>
- <col ref="orddrnm"/>
- </datagrid>
- <caption id="caption1" class="cell_1" style="left:255px; top:397px; width:115px; height:23px; vertical-align:middle; ">병원전화번호</caption>
- <caption id="caption2" class="cell_1" style="left:510px; top:397px; width:115px; height:23px; vertical-align:middle; ">팩스번호</caption>
- <caption id="caption3" class="cell_1" style="left:0px; top:397px; width:115px; height:23px; vertical-align:middle; ">병원구분</caption>
- <select1 id="cmb_hospgrade" ref="/root/main/reqinfo/hospgrade" disabled="true" navindex="20" appearance="minimal" style="left:117px; top:399px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/hospgrade/A0429">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="cell_1" style="left:0px; top:705px; width:115px; height:23px; vertical-align:middle; ">되의뢰병원</caption>
- <caption id="caption7" class="cell_1" style="left:375px; top:705px; width:130px; height:23px; vertical-align:middle; ">완료일자</caption>
- <line id="line2" class="line_1" style="x1:769px; y1:630px; x2:1192px; y2:630px; "/>
- <caption id="caption8" class="tit_2" style="left:776px; top:615px; width:144px; height:13px; ">간호사회신</caption>
- <caption id="caption9" class="cell_1" style="left:0px; top:423px; width:115px; height:23px; vertical-align:middle; ">동문여부</caption>
- <line id="line1" class="line_2" style="x1:0px; y1:421px; x2:760px; y2:421px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:447px; x2:760px; y2:447px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:473px; x2:760px; y2:473px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:499px; x2:760px; y2:499px; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:525px; x2:760px; y2:525px; "/>
- <line id="line7" class="line_2" style="x1:0px; y1:551px; x2:760px; y2:551px; "/>
- <line id="line8" class="line_2" style="x1:0px; y1:577px; x2:760px; y2:577px; "/>
- <line id="line9" class="line_1" style="x1:0px; y1:700px; x2:765px; y2:700px; "/>
- <caption id="caption10" class="tit_2" style="left:6px; top:685px; width:144px; height:13px; ">되의뢰서</caption>
- <line id="line10" class="line_2" style="x1:346px; y1:680px; x2:733px; y2:680px; "/>
- <input id="opt_coophospnm" ref="/root/main/reqinfo/coophospnm" class="input_essential" disabled="true" appearance="input" style="left:117px; top:374px; width:203px; height:19px; "/>
- <output id="opt_drnm" ref="/root/main/reqinfo/drnm" class="output_fix" appearance="output" style="left:417px; top:373px; width:88px; height:19px; "/>
- <output id="opt_hosptelno" ref="/root/main/reqinfo/hosptelno" class="output_fix" appearance="output" style="left:372px; top:399px; width:135px; height:19px; "/>
- <output id="opt_hospfaxno" ref="/root/main/reqinfo/hospfaxno" class="output_fix" appearance="output" style="left:627px; top:399px; width:135px; height:19px; "/>
- <select1 id="cmb_clsmatyn" ref="/root/main/reqinfo/clsmatyn" disabled="true" navindex="20" appearance="minimal" style="left:117px; top:424px; width:135px; height:19px; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <output id="opt_emailnm" ref="/root/main/reqinfo/emailnm" class="output_fix" appearance="output" style="left:372px; top:424px; width:135 px; height:19px; "/>
- <input id="opt_orddd" ref="/root/main/reqinfo/orddd" class="input_essential" disabled="true" inputtype="date" style="left:117px; top:451px; width:135px; height:19px; "/>
- <select1 id="cmb_orddeptcd" ref="/root/main/reqinfo/orddeptcd" class="combo_default" navindex="1" appearance="minimal" style="left:372px; top:451px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/dept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fDoctSerach();
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_orddrid" ref="/root/main/reqinfo/orddrid" class="combo_default" navindex="2" appearance="minimal" style="left:627px; top:451px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/doctlist/medispcl/">
- <label ref="doctnm"/>
- <value ref="doctid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_fsexamflag" ref="/root/main/reqinfo/fsexamflag" class="combo_default" navindex="3" appearance="minimal" style="left:117px; top:477px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/fsexamflag/P0021">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_chospath" ref="/root/main/reqinfo/chospath" class="combo_default" navindex="12" appearance="minimal" style="left:473px; top:555px; width:97px; height:19px; ">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_reqtype" ref="/root/main/reqinfo/reqtype" class="combo_default" navindex="13" appearance="minimal" style="left:649px; top:555px; width:111px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/reqtype/A0418">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_rgstdd" ref="/root/main/reqinfo/rgstdd" class="input_essential" navindex="5" inputtype="date" style="left:117px; top:502px; width:135px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var rgstdd = model.getValue("/root/main/reqinfo/rgstdd");
- var enddd = rgstdd.toDate().getAddDate(100, "D").getDateFormat();
- model.setValue("/root/main/reqinfo/enddd", enddd);
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="cmb_reqpath" ref="/root/main/reqinfo/reqpath" class="combo_default" navindex="8" appearance="minimal" style="left:372px; top:528px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/reqpath/A0421">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_reqdd" ref="/root/main/reqinfo/reqdd" class="input_essential" navindex="9" inputtype="date" style="left:627px; top:528px; width:135px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*
- var reqdd = model.getValue("/root/main/reqinfo/reqdd");
- var enddd = reqdd.toDate().getAddDate(100, "D").getDateFormat();
- model.setValue("/root/main/reqinfo/enddd", enddd);
- model.refresh();
- */
- ]]>
- </script>
- </input>
- <select1 id="cmb_replflag" ref="/root/main/reqinfo/replflag" class="input_essential" navindex="7" appearance="minimal" style="left:117px; top:528px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/replflag/A0636">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_cptype" ref="/root/main/reqinfo/cptype" class="combo_default" navindex="6" appearance="minimal" style="left:372px; top:502px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cptype/A0420">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_replmthd" ref="/root/main/reqinfo/replmthd" class="combo_essential" navindex="4" appearance="minimal" style="left:627px; top:477px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/replmthd/A0422">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_repltype" ref="/root/main/reqinfo/repltype" class="combo_default" navindex="10" appearance="minimal" style="left:77px; top:555px; width:111px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/repltype/A0423">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_endflag" ref="/root/main/reqinfo/endflag" class="combo_default" disabled="true" appearance="minimal" style="left:372px; top:477px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/endflag/A0424">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <textarea id="textarea3" ref="/root/main/reqinfo/cc" navindex="14" scroll="vertical" maxlength="133" style="left:117px; top:580px; width:258px; height:24px; "/>
- <textarea id="textarea4" ref="/root/main/reqinfo/rem" navindex="15" scroll="vertical" maxlength="33" style="left:510px; top:580px; width:250px; height:20px; "/>
- <input id="opt_fstprntdt" ref="/root/main/reqinfo/fstprntdt" class="input_default" disabled="true" inputtype="date" style="left:117px; top:657px; width:135px; height:19px; "/>
- <input id="opt_indschprntdt" ref="/root/main/reqinfo/indschprntdt" class="input_default" disabled="true" inputtype="date" style="left:372px; top:657px; width:135px; height:19px; "/>
- <input id="opt_enddd" ref="/root/main/reqinfo/reqaenddd" class="input_default" disabled="true" inputtype="date" style="left:510px; top:707px; width:135px; height:19px; "/>
- <output id="opt_reqcoophospnm" ref="/root/main/reqinfo/reqahospnm" class="output_fix" appearance="output" style="left:117px; top:707px; width:253px; height:19px; "/>
- <datagrid id="grd_rclist" nodeset="/root/main/listinfo/nursereqlist" caption="회신작성일자^출력일자^진료과^진료의사" colsep="^" colwidth="90, 90, 118, 100" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:769px; top:635px; width:423px; height:95px; ">
- <col ref="lastformrecdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="prntdt" format="yyyy-mm-dd" style="left:90px; top:23px; width:90px; height:23px; text-align:center; "/>
- <col ref="orddeptnm" style="left:298px; top:23px; width:91px; height:18px; "/>
- <col ref="orddrnm"/>
- </datagrid>
- <input id="ipt_enddd" ref="/root/main/reqinfo/enddd" class="input_default" disabled="true" inputtype="date" style="left:627px; top:502px; width:135px; height:19px; "/>
- <select1 id="cmb_reqagntype" ref="/root/main/reqinfo/reqagntype" class="combo_default" navindex="11" appearance="minimal" style="left:282px; top:555px; width:111px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/reqagntype/A0583">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption11" class="cell_1" style="left:190px; top:553px; width:90px; height:23px; vertical-align:middle; ">되의뢰 유형</caption>
- <caption id="caption12" class="cell_1" style="left:510px; top:655px; width:115px; height:23px; vertical-align:middle; ">STAFF</caption>
- <output id="opt_staffid" ref="/root/main/reqinfo/staffnm" class="output_fix" appearance="output" style="left:627px; top:657px; width:115px; height:19px; "/>
- <button id="btn_staff" class="icon_search" style="left:747px; top:658px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 출력일자가 Default 값이 아닐 경우에만 수정 || model.getValue("/root/main/reqinfo/indschprntdt") != ""
- if (model.getValue("/root/main/reqinfo/indschprntdt") != "00000000000000" && model.getValue("/root/main/reqinfo/indschprntdt") != "") {
- fStaffPopUp();
- }
- else {
- messageBox("출력일자가 등록되어있지 않습니다.", "E999", "");
- return false;
- }
- ]]>
- </script>
- </button>
- <caption id="caption13" class="cell_1" style="left:510px; top:371px; width:115px; height:23px; vertical-align:middle; ">의뢰의사 전화번호</caption>
- <output id="output1" ref="/root/main/reqinfo/mpphontel" class="output_fix" appearance="output" style="left:627px; top:374px; width:135px; height:19px; "/>
- <button id="button8" class="btn2_letter5" visibility="hidden" style="left:509px; top:347px; width:75px; height:19px; ">
- <caption>SMS전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 140923 SMS 전송 수정 - AYS
-
- var UserName = model.getValue("/root/main/patient/hngnm");
- var SMSMessage = UserName + "님 내원하였습니다. -경북대학교병원 진료의뢰센터 드림";
-
- model.removeNodeset("/root/hidden/smsdata");
- model.makeValue("/root/hidden/smsdata/bizabbr", "EMR");
- model.makeValue("/root/hidden/smsdata/replytelno", "0532005024"); // 발신자 번호
-
- model.makeValue("/root/hidden/smsdata/rsrvyn", "0");
- model.makeValue("/root/hidden/smsdata/rsrvdate", "");
- model.makeValue("/root/hidden/smsdata/rsrvtime", "");
- model.makeValue("/root/hidden/smsdata/recvrlist/chk", "");
-
- model.makeValue("/root/hidden/smsdata/recvrlist/recvrnm", model.getValue("/root/main/reqinfo/drnm"));
- model.makeValue("/root/hidden/smsdata/recvrlist/recvrtelno", model.getValue("/root/main/reqinfo/mpphontel"));
- model.makeValue("/root/hidden/smsdata/msgcnts", SMSMessage); // 메세지
- zmsfOpenSMS("/root/hidden/smsdata");
- model.removeNodeset("/root/hidden/smsdata");
-
- ]]>
- </script>
- </button>
- <output id="opt_smsyn" ref="/root/main/reqinfo/smsmsgkey" class="output_fix" appearance="output" style="left:627px; top:425px; width:33px; height:19px; "/>
- <caption id="caption14" class="cell_1" style="left:510px; top:423px; width:115px; height:23px; vertical-align:middle; ">SMS 발송</caption>
- <button id="button5" class="btn2_letter7" style="left:665px; top:347px; width:97px; height:19px; ">
- <caption>메시지바로전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 140923 SMS 전송 수정 - AYS
-
- // 환자 PID, 이름, 의뢰의사 휴대번호, 의뢰일자, 의뢰번호, 의뢰내역 행번호 저장
- var PID = model.getValue("/root/main/patreq/patlist/pid");
- var UserName = model.getValue("/root/main/patient/hngnm");
- var ReqDrPhoneNo = model.getValue("/root/main/reqinfo/mpphontel");
- var Reqdd = model.getValue("/root/main/reqinfo/reqdd");
- var ReqseqNo = model.getValue("/root/main/reqinfo/reqseqno");
- var ReqlistRow = grd_reqlist.row; // 141002 - AYS
-
- var orddeptnm = cmb_orddeptcd.label;
- var orddrnm = cmb_orddrid.label;
- var replytelno = "";
- var SMSMessage = "";
-
-
- if(UserName == "" || UserName == null){
- messageBox("의뢰환자가 조회되지", "E007");
- return;
- }
-
- if(PID == "" || PID == null){
- messageBox("의뢰환자가 조회되지", "E007");
- return;
- }
-
- if(ReqDrPhoneNo == "" || ReqDrPhoneNo == null){
- messageBox("의뢰의사 전화번호가 등록되지", "E007");
- return;
- }
-
- if (gdutplceinstcd == "031") {
- SMSMessage = "의뢰하신 "+UserName + "님 내원하였습니다.";
- SMSMessage += "\n\n감사합니다.";
- SMSMessage += "\n\n-경북대학교병원 진료의뢰센터 드림";
-
- replytelno = "0532005024";
- }
- else if (gdutplceinstcd == "032") {
- SMSMessage = UserName + "님 " + orddeptnm ;
- SMSMessage += "\n\n진료하였습니다";
- SMSMessage += "\n\n회신서는 빠른 시일 내 보내드리겠습니다.";
- SMSMessage += "\n\n-칠곡경북대학교병원 진료협력센터 드림-";
- replytelno = "0532003400";
- }
-
- if (group3.attribute("visibility") == "visible") {
- SMSMessage = model.getValue("/root/main/reqinfo/msg");
- }
-
- var rtn = messageBox(SMSMessage+"\n\n"+"로 메시지를 전송하시겠습니까?", "Q");
-
-
- if(rtn=="6") {
-
- model.removeNode("/root/temp/reqlistrow"); /// 141002 - AYS
- model.removeNodeset("/root/send/sms/req");
- model.removeNodeset("/root/hidden/smsdata");
-
- model.makeValue("/root/send/sms/req/pid", PID); // 환자 차트번호
- model.makeValue("/root/send/sms/req/reqdd", Reqdd); // 의뢰일자
- model.makeValue("/root/send/sms/req/reqseqno", ReqseqNo); // 의뢰일련번호
- model.makeValue("/root/send/sms/req/replytelno", replytelno); // 발신자 번호
- model.makeValue("/root/send/sms/req/rsrvyn", 0); // 즉시 전송
-
- model.makeValue("/root/send/sms/req/recvrnm", model.getValue("/root/main/reqinfo/drnm")); // 수신자 이름
- model.makeValue("/root/send/sms/req/recvrtelno", ReqDrPhoneNo); // 수신자 번호
- model.makeValue("/root/send/sms/req/msgcnts", SMSMessage); // 메세지
- if(submit("TXARC00105")) { // TXARC00105
- if (model.getValue("/root/temp/succnt/cnt") > 0 && model.getValue("/root/temp/succnt/msgkey") != null) {
- messageBox("메시지 전송이 ", "I002");
- submit("TRARC00102");
- fReqClickSMS(ReqlistRow);
- }
- }
- }
-
- model.removeNodeset("/root/hidden/smsdata");
- model.removeNodeset("/root/send/sms/req");
-
- group3.attribute("visibility") = "hidden";
-
-
- ]]>
- </script>
- </button>
- <button id="button9" class="btn2_letter7" visibility="hidden" style="left:411px; top:347px; width:97px; height:19px; ">
- <caption>HIE의뢰서보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var hieyn = model.getValue("/root/main/reqinfo/hieyn");
-
- if (hieyn != "Y" ) {
- messageBox("HIE 의뢰환자가 선택되지 않았습니다","I");
- return;
- }
-
- fHIEReferView();
-
-
- ]]>
- </script>
- </button>
- <group id="group3" visibility="hidden" style="left:480px; top:370px; width:280px; height:225px; ">
- <button id="button10" class="btn2_letter2" style="left:225px; top:5px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group3.attribute("visibility") = "hidden";
- ]]>
- </script>
- </button>
- <textarea id="tar_msg" ref="/root/main/reqinfo/msg" style="left:5px; top:25px; width:265px; height:190px; "/>
- </group>
- <button id="button11" class="btn2_letter5" style="left:588px; top:347px; width:75px; height:19px; ">
- <caption>메시지편집</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group3.attribute("visibility") = "visible";
-
- var UserName = model.getValue("/root/main/patient/hngnm");
- var orddeptnm = cmb_orddeptcd.label;
- var SMSMessage = "";
-
- if (gdutplceinstcd == "031") {
- SMSMessage = "의뢰하신 "+UserName + "님 내원하였습니다.";
- SMSMessage += "\n\n감사합니다.";
- SMSMessage += "\n\n-경북대학교병원 진료의뢰센터 드림";
- }
- else if (gdutplceinstcd == "032") {
- SMSMessage = UserName + "님 " + orddeptnm ;
- SMSMessage += "\n\n진료하였습니다";
- SMSMessage += "\n\n회신서는 빠른 시일 내 보내드리겠습니다.";
- SMSMessage += "\n\n-칠곡경북대학교병원 진료협력센터 드림-";
- }
- model.makeValue("/root/main/reqinfo/msg",SMSMessage);
-
- tar_msg.refresh();
-
- ]]>
- </script>
- </button>
- <output id="output2" ref="/root/main/reqinfo/smsdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:665px; top:425px; width:95px; height:19px; "/>
- <caption id="caption15" class="cell_1" style="left:0px; top:605px; width:115px; height:24px; vertical-align:middle; ">의뢰번호(1차)</caption>
- <input id="input1" ref="/root/main/reqinfo/reqpseqno" format="99999999-999999-99999" style="left:117px; top:607px; width:258px; height:20px; "/>
- <caption id="caption16" class="cell_1" style="left:545px; top:604px; width:50px; height:22px; vertical-align:middle; ">기록지</caption>
- <caption id="caption17" class="cell_1" style="left:480px; top:605px; width:35px; height:22px; vertical-align:middle; ">CD</caption>
- <bool id="bool_outrecyn" checkvalue="Y,N" ref="/root/main/reqinfo/outrecyn" style="left:595px; top:605px; width:20px; height:20px; "/>
- <bool id="bool_outcdyn" checkvalue="Y,N" ref="/root/main/reqinfo/outcdyn" style="left:513px; top:605px; width:25px; height:20px; "/>
- <caption id="caption18" class="cell_1" style="left:380px; top:605px; width:70px; height:22px; vertical-align:middle; ">진료의뢰서</caption>
- <caption id="caption19" class="cell_1" style="left:625px; top:604px; width:50px; height:22px; vertical-align:middle; ">소견서</caption>
- <bool id="bool_outcmtyn" checkvalue="Y,N" ref="/root/main/reqinfo/outcmtyn" style="left:676px; top:605px; width:20px; height:20px; "/>
- <bool id="bool_outcnstyn" checkvalue="Y,N" ref="/root/main/reqinfo/outcnstyn" style="left:448px; top:605px; width:25px; height:20px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|