12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459 |
- <?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>
- <room/>
- <patnm/>
- <sex/>
- <age/>
- <pid/>
- <dschcareinfo>
- <dschcareinfo>
- <cscsstatcd>01</cscsstatcd>
- <proceracomp>01</proceracomp>
- <dracomp>02</dracomp>
- <dschtypecds>01</dschtypecds>
- <dschtypenm/>
- <dschmthdcd>01</dschmthdcd>
- <dschmthdnm/>
- <dschgoplaccd>01</dschgoplaccd>
- <dschgoplacnm/>
- <antibioallgyn>01</antibioallgyn>
- <antibioallgcd/>
- <antibioallgnm/>
- <dschcareeducinfo>
- <dschcareeduc>
- <actscop>01</actscop>
- <dietcd>01</dietcd>
- <treatdiet/>
- <dietnm/>
- <bathcd>01</bathcd>
- <bathnm/>
- <lacmthdyn>01</lacmthdyn>
- <lacmthdnm/>
- <healmngtcd/>
- <healmngtnm/>
- <healmngtsymp/>
- <mngtaftdschyn>02</mngtaftdschyn>
- <mngtaftdschcd/>
- <mngtaftdschnm/>
- <dschseqeducyn>01</dschseqeducyn>
- <dschmeditmedguidyn>01</dschmeditmedguidyn>
- <dschcatestatcd/>
- <dschcateoxy/>
- <dschcatestatnm/>
- <spcffact/>
- <brthcrtfctyn>01</brthcrtfctyn>
- <brthcrtfctnm/>
- <lacmthdcd>01</lacmthdcd>
- <dschcareeducinclyn/>
- <dschcatestatyn>01</dschcatestatyn>
- </dschcareeduc>
- </dschcareeducinfo>
- <etcfactinfo>
- <etcfact>
- <tel/>
- <eductrgt/>
- <educunstdgrde>01</educunstdgrde>
- <dschlactype>01</dschlactype>
- </etcfact>
- </etcfactinfo>
- <recdd/>
- <rectm/>
- <recuserid/>
- <dschdd/>
- <recusernm/>
- <signno/>
- </dschcareinfo>
- </dschcareinfo>
- </main>
- <send>
- <dschcareinfo>
- <rsrvinfo>
- <ordrsrvinfo/>
- <testrsrvinfo/>
- <dschdrugfactinfo/>
- </rsrvinfo>
- </dschcareinfo>
- </send>
- <harddata>
- <hardcode/>
- <send/>
- </harddata>
- <codeinfo/>
- <duplocrprnt>
- <msginfo/>
- </duplocrprnt>
- <temp>
- <prtPatient>Y</prtPatient>
- <prtOCR/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- model.removeNodeset("/root/main/dschcareinfo/ordrsrvinfo");
- model.removeNodeset("/root/main/dschcareinfo/testrsrvinfo");
- model.removeNodeset("/root/main/dschcareinfo/dschdrugfactinfo");
-
- grd_ordrsrvinfo.rebuild();
- grd_testrsrvinfo.rebuild();
- grd_dschdrugmedifact.rebuild();
- //172 JCI 적용여부
- //fGetNursHardCdInfo("'172','174','178','T40','U31'", getCurrentDate()); //CareCom.js
-
- model.makeNode("/root/temp/cond");
-
- //zesfInitSign();
-
- var paminfo = getGlobalVariable("paminfo");
-
- setCSVToNode("/root/temp/cond", paminfo);
-
- var dschdclrtyn = model.getValue("/root/temp/cond/list/dschdclrtyn");
-
- var pid = model.getValue("/root/temp/cond/list/pid");
- if(pid == "") {
- messageBox("환자를 선택하지 ", "E007");
- window.close();
-
- }else{
- if(dschdclrtyn == 'N') {
- messageBox("퇴원예고가 이루어지지", "E007");
- window.close();
- }else{
-
- var room = model.getValue("/root/temp/cond/list/roomcd");
- var patnm = model.getValue("/root/temp/cond/list/hngnm2");
- var sex = model.getValue("/root/temp/cond/list/sex");
- var age = model.getValue("/root/temp/cond/list/age");
- var pid = model.getValue("/root/temp/cond/list/pid");
-
- var deptcd = model.getValue("/root/temp/cond/list/wardcd");
- var userdept = getUserInfo("dutplcecd");
- var spiritdept = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='U31']/cdid");
-
- if(deptcd == spiritdept) {
- if(userdept != spiritdept) {
- messageBox("환자 개인정보 보호를 위해 해당병동 사용자외엔 조회를 제한합니다", "E");
- window.close();
- }
- }
-
- model.setValue("/root/main/room", room);
- model.setValue("/root/main/patnm", patnm);
- model.setValue("/root/main/sex", sex);
- model.setValue("/root/main/age", age);
- model.setValue("/root/main/pid", pid);
-
- fGetDschInfo();
-
- var dschdd = model.getValue("/root/main/dschcareinfo/dschcareinfo/dschdd");
- var dschdclrdt = model.getValue("/root/temp/cond/list/dschdclrdt").substr(0,8);
- if(dschdd == '' ) {
- if(dschdclrdt != '-' || dschdclrdt != '') {
- model.setValue("/root/main/dschcareinfo/dschcareinfo/dschdd",dschdclrdt);
- }
- }
-
- //병동전화번호가 없으면 가져온다.
- var tel = model.getValue("/root/main/dschcareinfo/dschcareinfo/etcfactinfo/etcfact/tel");
- var wardcd = model.getValue("/root/temp/cond/list/wardcd");
- var setTel = '053) 200 - ' + model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='T40' and cdid = '" + wardcd + "']/cdnm");
- if (tel == '') {
- model.setValue("/root/main/dschcareinfo/dschcareinfo/etcfactinfo/etcfact/tel", setTel);
- }
-
- model.refresh();
- }
- }
- ]]>
- </script>
- <submission id="TRMNN00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main"/>
- <submission id="TRMNN00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden"/>
- <submission id="TRMNN00503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/rsrvinfo"/>
- <submission id="TRMNN00504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/patinfo"/>
- <submission id="TXMNN00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dschcareinfo"/>
- <submission id="TXMRF03805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/insocrtag"/>
- <submission id="TRMMB04105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/codeinfo/codelist"/>
- <submission id="TRADC02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/patinfo"/>
- <submission id="TRMNW15101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/duplocrprnt/msginfo"/>
- <submission id="TXMNW03602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reprntinfo"/>
- <submission id="TRMNW03605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hiden"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/signweb/js/ZES001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
- <script type="javascript" src="../../../emr/formmngtweb/js/MRF03800.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../emr/wardcareweb/js/SMMNW03.js"/>
- <script type="javascript">
- <![CDATA[
- var pid ="";
- var indd = "";
- var instcd = "";
- var orddeptcd = "";
- //var xFormCd = "0000002452";
- //var xFormCd = "1300014129";
-
- fGetNursHardCdInfo("'172','174','178','T40','U31','R4'", getCurrentDate()); //CareCom.js
-
- var xFormCd = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='R4' and supcdid = '05']/cdid"); // 서식코드 기준자료로 관리
-
- function fGetCurrentDate() {
-
- var dt = getCurrentDate();
-
- return dt;
- }
-
- function fGetCurrentTime() {
- var dt = getCurrentTime();
- dt = dt.substr(0,4);
-
- return dt;
- }
-
- function fMakeGridData(grdObj) {
-
- var grdInfo = grdObj.getUpdateData();
- var rowStatus;
- var status;
-
- for(var i = 1; i < grdObj.rows; i++) {
- rowStatus = grdObj.rowStatus(i);
-
-
- if(rowStatus=="1" || rowStatus == "3") {
- status = "i";
- } else if(rowStatus == "2") {
- status = "u";
-
- } else if(rowStatus == "4") {
- status = "d";
- } else if(rowStatus == "0") {
-
- }
-
- grdInfo += status;
- grdInfo += grdObj.attribute("colsep");
- for(var j = 0; j < grdObj.cols; j++) {
- grdInfo += grdObj.valueMatrix(i, j);
-
- if(j != grdObj.cols-1) {
- grdInfo += grdObj.attribute("colsep");
- }
- }
- grdInfo += grd_ordrsrvinfo.attribute("rowsep");
- }
-
- return grdInfo;
- }
-
- //퇴원간호계획 조회
- function fGetDschInfo(){
- var pid = model.getValue("/root/temp/cond/list/pid");
- var indd = model.getValue("/root/temp/cond/list/indd");
- var cretno = model.getValue("/root/temp/cond/list/cretno");
- var instcd = model.getValue("/root/temp/cond/list/instcd");
- var orddeptcd = model.getValue("/root/temp/cond/list/orddeptcd");
-
- model.removeNodeset("/root/send/req");
- model.makeValue("/root/send/req/pid", pid);
- model.makeValue("/root/send/req/indd", indd);
- model.makeValue("/root/send/req/cretno", cretno);
- model.makeValue("/root/send/req/orddeptcd", orddeptcd);
- model.makeValue("/root/send/req/instcd", instcd);
- model.makeValue("/root/send/req/dschdclrdt", model.getValue("/root/temp/cond/list/dschdclrdt").substr(0,8)); //예약정보 조회시 사용
- model.makeValue("/root/send/req/recflag", "05");
-
- if(submit("TRMNN00502")) {
- var exist = model.getValue("/root/hidden/existinfo/exist");
-
- if(exist == "Y") {
- submit("TRMNN00501");
-
- } else {
- model.setValue("/root/main/dschcareinfo/dschcareinfo/recdd", fGetCurrentDate());
- model.setValue("/root/main/dschcareinfo/dschcareinfo/rectm", fGetCurrentTime());
- model.setValue("/root/main/dschcareinfo/dschcareinfo/recuserid", getUserId());
- model.setValue("/root/main/dschcareinfo/dschcareinfo/recusernm", getUserName());
- //입원전 검사실에서 미시행한 처방이 존재할 경우 [외래진료과에서 반환받으실 입원전 검사처방이 존재합니다] 라는 메시지가 퇴원간호계획화면의 {특이사항} 항목에 자동으로 조회
- if(model.getValue("/root/hidden/existinfo/intestprcpyn") == "Y"){
- model.setValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/spcffact", "외래진료과에서 반환받으실 입원전 검사처방이 존재합니다.");
- }
- }
-
- submit("TRMNW03605");
- var dschcateyn = model.getValue("/root/hiden/dschcateinfo/dschcateyn");
- if( dschcateyn == "Y" ){
- model.setValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatyn", "02"); //유
- messageBox("제거되지 않은 [삽관/기구] 기록이 있습니다. \n 기록을 확인","I008"); // 하십시오.
- }
-
-
- rdo_dschtypes.dispatch("xforms-value-changed");
- rdo_dschmthd.dispatch("xforms-value-changed");
- rdo_dschgoplac.dispatch("xforms-value-changed");
- rdo_antibioallgyn.dispatch("xforms-value-changed");
- chk_antibioallgcd.dispatch("xforms-value-changed");
- rdo_diet.dispatch("xforms-value-changed");
- rdo_bath.dispatch("xforms-value-changed");
- rdo_lacyn.dispatch("xforms-value-changed");
- chk_healmngt.dispatch("xforms-value-changed");
- rdo_mngtaftdschyn.dispatch("xforms-value-changed");
- chk_mngtaftdsch.dispatch("xforms-value-changed");
- rdo_brthcrtfctyn.dispatch("xforms-value-changed");
- chk_dschcatestat.dispatch("xforms-value-changed");
-
- if ( isNull(model.getValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatyn")) ){
- model.makeValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatyn","01");
- }
- rdo_dschcatestatyn.dispatch("xforms-value-changed");
-
- fGetRsrvInfo(); //예약정보조회
- }
- }
-
- /**
- * @group :
- * @ver : 2007.10.09
- * @by : 김 병 국
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 퇴원 간호 계획 출력
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fPrintDschInfo(printflag, ocrtag, elecflag) {
- var exist = model.getValue("/root/hidden/existinfo/exist");
- if(exist != "Y") {
- messageBox("저장한 후에 출력하세요.", "I");
- return;
- }
-
- var printflag = printflag;
- var ocrtag = ocrtag;
-
- var formcd = xFormCd ; //"0000002452";
- var usernm = getUserName();
- model.makeValue("/root/send/req/formcd", formcd);
-
- var sendPath = "/root/send/dschcareinfo"; //렉스퍼트 인자값 경로
- var destPath = "/root/main/dschcareinfo"; //기본 퇴원간호계획 경로
- var sendDschPath = "/root/send/dschcareinfo/dschcareinfo"; //렉스퍼트 인자값 경로
- var destEducPath = "/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc"; //퇴원간호교육에 관한 경로
- var destEtcPath = "/root/main/dschcareinfo/dschcareinfo/etcfactinfo/etcfact"; //기타 사항들에 관한 경로
- var patInfoPath = "/root/temp/cond/list"; //상단정보 경로
-
- var pid = model.getValue(patInfoPath + "/pid");
- var indd = model.getValue(patInfoPath + "/indd");
- var cretno = model.getValue(patInfoPath + "/cretno");
- var instcd = model.getValue(patInfoPath + "/instcd");
- var ordtype = model.getValue(patInfoPath + "/ioflag");
- var medispclid = model.getValue(patInfoPath + "/medispclid");
- var orddeptcd = model.getValue(patInfoPath + "/orddeptcd");
- var hngnm = model.getValue(patInfoPath + "/hngnm");
- var age = model.getValue(patInfoPath + "/age");
- var sex= model.getValue(patInfoPath + "/sex");
- var wardnm = model.getValue(patInfoPath + "/wardnm");
-
- submit("TRMNN00504"); //주민번호, 부서명 가져오기 위한 submit
-
- var rrgstno1 = model.getValue("/root/hidden/patinfo/rrgstno1");
- var rrgstno2 = model.getValue("/root/hidden/patinfo/rrgstno2");
- var orddeptnm = model.getValue("/root/hidden/patinfo/orddeptnm");
-
- var seq = "" ;
-
- if(printflag == "reprint"){
- seq = ocrtag;
- }else{
- seq = model.getValue("/root/hidden/patinfo/seq");
- }
-
- var formfromdt = model.getValue("/root/hidden/patinfo/formfromdt");
- var orddeptabbr = model.getValue("/root/hidden/patinfo/orddeptabbr");
- var prntcnt = model.getValue("/root/hidden/patinfo/prntcnt");
-
- //출력물 : 병원별 등록번호 표시방법 여부(HardCode 테이블 이용)_20090820_SMY
- model.removeNodeset("/root/harddata/send");
- model.makeNode("/root/harddata/send");
- mmbfGetHardCodeInfoNm("/root/harddata/send","/root/harddata/hardcode", 3801); //OCR서식의 등록번호 체크로직 표시 여부
- var SetPidYN = model.getValue("/root/harddata/hardcode/hardcd/hardcd"); //Y일 경우 : 출력물의 pid정보가 8자리 이하일 경우 0으로 자릿수를 맞춰줌
-
- var inreq = model.getValue("/root/main/dschcareinfo/rsrvinfo/inrsrvinfo/inreq");//입원의뢰서정보
- var roomcd = model.getValue("/root/temp/cond/list/roomcd");//병실정보
-
- var actscop = rdo_actscop.label;
- var diet = rdo_diet.value;
-
- if(diet == "02") { //치료식 선택시.
- diet = rdo_diet.label + "( " + ipt_treatdiet.label + " )";
- } else if(diet == "04") { //기타 선택시.
- diet = rdo_diet.label + "( " + ipt_dietnm.label + " )";
- } else {
- diet = rdo_diet.label;
- }
-
- var bath = rdo_bath.value;
-
- if(bath == "07") {
- bath = rdo_bath.label + "( " + ipt_bathnm.label + " )";
- } else {
- bath = rdo_bath.label;
- }
-
- //모유수유
- var lacyn = rdo_lacyn.value;
- var lacmthdnm = rdo_lacyn.label;
- str = rdo_lacyn.label;
- arr = chk_lac.label.split(" ");
-
- if(lacyn != "") {
- if(lacyn == "01") {
- if(lacmthdnm != "") {
- str += "( " + arr + " )";
- }
- }
- lac = str;
- }
-
- //수유방법
- var lacmthd = rdo_lacmthd.label;
-
- //건강관리
- var healmngtVal = chk_healmngt.value;
- var healmngtLab = chk_healmngt.label;
-
- var arr = new Array(chk_healmngt.length);
-
- for(var i = 0; i < arr.length; i++) {
- arr[i]="";
- }
-
- var arrVal = healmngtVal.split(","); //선택된 Value값을 가져온.다
- var arrLab = healmngtLab.split(","); //선택된 Label값을 가져온다.
-
- var healmngt = "";
- var idx = 0;
-
- //전체 아이템 갯수 만큼 반복.(item값을 비교하기를 위한 반복문)
- for(var i = 1; i <= chk_healmngt.length; i++) {
-
- //선택된 아이템의 갯수만큼 반복.
- for(var j = 0; j < arrVal.length; j++) {
- //i를 가지고 비교를 함으로써 아이템 항목 순서대로 값을 가져감.
- if(i == arrVal[j]) {
- //기타이거나
- if(i == '9') {
- arrLab[idx] += "( " + ipt_healmngtnm.label + " )";
- }
- //외래진료나 문의를 요하는 증상 항목 선택시
- if(i == '13') {
- arrLab[idx] += cap_healmngtsymp.label + "( " + ipt_healmngtsymp.label + " )";
- }
-
- idx++; //선택된 항목만큼. 값이 담겨져있는지 비료를 위한 인덱스.
-
- //선택된 항목만큼값을 담았다면 종료.
- if(idx == arrVal.length) {
- break;
- }
- }
- }
- }
-
- healmngt = arrLab; //저장한 값을 변수에 담음.
-
- //추후관리
- var mngtaftdsch = rdo_mngtaftdschyn.value;
-
- var mngtaftdschVal = chk_mngtaftdsch.value;
- var mngtaftdschLab = chk_mngtaftdsch.label;
-
- arrVal = mngtaftdschVal.split(" ");
- arrLab = mngtaftdschLab.split(" ");
-
- if(mngtaftdsch == "01") {
- mngtaftdsch = rdo_mngtaftdschyn.label;
-
- } else {
- idx = 0;
-
- for(var i = 1; i <= chk_mngtaftdsch.length; i++) {
- for(var j = 0; j < mngtaftdschVal.length; j++) {
- if(i == arrVal[j]) {
- if(i == '5') {
- arrLab[idx] += "( " + ipt_mngtaftdschnm.label + " )";
- }
- idx++;
- }
- }
- }
- mngtaftdsch = rdo_mngtaftdschyn.label + "( " + arrLab + " )";
-
- }
-
- //퇴원시 기구 및 삽관상태_20090601_SMY
- var dschcatestatVal = chk_dschcatestat.value;
- var dschcatestatLab = chk_dschcatestat.label;
- var dschcatestatyn = rdo_dschcatestatyn.label;
- var dschcatestatynVal = rdo_dschcatestatyn.value;
-
- if ( dschcatestatynVal !="" && dschcatestatynVal == "02" ){
- var arr = new Array(chk_dschcatestat.length);
-
- for(var i = 0; i < arr.length; i++) {
- arr[i]="";
- }
-
- var arrVal = dschcatestatVal.split("▦"); //선택된 Value값을 가져온.다
- var arrLab = dschcatestatLab.split("▦"); //선택된 Label값을 가져온다.
-
- var dschcatestat = "";
- var idx = 0;
-
- //전체 아이템 갯수 만큼 반복.(item값을 비교하기를 위한 반복문)
- for(var i = 1; i <= chk_dschcatestat.length; i++) {
-
- //선택된 아이템의 갯수만큼 반복.
- for(var j = 0; j < arrVal.length; j++) {
- //i를 가지고 비교를 함으로써 아이템 항목 순서대로 값을 가져감.
- if(i == arrVal[j]) {
- //산소
- if(i == '7') {
- arrLab[idx] += "( " + ipt_dschcateoxy.value + cap_oxyunit.label + " )";
- }
-
- //기타이거나
- if(i == '12') {
- arrLab[idx] += "( " + ipt_dschcatestatnm.label + " )";
- }
-
- idx++; //선택된 항목만큼. 값이 담겨져있는지 비료를 위한 인덱스.
-
- //선택된 항목만큼값을 담았다면 종료.
- if(idx == arrVal.length) {
- break;
- }
- }
- }
- }
-
- dschcatestat = arrLab; //저장한 값을 변수에 담음.
- } else {
- dschcatestat = dschcatestatyn;
- }
-
-
- //퇴원절차교육
- var dschseqeduc = rdo_dschseqeducyn.label;
-
- //출생증명서
- var brthcrtfct = rdo_brthcrtfctyn.label;
-
- if(rdo_brthcrtfctyn.value == "02") {
- brthcrtfct += ipt_brthcrtfct.label;
- }
-
- var dschseqeducyn = rdo_dschseqeducyn.label;
- var dschmeditmedguidyn = rdo_dschmeditmedguidyn.label;
- var spcffact = txa_spcffact.label;
- //문의전화
- var tel = ipt_tel.label;
- //교육대상
- var eductrgt = chk_eductrgt.label;
- //교육이해정도
- var educunstdgrde = rdo_educunstgrde.label;
- var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//JCI 추가 20091216 김홍점
- //JCI 추가 20091216 김홍점 산부인과 비뇨기과 신경과는 입퇴원요약기록 출력되면 안됨.
- var instNotUseDeptcd = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='178' and cdnm = '"+ orddeptcd +"']/cdid");
-
- model.makeNode(sendPath);
-
- model.makeValue(sendDschPath + "/pid", pid);
- model.makeValue(sendDschPath + "/hngnm", hngnm);
- model.makeValue(sendDschPath + "/age", age);
- model.makeValue(sendDschPath + "/sex", sex);
- model.makeValue(sendDschPath + "/regist1", rrgstno1);
- model.makeValue(sendDschPath + "/regist2", rrgstno2);
- model.makeValue(sendDschPath + "/orddeptnm", orddeptnm);
- model.makeValue(sendDschPath + "/wardnm", wardnm);
- model.makeValue(sendDschPath + "/indd", indd);
-
- model.makeValue(sendDschPath + "/actscope", actscop);
- model.makeValue(sendDschPath + "/diet", diet);
- model.makeValue(sendDschPath + "/bath", bath);
- model.makeValue(sendDschPath + "/lac", lac);
- model.makeValue(sendDschPath + "/lacmthd", lacmthd);
- model.makeValue(sendDschPath + "/healmngt", healmngt);
- model.makeValue(sendDschPath + "/mngtaftdsch", mngtaftdsch);
- model.makeValue(sendDschPath + "/spcffact", spcffact);
- model.makeValue(sendDschPath + "/brthcrtfct", brthcrtfct);
- model.makeValue(sendDschPath + "/dschseqeduc", dschseqeduc);
- model.makeValue(sendDschPath + "/dschmeditmedguid", dschmeditmedguidyn);
- model.makeValue(sendDschPath + "/dschcatestat", dschcatestat); //20090601_SMY추가
- model.makeValue(sendDschPath + "/tel", tel);
- model.makeValue(sendDschPath + "/seq", seq);
- model.makeValue(sendDschPath + "/usernm", usernm);
- //model.makeValue(sendDschPath + "/logurl", getLogoImageURL());
- //model.makeValue(sendDschPath + "/logurl", getBigLogoImageURL('', instcd));
- model.makeValue(sendDschPath + "/logurl", getImageURL("biglogo"+instcd, "jpg"));
- model.makeValue(sendDschPath + "/curdd", getCurrentDate());
- model.makeValue(sendDschPath + "/curtm", getCurrentTime());
- model.makeValue(sendDschPath + "/orddeptabbr", orddeptabbr);
- model.makeValue(sendDschPath + "/setpidyn", SetPidYN); //20090820_SMY추가
-
- model.makeNode(sendPath + "/rsrvinfo/ordrsrvinfo");
- model.makeNode(sendPath + "/rsrvinfo/testrsrvinfo");
- model.makeNode(sendPath + "/rsrvinfo/dschdrugfactinfo");
- model.makeValue(sendDschPath + "/inreq", inreq); //입원외뢰서정보
- model.makeValue(sendDschPath + "/roomcd", roomcd); //병실정보
-
- fPrintDschCarePlanForJCI(sendPath + "/comrecinfo", "/root/hidden/comrecinfo", "/root/codeinfo/codeinfo" );//Carecom.js
-
- copyNodesetType(sendPath + "/rsrvinfo/ordrsrvinfo", "/root/main/dschcareinfo/rsrvinfo/ordrsrvinfo");
- copyNodesetType(sendPath + "/rsrvinfo/testrsrvinfo", "/root/main/dschcareinfo/rsrvinfo/testrsrvinfo");
- copyNodesetType(sendPath + "/rsrvinfo/dschdrugfactinfo", "/root/main/dschcareinfo/rsrvinfo/dschdrugfactinfo");
-
- clearParameter("reportprintyn");
-
- // 전자동의서
- if ( elecflag == "Y" ) {
- if ( model.getValue("/root/temp/prtPatient") == "Y" ) {
- //환자보관용
- exeReportPreview("RPMNN00500", "XMLSTR", "", "", "true", "", "", "", "", "true");
- }
- if ( model.getValue("/root/temp/prtOCR") == "Y" ) {
- //전자동의서 version
- var pagecnt = "1";
- if(!fSaveOCRIF(seq, pid, indd, cretno, ordtype, orddeptcd, medispclid, formcd, formfromdt, "", "", pagecnt)){
- messageBox("통합기록조회 연동중 실패하였습니다.","C999");
- return;
- }
-
- ocrtag = seq;
-
- //fElecPrint(pid, cretno, indd, instcd, formcd, ocrtag, "RPMNN00503");
- fElecPrint(pid, cretno, indd, instcd, formcd, ocrtag, ""); //간소화 양식
- }
- // 일반 동의서
- } else {
- //환자교육출력
- exeReportPreview("RPMNN00500", "XMLSTR", "", "", "true", "", "", "", "", "true");
- if(printflag == "newprint") {
- ////////////////////////////////////////////////////////////////////////////
- var left = event.screenX;
- var top = event.screenY;
-
- fOCRPrint(left, top, pid, indd, cretno, ordtype, formcd);
- ////////////////////////////////////////////////////////////////////////////
- } else {
- messageBox("병원 보관용 퇴원교육확인서는 출력된 상태입니다.\r\n\r\n[동의서 및 기타 출력서식 반납] 프로그램에서 재출력하십시오.", "I999");
- return;
- }
-
- /*exeReportPreview("RPMNN00502", "XMLSTR", "", "", "true", "", "", "", "", "true");
-
- model.removeNode("/root/hidden/comrecinfo");
-
- if (getParameter("reportprintyn") == "Y"){ // 프린트 출력이 되고 창이 닫혔을 때
-
- var pagecnt = getParameter("reportPageCount"); //출력장수(RPMNW03600)
-
- if(printflag == "newprint"){ // 신규 출력
- //OCR 정보 저장
-
- if(!fSaveOCRIF(seq, pid, indd, cretno, ordtype, orddeptcd, medispclid, formcd, formfromdt, "", "", pagecnt)){
- messageBox("통합기록조회 연동중 실패하였습니다.","C999");
- return;
- }
-
- }else if(printflag == "reprint"){ // 재출력
-
- model.makeValue("/root/send/reprntinfo/ocrtag", seq);
- model.makeValue("/root/send/reprntinfo/pagecnt", pagecnt);
-
- submit("TXMNW03602");
- }
- }*/
- }
-
- //btn_prn.dispatch("DOMActivate");
- }
-
- function fSetDschInfo(certFlag) {
-
- var ordRsrvInfo = getGridUpdateData(grd_ordrsrvinfo);
- var testRsrvInfo = getGridUpdateData(grd_testrsrvinfo);
- var dschdrugmedifactinfo = getGridUpdateData(grd_dschdrugmedifact);
-
-
-
- var recdt = model.getValue("/root/main/dschcareinfo/dschcareinfo/recdd") + model.getValue("/root/main/dschcareinfo/dschcareinfo/rectm");
-
- pid = model.getValue("/root/temp/cond/list/pid");
- indd = model.getValue("/root/temp/cond/list/indd");
- instcd = model.getValue("/root/temp/cond/list/instcd");
- orddeptcd = model.getValue("/root/temp/cond/list/orddeptcd");
-
- var existflag = model.getValue("/root/hidden/existinfo/exist");
-
- model.makeValue("/root/send/dschcareinfo/recdd", model.getValue("/root/main/dschcareinfo/dschcareinfo/recdd"));
- model.makeValue("/root/send/dschcareinfo/rectm", model.getValue("/root/main/dschcareinfo/dschcareinfo/rectm"));
- model.makeValue("/root/send/dschcareinfo/recdt", recdt);
- model.makeValue("/root/send/dschcareinfo/recuserid", model.getValue("/root/main/dschcareinfo/dschcareinfo/recuserid"));
- model.makeValue("/root/send/dschcareinfo/recusernm", model.getValue("/root/main/dschcareinfo/dschcareinfo/recusernm"));
- model.makeValue("/root/send/dschcareinfo/dschdd", model.getValue("/root/main/dschcareinfo/dschcareinfo/dschdd"));
- model.makeValue("/root/send/dschcareinfo/dschtypecds", model.getValue("/root/main/dschcareinfo/dschcareinfo/dschtypecds"));
- model.makeValue("/root/send/dschcareinfo/dschtypenm", model.getValue("/root/main/dschcareinfo/dschcareinfo/dschtypenm"));
- model.makeValue("/root/send/dschcareinfo/cscsstatcd", model.getValue("/root/main/dschcareinfo/dschcareinfo/cscsstatcd"));
- model.makeValue("/root/send/dschcareinfo/dschmthdcd", model.getValue("/root/main/dschcareinfo/dschcareinfo/dschmthdcd"));
- model.makeValue("/root/send/dschcareinfo/dschmthdnm", model.getValue("/root/main/dschcareinfo/dschcareinfo/dschmthdnm"));
- model.makeValue("/root/send/dschcareinfo/dschgoplaccd", model.getValue("/root/main/dschcareinfo/dschcareinfo/dschgoplaccd"));
- model.makeValue("/root/send/dschcareinfo/dschgoplacnm", model.getValue("/root/main/dschcareinfo/dschcareinfo/dschgoplacnm"));
- model.makeValue("/root/send/dschcareinfo/proceracomp", model.getValue("/root/main/dschcareinfo/dschcareinfo/proceracomp"));
- model.makeValue("/root/send/dschcareinfo/dracomp", model.getValue("/root/main/dschcareinfo/dschcareinfo/dracomp")); //20090601_SMY추가
- model.makeValue("/root/send/dschcareinfo/antibioallgyn", model.getValue("/root/main/dschcareinfo/dschcareinfo/antibioallgyn"));
- model.makeValue("/root/send/dschcareinfo/antibioallgcd", model.getValue("/root/main/dschcareinfo/dschcareinfo/antibioallgcd"));
- model.makeValue("/root/send/dschcareinfo/antibioallgnm", model.getValue("/root/main/dschcareinfo/dschcareinfo/antibioallgnm"));
- model.makeValue("/root/send/dschcareinfo/dschcareeducinfo", instance1.selectNodesXml("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc"));
- model.makeValue("/root/send/dschcareinfo/etcfactinfo", instance1.selectNodesXml("/root/main/dschcareinfo/dschcareinfo/etcfactinfo/etcfact"));
- model.makeValue("/root/send/dschcareinfo/ordrsrvinfo", ordRsrvInfo);
- model.makeValue("/root/send/dschcareinfo/testrsrvinfo", testRsrvInfo);
- model.makeValue("/root/send/dschcareinfo/dschdrugmedifactinfo", dschdrugmedifactinfo);
- model.makeValue("/root/send/dschcareinfo/recflag", "05");
- model.makeValue("/root/send/dschcareinfo/pid", pid);
- model.makeValue("/root/send/dschcareinfo/indd", indd);
- model.makeValue("/root/send/dschcareinfo/orddeptcd", orddeptcd);
- model.makeValue("/root/send/dschcareinfo/instcd", instcd);
- model.makeValue("/root/send/dschcareinfo/existflag", existflag);
- model.makeValue("/root/send/dschcareinfo/certflag", certFlag);
- }
-
- function fMake_SignData() {
-
- Sign.addnode("/root/main/dschcareinfo");
-
- var xDschInfoPath = Sign.XPATH_SIGNINFO + "/dschcareinfo";
- var str = "";
-
- /****************************** 퇴원시 환자정보 **************************************/
- //퇴원유형
- var dschtypecds = model.getValue(xDschInfoPath + "/dschcareinfo/dschtypecds");
- var dschtypenm = model.getValue(xDschInfoPath + "/dschcareinfo/dschtypenm");
- str = rdo_dschtypes.label;
-
- if(dschtypecds != "") {
- if(dschtypecds == "07") {
- if(dschtypenm != "") {
- str += "(" + dschtypenm + ")";
- }
- }
- model.setValue(xDschInfoPath + "/dschcareinfo/dschtypecds", str);
- }
-
- //의식상태
- var cscsstat = model.getValue(xDschInfoPath + "/dschcareinfo/cscsstatcd");
- str = rdo_cscsstat.label;
-
- if(cscsstat != "") {
- model.setValue(xDschInfoPath + "/dschcareinfo/cscsstatcd", str);
- }
-
- //보호자동반
- var proceracomp = model.getValue(xDschInfoPath + "/dschcareinfo/proceracomp");
- str = rdo_proceracomp.label;
-
- if(proceracomp != "") {
- model.setValue(xDschInfoPath + "/dschcareinfo/proceracomp", str);
- }
-
- //진료의동반_20090601_SMY추가
- var dracomp = model.getValue(xDschInfoPath + "/dschcareinfo/dracomp");
- str = rdo_dracomp.label;
-
- if(dracomp != "") {
- model.setValue(xDschInfoPath + "/dschcareinfo/dracomp", str);
- }
-
- //퇴원방법
- var dschmthdcd = model.getValue(xDschInfoPath + "/dschcareinfo/dschmthdcd");
- var dschmthdnm = model.getValue(xDschInfoPath + "/dschcareinfo/dschmthdnm");
- str = rdo_dschmthd.label;
-
- if(dschmthdcd != "") {
- if(dschmthdcd == "06") {
- if(dschmthdnm != "") {
- str += "(" + dschmthdnm + ")";
- }
- }
- model.setValue(xDschInfoPath + "/dschcareinfo/dschmthdcd", str);
- }
-
- //퇴원후갈곳
- var dschgoplaccd = model.getValue(xDschInfoPath + "/dschcareinfo/dschgoplaccd");
- var dschgoplacnm = model.getValue(xDschInfoPath + "/dschcareinfo/dschgoplacnm");
- str = rdo_dschgoplac.label;
-
- if(dschgoplaccd != "") {
- if(dschgoplaccd == "04") {
- if(dschgoplacnm != "") {
- str += "(" + dschgoplacnm + ")";
- }
- }
- model.setValue(xDschInfoPath + "/dschcareinfo/dschgoplaccd", str);
- }
-
- //퇴원시 수유형태
- var dschlactype = model.getValue(xDschInfoPath + "/dschcareinfo/etcfactinfo/etcfact/dschlactype");
- str = rdo_dschlactype.label;
-
- if (dschlactype != ""){
- model.setValue(xDschInfoPath + "/dschcareinfo/etcfactinfo/etcfact/dschlactype", str);
- }
-
- //입원기간 중 항생제 알러지 반응
- var antibioallgyn = model.getValue(xDschInfoPath + "/dschcareinfo/antibioallgyn");
- var antibioallgnm = model.getValue(xDschInfoPath + "/dschcareinfo/antibioallgnm");
- str = rdo_antibioallgyn.label;
-
- if(antibioallgyn != "") {
-
- if(antibioallgyn == "02") {
- var antibioallgVal = chk_antibioallgcd.value;
- var antibioallgLab = chk_antibioallgcd.label;
-
- var arrVal = antibioallgVal.split(",");
- var arrLab = antibioallgLab.split(",");
-
- idx = 0;
-
- for(var i = 1; i <= chk_antibioallgcd.length; i++) {
- for(var j = 0; j < antibioallgVal.length; j++) {
- if(i == arrVal[j]) {
- if(i == '3') {
- arrLab[idx] += "( " + antibioallgnm + " )";
- }
- idx++;
- }
- }
- }
-
- str += "( " + arrLab + " )";
- }
- model.setValue(xDschInfoPath + "/dschcareinfo/antibioallgyn", str );
- }
-
- /****************************** 퇴원 간호 교육 **************************************/
- //활동범위
- var actscop = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/actscop");
- str = rdo_actscop.label;
-
- if(actscop != "") {
- model.setValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/actscop", str);
- }
-
- //식이
- var diet = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dietcd");
- var treatdiet = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/treatdiet");
- var dietnm = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dietnm");
- str = rdo_diet.label;
-
- if(diet != "") {
- if(diet == "03") { //치료식 선택시.
- if(treatdiet != "") {
- str += "(" + treatdiet + ")";
- }
- } else if(diet == "04") { //기타 선택시.
-
- if(dietnm != "") {
- str += "(" + dietnm + ")";
- }
- }
- model.setValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dietcd", str);
- }
-
- //목욕
- var bathcd = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/bathcd");
- var bathnm = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/bathnm");
- str = rdo_bath.label;
-
- if(bathcd != "") {
- if(bathcd == "07") {
- if(bathnm != "") {
- str += "(" + bathnm + ")";
- }
- }
- model.setValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/bathcd", str);
- }
- //모유수유
- var lacyn = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/lacmthdyn");
- var lacmthdnm = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/lacmthdnm");
- str = rdo_lacyn.label;
- arr = chk_lac.label.split(" ");
-
- if(lacyn != "") {
- if(lacyn == "01") {
- if(lacmthdnm != "") {
- str += "( " + arr + " )";
- }
- }
- model.setValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/lacmthdyn", str);
- }
-
- //수유방법
- var lacmthdcd = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/lacmthdcd");
- str = rdo_lacmthd.label;
-
- if(lacmthdcd != "") {
- model.setValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/lacmthdcd", str);
- }
-
- //16.11.07_기타(text)항목 Sing Data 잘못발생되어 수정_AYS
- //건강관리
- var healmngt = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtcd");
- var healmngtnm = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtnm");
- var healmngtsymp = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtsymp");
-
- if(healmngt != "") {
- var healmngtLab = chk_healmngt.label;
- var arrLab = healmngtLab.split(","); //선택된 Label값을 가져온다.
-
- //전체 아이템 갯수 만큼 반복.(item값을 비교하기를 위한 반복문)
- for(var i = 0; i < arrLab.length; i++) {
- if(arrLab[i] == '기타') {
- arrLab[i] += "( " + healmngtnm + " )";
- }
-
- if(arrLab[i] == '외래진료나 문의를 요하는 증상') {
- arrLab[i] += "( " + healmngtsymp + " )";
- }
- }
- str = arrLab; //저장한 값을 변수에 담음.
-
- model.setValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtcd", str );
- }
-
- /*
- //건강관리
- var idx = 0;
- var healmngt = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtcd");
- var healmngtnm = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtnm");
- var healmngtsymp = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtsymp");
-
- if(healmngt != "") {
- var healmngtVal = chk_healmngt.value;
- var healmngtLab = chk_healmngt.label;
-
- var arrVal = healmngtVal.split(","); //선택된 Value값을 가져온.다
- var arrLab = healmngtLab.split(","); //선택된 Label값을 가져온다.
-
- //전체 아이템 갯수 만큼 반복.(item값을 비교하기를 위한 반복문)
- for(var i = 1; i <= chk_healmngt.length; i++) {
-
- //선택된 아이템의 갯수만큼 반복.
- for(var j = 0; j < arrVal.length; j++) {
- //i를 가지고 비교를 함으로써 아이템 항목 순서대로 값을 가져감.
- if(i == arrVal[j]) {
- //기타이거나
- if(i == '9') {
- arrLab[idx] += "( " + healmngtnm + " )";
- }
- //외래진료나 문의를 요하는 증상 항목 선택시
- if(i == '13') {
- arrLab[idx] += cap_healmngtsymp.label + "( " + healmngtsymp + " )";
- }
-
- idx++; //선택된 항목만큼. 값이 담겨져있는지 비료를 위한 인덱스.
-
- //선택된 항목만큼값을 담았다면 종료.
- if(idx == arrVal.length) {
- break;
- }
- }
- }
- }
- str = arrLab; //저장한 값을 변수에 담음.
-
- model.setValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtcd", str );
- }
- */
-
- //추후관리
- var mngtaftdsch = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschyn");
- var mngtaftdschnm = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschnm");
- str = rdo_mngtaftdschyn.label;
-
- if(mngtaftdsch != "") {
-
- if(mngtaftdsch == "02") {
- var mngtaftdschVal = chk_mngtaftdsch.value;
- var mngtaftdschLab = chk_mngtaftdsch.label;
-
- var arrVal = mngtaftdschVal.split(" ");
- var arrLab = mngtaftdschLab.split(" ");
-
- idx = 0;
-
- for(var i = 1; i <= chk_mngtaftdsch.length; i++) {
- for(var j = 0; j < mngtaftdschVal.length; j++) {
- if(i == arrVal[j]) {
- if(i == '5') {
- arrLab[idx] += "( " + mngtaftdschnm + " )";
- }
- idx++;
- }
- }
- }
-
- str += "( " + arrLab + " )";
- }
- model.setValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschyn", str );
- }
-
- //퇴원시 기구 및 삽관상태_20090601_SMY추가
- var dschcatestatyn = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatyn");
- str = rdo_dschcatestatyn.label;
- var idx = 0;
- var dschcatestatcd = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatcd");
- var dschcateoxy = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcateoxy");
- var dschcatestatnm = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatnm");
-
- if(dschcatestatyn != "" && dschcatestatyn == "02") {
- var dschcatestatVal = chk_dschcatestat.value;
- var dschcatestatLab = chk_dschcatestat.label;
-
- var arrVal = dschcatestatVal.split("▦"); //선택된 Value값을 가져온.다
- var arrLab = dschcatestatLab.split("▦"); //선택된 Label값을 가져온다.
-
- //전체 아이템 갯수 만큼 반복.(item값을 비교하기를 위한 반복문)
- for(var i = 1; i <= chk_dschcatestat.length; i++) {
-
- //선택된 아이템의 갯수만큼 반복.
- for(var j = 0; j < arrVal.length; j++) {
- //i를 가지고 비교를 함으로써 아이템 항목 순서대로 값을 가져감.
- if(i == arrVal[j]) {
- //산소
- if(i == '7') {
- arrLab[idx] += "( " + dschcateoxy + cap_oxyunit.label + " )";
- }
-
- //기타이거나
- if(i == '12') {
- arrLab[idx] += "( " + dschcatestatnm + " )";
- }
-
- idx++; //선택된 항목만큼. 값이 담겨져있는지 비료를 위한 인덱스.
-
- //선택된 항목만큼값을 담았다면 종료.
- if(idx == arrVal.length) {
- break;
- }
- }
- }
- }
- str = arrLab; //저장한 값을 변수에 담음.
-
- model.setValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatcd", str );
- }else {
- model.setValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatcd", str );
- }
-
- //출생증명서
- var brthcrtfctyn = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/brthcrtfctyn");
- var brthcrtfctnm = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/brthcrtfctnm");
- str = rdo_brthcrtfctyn.label;
-
- if(brthcrtfctyn != "") {
- if(brthcrtfctyn == "02") {
- if(brthcrtfctnm !="") {
- str += "(" + brthcrtfctnm + ")";
- }
- }
- model.setValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/brthcrtfctyn", str);
- }
-
- //퇴원절차교육
- var dschseqeducyn = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dschseqeducyn");
- str = rdo_dschseqeducyn.label;
-
- if(dschseqeducyn != "") {
- model.setValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dschseqeducyn", str);
- }
- //퇴원약복약지도
- var dschmeditmedguidyn = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dschmeditmedguidyn");
- str = rdo_dschmeditmedguidyn.label;
-
- if(dschmeditmedguidyn != "") {
- model.setValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dschmeditmedguidyn", str);
- }
-
- //교육대상
- var eductrgt = model.getValue(xDschInfoPath + "/dschcareinfo/etcfactinfo/etcfact/eductrgt");
- str = chk_eductrgt.label;
-
- if(eductrgt != "") {
- arr = str.split(" ");
-
- model.setValue(xDschInfoPath + "/dschcareinfo/etcfactinfo/etcfact/eductrgt", arr);
- }
-
- //교육이해정도
- var educunstdgrde = model.getValue(xDschInfoPath + "/dschcareinfo/etcfactinfo/etcfact/educunstdgrde");
- str = rdo_educunstgrde.label;
-
- if(educunstdgrde != "") {
- model.setValue(xDschInfoPath + "/dschcareinfo/etcfactinfo/etcfact/educunstdgrde", str);
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1192;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:14px; ">산모퇴원간호계획</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:771px; ">
- <select id="chk_healmngt" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtcd" overflow="visible" appearance="full" cellspacing="20" cols="8" sep="," vcellspacing="2" style="left:82px; top:572px; width:1110px; height:36px; border-style:none; ">
- <choices>
- <item>
- <label>산후운동(케겔)</label>
- <value>1</value>
- </item>
- <item>
- <label>유방관리 방법</label>
- <value>2</value>
- </item>
- <item>
- <label>좌욕방법</label>
- <value>3</value>
- </item>
- <item>
- <label>피임방법</label>
- <value>4</value>
- </item>
- <item>
- <label>감염예방</label>
- <value>5</value>
- </item>
- <item>
- <label>당뇨조절</label>
- <value>6</value>
- </item>
- <item>
- <label>흡인간호</label>
- <value>14</value>
- </item>
- <item>
- <label>경관영양간호</label>
- <value>15</value>
- </item>
- <item>
- <label>혈압조절</label>
- <value>7</value>
- </item>
- <item>
- <label>상처관리</label>
- <value>8</value>
- </item>
- <item>
- <label>기타</label>
- <value>9</value>
- </item>
- <item>
- <label/>
- <value>10</value>
- </item>
- <item>
- <label/>
- <value>11</value>
- </item>
- <item>
- <label>외래진료나 문의를 요하는 증상</label>
- <value>13</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var healmngtcd = model.getValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtcd");
- var kind = new Array();
- var arr = new Array(chk_healmngt.length);
-
- kind = healmngtcd.split(",");
-
- for(var i = 0; i < arr.length; i++) {
- arr[i] = "";
- }
-
- for(var i = 0; i < kind.length; i++) {
- switch(kind[i]) {
- case '1':
- arr[0] = kind[i];
- break;
- case '2':
- arr[1] = kind[i];
- break;
- case '3':
- arr[2] = kind[i];
- break;
- case '4':
- arr[3] = kind[i];
- break;
- case '5':
- arr[4] = kind[i];
- break;
- case '6':
- arr[5] = kind[i];
- break;
- case '7':
- arr[6] = kind[i];
- break;
- case '8':
- arr[7] = kind[i];
- break;
- case '9':
-
- arr[8] = kind[i];
- break;
- case '10':
- arr[9] = kind[i];
- break;
- case '11':
-
- arr[10] = kind[i];
- break;
- case '12':
- arr[11] = kind[i];
- break;
- case '13':
- arr[12] = kind[i];
- break;
- default:
- break;
- }
- }
-
- for(var i = 0; i < arr.length; i++) {
- if(arr[8] == '9') {
- ipt_healmngtnm.disabled = false;
-
- } else {
- ipt_healmngtnm.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtnm");
-
- ipt_healmngtnm.refresh();
-
- }
-
- if(arr[12] == "13") {
- ipt_healmngtsymp.disabled = false;
- } else {
- ipt_healmngtsymp.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtsymp");
- ipt_healmngtsymp.refresh();
- }
- }
- ]]>
- </script>
- </select>
- <line id="line11" class="line_2" style="x1:0px; y1:607px; x2:1194px; y2:607px; "/>
- <line id="line10" class="line_2" style="x1:0px; y1:571px; x2:1194px; y2:571px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:355px; x2:1194px; y2:355px; "/>
- <line id="line13" class="line_1" style="x1:0px; y1:33px; x2:1194px; y2:33px; "/>
- <import id="import1" instancetype="merge" src="..\..\..\emr\wardcareweb\xrw\SMMNW10000_예약정보.xrw" style="left:0px; top:62px; width:1194px; height:291px; "/>
- <line id="line64" class="line_3" style="x1:0px; y1:62px; x2:1194px; y2:62px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:328px; x2:1194px; y2:328px; "/>
- <caption id="caption4" class="tit_2" style="left:0px; top:314px; width:113px; height:13px; ">퇴원시 환자정보</caption>
- <line id="line3" class="line_2" style="x1:0px; y1:379px; x2:1194px; y2:379px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:403px; x2:734px; y2:403px; "/>
- <caption id="caption7" class="cell_1" style="left:0px; top:381px; width:80px; height:23px; text-align:center; vertical-align:middle; ">퇴원방법</caption>
- <caption id="caption8" class="cell_1" style="left:0px; top:405px; width:80px; height:23px; text-align:center; vertical-align:middle; ">퇴원 후 갈곳</caption>
- <select1 id="rdo_cscsstat" ref="/root/main/dschcareinfo/dschcareinfo/cscsstatcd" appearance="full" cellspacing="40" cols="5" overflow="visible" style="left:83px; top:360px; width:572px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>Alert</label>
- <value>01</value>
- </item>
- <item>
- <label>Drowsy</label>
- <value>02</value>
- </item>
- <item>
- <label>Stupor</label>
- <value>03</value>
- </item>
- <item>
- <label>Semicoma</label>
- <value>04</value>
- </item>
- <item>
- <label>Coma</label>
- <value>05</value>
- </item>
- </choices>
- </select1>
- <select1 id="rdo_dschmthd" ref="/root/main/dschcareinfo/dschcareinfo/dschmthdcd" appearance="full" cellspacing="28" cols="7" overflow="visible" style="left:83px; top:385px; width:522px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>도보</label>
- <value>01</value>
- </item>
- <item>
- <label>안고 감</label>
- <value>02</value>
- </item>
- <item>
- <label>유모차/휠체어</label>
- <value>03</value>
- </item>
- <item>
- <label>이동침대</label>
- <value>04</value>
- </item>
- <item>
- <label>응급차</label>
- <value>05</value>
- </item>
- <item>
- <label>기타</label>
- <value>06</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/dschcareinfo/dschcareinfo/dschmthdcd") == "06") {
- ipt_dschmthdnm.disabled = false;
- } else {
- ipt_dschmthdnm.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschmthdnm");
- ipt_dschmthdnm.refresh();
- }
- ]]>
- </script>
- </select1>
- <select1 id="rdo_dschgoplac" ref="/root/main/dschcareinfo/dschcareinfo/dschgoplaccd" appearance="full" cellspacing="40" cols="4" overflow="visible" style="left:83px; top:408px; width:312px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>자가</label>
- <value>01</value>
- </item>
- <item>
- <label>친척</label>
- <value>02</value>
- </item>
- <item>
- <label>타병원</label>
- <value>03</value>
- </item>
- <item>
- <label>기타</label>
- <value>04</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/dschcareinfo/dschcareinfo/dschgoplaccd") == "04") {
- ipt_dschgoplacnm.disabled = false;
- } else {
- ipt_dschgoplacnm.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschgoplacnm");
- ipt_dschgoplacnm.refresh();
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_dschmthdnm" ref="/root/main/dschcareinfo/dschcareinfo/dschmthdnm" disabled="true" style="left:600px; top:382px; width:130px; height:19px; "/>
- <input id="ipt_dschgoplacnm" ref="/root/main/dschcareinfo/dschcareinfo/dschgoplacnm" disabled="true" style="left:394px; top:406px; width:140px; height:19px; "/>
- <caption id="caption10" class="tit_2" style="left:0px; top:434px; width:113px; height:13px; ">퇴원 간호 교육</caption>
- <line id="line6" class="line_1" style="x1:0px; y1:448px; x2:1194px; y2:448px; "/>
- <line id="line7" class="line_2" style="x1:0px; y1:475px; x2:1194px; y2:475px; "/>
- <line id="line8" class="line_2" style="x1:0px; y1:499px; x2:1194px; y2:499px; "/>
- <line id="line9" class="line_2" style="x1:0px; y1:547px; x2:1194px; y2:547px; "/>
- <caption id="caption11" class="cell_1" style="left:0px; top:453px; width:80px; height:23px; text-align:center; vertical-align:middle; ">활동범위</caption>
- <caption id="caption12" class="cell_1" style="left:0px; top:477px; width:80px; height:23px; text-align:center; vertical-align:middle; ">식이</caption>
- <caption id="caption14" class="cell_1" style="left:0px; top:573px; width:80px; height:35px; text-align:center; vertical-align:middle; ">건강관리</caption>
- <line id="line12" class="line_2" style="x1:0px; y1:631px; x2:1194px; y2:631px; "/>
- <caption id="caption15" class="cell_1" style="left:0px; top:609px; width:80px; height:23px; text-align:center; vertical-align:middle; ">추후관리</caption>
- <line id="line14" class="line_2" style="x1:0px; y1:720px; x2:1194px; y2:720px; "/>
- <select1 id="rdo_actscop" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/actscop" appearance="full" cellspacing="57" cols="6" overflow="visible" style="left:83px; top:456px; width:757px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>제한없음</label>
- <value>01</value>
- </item>
- <item>
- <label>일상생활</label>
- <value>02</value>
- </item>
- <item>
- <label>안정</label>
- <value>03</value>
- </item>
- <item>
- <label>절대안정</label>
- <value>04</value>
- </item>
- <item>
- <label>정기적 운동</label>
- <value>05</value>
- </item>
- <item>
- <label>재활지도</label>
- <value>06</value>
- </item>
- </choices>
- </select1>
- <select1 id="rdo_diet" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dietcd" appearance="full" cellspacing="70" cols="8" overflow="visible" style="left:83px; top:480px; width:517px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>산모식</label>
- <value>01</value>
- </item>
- <item>
- <label>일반식</label>
- <value>02</value>
- </item>
- <item>
- <label>치료식</label>
- <value>03</value>
- </item>
- <item>
- <label>.</label>
- <value/>
- </item>
- <item>
- <label>기타</label>
- <value>04</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dietcd") == "04") {
- ipt_dietnm.disabled = false;
-
- ipt_treatdiet.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/treatdiet");
- ipt_treatdiet.refresh();
-
- } else if(model.getValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dietcd") == "03") {
-
- ipt_treatdiet.disabled = false;
-
- ipt_dietnm.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dietnm");
- ipt_treatdiet.refresh();
- }
- else {
- ipt_dietnm.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcawreeduc/dietnm");
- ipt_dietnm.refresh();
- ipt_treatdiet.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/treatdiet");
- ipt_treatdiet.refresh();
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_dietnm" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dietnm" disabled="true" style="left:600px; top:478px; width:135px; height:19px; "/>
- <select1 id="rdo_bath" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/bathcd" appearance="full" cellspacing="70" cols="7" overflow="visible" style="left:83px; top:505px; width:837px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>제한없음</label>
- <value>01</value>
- </item>
- <item>
- <label>샤워</label>
- <value>02</value>
- </item>
- <item>
- <label>통목욕</label>
- <value>03</value>
- </item>
- <item>
- <label>부분목욕</label>
- <value>04</value>
- </item>
- <item>
- <label>침상목욕</label>
- <value>05</value>
- </item>
- <item>
- <label>목욕금지</label>
- <value>06</value>
- </item>
- <item>
- <label>기타</label>
- <value>07</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/bathcd") == "07") {
- ipt_bathnm.disabled = false;
- } else {
- ipt_bathnm.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/bathnm");
- ipt_bathnm.refresh();
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_bathnm" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/bathnm" disabled="true" style="left:921px; top:502px; width:135px; height:19px; "/>
- <select1 id="rdo_lacyn" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/lacmthdyn" appearance="full" cellspacing="220" cols="3" overflow="visible" style="left:83px; top:528px; width:327px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>원함</label>
- <value>01</value>
- </item>
- <item>
- <label>거부</label>
- <value>02</value>
- </item>
- <item>
- <label>해당없음</label>
- <value>03</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/lacmthdyn") == "01") {
- chk_lac.disabled = false;
- } else {
- chk_lac.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/lacmthdnm");
- chk_lac.refresh();
- }
- ]]>
- </script>
- </select1>
- <select id="chk_mngtaftdsch" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschcd" disabled="true" overflow="visible" appearance="full" cellspacing="60" cols="5" style="left:209px; top:612px; width:510px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>외래</label>
- <value>1</value>
- </item>
- <item>
- <label>가정간호</label>
- <value>2</value>
- </item>
- <item>
- <label>재입원</label>
- <value>3</value>
- </item>
- <item>
- <label>타병원</label>
- <value>4</value>
- </item>
- <item>
- <label>기타</label>
- <value>5</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var mngtaftdschcd = model.getValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschcd");
- var kind = new Array();
- var arr = new Array(chk_mngtaftdsch.length);
-
- kind = mngtaftdschcd.split(" ");
-
- for(var i = 0; i < arr.length; i++) {
- arr[i] = "";
- }
-
- for(var i = 0; i < kind.length; i++) {
- switch(kind[i]) {
- case '1':
- arr[0] = kind[i];
- break;
- case '2':
- arr[1] = kind[i];
- break;
- case '3':
- arr[2] = kind[i];
- break;
- case '4':
- arr[3] = kind[i];
- break;
- case '5':
- arr[4] = kind[i];
- break;
-
- default :
- arr[arr.length - 1] = kind[i];
- }
- }
-
- for(var i = 0; i < arr.length; i++) {
- if(arr[4] == '5') {
- ipt_mngtaftdschnm.disabled = false;
-
- } else {
- ipt_mngtaftdschnm.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschnm");
-
- ipt_mngtaftdschnm.refresh();
-
- }
- }
- ]]>
- </script>
- </select>
- <input id="ipt_mngtaftdschnm" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschnm" disabled="true" style="left:724px; top:610px; width:181px; height:19px; "/>
- <caption id="caption22" class="cell_1" style="left:0px; top:746px; width:80px; height:23px; text-align:center; vertical-align:middle; ">문의전화</caption>
- <input id="ipt_tel" ref="/root/main/dschcareinfo/dschcareinfo/etcfactinfo/etcfact/tel" style="left:83px; top:747px; width:295px; height:19px; text-align:center; "/>
- <caption id="caption23" class="cell_1" style="left:382px; top:746px; width:80px; height:23px; text-align:center; vertical-align:middle; ">교육대상</caption>
- <select id="chk_eductrgt" ref="/root/main/dschcareinfo/dschcareinfo/etcfactinfo/etcfact/eductrgt" overflow="visible" appearance="full" cellspacing="60" cols="2" style="left:465px; top:749px; width:172px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>환자</label>
- <value>1</value>
- </item>
- <item>
- <label>보호자</label>
- <value>2</value>
- </item>
- </choices>
- </select>
- <caption id="caption24" class="cell_1" style="left:640px; top:746px; width:95px; height:23px; text-align:center; vertical-align:middle; ">교육이해정도</caption>
- <line id="line15" class="line_3" style="x1:0px; y1:768px; x2:1194px; y2:768px; "/>
- <select1 id="rdo_educunstgrde" ref="/root/main/dschcareinfo/dschcareinfo/etcfactinfo/etcfact/educunstdgrde" appearance="full" cellspacing="50" cols="3" overflow="visible" style="left:739px; top:751px; width:225px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>상</label>
- <value>01</value>
- </item>
- <item>
- <label>중</label>
- <value>02</value>
- </item>
- <item>
- <label>하</label>
- <value>03</value>
- </item>
- </choices>
- </select1>
- <line id="line17" class="line_2" style="x1:0px; y1:523px; x2:1194px; y2:523px; "/>
- <caption id="caption13" class="cell_1" style="left:0px; top:501px; width:80px; height:23px; text-align:center; vertical-align:middle; ">목욕</caption>
- <caption id="caption21" class="cell_1" style="left:0px; top:525px; width:80px; height:23px; text-align:center; vertical-align:middle; ">모유수유</caption>
- <caption id="caption16" class="cell_1" style="left:0px; top:549px; width:80px; height:23px; text-align:center; vertical-align:middle; ">수유방법</caption>
- <select id="chk_lac" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/lacmthdnm" overflow="visible" appearance="full" cellspacing="50" cols="2" style="left:145px; top:528px; width:201px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>방법설명</label>
- <value>01</value>
- </item>
- <item>
- <label>장점설명</label>
- <value>02</value>
- </item>
- </choices>
- </select>
- <select1 id="rdo_lacmthd" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/lacmthdcd" appearance="full" cellspacing="54" cols="4" overflow="visible" style="left:83px; top:553px; width:502px; height:12px; border-style:none; ">
- <choices>
- <item>
- <label>모유수유</label>
- <value>01</value>
- </item>
- <item>
- <label>인공수유</label>
- <value>02</value>
- </item>
- <item>
- <label>혼합수유</label>
- <value>03</value>
- </item>
- <item>
- <label>해당없음</label>
- <value>04</value>
- </item>
- </choices>
- </select1>
- <select1 id="rdo_mngtaftdschyn" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschyn" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:84px; top:613px; width:116px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>무</label>
- <value>01</value>
- </item>
- <item>
- <label>유</label>
- <value>02</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschyn") == "02") {
- chk_mngtaftdsch.disabled = false;
- chk_mngtaftdsch.dispatch("xforms-value-changed");
- } else {
- chk_mngtaftdsch.disabled = true;
- ipt_mngtaftdschnm.disabled = true;
-
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschcd");
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschnm");
- chk_mngtaftdsch.refresh();
- ipt_mngtaftdschnm.refresh();
- }
- ]]>
- </script>
- </select1>
- <caption id="caption25" style="left:905px; top:614px; width:60px; height:14px; ">)</caption>
- <caption id="caption26" style="left:200px; top:612px; width:10px; height:13px; ">(</caption>
- <caption id="caption20" class="cell_1" style="left:382px; top:722px; width:80px; height:23px; text-align:center; vertical-align:middle; ">퇴원절차교육</caption>
- <caption id="caption27" class="cell_1" style="left:640px; top:722px; width:96px; height:23px; text-align:center; vertical-align:middle; ">퇴원약복약지도</caption>
- <caption id="caption19" class="cell_1" style="left:0px; top:722px; width:80px; height:23px; text-align:center; vertical-align:middle; ">출생증명서</caption>
- <caption id="caption17" class="cell_1" style="left:0px; top:673px; width:80px; height:47px; text-align:center; vertical-align:middle; ">특이사항</caption>
- <select1 id="rdo_brthcrtfctyn" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/brthcrtfctyn" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:83px; top:725px; width:120px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>수령</label>
- <value>01</value>
- </item>
- <item>
- <label>미수령</label>
- <value>02</value>
- </item>
- <item>
- <label>해당없음</label>
- <value>03</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/brthcrtfctyn") == "02") {
- ipt_brthcrtfct.disabled = false;
- } else {
- ipt_brthcrtfct.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/brthcrtfctnm");
- ipt_brthcrtfct.refresh();
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_brthcrtfct" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/brthcrtfctnm" disabled="true" style="left:205px; top:723px; width:99px; height:19px; "/>
- <select1 id="rdo_dschseqeducyn" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschseqeducyn" appearance="full" cellspacing="70" cols="2" overflow="visible" style="left:465px; top:725px; width:165px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>유</label>
- <value>01</value>
- </item>
- <item>
- <label>무</label>
- <value>02</value>
- </item>
- </choices>
- </select1>
- <select1 id="rdo_dschmeditmedguidyn" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschmeditmedguidyn" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:739px; top:725px; width:165px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>유</label>
- <value>01</value>
- </item>
- <item>
- <label>무</label>
- <value>02</value>
- </item>
- </choices>
- </select1>
- <caption id="caption3" class="cell_1" style="left:0px; top:357px; width:80px; height:23px; text-align:center; vertical-align:middle; ">의식상태</caption>
- <caption id="caption5" class="cell_1" style="left:0px; top:333px; width:80px; height:23px; text-align:center; vertical-align:middle; ">퇴원유형</caption>
- <select1 id="rdo_dschtypes" ref="/root/main/dschcareinfo/dschcareinfo/dschtypecds" appearance="full" cellspacing="20" cols="7" overflow="visible" style="left:83px; top:336px; width:512px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>지시 후 퇴원</label>
- <value>01</value>
- </item>
- <item>
- <label>DAMA</label>
- <value>02</value>
- </item>
- <item>
- <label>Hopeless</label>
- <value>03</value>
- </item>
- <item>
- <label>전원</label>
- <value>04</value>
- </item>
- <item>
- <label>탈원</label>
- <value>05</value>
- </item>
- <item>
- <label>사망</label>
- <value>06</value>
- </item>
- <item>
- <label>기타</label>
- <value>07</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/dschcareinfo/dschcareinfo/dschtypecds") == "06") { //사망
- //퇴원유형(기타)
- ipt_dschtypenm.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschtypenm");
- //의식상태
- rdo_cscsstat.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/cscsstatcd");
- //보호자동반
- rdo_proceracomp.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/proceracomp");
- //진료의동반_20090601_SMY추가
- rdo_dracomp.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dracomp");
- //퇴원방법
- rdo_dschmthd.disabled = true;
- model.setValue("/root/main/dschcareinfo/dschcareinfo/dschmthdcd", "06");
- ipt_dschmthdnm.disabled = false;
- //퇴원 후 갈 곳
- rdo_dschgoplac.disabled = true;
- model.setValue("/root/main/dschcareinfo/dschcareinfo/dschgoplaccd", "04");
- ipt_dschgoplacnm.disabled = false;
- //퇴원시 수유형태
- rdo_dschlactype.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/etcfactinfo/etcfact/dschlactype");
- //활동범위
- rdo_actscop.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/actscop");
- //식이
- rdo_diet.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dietcd");
- ipt_treatdiet.disabled = true;
- ipt_dietnm.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/treatdiet");
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dietnm");
- //목욕
- rdo_bath.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/bathcd");
- ipt_bathnm.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/bathnm");
- //모유수유
- rdo_lacyn.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/lacmthdyn");
- rdo_lacyn.dispatch("xforms-value-changed");
- //수유방법
- rdo_lacmthd.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/lacmthdcd");
- //건강관리
- chk_healmngt.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtcd");
- ipt_healmngtnm.disabled = true;
- ipt_healmngtsymp.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtnm");
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtsymp");
- //추후관리
- rdo_mngtaftdschyn.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschyn");
- rdo_mngtaftdschyn.dispatch("xforms-value-changed");
- ipt_mngtaftdschnm.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschnm");
- //퇴원약 복약지도
- rdo_dschmeditmedguidyn.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschmeditmedguidyn");
- //퇴원시 기구 및 삽관상태_20090601_SMY추가
- rdo_dschcatestatyn.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatyn");
- chk_dschcatestat.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatcd");
- ipt_dschcateoxy.disabled= true;
- ipt_dschcatestatnm.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcateoxy");
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatnm");
-
- }else{
- rdo_cscsstat.disabled = false;
- rdo_proceracomp.disabled = false;
- rdo_dracomp.disabled = false;
- rdo_dschmthd.disabled = false;
- rdo_dschgoplac.disabled = false;
- rdo_dschlactype.disabled = false;
- rdo_actscop.disabled = false;
- rdo_diet.disabled = false;
- rdo_bath.disabled = false;
- rdo_lacyn.disabled = false;
- rdo_lacyn.dispatch("xforms-value-changed");
- rdo_lacmthd.disabled = false;
- chk_healmngt.disabled = false;
- rdo_mngtaftdschyn.disabled = false;
- rdo_mngtaftdschyn.dispatch("xforms-value-changed");
- rdo_dschmeditmedguidyn.disabled = false;
- rdo_dschcatestatyn.disabled = false;
- rdo_dschcatestatyn.dispatch("xforms-value-changed");
- chk_dschcatestat.disabled = false;
-
- if(model.getValue("/root/main/dschcareinfo/dschcareinfo/dschtypecds") == "07") {
- ipt_dschtypenm.disabled = false;
- } else {
- ipt_dschtypenm.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschtypenm");
- }
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_dschtypenm" ref="/root/main/dschcareinfo/dschcareinfo/dschtypenm" disabled="true" style="left:600px; top:334px; width:130px; height:19px; "/>
- <caption id="caption28" class="cell_1" style="left:735px; top:357px; width:115px; height:23px; text-align:center; vertical-align:middle; ">퇴원시 수유형태</caption>
- <line id="line5" class="line_3" style="x1:0px; y1:427px; x2:1194px; y2:427px; "/>
- <select1 id="rdo_dschlactype" ref="/root/main/dschcareinfo/dschcareinfo/etcfactinfo/etcfact/dschlactype" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:853px; top:360px; width:339px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>완전 모유수유</label>
- <value>01</value>
- </item>
- <item>
- <label>인공수유</label>
- <value>02</value>
- </item>
- <item>
- <label>혼합수유</label>
- <value>03</value>
- </item>
- <item>
- <label>해당없음</label>
- <value>04</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_healmngtsymp" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtsymp" disabled="true" style="left:778px; top:589px; width:242px; height:19px; "/>
- <input id="ipt_treatdiet" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/treatdiet" disabled="true" style="left:394px; top:478px; width:151px; height:19px; "/>
- <button id="btn_recdt" class="icon_clock" navindex="3" style="left:229px; top:41px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var dt = fGetCurrentTime();
- var dd = getCurrentDate();
- model.setValue("/root/main/dschcareinfo/dschcareinfo/rectm", dt);
- model.setValue("/root/main/dschcareinfo/dschcareinfo/recdd", dd);
-
- ipt_rectm.refresh();
- ipt_recdd.refresh();
-
- ]]>
- </script>
- </button>
- <caption id="cap_bfrecdt" class="cell_1" style="left:0px; top:38px; width:80px; height:23px; vertical-align:middle; ">기록일시</caption>
- <input id="ipt_rectm" ref="/root/main/dschcareinfo/dschcareinfo/rectm" navindex="2" format="hh:nn" style="left:185px; top:40px; width:40px; height:19px; "/>
- <output id="ipt_recuser" ref="/root/main/dschcareinfo/dschcareinfo/recusernm" class="output_fix" navindex="4" appearance="output" style="left:333px; top:40px; width:100px; height:19px; "/>
- <caption id="caption1" class="cell_1" style="left:250px; top:38px; width:80px; height:23px; vertical-align:middle; ">기록자</caption>
- <caption id="caption2" class="cell_1" style="left:436px; top:38px; width:80px; height:23px; vertical-align:middle; ">퇴원예정일</caption>
- <input id="ipt_recdd" ref="/root/main/dschcareinfo/dschcareinfo/recdd" class="input_default" navindex="1" inputtype="date" style="left:83px; top:40px; width:100px; height:19px; "/>
- <input id="ipt_dschdd" ref="/root/main/dschcareinfo/dschcareinfo/dschdd" class="input_default" disabled="false" navindex="5" inputtype="date" style="left:519px; top:40px; width:100px; height:19px; "/>
- <button id="btn_tmpsave" class="btn5_letter4" visibility="hidden" style="left:890px; top:9px; width:64px; height:19px; ">
- <caption>임시저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fSetDschInfo("T");
-
- if(submit("TXMNN00501") == true) {
-
- messageBox("저장이 ", "I001");
-
- } else {
- messageBox("저장이 실패하였습니다.", "E");
- }
-
-
-
- ]]>
- </script>
- </button>
- <caption id="caption18" style="left:134px; top:526px; width:11px; height:20px; ">(</caption>
- <caption id="caption29" style="left:330px; top:527px; width:11px; height:20px; ">)</caption>
- <input id="input1" ref="/root/main/dschcareinfo/dschcareinfo/signno" visibility="hidden" style="left:735px; top:9px; width:100px; height:19px; "/>
- <button id="btn_certsave" class="btn5_letter4" style="left:1130px; top:40px; width:64px; height:19px; ">
- <caption>인증저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //기록일시 필수입력 체크
- if(model.getValue("/root/main/dschcareinfo/dschcareinfo/recdd") == "" || model.getValue("/root/main/dschcareinfo/dschcareinfo/rectm") == "") {
- messageBox("기록일시는 필수입력입니다.", "I");
- return;
- }
-
- fSetDschInfo("C");
-
- Sign.certreload = true ;
- if (Sign.signprocess() == true){
- //src="C:\CMCProject\application\webapps\emr\formmngtweb\xrw\SSMRF03800_OCR뷰어.xrw"
- // alert("인증성공" );
- // alert("1. 인증성공여부 false / true \n\n" + Sign.signedInfos[0]); // 인증성공여부 false / true
- // alert("2. 인증할 데이터 정보 (미기록 노드 제거전 원본 노드) \n\n" + Sign.signedInfos[3]); // 인증할 데이터 정보 (미기록 노드 제거전 원본 노드)
- // alert("2.--> text 데이터(없는 노드 포함된) text 형태 변형 결과 \n\n" + Sign.signedInfos[4]); // [3] 데이터(없는 노드 포함된) text 형태 변형 결과
- // alert("3. 인증할 데이터 정보(미기록 노드 제거된 정보) \n\n" + Sign.signedInfos[1]); // 인증할 데이터 정보(미기록 노드 제거된 정보)
- // alert("3. -->text 데이터(없는 노드 제거된) text 형태 변형 결과 \n\n" + Sign.signedInfos[5]); // ★[1] 데이터(없는 노드 제거된) text 형태 변형 결과 >>> [5]
- // alert("3. -->text --> sign 공인인증 처리후 데이터 \n\n" + Sign.signedInfos[2]); // ★공인인증 처리후 데이터 >>> [2]
-
- model.makeValue("/root/send/dschcareinfo/pid", model.getValue("/root/temp/cond/list/pid"));
- model.makeValue("/root/send/dschcareinfo/orddd", model.getValue("/root/temp/cond/list/indd"));
- model.makeValue("/root/send/dschcareinfo/signno", model.getValue("/root/main/dschcareinfo/dschcareinfo/signno"));
- model.makeValue("/root/send/dschcareinfo/cretno", model.getValue("/root/temp/cond/list/cretno"));
- model.makeValue("/root/send/dschcareinfo/recdd", model.getValue("/root/main/dschcareinfo/dschcareinfo/recdd"));
- model.makeValue("/root/send/dschcareinfo/rectm", model.getValue("/root/main/dschcareinfo/dschcareinfo/rectm"));
- model.makeValue("/root/send/dschcareinfo/recsaveflag","Y");
- model.makeValue("/root/send/dschcareinfo/signflag", "02");
- model.makeValue("/root/send/dschcareinfo/signgenrflag", model.getValue("/root/temp/cond/list/ioflag"));
- model.makeValue("/root/send/dschcareinfo/formcd", "0000001583"); //XLST통합기록 조회용 formcd 변경_20090226_SMY
- model.makeValue("/root/send/dschcareinfo/orddeptcd", model.getValue("/root/temp/cond/list/orddeptcd"));
- model.makeValue("/root/send/dschcareinfo/orddrid", model.getValue("/root/temp/cond/list/medispclid"));
- model.makeValue("/root/send/dschcareinfo/signbfcnts", Sign.signedInfos[1]);
- model.makeValue("/root/send/dschcareinfo/signaftcnts", Sign.signedInfos[2]);
- model.makeValue("/root/send/dschcareinfo/dispyn", "Y");
-
- if(submit("TXMNN00501", false) == true) {
- messageBox("저장이 ", "I001");
- fGetDschInfo(); //재조회
-
- } else {
- messageBox("저장이 실패하였습니다.", "E");
- }
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <caption id="caption30" ref="/root/main/age" style="left:418px; top:9px; width:37px; height:20px; font-family:돋움; "/>
- <caption id="caption31" class="search_name" style="left:360px; top:10px; width:58px; height:17px; ">나이:</caption>
- <caption id="caption32" class="search_name" style="left:460px; top:10px; width:81px; height:17px; ">등록번호:</caption>
- <caption id="caption33" ref="/root/main/pid" style="left:544px; top:9px; width:96px; height:20px; font-family:돋움; "/>
- <caption id="caption68" class="search_name" style="left:5px; top:10px; width:55px; height:17px; ">병실:</caption>
- <caption id="caption34" ref="/root/main/patnm" style="left:190px; top:9px; width:60px; height:20px; font-family:돋움; "/>
- <caption id="caption35" class="search_name" style="left:122px; top:10px; width:68px; height:17px; ">환자명:</caption>
- <caption id="caption36" ref="/root/main/sex" style="left:318px; top:9px; width:32px; height:20px; font-family:돋움; "/>
- <caption id="caption37" class="search_name" style="left:260px; top:10px; width:58px; height:17px; ">성별:</caption>
- <caption id="caption38" ref="/root/main/room" style="left:63px; top:9px; width:52px; height:20px; font-family:돋움; "/>
- <input id="ipt_antibioallgnm" ref="/root/main/dschcareinfo/dschcareinfo/antibioallgnm" disabled="true" style="left:1099px; top:407px; width:85px; height:19px; "/>
- <select1 id="rdo_antibioallgyn" ref="/root/main/dschcareinfo/dschcareinfo/antibioallgyn" appearance="full" cellspacing="50" cols="1" vcellspacing="7" overflow="visible" style="left:853px; top:381px; width:35px; height:43px; border-style:none; ">
- <choices>
- <item>
- <label>무</label>
- <value>01</value>
- </item>
- <item>
- <label>유</label>
- <value>02</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/dschcareinfo/dschcareinfo/antibioallgyn") == "02") {
- chk_antibioallgcd.disabled = false;
- chk_antibioallgcd.dispatch("xforms-value-changed");
- } else {
- chk_antibioallgcd.disabled = true;
- ipt_antibioallgnm.disabled = true;
-
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/antibioallgcd");
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/antibioallgnm");
- }
- chk_antibioallgcd.refresh();
- ipt_antibioallgnm.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption9" style="left:888px; top:410px; width:15px; height:13px; ">(</caption>
- <caption id="caption40" style="left:1185px; top:410px; width:10px; height:14px; ">)</caption>
- <caption id="caption41" class="cell_1" style="left:735px; top:381px; width:115px; height:46px; text-align:center; vertical-align:middle; ">
- <![CDATA[입원기간 중 항생제
- 알러지 반응 ]]>
- </caption>
- <select id="chk_antibioallgcd" ref="/root/main/dschcareinfo/dschcareinfo/antibioallgcd" disabled="true" overflow="visible" appearance="full" cols="3" sep="," style="left:896px; top:409px; width:206px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>페니실린계</label>
- <value>1</value>
- </item>
- <item>
- <label>베타락탐계</label>
- <value>2</value>
- </item>
- <item>
- <label>기타</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var antibioallgcd = model.getValue("/root/main/dschcareinfo/dschcareinfo/antibioallgcd");
- var kind = new Array();
- var arr = new Array(chk_antibioallgcd.length);
-
- kind = antibioallgcd.split(",");
-
- for(var i = 0; i < arr.length; i++) {
- arr[i] = "";
- }
-
- for(var i = 0; i < kind.length; i++) {
- switch(kind[i]) {
- case '1':
- arr[0] = kind[i];
- break;
- case '2':
- arr[1] = kind[i];
- break;
- case '3':
- arr[2] = kind[i];
- break;
- default :
- arr[arr.length - 1] = kind[i];
- }
- }
-
- for(var i = 0; i < arr.length; i++) {
- if(arr[2] == '3') {
- ipt_antibioallgnm.disabled = false;
-
- } else {
- ipt_antibioallgnm.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/antibioallgnm");
- }
- ipt_antibioallgnm.refresh();
- }
- ]]>
- </script>
- </select>
- <select1 id="rdo_proceracomp" ref="/root/main/dschcareinfo/dschcareinfo/proceracomp" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:853px; top:336px; width:100px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>유</label>
- <value>01</value>
- </item>
- <item>
- <label>무</label>
- <value>02</value>
- </item>
- </choices>
- </select1>
- <caption id="caption39" class="cell_1" style="left:962px; top:333px; width:115px; height:23px; text-align:center; vertical-align:middle; ">진료의 동반</caption>
- <select1 id="rdo_dracomp" ref="/root/main/dschcareinfo/dschcareinfo/dracomp" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:1080px; top:336px; width:100px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>유</label>
- <value>01</value>
- </item>
- <item>
- <label>무</label>
- <value>02</value>
- </item>
- </choices>
- </select1>
- <caption id="caption42" class="cell_1" style="left:735px; top:333px; width:115px; height:23px; text-align:center; vertical-align:middle; ">보호자 동반</caption>
- <input id="ipt_healmngtnm" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtnm" disabled="true" style="left:367px; top:589px; width:204px; height:19px; "/>
- <select1 id="rdo_dschcatestatyn" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatyn" appearance="full" cols="1" rows="2" overflow="visible" style="left:84px; top:635px; width:30px; height:33px; border-style:none; ">
- <choices>
- <item>
- <label>무</label>
- <value>01</value>
- </item>
- <item>
- <label>유</label>
- <value>02</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var dschcatestatyn = model.getValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatyn");
-
- if( dschcatestatyn == "01" ){
- submit("TRMNW03605");
- var dschcateyn = model.getValue("/root/hiden/dschcateinfo/dschcateyn");
- if( dschcateyn == "Y" ){
- model.setValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatyn", "02"); //유
- rdo_dschcatestatyn.refresh();
- messageBox("제거되지 않은 [삽관/기구] 기록이 있습니다. \n 기록을 확인","I008"); // 하십시오.
- return;
- }
- }
-
- if(model.getValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatyn") == "02") {
- chk_dschcatestat.disabled = false;
- chk_dschcatestat.dispatch("xforms-value-changed");
- } else {
- chk_dschcatestat.disabled = true;
- ipt_dschcateoxy.disabled = true;
- ipt_dschcatestatnm.disabled = true;
-
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcateoxy");
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatnm");
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatcd");
-
- chk_dschcatestat.refresh();
- ipt_dschcateoxy.refresh();
- ipt_dschcatestatnm.refresh();
- }
-
- ]]>
- </script>
- </select1>
- <select id="chk_dschcatestat" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatcd" overflow="visible" appearance="full" cellspacing="45" cols="7" sep="▦" vcellspacing="4" style="left:115px; top:632px; width:1060px; height:41px; border-style:none; ">
- <choices>
- <item>
- <label>L-tube</label>
- <value>1</value>
- </item>
- <item>
- <label>Foley catheter</label>
- <value>2</value>
- </item>
- <item>
- <label>Colostomy</label>
- <value>3</value>
- </item>
- <item>
- <label>Endotracheal tube</label>
- <value>4</value>
- </item>
- <item>
- <label>Tracheostomy tube</label>
- <value>5</value>
- </item>
- <item>
- <label>HD catheter</label>
- <value>6</value>
- </item>
- <item>
- <label>산소</label>
- <value>7</value>
- </item>
- <item>
- <label>Subclavian catheter</label>
- <value>8</value>
- </item>
- <item>
- <label>Chemoport</label>
- <value>9</value>
- </item>
- <item>
- <label>Hemo-vac</label>
- <value>10</value>
- </item>
- <item>
- <label>JP bag</label>
- <value>11</value>
- </item>
- <item>
- <label>기타</label>
- <value>12</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var dschcatestatcd = model.getValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatcd");
- var kind = new Array();
- var arr = new Array(chk_dschcatestat.length);
-
- kind = dschcatestatcd.split("▦");
-
- for(var i = 0; i < arr.length; i++) {
- arr[i] = "";
- }
-
- for(var i = 0; i < kind.length; i++) {
- switch(kind[i]) {
- case '1':
- arr[0] = kind[i];
- break;
- case '2':
- arr[1] = kind[i];
- break;
- case '3':
- arr[2] = kind[i];
- break;
- case '4':
- arr[3] = kind[i];
- break;
- case '5':
- arr[4] = kind[i];
- break;
- case '6':
- arr[5] = kind[i];
- break;
- case '7':
- arr[6] = kind[i];
- break;
- case '8':
- arr[7] = kind[i];
- break;
- case '9':
- arr[8] = kind[i];
- break;
- case '10':
- arr[9] = kind[i];
- break;
- case '11':
- arr[10] = kind[i];
- break;
- case '12':
- arr[11] = kind[i];
- break;
- default:
- break;
- }
- }
-
- for(var i = 0; i < arr.length; i++) {
- if(arr[6] == '7') {
- ipt_dschcateoxy.disabled = false;
-
- } else {
- ipt_dschcateoxy.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcateoxy");
- ipt_dschcateoxy.refresh();
- }
-
- if(arr[11] == "12") {
- ipt_dschcatestatnm.disabled = false;
- } else {
- ipt_dschcatestatnm.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatnm");
- ipt_dschcatestatnm.refresh();
- }
- }
-
-
- ]]>
- </script>
- </select>
- <caption id="caption43" class="cell_1" style="left:0px; top:633px; width:80px; height:38px; text-align:center; vertical-align:middle; ">
- <![CDATA[퇴원시 기구
- 및 삽관상태]]>
- </caption>
- <caption id="cap_oxyunit" style="left:1145px; top:637px; width:35px; height:14px; ">L/min</caption>
- <line id="line16" class="line_2" style="x1:0px; y1:672px; x2:1194px; y2:672px; "/>
- <input id="ipt_dschcatestatnm" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatnm" disabled="true" style="left:776px; top:653px; width:409px; height:19px; "/>
- <input id="ipt_dschcateoxy" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcateoxy" disabled="true" style="left:1075px; top:633px; width:70px; height:19px; "/>
- <button id="btn_prn" class="btn2_letter5" style="left:709px; top:40px; width:75px; height:19px; ">
- <caption>복약안내문</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var reqdd = model.getValue("/root/temp/cond/list/dschdclrdt");
- var reqdt = reqdd.substr(0,8);
- model.makeValue("/root/send/srchinfo/prcpddstart", reqdt);
- model.makeValue("/root/send/srchinfo/prcpddend", reqdt);
- // model.makeValue("/root/send/srchinfo/prcpddstart", model.getValue("/root/main/dschcareinfo/dschcareinfo/dschdd"));
- // model.makeValue("/root/send/srchinfo/prcpddend", model.getValue("/root/main/dschcareinfo/dschcareinfo/dschdd"));
- model.makeValue("/root/send/srchinfo/srchflag", "2"); // 퇴원 ==> 복약지도환자관리(SMADC02101.xrw) 구분 변경시 퇴원값 다시 가져와야 함.
- model.makeValue("/root/send/srchinfo/prcpclscd", "A2|A4|A6|D"); // 약주사구분 셋팅
- model.makeValue("/root/send/srchinfo/pid", model.getValue("/root/send/req/pid")); // 환자번호 셋팅
- model.makeValue("/root/send/srchinfo/prtflag", "|3");
- model.makeValue("/root/send/srchinfo/wardcd", ""); // node가 없으면 에러.
- model.makeValue("/root/send/srchinfo/ward", "");
- model.makeValue("/root/send/srchinfo/tmedcnst", ""); // node가 없으면 에러
- submit("TRADC02101");
-
- if(model.getValue("/root/main/patinfo/patlist/pid") != "" && model.getValue("/root/main/patinfo/patlist/pid") != null) {
- // alert(model.getValue("/root/main/patinfo/patlist/pid"));
- // alert(1);
- model.makeValue("/root/main/patinfo/patlist/difflagcd", "1"); //복약설명서 출력조건[병원자료:1 , DIF한글:2, DIF영문:2]
- open("SMADC02201", "", "", "", "", "/root/main/patinfo/patlist", "/root/temp/srchinfo", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
-
- var consultObj = getOpenWindow("SMADC02201");
- if(consultObj != null){
- modal("SPMNZ00300");
- consultObj.javascript.btn_prt.dispatch("DOMActivate");
- }
- consultObj.close();
- }
- ]]>
- </script>
- </button>
- <select1 id="rdo_lacyn2" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/lacmthdyn" appearance="full" overflow="visible" style="left:415px; top:528px; width:100px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>해당없음</label>
- <value>03</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rdo_lacyn.dispatch("xforms-value-changed");
- ]]>
- </script>
- </select1>
- <select1 id="rdo_brthcrtfctyn2" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/brthcrtfctyn" appearance="full" overflow="visible" style="left:305px; top:725px; width:70px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>해당없음</label>
- <value>03</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rdo_brthcrtfctyn.dispatch("xforms-value-changed");
- ]]>
- </script>
- </select1>
- <caption id="caption44" style="left:750px; top:475px; width:95px; height:20px; background-color:#ffffff; "/>
- <shape id="rectangle1" appearance="rectangle" style="left:788px; top:38px; width:156px; height:23px; border-color:#008000; "/>
- <button id="button1" class="btn2_letter5" style="left:1049px; top:40px; width:75px; height:19px; ">
- <caption>전자동의서</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fClickPrintBtn(xFormCd, "Y");
- //grp_elecprint.visible = true;
-
- model.setValue("/root/temp/prtPatient", "N");
- model.setValue("/root/temp/prtOCR", "Y");
- fClickPrintBtn(xFormCd, "Y");
-
- ]]>
- </script>
- </button>
- <shape id="rectangle2" appearance="rectangle" style="left:948px; top:38px; width:178px; height:23px; border-color:#008000; "/>
- <button id="button3" class="btn2_letter7" style="left:951px; top:40px; width:97px; height:19px; ">
- <caption>환자교육출력물</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fClickPrintBtn(xFormCd, "Y");
- //grp_elecprint.visible = true;
-
- model.setValue("/root/temp/prtPatient", "Y");
- model.setValue("/root/temp/prtOCR", "N");
- fClickPrintBtn(xFormCd, "Y");
-
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn2_letter12" style="left:790px; top:40px; width:152px; height:19px; ">
- <caption>출력(환자교육출력물 포함)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fClickPrintBtn(xFormCd, "N");
-
- ]]>
- </script>
- </button>
- <textarea id="txa_spcffact" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/spcffact" style="left:83px; top:675px; width:1107px; height:45px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|