1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203 |
- <?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>BMT퇴원간호계획</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/>
- <healmngtcd/>
- <healmngtnm/>
- <healmngtsymp/>
- <mainveintubemngt/>
- <mngtaftdschyn>02</mngtaftdschyn>
- <mngtaftdschcd/>
- <mngtaftdschnm/>
- <dschseqeducyn>01</dschseqeducyn>
- <dschmeditmedguidyn>01</dschmeditmedguidyn>
- <dschcatestatcd/>
- <dschcateoxy/>
- <dschcatestatnm/>
- <spcffact/>
- <dschcatestatyn>01</dschcatestatyn>
- </dschcareeduc>
- </dschcareeducinfo>
- <etcfactinfo>
- <etcfact>
- <tel/>
- <eductrgt/>
- <educunstdgrde>01</educunstdgrde>
- </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','U31'", getCurrentDate()); //CareCom.js
-
- model.makeNode("/root/temp/cond");
-
- 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);
- }
- }
- model.refresh();
- }
- }
- ]]>
- </script>
- <submission id="TRMNW03801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main"/>
- <submission id="TRMNW03802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden"/>
- <submission id="TRMNW03803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/rsrvinfo"/>
- <submission id="TRMNW03804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/patinfo"/>
- <submission id="TXMNW03801" 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 = "0000002457";
-
- fGetNursHardCdInfo("'172','174','178','U31','R4'", getCurrentDate()); //CareCom.js
-
- var xFormCd = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='R4' and supcdid = '04']/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", "04");
-
- if(submit("TRMNW03802")) {
- var exist = model.getValue("/root/hidden/existinfo/exist");
-
- if(exist == "Y") {
- submit("TRMNW03801");
-
- } 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");
- chk_healmngt.dispatch("xforms-value-changed");
- rdo_mngtaftdschyn.dispatch("xforms-value-changed");
- chk_mngtaftdsch.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");
- chk_dschcatestat.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; //"0000002457";
-
- var usernm = getUserName();
- model.makeValue("/root/send/req/formcd", formcd);
-
- var sendPath = "/root/send/dschcareinfo"; //렉스퍼트 인자값 경로
- var sendDschPath = "/root/send/dschcareinfo/dschcareinfo"; //렉스퍼트 인자값 경로
- var destPath = "/root/main/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("TRMNW03804"); //주민번호, 부서명 가져오기 위한 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 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 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;
-
- var inreq = model.getValue("/root/main/dschcareinfo/rsrvinfo/inrsrvinfo/inreq");//입원의뢰서정보
- var roomcd = model.getValue("/root/temp/cond/list/roomcd");//병실정보
-
- //전체 아이템 갯수 만큼 반복.(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 == '11') {
- 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 == '6') {
- arrLab[idx] += "( " + ipt_mngtaftdschnm.label + " )";
- }
- idx++;
- }
- }
- }
-
- mngtaftdsch = rdo_mngtaftdschyn.label + "( " + arrLab + " )";
-
- }
- var dschseqeduc = rdo_dschseqeducyn.label;
- var dschmeditmedguid = rdo_dschmeditmedguidyn.label;
- var mainveintubemngt = chk_mainveintubemngt.label;
-
- //퇴원시 기구 및 삽관상태_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 spcffact = tar_spcffact.label;
- var tel = ipt_tel.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 + "/healmngt", healmngt);
- model.makeValue(sendDschPath + "/mngtaftdsch", mngtaftdsch);
- model.makeValue(sendDschPath + "/dschseqeduc", dschseqeduc);
- model.makeValue(sendDschPath + "/mainveintubemngt", mainveintubemngt);
- model.makeValue(sendDschPath + "/dschmeditmedguid", dschmeditmedguid);
- model.makeValue(sendDschPath + "/dschcatestat", dschcatestat); //20090601_SMY추가
- model.makeValue(sendDschPath + "/spcffact", spcffact);
- 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("RPMNW03800", "XMLSTR", "", "", "true", "", "", "", "", "true");
- }
- if ( model.getValue("/root/temp/prtOCR") == "Y" ) {
- //전자동의서 version
- if(!fSaveOCRIF(seq, pid, indd, cretno, ordtype, orddeptcd, medispclid, formcd, formfromdt, "", "", pagecnt)){
- messageBox("통합기록조회 연동중 실패하였습니다.","C999");
- return;
- }
-
- ocrtag = seq;
-
- fElecPrint(pid, cretno, indd, instcd, formcd, ocrtag, "RPMNW03803");
- }
- } else {
- //환자보관용
- exeReportPreview("RPMNW03800", "XMLSTR", "", "", "true", "", "", "", "", "true");
- //출력 version
- exeReportPreview("RPMNW03802", "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", "04");
- 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 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 == "02") { //치료식 선택시.
- 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 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 == '11') {
- 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 mainveintubemngt = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/mainveintubemngt");
- if(mainveintubemngt != "") {
- arr = chk_mainveintubemngt.label.split("▦");
- model.setValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/mainveintubemngt", arr);
- }
-
- //추후관리
- 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 == '6') {
- arrLab[idx] += "( " + mngtaftdschnm + " )";
- }
- idx++;
- }
- }
- }
-
- str += "( " + arrLab + " )";
- }
- model.setValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschyn", 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);
- }
-
- //퇴원시 기구 및 삽관상태_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 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_educunstdgrde.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:129px; height:14px; ">BMT퇴원간호계획</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <select id="chk_healmngt" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtcd" overflow="visible" appearance="full" cellspacing="75" cols="8" vcellspacing="6" style="left:85px; top:521px; width:1105px; height:66px; 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>상처관리</label>
- <value>10</value>
- </item>
- <item>
- <label>기타</label>
- <value>11</value>
- </item>
- <item>
- <label/>
- <value>12</value>
- </item>
- <item>
- <label/>
- <value>16</value>
- </item>
- <item>
- <label/>
- <value>17</value>
- </item>
- <item>
- <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[10] == '11') {
- 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:648px; x2:1194px; y2:648px; "/>
- <line id="line10" class="line_2" style="x1:0px; y1:624px; x2:1194px; y2:624px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:352px; x2:1194px; y2:352px; "/>
- <caption id="cap_bfrecdt" class="cell_1" style="left:0px; top:38px; width:80px; height:23px; vertical-align:middle; ">기록일시</caption>
- <line id="line13" class="line_1" style="x1:0px; y1:33px; x2:1194px; y2:33px; "/>
- <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>
- <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", "0000001587"); //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("TXMNW03801", false) == true) {
- messageBox("저장이 ", "I001");
- fGetDschInfo(); //재조회
-
- } else {
- messageBox("저장이 실패하였습니다.", "E");
- }
- model.refresh();
- }
- ]]>
- </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") ; // parameter : 전자동의서 여부
-
- ]]>
- </script>
- </button>
- <import id="import1" instancetype="merge" src="..\..\..\emr\wardcareweb\xrw\SMMNW10000_예약정보.xrw" style="left:0px; top:64px; 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:325px; x2:1194px; y2:325px; "/>
- <caption id="caption4" class="tit_2" style="left:0px; top:311px; width:113px; height:13px; ">퇴원시 환자정보</caption>
- <line id="line3" class="line_2" style="x1:0px; y1:376px; x2:1194px; y2:376px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:400px; x2:734px; y2:400px; "/>
- <caption id="caption10" class="tit_2" style="left:0px; top:429px; width:113px; height:13px; ">퇴원 간호 교육</caption>
- <line id="line6" class="line_1" style="x1:0px; y1:443px; x2:1194px; y2:443px; "/>
- <line id="line7" class="line_2" style="x1:0px; y1:470px; x2:1194px; y2:470px; "/>
- <line id="line8" class="line_2" style="x1:0px; y1:494px; x2:1194px; y2:494px; "/>
- <line id="line9" class="line_2" style="x1:0px; y1:518px; x2:1194px; y2:518px; "/>
- <caption id="caption11" class="cell_1" style="left:0px; top:448px; width:80px; height:23px; text-align:center; vertical-align:middle; ">활동범위</caption>
- <caption id="caption12" class="cell_1" style="left:0px; top:472px; width:80px; height:23px; text-align:center; vertical-align:middle; ">식이</caption>
- <caption id="caption13" class="cell_1" style="left:0px; top:496px; width:80px; height:23px; text-align:center; vertical-align:middle; ">목욕</caption>
- <caption id="caption15" class="cell_1" style="left:0px; top:626px; width:80px; height:23px; text-align:center; vertical-align:middle; ">추후관리</caption>
- <caption id="caption16" class="cell_1" style="left:0px; top:650px; width:80px; height:23px; text-align:center; vertical-align:middle; ">퇴원절차교육</caption>
- <select1 id="rdo_actscop" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/actscop" appearance="full" cellspacing="57" cols="6" overflow="visible" style="left:83px; top:451px; 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_dschseqeducyn" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschseqeducyn" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:84px; top:655px; width:116px; 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:690px; top:655px; width:116px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>유</label>
- <value>01</value>
- </item>
- <item>
- <label>무</label>
- <value>02</value>
- </item>
- </choices>
- </select1>
- <caption id="caption21" class="cell_1" style="left:595px; top:650px; width:91px; height:23px; text-align:center; vertical-align:middle; ">퇴원약복약지도</caption>
- <caption id="caption22" class="cell_1" style="left:0px; top:721px; width:80px; height:23px; text-align:center; vertical-align:middle; ">문의전화</caption>
- <line id="line16" class="line_1" style="x1:0px; y1:716px; x2:1194px; y2:716px; "/>
- <input id="ipt_tel" ref="/root/main/dschcareinfo/dschcareinfo/etcfactinfo/etcfact/tel" style="left:83px; top:722px; width:231px; height:19px; text-align:center; "/>
- <caption id="caption23" class="cell_1" style="left:317px; top:721px; 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:400px; top:724px; 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:721px; width:80px; height:23px; text-align:center; vertical-align:middle; ">교육이해정도</caption>
- <line id="line15" class="line_3" style="x1:0px; y1:743px; x2:1194px; y2:743px; "/>
- <select1 id="rdo_educunstdgrde" ref="/root/main/dschcareinfo/dschcareinfo/etcfactinfo/etcfact/educunstdgrde" appearance="full" cellspacing="50" cols="3" overflow="visible" style="left:725px; top:726px; 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="line14" class="line_3" style="x1:0px; y1:712px; x2:1194px; y2:712px; "/>
- <line id="line12" class="line_2" style="x1:0px; y1:589px; x2:1194px; y2:589px; "/>
- <caption id="caption17" class="cell_1" style="left:0px; top:591px; width:80px; height:34px; text-align:center; vertical-align:middle; ">
- <![CDATA[중심정맥관
- 관리]]>
- </caption>
- <caption id="caption14" class="cell_1" style="left:0px; top:520px; width:80px; height:70px; text-align:center; vertical-align:middle; ">건강관리</caption>
- <select id="chk_mainveintubemngt" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mainveintubemngt" overflow="visible" appearance="full" cellspacing="60" cols="4" sep="▦" style="left:83px; top:601px; width:372px; 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_dschtypes" ref="/root/main/dschcareinfo/dschcareinfo/dschtypecds" appearance="full" cellspacing="20" cols="7" overflow="visible" style="left:83px; top:333px; width:517px; 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_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");
- //건강관리
- 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");
- //중심정맥관관리
- chk_mainveintubemngt.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mainveintubemngt");
- //추후관리
- 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_actscop.disabled = false;
- rdo_diet.disabled = false;
- rdo_bath.disabled = false;
- chk_healmngt.disabled = false;
- chk_mainveintubemngt.disabled = false;
- rdo_mngtaftdschyn.disabled = false;
- rdo_dschmeditmedguidyn.disabled = false;
- chk_dschcatestat.disabled = false;
- rdo_dschcatestatyn.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>
- <select1 id="rdo_dschgoplac" ref="/root/main/dschcareinfo/dschcareinfo/dschgoplaccd" appearance="full" cellspacing="40" cols="4" overflow="visible" style="left:83px; top:405px; 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>
- <select1 id="rdo_cscsstat" ref="/root/main/dschcareinfo/dschcareinfo/cscsstatcd" appearance="full" cellspacing="40" cols="5" overflow="visible" style="left:83px; top:357px; width:510px; 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>
- <input id="ipt_dschtypenm" ref="/root/main/dschcareinfo/dschcareinfo/dschtypenm" disabled="true" style="left:600px; top:331px; width:130px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:0px; top:354px; width:80px; height:23px; text-align:center; vertical-align:middle; ">의식상태</caption>
- <input id="ipt_dschgoplacnm" ref="/root/main/dschcareinfo/dschcareinfo/dschgoplacnm" disabled="true" style="left:394px; top:403px; width:140px; height:19px; "/>
- <caption id="caption5" class="cell_1" style="left:0px; top:330px; width:80px; height:23px; text-align:center; vertical-align:middle; ">퇴원유형</caption>
- <caption id="caption7" class="cell_1" style="left:0px; top:378px; width:80px; height:23px; text-align:center; vertical-align:middle; ">퇴원방법</caption>
- <caption id="caption8" class="cell_1" style="left:0px; top:402px; width:80px; height:23px; text-align:center; vertical-align:middle; ">퇴원 후 갈곳</caption>
- <select1 id="rdo_dschmthd" ref="/root/main/dschcareinfo/dschcareinfo/dschmthdcd" appearance="full" cellspacing="40" cols="7" overflow="visible" style="left:83px; top:382px; 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>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>
- <line id="line5" class="line_3" style="x1:0px; y1:424px; x2:1194px; y2:424px; "/>
- <select1 id="rdo_bath" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/bathcd" appearance="full" cellspacing="70" cols="7" overflow="visible" style="left:83px; top:500px; 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:497px; width:135px; height:19px; "/>
- <caption id="cap_healmngtsymp" style="left:103px; top:570px; width:436px; height:14px; ">외래진료나 문의를 요하는 증상(고열, 통증, 출혈, 설사, 피부반점, 오심, 불면 등)</caption>
- <select id="chk_mngtaftdsch" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschcd" disabled="true" overflow="visible" appearance="full" cellspacing="60" cols="6" style="left:209px; top:629px; width:636px; 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>
- <item>
- <label>기타</label>
- <value>6</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;
- case '6':
- arr[5] = kind[i];
- default :
- arr[arr.length - 1] = kind[i];
- }
- }
-
- for(var i = 0; i < arr.length; i++) {
- if(arr[5] == '6') {
- ipt_mngtaftdschnm.disabled = false;
-
- } else {
- ipt_mngtaftdschnm.disabled = true;
- model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschnm");
-
- ipt_mngtaftdschnm.refresh();
-
- }
- }
- ]]>
- </script>
- </select>
- <caption id="caption19" style="left:198px; top:630px; width:13px; height:14px; ">(</caption>
- <select1 id="rdo_mngtaftdschyn" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschyn" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:84px; top:630px; 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>
- <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>
- <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; "/>
- <input id="ipt_rectm" ref="/root/main/dschcareinfo/dschcareinfo/rectm" navindex="2" format="hh:nn" style="left:185px; top:40px; width:40px; height:19px; "/>
- <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:920px; top:5px; width:64px; height:19px; ">
- <caption>임시저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetDschInfo("T");
- if(submit("TXMNW03801") == true) {
-
- messageBox("저장이 ", "I001");
-
- } else {
- messageBox("저장이 실패하였습니다.", "E");
- }
-
- ]]>
- </script>
- </button>
- <caption id="caption20" style="left:847px; top:630px; width:85px; height:14px; ">)</caption>
- <input id="ipt_mngtaftdschnm" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschnm" disabled="true" style="left:855px; top:626px; width:181px; height:19px; "/>
- <caption id="caption25" class="cell_1" style="left:595px; top:590px; width:91px; height:34px; text-align:center; vertical-align:middle; ">특이사항</caption>
- <textarea id="tar_spcffact" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/spcffact" scroll="autovscroll" style="left:688px; top:592px; width:499px; height:30px; "/>
- <select1 id="rdo_diet" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dietcd" appearance="full" cellspacing="40" cols="8" overflow="visible" style="left:83px; top:475px; width:762px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>일반식 .</label>
- <value>01</value>
- </item>
- <item>
- <label>치료식</label>
- <value>02</value>
- </item>
- <item>
- <label>. .</label>
- <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/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") == "02") {
-
- 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:630px; top:473px; width:135px; height:19px; "/>
- <input id="ipt_treatdiet" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/treatdiet" disabled="true" style="left:285px; top:473px; width:185px; height:19px; "/>
- <input id="input2" ref="/root/main/dschcareinfo/dschcareinfo/signno" visibility="hidden" style="left:745px; top:5px; width:100px; height:19px; "/>
- <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="caption68" class="search_name" style="left:5px; top:10px; width:55px; height:17px; ">병실:</caption>
- <caption id="caption18" ref="/root/main/room" style="left:63px; top:9px; width:52px; height:20px; font-family:돋움; "/>
- <caption id="caption26" ref="/root/main/patnm" style="left:190px; top:9px; width:60px; height:20px; font-family:돋움; "/>
- <caption id="caption27" class="search_name" style="left:122px; top:10px; width:68px; height:17px; ">환자명:</caption>
- <caption id="caption28" ref="/root/main/sex" style="left:318px; top:9px; width:32px; height:20px; font-family:돋움; "/>
- <caption id="caption29" class="search_name" style="left:260px; top:10px; width:58px; height:17px; ">성별:</caption>
- <caption id="caption33" ref="/root/main/pid" style="left:544px; top:9px; width:96px; height:20px; font-family:돋움; "/>
- <input id="ipt_dschmthdnm" ref="/root/main/dschcareinfo/dschcareinfo/dschmthdnm" disabled="true" style="left:600px; top:380px; width:130px; height:19px; "/>
- <input id="ipt_antibioallgnm" ref="/root/main/dschcareinfo/dschcareinfo/antibioallgnm" disabled="true" style="left:1099px; top:404px; 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:378px; 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="caption34" style="left:888px; top:407px; width:15px; height:13px; ">(</caption>
- <caption id="caption35" style="left:1185px; top:407px; width:10px; height:14px; ">)</caption>
- <caption id="caption37" class="cell_1" style="left:735px; top:378px; 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:406px; 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:333px; 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="caption36" class="cell_1" style="left:962px; top:330px; 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:333px; 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="caption9" class="cell_1" style="left:735px; top:330px; width:115px; height:23px; text-align:center; vertical-align:middle; ">보호자 동반</caption>
- <input id="ipt_healmngtsymp" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtsymp" disabled="true" style="left:545px; top:568px; width:456px; height:19px; "/>
- <input id="ipt_healmngtnm" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtnm" disabled="true" style="left:721px; top:545px; width:466px; height:19px; "/>
- <line id="line17" class="line_2" style="x1:0px; y1:672px; x2:1194px; y2:672px; "/>
- <select1 id="rdo_dschcatestatyn" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatyn" appearance="full" cols="1" rows="2" overflow="visible" style="left:84px; top:677px; 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:673px; 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="caption38" class="cell_1" style="left:0px; top:674px; width:80px; height:38px; text-align:center; vertical-align:middle; ">
- <![CDATA[퇴원시 기구
- 및 삽관상태]]>
- </caption>
- <caption id="cap_oxyunit" style="left:1142px; top:679px; width:35px; height:14px; ">L/min</caption>
- <input id="ipt_dschcatestatnm" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatnm" disabled="true" style="left:776px; top:694px; width:416px; height:19px; "/>
- <input id="ipt_dschcateoxy" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcateoxy" disabled="true" style="left:1075px; top:674px; width:65px; 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>
- <caption id="caption39" style="left:1165px; top:722px; width:26px; height:14px; ">[표]</caption>
- <button id="button1" class="btn2_letter5" style="left:1048px; top:40px; width:75px; height:19px; ">
- <caption>전자동의서</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fClickPrintBtn(xFormCd, "Y") ; // parameter : 전자동의서 여부
- //grp_elecprint.visible = true;
-
- model.setValue("/root/temp/prtPatient", "N");
- model.setValue("/root/temp/prtOCR", "Y");
- fClickPrintBtn(xFormCd, "Y");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter7" style="left:950px; top:40px; width:97px; height:19px; ">
- <caption>환자교육출력물</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fClickPrintBtn(xFormCd, "Y") ; // parameter : 전자동의서 여부
- //grp_elecprint.visible = true;
-
- model.setValue("/root/temp/prtPatient", "Y");
- model.setValue("/root/temp/prtOCR", "N");
- fClickPrintBtn(xFormCd, "Y");
- ]]>
- </script>
- </button>
- </group>
- <shape id="rectangle1" appearance="rectangle" style="left:788px; top:51px; width:156px; height:23px; border-color:#008000; "/>
- <shape id="rectangle2" appearance="rectangle" style="left:948px; top:51px; width:178px; height:23px; border-color:#008000; "/>
- </xhtml:body>
- </xhtml:html>
|