1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323 |
- /*
-
- 심폐소생술(SMMNE02300.xfm - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
-
- xPathCardArrPatInfo = "/root/main/patinfo";
- xPathCardArrResusList = "/root/main/resusinfo/resuslist";
- /**
- * @group :
- * @ver : 2007.12.04
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 심폐소생술 보고서 초기 설정 부분
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- var ssflag = "3";
- function fInit(pFlag){
- //상단 환자 정보 가져오기
- var node = getGlobalVariable("paminfo");
- setCSVToNode("/root/main/paminfo", node);
-
- //현재 시간 세팅
- int_cardarrgenrdd.disabled = false;
- model.setValue(xPathCardArrPatInfo+"/cardarrgenrdd", getCurrentDate());
- model.setValue(xPathCardArrPatInfo+"/cardarrgenrtm", getCurrentTime());
- model.setValue(xPathCardArrPatInfo+"/cardarrgenrdt", getCurrentDate()+getCurrentTime() );
-
- model.removeNode("/root/main/pathistinfo/pathistlist");
- var sJobKindCD = getUserInfo("jobkindcd"); // 직급코드
-
- if(getUserInfo("dutplceinstcd") != '032' && getUserInfo("dutplceinstcd") != '031') {
- //경북대가 아니면
- if( sJobKindCD == "0330" || sJobKindCD == "0310"){
- ssflag = "1";
- }
- if( sJobKindCD == "1110" || sJobKindCD == "1140"){
- ssflag = "2";
- }
- } else if(getUserInfo("dutplceinstcd") == '032' || getUserInfo("dutplceinstcd") == '031') {
- //경북대이면 03%로 체크한다.
- if( sJobKindCD.substring(0, 2) == "03"){
- ssflag = "1";
- }
- if( sJobKindCD == "1140"){
- ssflag = "2";
- }
- }
-
- if( getUserInfo("userid") == "05141" ){
- ssflag = "2";
- }
- //의사, 간호사 직종 분류별 입력 창 제한 구분
- if(ssflag=="1" || ssflag=="2"){ //의사
- model.setValue("/root/main/patinfo/nursdocflag", "N");
- group2.disabled = false ;
- fDateSetting("Init");
- } else { //기타
- group2.disabled = true ;
- group6.disabled = true ;
- messageBox("심폐소생술보고서 작성 권한이 없습니다.","E");
- }
- if(pFlag == "1"){
- submit("TRMNE02313");
-
- model.setValue("/root/send/wardcd", getUserInfo("dutplcecd") );
- submit("TRMNW00101");
-
- int_cardarrdiscvpsnetc.disabled = true;
- int_resusteamarvbfresusetc.disabled = true;
- int_resusteamarvbfresusnurseetc.disabled = true;
- int_resusteamarvafresusetc.disabled = true;
- int_resusendresnetc.disabled = true;
- int_cardarrgenrplcehosout.disabled = true;
- int_hosparvbfresusetc.disabled = true;
-
- int_dethdd.disabled= true;
- int_dethtm.disabled= true;
- btn_dschdethtm.disabled= true;
- int_fstresusexecetc.disabled = true;
- int_cardarrgenrplceetcbigo.disabled = true;
-
- cmb_cardarrgenrplceward.disabled = true;
- rdo_cardarrgenrplcewardflag.disabled = true;
- cmb_cardarrgenrplcehosin.disabled = true;
- cmb_cardarrgenrplcehoscenter.disabled = true;
- cmb_cardarrgenrplcetestroom.disabled = true;
- chk_resusteamarvbfresus.disabled = true;
- chk_resusteamarvbfresusnurse.disabled = true;
-
- int_cardarrfinddd.disabled = true;
- int_cardarrfindtm.disabled = true;
- btn_cardarrfindclock.disabled = true;
- int_cardarrestmdd.disabled = true;
- int_cardarrestmtm.disabled = true;
- bool_cardarrestmflag.value = "Y";
- btn_cardarrestmclock.disabled = true;
- int_bluebirdalarmdd.disabled = true;
- int_bluebirdalarmtm.disabled = true;
- btn_bluebirdalarmclock.disabled = true;
- chk_hosparvbfresus.disabled = true;
- int_hosparvbfresusetc.disabled = true;
- }else{
- int_cardarrdiscvpsnetc.disabled = true;
- int_cardarrgenrplceetc.disabled = true;
- int_ercentresusetc.disabled = true;
- int_ambulancearvbfresusetc.disabled = true;
- int_ambulanceresusetc.disabled = true;
- int_resusendresnetc.disabled = true;
- }
- model.refresh();
-
- if(node != ""){
- model.setValue("/root/main/patinfo/pid", model.getValue("/root/main/paminfo/list/pid"));
-
- fSrchHistList("1");
-
- model.setValue("/root/main/patinfo/indd", model.getValue("/root/main/pathistinfo/patinfo/indd"));
- model.setValue("/root/main/patinfo/cretno", model.getValue("/root/main/pathistinfo/patinfo/cretno"));
- model.setValue("/root/main/patinfo/instcd", model.getValue("/root/main/pathistinfo/patinfo/instcd"));
- // 외래 O, 응급 E ,입원 I
- if( model.getValue("/root/main/pathistinfo/patinfo/ordtype" ) == "I" ){
- model.setValue("/root/main/patinfo/patinfoflag", "1");
- }else if( model.getValue("/root/main/pathistinfo/patinfo/ordtype" ) == "O" ){
- model.setValue("/root/main/patinfo/patinfoflag", "2");
- }else if( model.getValue("/root/main/pathistinfo/patinfo/ordtype" ) == "E" ){
- model.setValue("/root/main/patinfo/patinfoflag", "3");
- }
-
- if(model.getValue("/root/main/paminfo/list/ioflag") == "E") {
- model.makeValue("/root/main/patinfo/issdeptcd", model.getValue("/root/main/paminfo/list/erissdeptcd"));
- } else {
- model.makeValue("/root/main/patinfo/issdeptcd", model.getValue("/root/main/paminfo/list/wardcd"));
- }
-
- //주민등록 번호 셋팅
- var rrgstno = "";
-
- if(model.getValue("/root/main/paminfo/list/sex") == "M"){
- var rrgstno = model.getValue("/root/main/paminfo/list/rrgstno1") + " - " + "1******";
- }else if(model.getValue("/root/main/paminfo/list/sex") == "F"){
- var rrgstno = model.getValue("/root/main/paminfo/list/rrgstno1") + " - " + "2******";
- }else {
- var rrgstno = model.getValue("/root/main/paminfo/list/rrgstno1") + " - " + "*******";
- }
-
- model.setValue("/root/main/patinfo/rrgstno", rrgstno);
-
- model.makeValue("/root/main/patinfo/orddeptcd", model.getValue("/root/main/paminfo/list/orddeptcd"));
- cmb_dept.dispatch("xforms-value-changed");
-
- model.setValue("/root/main/patinfo/medispclid", model.getValue("/root/main/paminfo/list/medispclid"));
- model.makeValue("/root/main/patinfo/atdoctcd", model.getValue("/root/main/paminfo/list/atdoctid"));
- model.makeValue("/root/main/patinfo/orddrid", model.getValue("/root/main/paminfo/list/orddrnm"));
- model.makeValue("/root/main/patinfo/deptcd", model.getValue("/root/main/paminfo/list/orddeptcd"));
- model.makeValue("/root/main/patinfo/ordtype", model.getValue("/root/main/pathistinfo/patinfo/ordtype"));
-
- model.makeValue("/root/main/patinfo/wardcd", model.getValue("/root/main/paminfo/list/wardcd"));
- model.makeValue("/root/main/patinfo/wardnm", model.getValue("/root/main/paminfo/list/wardnm"));
-
- cmb_wardcd.dispatch("xforms-value-changed");
- model.makeValue("/root/main/patinfo/roomcd", model.getValue("/root/main/paminfo/list/roomcd"));
- model.makeValue("/root/main/patinfo/gender", model.getValue("/root/main/paminfo/list/sex"));
- model.makeValue("/root/main/patinfo/age", model.getValue("/root/main/paminfo/list/age"));
-
- //환자 정보 세팅
- model.setValue("/root/main/patinfo/patnm", model.getValue("/root/main/pathistinfo/patinfo/patnm" ));
- model.setValue("/root/main/patinfo/grdrage", model.getValue("/root/main/pathistinfo/patinfo/grdrage" ));
- model.setValue("/root/main/patinfo/cntctel", model.getValue("/root/main/pathistinfo/patinfo/cntctel" ));
- model.setValue("/root/main/patinfo/addr", model.getValue("/root/main/pathistinfo/patinfo/addr" ));
-
- var sIndd = model.getValue("/root/main/pathistinfo/patinfo/indd1" ).substr(0,4) + "-"
- + model.getValue("/root/main/pathistinfo/patinfo/indd1" ).substr(4,2) + "-"
- + model.getValue("/root/main/pathistinfo/patinfo/indd1" ).substr(6,2) ;
- var ininfo = "입원정보 : "
- + sIndd + " "
- + model.getValue("/root/main/pathistinfo/patinfo/orddeptcd" ) + " "
- + model.getValue("/root/main/pathistinfo/patinfo/medispclid" ) ;
-
- model.setValue("/root/main/patinfo/ininfo", ininfo );
- model.refresh();
- }
- // 2013.09.13 cyw 보고조회화면에서 보고서 화면으로 연동
- var openerid = opener.window.javascript.getParameter("SMMNE02301_openerid");
- if (openerid == "SMMNE02301") {
- var pid = opener.window.javascript.getParameter("SMMNE02301_pid");
- var patnm = opener.window.javascript.getParameter("SMMNE02301_patnm");
- var patinfoflag = opener.window.javascript.getParameter("SMMNE02301_patinfoflag");
- var cardarrgenrdt = opener.window.javascript.getParameter("SMMNE02301_cardarrgenrdt");
- if( patinfoflag == "4" || patinfoflag == "5" || patinfoflag == "6" ){
- if( pid != "" ){
- btn_nopid.visible = true;
- }
- }
- model.setValue( "/root/srchmax/popflag", "Y" );
- model.setValue( "/root/main/patinfo/pid", pid );
- model.setValue( "/root/main/patinfo/patnm", patnm );
- model.setValue( "/root/main/patinfo/patinfoflag", patinfoflag );
- model.setValue( "/root/main/patinfo/cardarrgenrdd", cardarrgenrdt.substring(0,8) );
- model.setValue( "/root/main/patinfo/cardarrgenrtm", cardarrgenrdt.substring(0,4) );
-
- grp_patinfogroup.disabled = false;
- fClearChildNode( "/root/main/resusinfo/resuslist" );
- model.setValue( "/root/main/patinfo/diagnm" , "" );
- model.setValue( "/root/main/patinfo/diagcd" , "" );
- fSrchPatListInput( "1" );
-
- for( var i = 1 ; i <= grd_pastlst.rows-grd_pastlst.fixedRows ; i++ ){
- if( model.getValue("/root/main/pathistinfo/pathistlist[" + i + "]/cardarrgenrdt") == cardarrgenrdt ){
- grd_pastlst.row = i ;
- grd_pastlst.dispatch("onclick");
- }
- }
- }
- model.refresh();
-
-
- }
-
- /**
- * @group :
- * @ver : 2007.07.07
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 대상 환자에 대한 심폐소생술 보고서 수정, 삭제일 때만 사용.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCardArrResusSave(pFlag, pFlag1, pStatus){
- var sRow = grd_pastlst.row;
- model.removeNode("/root/send");
- model.makeNode("/root/item/list");
- model.copyNode("/root/item/list", "/root/main/resusinfo");
-
- if(model.getValue("/root/main/patinfo/selectrow") == ""){
- if(pStatus == "U"){
- messageBox("수정할 데이터를 선택하지 않았습니다.","I");
- return;
- }
- if(pStatus == "D"){
- messageBox("삭제할 데이터를 선택하지 않았습니다.","I");
- return;
- }
- }
-
- var sDocHeader = "hosinhosoutflag▦pid▦patnm▦indd▦cretno▦histno▦cardarrgenrdt▦instcd";
-
- // 키값 설정부분
- var sCondData = pFlag +"▦"
- + model.getValue(xPathCardArrPatInfo+"/pid" ) +"▦"
- + model.getValue(xPathCardArrPatInfo+"/patnm") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/indd" ) +"▦"
- + model.getValue(xPathCardArrPatInfo+"/cretno") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/histno") +"▦"
- + model.getValue("/root/main/patinfo/cardarrgenrdt")+"▦"
- + getUserInfo("dutplceinstcd");
- model.makeValue("/root/send/cond", sDocHeader+"▩"+sCondData+"▩" );
-
-
- // if(pFlag1 == "D"){
- // 심폐소생술보고서 주치의 입력
- sDocHeader += "▦"
- + "status▦"
- + "cardarrcas▦"
- + "initrhythm▦"
- + "resusendresn▦"
- + "resusendresnetc▦"
- + "cardarrrslt▦"
- + "cardarrrsltetc▦"
- + "dschdethdd▦"
- + "dschdethtm▦"
- + "fstrgstid▦"
- + "fstrgstdt▦"
- + "patinfoflag▦"
- + "patinfoflagetc▦"
- + "cardarrfinddd▦"
- + "cardarrfindtm▦"
- + "dschneurologystat";
- // + "dschneurologystat▩";
-
- sCondData += "▦"
- + pStatus + "▦"
- + model.getValue(xPathCardArrResusList + "/cardarrcas") +"▦"
- + model.getValue(xPathCardArrResusList + "/initrhythm") +"▦"
- + model.getValue(xPathCardArrResusList + "/resusendresn") +"▦"
- + model.getValue(xPathCardArrResusList + "/resusendresnetc") +"▦"
- + model.getValue(xPathCardArrResusList + "/cardarrrslt") +"▦"
- + model.getValue(xPathCardArrResusList + "/cardarrrsltetc") +"▦"
- + model.getValue(xPathCardArrResusList + "/dschdethdd") +"▦"
- + model.getValue(xPathCardArrResusList + "/dschdethtm") +"▦"
- + model.getValue(xPathCardArrResusList + "/fstrgstid") +"▦"
- + model.getValue(xPathCardArrResusList + "/fstrgstdt") +"▦"
- + model.getValue("/root/main/patinfo/patinfoflag") +"▦"
- + model.getValue("/root/main/patinfo/patinfoflagetc") +"▦"
- + model.getValue(xPathCardArrResusList + "/cardarrfinddd") +"▦"
- + model.getValue(xPathCardArrResusList + "/cardarrfindtm") +"▦"
- + model.getValue(xPathCardArrResusList + "/dschneurologystat") ;
-
- // 심폐소생술보고서 간호사 입력
- sDocHeader += "▦"
- // + "status▦"
- + "cardarrgoalyn▦"
- + "cardarrdiscvpsn▦"
- + "cardarrdiscvpsnetc▦"
- + "cardarrgenrplceflag▦"
- + "cardarrgenrplcedept▦"
- + "cardarrgenrplceetc▦"
- + "resusteamarvbfresus▦"
- + "resusteamarvbfresusetc▦"
- + "resusteamfresus▦"
- + "resusteamfresusetc▦"
- + "ambulancearvbfresus▦"
- + "ambulancearvbfresusetc▦"
- + "ambulanceresus▦"
- + "ambulanceresusetc▦"
- + "ercentresus▦"
- + "ercentresusetc▦"
- + "cardarrestmdd▦"
- + "cardarrestmtm▦"
- + "resusteamcalldd▦"
- + "resusteamcalltm▦"
- + "resusteamarvdd▦"
- + "resusteamarvtm▦"
- + "initrhythmcnfmdd▦"
- + "initrhythmcnfmtm▦"
- + "resusfromdd▦"
- + "resusfromtm▦"
- + "resustodd▦"
- + "resustotm▦"
-
- + "resusteamarvbfresusflag▦"
- + "resusteamarvbfresustext▦"
- + "resusteamarvbfresusnurse▦"
- + "resusteamarvbfresusnurseetc▦"
- + "cardarrgenrtm▦"
- + "cardarryn▦"
- + "bluebirdalarmyn▦"
- + "bluebirdalarmdd▦"
- + "bluebirdalarmtm▦"
- + "cardarrgenrplceward▦"
- + "cardarrgenrplcewardflag▦"
- + "cardarrgenrplcehosin▦"
- + "cardarrgenrplcehoscenter▦"
- + "cardarrgenrplcetestroom▦"
- + "cardarrgenrplcehosout▦"
- + "hosparvbfresus▦"
- + "hosparvbfresusetc▦"
- + "atdoctcalldd▦"
- + "atdoctcalltm▦"
- + "atdoctarrdd▦"
- + "atdoctarrtm▦"
- + "defibrstartdd▦"
- + "defibrstarttm▦"
- + "defibrjul▦"
- + "defibrtims▦"
- + "resusteamarvafresus▦"
- + "resusteamarvafresusetc" ;
-
- var resusteamarvbfresus = "";
- var resusteamarvbfresusetc = "";
- var resusteamarvbfresusnurse = "";
- var resusteamarvbfresusnurseetc = "";
- resusteamarvbfresus = model.getValue(xPathCardArrResusList+"/resusteamarvbfresus"); //model.getValue("hidden/list/resusteamarvbfresus");
- resusteamarvbfresusetc = model.getValue(xPathCardArrResusList+"/resusteamarvbfresusetc");
- resusteamarvbfresusnurse = model.getValue(xPathCardArrResusList+"/resusteamarvbfresusnurse");
- resusteamarvbfresusnurseetc = model.getValue(xPathCardArrResusList+"/resusteamarvbfresusnurseetc");
- if(pFlag == "1"){ // 의사
- sCondData += "▦"
- // + pStatus + "▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgoalyn") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrdiscvpsn") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrdiscvpsnetc") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplceflag") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplcedept") +"▦"
- + "▦"
- + resusteamarvbfresus +"▦"
- + resusteamarvbfresusetc +"▦"
- + model.getValue("hidden/list/resusteamfresus") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamfresusetc") +"▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + model.getValue(xPathCardArrResusList+"/cardarrestmdd") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrestmtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamcalldd") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamcalltm") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamarvdd") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamarvtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/initrhythmcnfmdd") +"▦"
- + model.getValue(xPathCardArrResusList+"/initrhythmcnfmtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusfromdd") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusfromtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/resustodd") +"▦"
- + model.getValue(xPathCardArrResusList+"/resustotm") +"▦"
-
-
- + model.getValue(xPathCardArrResusList+"/resusteamarvbfresusflag") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamarvbfresustext") +"▦"
- + resusteamarvbfresusnurse +"▦"
- + resusteamarvbfresusnurseetc +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarryn") +"▦"
- + model.getValue(xPathCardArrResusList+"/bluebirdalarmyn") +"▦"
- + model.getValue(xPathCardArrResusList+"/bluebirdalarmdd") +"▦"
- + model.getValue(xPathCardArrResusList+"/bluebirdalarmtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplceward") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplcewardflag") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplcehosin") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplcehoscenter") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplcetestroom") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplcehosout") +"▦"
- + model.getValue(xPathCardArrResusList+"/hosparvbfresus") +"▦"
- + model.getValue(xPathCardArrResusList+"/hosparvbfresusetc") +"▦"
- + model.getValue(xPathCardArrResusList+"/atdoctcalldd") +"▦"
- + model.getValue(xPathCardArrResusList+"/atdoctcalltm") +"▦"
- + model.getValue(xPathCardArrResusList+"/atdoctarrdd") +"▦"
- + model.getValue(xPathCardArrResusList+"/atdoctarrtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/defibrstartdd") +"▦"
- + model.getValue(xPathCardArrResusList+"/defibrstarttm") +"▦"
- + model.getValue(xPathCardArrResusList+"/defibrjul") +"▦"
- + model.getValue(xPathCardArrResusList+"/defibrtims") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamarvafresus") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamarvafresusetc") ;
-
- }
-
- if(pFlag == "2"){
- // 사용자가 간호사일 경우(병원외)
- sCondData +="▦"
- // + pStatus + "▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgoalyn") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrdiscvpsn") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrdiscvpsnetc") +"▦"
- + model.getValue("hidden/list/cardarrgenrplceflag") +"▦"
- + "▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplceetc") +"▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + model.getValue("hidden/list/ambulancearvbfresus") +"▦"
- + model.getValue(xPathCardArrResusList+"/ambulancearvbfresusetc")+"▦"
- + model.getValue("hidden/list/ambulanceresus") +"▦"
- + model.getValue(xPathCardArrResusList+"/ambulanceresusetc") +"▦"
- + model.getValue("hidden/list/ercentresus") +"▦"
- + model.getValue(xPathCardArrResusList+"/ercentresusetc") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrestmdd") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrestmtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamcalldd") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamcalltm") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamarvdd") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamarvtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/initrhythmcnfmdd") +"▦"
- + model.getValue(xPathCardArrResusList+"/initrhythmcnfmtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusfromdd") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusfromtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/resustodd") +"▦"
- + model.getValue(xPathCardArrResusList+"/resustotm") +"▦"
-
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦";
- }
- sDocHeader +="▦"
- + "resusteamorddept▦"
- + "resusteamorddr▦"
- + "resusteamnum▦"
- + "patstatus▦"
- + "patstatusetc▦"
- + "curerslt▩";
- sCondData +="▦"
- + model.getValue(xPathCardArrResusList+"/resusteamorddept") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamorddr") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamnum") +"▦"
- + model.getValue(xPathCardArrResusList+"/patstatus") +"▦"
- + model.getValue(xPathCardArrResusList+"/patstatusetc") +"▦"
- + model.getValue(xPathCardArrResusList+"/curerslt") +"▩";
-
- // Hist 데이터 입력
- var DetailHeader = "pid▦indd▦cretno▦histno▦cardarrgenrdt▦instcd▩";
- var Detail_Cardarrgenrdt = model.getValue("/root/main/patinfo/cardarrgenrdt");
- // 키값 설정부분
- var DetailData = model.getValue(xPathCardArrPatInfo+"/pid" ) +"▦"
- + model.getValue(xPathCardArrPatInfo+"/indd" ) +"▦"
- + model.getValue(xPathCardArrPatInfo+"/cretno") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/histno") +"▦"
- + Detail_Cardarrgenrdt +"▦"
- + model.getValue(xPathCardArrPatInfo+"/instcd") +"▩";
- model.makeValue("/root/send/recdetail", DetailHeader + DetailData );
-
- model.makeValue("/root/send/recdata", sDocHeader+sCondData );
- // }
- if(submit("TXMNE02302") == true){
- model.copynode("/root/main/resusinfo","/root/resusbase");
- model.setValue("/root/saveinfo/nurseinfo", "");
- model.setValue("/root/saveinfo/lastinfo", "");
- fSrchHistList(pFlag);
- fActionStatus(pFlag, pStatus, sRow);
- }
- model.removeNodeset("/root/item");
- model.refresh();
- }
-
- /**
- * @group :
- * @ver : 2007.07.07
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 저장, 수정, 삭제 구분에 따른 Action 설정
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fActionStatus(pFlag, pStatus, row){
- if(pStatus == "I"){
- grd_pastlst.row = getNodesetCount("/root/main/pathistinfo/pathistlist");
- fSelectHistData(pFlag);
- }else if(pStatus == "U"){
- grd_pastlst.row = row;
- fSelectHistData(pFlag);
- }else if(pStatus == "D"){
- model.setValue("/root/main/patinfo/selectrow", "");
- }
- }
- /**
- * @group :
- * @ver : 2007.07.07
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 이력 데이터 선택 조회 부분
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSelectHistData(pFlag){
- model.setValue("/root/main/patinfo/indd", model.getValue("/root/main/pathistinfo/pathistlist["+grd_pastlst.row+"]/indd"));
- model.setValue("/root/main/patinfo/cretno", model.getValue("/root/main/pathistinfo/pathistlist["+grd_pastlst.row+"]/cretno"));
- model.setValue("/root/main/patinfo/instcd", model.getValue("/root/main/pathistinfo/pathistlist["+grd_pastlst.row+"]/instcd"));
- model.setValue("/root/main/patinfo/cardarrgenrdd", model.getValue("/root/main/pathistinfo/pathistlist["+grd_pastlst.row+"]/cardarrgenrdd"));
- model.setValue("/root/main/patinfo/cardarrgenrtm", model.getValue("/root/main/pathistinfo/pathistlist["+grd_pastlst.row+"]/cardarrgenrtm"));
- model.setValue("/root/main/patinfo/cardarrgenrdt", model.getValue("/root/main/pathistinfo/pathistlist["+grd_pastlst.row+"]/cardarrgenrdt"));
- model.setValue("/root/main/patinfo/histno", model.getValue("/root/main/pathistinfo/pathistlist["+grd_pastlst.row+"]/histno"));
-
- fCardArrResusSrch(pFlag);
- fInputBoxInit(pFlag);
-
-
- }
- /**
- * @group :
- * @ver : 2007.07.07
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 현재 시간 설정 부분
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCurrentDate(){
- var d, s= "" ,t;
- d = new Date();
- if( d.getMinutes() > 10 ) {
- if(d.getHours() >= 10 ) {
- t = d.getHours() + "" + d.getMinutes();
- } else {
- t = "0" + d.getHours() + "" + d.getMinutes();
- }
- } else {
- if(d.getHours() >= 10 ) {
- t = d.getHours() + "0" + d.getMinutes();
- } else {
- t = "0" + d.getHours() + "0" + d.getMinutes();
- }
- }
-
- return t;
- }
-
- /**
- * @group :
- * @ver : 2007.07.07
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 환자 이력 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSrchHistList(pFlag){
-
- if( model.getValue(xPathCardArrPatInfo+"/patgubun") == ""){
- var pid = model.getValue(xPathCardArrPatInfo+"/pid" );
- if( isNaN(pid.substring(0,1)) ){
- model.setValue(xPathCardArrPatInfo+"/patgubun", "2");
- }else{
- model.setValue(xPathCardArrPatInfo+"/patgubun", "1");
- }
- }
-
- var sDocHeader = "hosinhosoutflag▦srchdate▦patgubun▦pid▩"
- var sCondData = pFlag +"▦"
- + model.getValue(xPathCardArrPatInfo+"/cardarrgenrdd") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/patgubun" )+"▦"
- + model.getValue(xPathCardArrPatInfo+"/pid" )+"▩" ;
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/cond", sDocHeader+sCondData );
- if( submit("TRMNE02310") == true ){
- }
- }
-
- /**
- * @group :
- * @ver : 2007.07.07
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 심폐소생술이력 조회 부분
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCardArrResusSrch(pFlag){
- model.removeNode("/root/send");
- model.setValue("/root/saveinfo/nurseinfo" , "" );
- model.setValue("/root/saveinfo/lastinfo" , "" );
- var sDocHeader = "hosinhosoutflag▦pid▦indd▦cretno▦cardarrgenrdt▦histno▦instcd";
- // 키값 설정부분
- var sCondData = pFlag +"▦"
- + model.getValue(xPathCardArrPatInfo+"/pid" )+"▦"
- + model.getValue(xPathCardArrPatInfo+"/indd" )+"▦"
- + model.getValue(xPathCardArrPatInfo+"/cretno")+"▦"
- + model.getValue("/root/main/patinfo/cardarrgenrdt")+"▦"
- + model.getValue(xPathCardArrPatInfo+"/histno")+"▦"
- + model.getValue(xPathCardArrPatInfo+"/instcd");
- model.makeValue("/root/send/cond", sDocHeader+"▩"+sCondData+"▩" );
-
- // Hist 데이터 입력
- var DetailHeader = "pid▦indd▦cretno▦histno▦cardarrgenrdt▦instcd▩";
- var Detail_Cardarrgenrdt = model.getValue("/root/main/patinfo/cardarrgenrdt");
- // 키값 설정부분
- var DetailData = model.getValue(xPathCardArrPatInfo+"/pid" ) +"▦"
- + model.getValue(xPathCardArrPatInfo+"/indd" ) +"▦"
- + model.getValue(xPathCardArrPatInfo+"/cretno") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/histno") +"▦"
- + Detail_Cardarrgenrdt +"▦"
- + model.getValue(xPathCardArrPatInfo+"/instcd") +"▩";
- model.makeValue("/root/send/recdetail", DetailHeader + DetailData );
-
- if( submit("TXMNE02302") ){
-
- var userid = getUserInfo("userid");
-
- // 최종저장이면 더이상 저장 불가능
- if( model.getValue("/root/main/resusinfo/resuslist/saveflag" ) == "Y" ){
- btn_lastsave.disabled = true;
- btn_nursesave.disabled = true;
- group2.disabled = true;
- group6.disabled = true;
- grp_patinfogroup.disabled = true;
- }else{
- btn_lastsave.disabled = false;
- btn_nursesave.disabled = false;
- group2.disabled = false;
- group6.disabled = false;
- grp_patinfogroup.disabled = false;
- }
-
- // 간호입력저장정보
- if( model.getValue("/root/main/resusinfo/resuslist/nursesaveid" ) != "" ){
- var nursesaveid = model.getValue("/root/main/resusinfo/resuslist/nursesaveid" );
- var nursesavenm = model.getValue("/root/main/resusinfo/resuslist/nursesavenm" );
- var nursesavedd = model.getValue("/root/main/resusinfo/resuslist/nursesavedd" ).substring(0,4) + "-" +
- model.getValue("/root/main/resusinfo/resuslist/nursesavedd" ).substring(4,6) + "-" +
- model.getValue("/root/main/resusinfo/resuslist/nursesavedd" ).substring(6,8) + " " +
- model.getValue("/root/main/resusinfo/resuslist/nursesavedd" ).substring(8,10) + ":" +
- model.getValue("/root/main/resusinfo/resuslist/nursesavedd" ).substring(10,12) + ":" +
- model.getValue("/root/main/resusinfo/resuslist/nursesavedd" ).substring(12,14) ;
- model.setValue("/root/saveinfo/nurseinfo" , nursesavedd + " " + nursesavenm + " ( " + nursesaveid + " )" );
-
- if( userid == nursesaveid ){
- btn_nursesave.disabled = false;
- }else{
- btn_nursesave.disabled = true;
- }
- }
-
- // 최종저장 정보
- if( model.getValue("/root/main/resusinfo/resuslist/lastsaveid" ) != "" ){
- var lastsaveid = model.getValue("/root/main/resusinfo/resuslist/lastsaveid" );
- var lastsavenm = model.getValue("/root/main/resusinfo/resuslist/lastsavenm" );
- var lastsavedd = model.getValue("/root/main/resusinfo/resuslist/lastsavedd" ).substring(0,4) + "-" +
- model.getValue("/root/main/resusinfo/resuslist/lastsavedd" ).substring(4,6) + "-" +
- model.getValue("/root/main/resusinfo/resuslist/lastsavedd" ).substring(6,8) + " " +
- model.getValue("/root/main/resusinfo/resuslist/lastsavedd" ).substring(8,10) + ":" +
- model.getValue("/root/main/resusinfo/resuslist/lastsavedd" ).substring(10,12) + ":" +
- model.getValue("/root/main/resusinfo/resuslist/lastsavedd" ).substring(12,14) ;
-
- model.setValue("/root/saveinfo/lastinfo", "【 최종저장완료 : " + lastsavedd + " " + lastsavenm + " ( " + lastsaveid + " ) 】" );
- output4.visible = true;
- btn_del.disabled = true;
- btn_lastsave.disabled = true;
- btn_nursesave.disabled = true;
- btn_sms.disabled = false;
- group2.disabled = true;
- group6.disabled = true;
- } else {
- btn_lastsave.disabled = false;
- btn_nursesave.disabled = false;
- btn_del.disabled = false;
- output4.visible = false;
- btn_sms.disabled = true;
- }
- // 발견자 기타
- if( model.getValue("/root/main/resusinfo/resuslist/cardarrdiscvpsn") == "09" ){
- int_cardarrdiscvpsnetc.disabled = false;
- }else{ int_cardarrdiscvpsnetc.disabled = true; }
-
-
- if(model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "01"){ // 병 동
- cmb_cardarrgenrplceward.disabled = false; // 병동
- rdo_cardarrgenrplcewardflag.disabled = false; // 병실,병실외
-
- cmb_cardarrgenrplcehosin.disabled = true;
- cmb_cardarrgenrplcehoscenter.disabled = true;
- cmb_cardarrgenrplcetestroom.disabled = true;
- int_cardarrgenrplcehosout.disabled = true;
- int_cardarrgenrplceetcbigo.disabled = true;
-
-
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosin", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehoscenter", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcetestroom", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosout", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceetcbigo", "");
- }else if(model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "02"){ // 외 래
- cmb_cardarrgenrplcehosin.disabled = false;
- cmb_cardarrgenrplceward.disabled = true;
- rdo_cardarrgenrplcewardflag.disabled = true;
- cmb_cardarrgenrplcehoscenter.disabled = true;
- cmb_cardarrgenrplcetestroom.disabled = true;
- int_cardarrgenrplcehosout.disabled = true;
- int_cardarrgenrplceetcbigo.disabled = true;
-
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceward", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcewardflag", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehoscenter", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcetestroom", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosout", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceetcbigo", "");
- }else if(model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "03"){ // 진단/검사실
- cmb_cardarrgenrplcetestroom.disabled = false;
-
- cmb_cardarrgenrplcehosin.disabled = true;
- cmb_cardarrgenrplceward.disabled = true;
- rdo_cardarrgenrplcewardflag.disabled = true;
- cmb_cardarrgenrplcehoscenter.disabled = true;
- int_cardarrgenrplcehosout.disabled = true;
- int_cardarrgenrplceetcbigo.disabled = true;
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceward", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcewardflag", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehoscenter", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosin", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosout", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceetcbigo", "");
- }else if(model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "04"){ // 원외
- int_cardarrgenrplcehosout.disabled = false;
- cmb_cardarrgenrplcehosin.disabled = true;
- cmb_cardarrgenrplceward.disabled = true;
- rdo_cardarrgenrplcewardflag.disabled = true;
- cmb_cardarrgenrplcehoscenter.disabled = true;
- cmb_cardarrgenrplcetestroom.disabled = true;
- int_cardarrgenrplceetcbigo.disabled = true;
-
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceward", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcewardflag", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehoscenter", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosin", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcetestroom", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceetcbigo", "");
- }else if(model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "05"){ //응급의료센터
- int_cardarrgenrplcehosout.disabled = true;
- cmb_cardarrgenrplcehosin.disabled = true;
- cmb_cardarrgenrplceward.disabled = true;
- rdo_cardarrgenrplcewardflag.disabled = true;
- cmb_cardarrgenrplcehoscenter.disabled = true;
- cmb_cardarrgenrplcetestroom.disabled = true;
- int_cardarrgenrplceetcbigo.disabled = true;
-
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceward", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcewardflag", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehoscenter", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosin", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosout", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcetestroom", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceetcbigo", "");
- }else if(model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "06"){ // 수술/회복실
- int_cardarrgenrplcehosout.disabled = true;
- cmb_cardarrgenrplcehosin.disabled = true;
- cmb_cardarrgenrplceward.disabled = true;
- rdo_cardarrgenrplcewardflag.disabled = true;
- cmb_cardarrgenrplcehoscenter.disabled = true;
- cmb_cardarrgenrplcetestroom.disabled = true;
- int_cardarrgenrplceetcbigo.disabled = true;
-
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceward", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcewardflag", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehoscenter", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosin", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosout", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcetestroom", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceetcbigo", "");
- }else if(model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "07"){ // 중환자실
- cmb_cardarrgenrplcehoscenter.disabled = false;
-
- int_cardarrgenrplcehosout.disabled = true;
- cmb_cardarrgenrplcehosin.disabled = true;
- cmb_cardarrgenrplceward.disabled = true;
- rdo_cardarrgenrplcewardflag.disabled = true;
- cmb_cardarrgenrplcetestroom.disabled = true;
- int_cardarrgenrplceetcbigo.disabled = true;
-
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceward", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcewardflag", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosin", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosout", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcetestroom", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceetcbigo", "");
- }else if(model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "08"){ // 기 타
- int_cardarrgenrplceetcbigo.disabled = false;
-
- int_cardarrgenrplcehosout.disabled = true;
- cmb_cardarrgenrplcehosin.disabled = true;
- cmb_cardarrgenrplceward.disabled = true;
- rdo_cardarrgenrplcewardflag.disabled = true;
- cmb_cardarrgenrplcehoscenter.disabled = true;
- cmb_cardarrgenrplcetestroom.disabled = true;
-
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceward", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcewardflag", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehoscenter", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosin", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosout", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcetestroom", "");
- }else{
- int_cardarrgenrplcehosout.disabled = true;
- cmb_cardarrgenrplcehosin.disabled = true;
- cmb_cardarrgenrplceward.disabled = true;
- rdo_cardarrgenrplcewardflag.disabled = true;
- cmb_cardarrgenrplcehoscenter.disabled = true;
- cmb_cardarrgenrplcetestroom.disabled = true;
- int_cardarrgenrplceetcbigo.disabled = true;
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceward", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcewardflag", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehoscenter", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosin", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcehosout", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplcetestroom", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrplceetcbigo", "");
-
- }
-
- if(model.getValue("/root/main/resusinfo/resuslist/cardarrrslt") == "01"){
- int_dethdd.disabled= false;
- int_dethtm.disabled= false;
- btn_dschdethtm.disabled= false;
- } else {
- int_dethdd.disabled= true;
- int_dethtm.disabled= true;
- btn_dschdethtm.disabled= true;
- model.setValue("/root/main/resusinfo/resuslist/dschdethdd", "");
- model.setValue("/root/main/resusinfo/resuslist/dschdethtm", "");
- }
-
- if(model.getValue("/root/main/resusinfo/resuslist/gender" ) != "")
- model.setValue("/root/main/patinfo/gender" , model.getValue("/root/main/resusinfo/resuslist/gender" ));
-
- if(model.getValue("/root/main/resusinfo/resuslist/age" ) != "")
- model.setValue("/root/main/patinfo/age" , model.getValue("/root/main/resusinfo/resuslist/age" ));
-
- if(model.getValue("/root/main/resusinfo/resuslist/wardcd" ) != "")
- model.setValue("/root/main/patinfo/wardcd" , model.getValue("/root/main/resusinfo/resuslist/wardcd" ));
- if(model.getValue("/root/main/resusinfo/resuslist/orddeptcd" ) != ""){
- model.setValue("/root/main/patinfo/orddeptcd" , model.getValue("/root/main/resusinfo/resuslist/orddeptcd" ));
- cmb_dept.dispatch("xforms-value-changed");
- }
-
- if(model.getValue("/root/main/resusinfo/resuslist/atdoctcd" ) != "")
- model.setValue("/root/main/patinfo/atdoctcd" , model.getValue("/root/main/resusinfo/resuslist/atdoctcd" ));
-
- if(model.getValue("/root/main/resusinfo/resuslist/medispclid" ) != "")
- model.setValue("/root/main/patinfo/medispclid" , model.getValue("/root/main/resusinfo/resuslist/medispclid" ));
-
- if(model.getValue("/root/main/resusinfo/resuslist/roomcd" ) != "")
- model.setValue("/root/main/patinfo/roomcd" , model.getValue("/root/main/resusinfo/resuslist/roomcd" ));
- if(model.getValue("/root/main/resusinfo/resuslist/diagnm" ) != "")
- model.setValue("/root/main/patinfo/diagnm" , model.getValue("/root/main/resusinfo/resuslist/diagnm" ));
-
- if(model.getValue("/root/main/resusinfo/resuslist/diagcd" ) != "")
- model.setValue("/root/main/patinfo/diagcd" , model.getValue("/root/main/resusinfo/resuslist/diagcd" ));
-
- // 소생팀 도착 전 처치 - 담당의
- if( chk_resusteamarvbfresusflag.item(0).selected == true ){
- chk_resusteamarvbfresus.disabled = false;
- if( chk_resusteamarvbfresus.item(6).selected == true){
- int_resusteamarvbfresusetc.disabled = false;
- }else{
- int_resusteamarvbfresusetc.disabled = true;
- }
- }
-
- if( chk_resusteamarvbfresusflag.item(1).selected == true ){ // 간호사
- chk_resusteamarvbfresusnurse.disabled = false;
- if( chk_resusteamarvbfresusnurse.item(6).selected == true ){
- int_resusteamarvbfresusnurseetc.disabled = false;
- }else{
- int_resusteamarvbfresusnurseetc.disabled = true;
- }
- }
-
- if( chk_resusteamarvbfresusflag.item(2).selected == true ){ // 기타
- int_resusteamarvbfresustext.disabled = false;
- }
-
- if( model.getValue("/root/main/resusinfo/resuslist/resusteamarvbfresusflag") == "" ){
- chk_resusteamarvbfresus.disabled = true;
- int_resusteamarvbfresusetc.disabled = true;
- chk_resusteamarvbfresusnurse.disabled = true;
- int_resusteamarvbfresusnurseetc.disabled = true;
- int_resusteamarvbfresustext.disabled = false;
- }
-
- // 소생팀 도착 후 처치
- if( chk_resusteamarvafresus.item(6).selected == true ){
- int_resusteamarvafresusetc.disabled = false;
- }else{ int_resusteamarvafresusetc.disabled = true; }
-
- // 소생술 종료사유
- if( model.getValue("/root/main/resusinfo/resuslist/resusendresn" ) == "09" ){
- int_resusendresnetc.disabled = false;
- }else{ int_resusendresnetc.disabled = true; }
- // 대상자 구분
- if( model.getValue("/root/main/resusinfo/resuslist/patinfoflag") != "" ){
- model.setValue("/root/main/patinfo/patinfoflag", model.getValue("/root/main/resusinfo/resuslist/patinfoflag") );
- }
-
- // 심정지여부
- if( model.getValue("/root/main/resusinfo/resuslist/cardarryn") == "Y"){
- int_cardarrfinddd.disabled = false;
- int_cardarrfindtm.disabled = false;
- btn_cardarrfindclock.disabled = false;
-
- int_cardarrestmdd.disabled = false;
- int_cardarrestmtm.disabled = false;
- btn_cardarrestmclock.disabled = false;
- }else{
- int_cardarrfinddd.disabled = true;
- int_cardarrfindtm.disabled = true;
- btn_cardarrfindclock.disabled = true;
-
- int_cardarrestmdd.disabled = true;
- int_cardarrestmtm.disabled = true;
- btn_cardarrestmclock.disabled = true;
- }
-
- if( model.getValue("/root/main/resusinfo/resuslist/cardarrestmflag") == "Y" ){
- model.setValue("/root/main/resusinfo/resuslist/cardarrestmdd", "");
- model.setValue("/root/main/resusinfo/resuslist/cardarrestmtm", "");
- int_cardarrestmdd.disabled = true;
- int_cardarrestmtm.disabled = true;
- btn_cardarrestmclock.disabled = true;
- }else{
- int_cardarrestmdd.disabled = false;
- int_cardarrestmtm.disabled = false;
- btn_cardarrestmclock.disabled = false;
- }
-
- // 파랑새 발령 호출여부
- if( model.getValue("/root/main/resusinfo/resuslist/bluebirdalarmyn") == "Y"){
- int_bluebirdalarmdd.disabled = false;
- int_bluebirdalarmtm.disabled = false;
- btn_bluebirdalarmclock.disabled = false;
- }else{
- int_bluebirdalarmdd.disabled = true;
- int_bluebirdalarmtm.disabled = true;
- btn_bluebirdalarmclock.disabled = true;
- }
-
- // 병원도착전처치여부
- if( model.getValue("/root/main/resusinfo/resuslist/hosparvbfresusynflag") == "Y"){
- chk_hosparvbfresus.disabled = false;
- int_hosparvbfresusetc.disabled = false;
- }else{ // '해당없음', '무'일 경우에
- chk_hosparvbfresus.disabled = true;
- int_hosparvbfresusetc.disabled = true;
- }
-
- // 병원 도착전 처치
- if( chk_hosparvbfresus.item(6).selected == true ){
- int_hosparvbfresusetc.disabled = false;
- }else{ int_hosparvbfresusetc.disabled = true; }
-
- // 제세동 시작시간
- if( model.getValue("/root/main/resusinfo/resuslist/defibrflag") =="Y"){
- model.setValue("/root/main/resusinfo/resuslist/defibrstartdd", "" );
- model.setValue("/root/main/resusinfo/resuslist/defibrstarttm", "" );
- model.setValue("/root/main/resusinfo/resuslist/defibrjul", "" );
- model.setValue("/root/main/resusinfo/resuslist/defibrtims", "" );
- model.setValue("/root/main/resusinfo/resuslist/defibrjul2", "" );
- model.setValue("/root/main/resusinfo/resuslist/defibrtims2", "" );
- int_defibrstartdd.disabled = true;
- int_defibrstarttm.disabled = true;
- ipt_defibrjul.disabled = true;
- ipt_defibrtims.disabled = true;
- ipt_defibrjul2.disabled = true;
- ipt_defibrtims2.disabled = true;
- button5.disabled = true;
- }else{
- int_defibrstartdd.disabled = false;
- int_defibrstarttm.disabled = false;
- ipt_defibrjul.disabled = false;
- ipt_defibrtims.disabled = false;
- ipt_defibrjul2.disabled = false;
- ipt_defibrtims2.disabled = false;
- button5.disabled = false;
- }
- }
- model.refresh();
- }
-
- /**
- * @group :
- * @ver : 2007.07.07
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 입력창 초기화 부분
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInputBoxInit(pFlag){
- }
-
- /**
- * @group :
- * @ver : 2007.07.07
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 날짜 세팅 부분
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDateSetting(pFlag){
- if(pFlag == "Init"){
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrdd", getCurrentDate());
- model.setValue("/root/main/resusinfo/resuslist/cardarrgenrtm", fCurrentDate());
- }
- }
-
- /**
- * @group :
- * @ver : 2007.12.04
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 환자 정보 조회(환자번호)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
-
- function fSrchPatListInput(pFlag){
- if( model.getValue("/root/srchmax/popflag") != "Y" ){
- setInputNodeCurText(); // 현재 인풋값 노드 반영
- }
-
- fSrchHistList(pFlag);
-
- if( getNodesetCount("/root/main/pathistinfo/patinfo") >= 1 ){
- var rrgstno = model.getValue("/root/main/pathistinfo/patinfo/rrgstno1") + " - " + model.getValue("/root/main/pathistinfo/patinfo/rrgstno2");
-
- model.setValue("/root/main/patinfo/indd", model.getValue("/root/main/pathistinfo/patinfo/indd" ) );
- model.setValue("/root/main/patinfo/cretno", model.getValue("/root/main/pathistinfo/patinfo/cretno" ) );
- model.setValue("/root/main/patinfo/instcd", model.getValue("/root/main/pathistinfo/patinfo/instcd" ) );
- model.setValue("/root/main/patinfo/patnm", model.getValue("/root/main/pathistinfo/patinfo/patnm" ) );
- model.setValue("/root/main/patinfo/gender", model.getValue("/root/main/pathistinfo/patinfo/gender" ) );
- model.setValue("/root/main/patinfo/age", model.getValue("/root/main/pathistinfo/patinfo/age" ) );
- model.setValue("/root/main/patinfo/cntctel", model.getValue("/root/main/pathistinfo/patinfo/cntctel" ) );
- model.setValue("/root/main/patinfo/addr", model.getValue("/root/main/pathistinfo/patinfo/addr" ) );
-
- model.makeValue("/root/main/patinfo/wardcd", model.getValue("/root/main/pathistinfo/patinfo/wardcd" ) );
- model.makeValue("/root/main/patinfo/wardnm", model.getValue("/root/main/pathistinfo/patinfo/wardcdnm" ) );
- cmb_wardcd.dispatch("xforms-value-changed");
- cmb_roomcd.refresh();
-
- model.makeValue("/root/main/patinfo/roomcd", model.getValue("/root/main/pathistinfo/patinfo/roomcd" ) );
- model.makeValue("/root/main/patinfo/orddeptcd", model.getValue("/root/main/pathistinfo/patinfo/deptcd" ) );
- cmb_dept.dispatch("xforms-value-changed");
- cmb_dept.refresh();
-
- model.makeValue("/root/main/patinfo/medispclid", model.getValue("/root/main/pathistinfo/patinfo/medispclid" ) );
- model.makeValue("/root/main/patinfo/atdoctcd", model.getValue("/root/main/pathistinfo/patinfo/atdoctcd" ) );
- model.makeValue("/root/main/patinfo/orddrid", model.getValue("/root/main/pathistinfo/patinfo/orddrid" ) );
- model.makeValue("/root/main/patinfo/deptcd", model.getValue("/root/main/pathistinfo/patinfo/deptcd" ) );
-
- model.makeValue("/root/main/patinfo/grdrage", model.getValue("/root/main/pathistinfo/patinfo/grdrage" ) );
- model.makeValue("/root/main/patinfo/issdeptcd", model.getValue("/root/main/pathistinfo/patinfo/issdeptcd" ) );
-
- var sIndd = model.getValue("/root/main/pathistinfo/patinfo/indd1" ).substr(0,4) + "-"
- + model.getValue("/root/main/pathistinfo/patinfo/indd1" ).substr(4,2) + "-"
- + model.getValue("/root/main/pathistinfo/patinfo/indd1" ).substr(6,2) ;
- var ininfo = "입원정보 : "
- + sIndd + " "
- + model.getValue("/root/main/pathistinfo/patinfo/orddeptcd" ) + " "
- + model.getValue("/root/main/pathistinfo/patinfo/medispclid" ) ;
-
- model.setValue("/root/main/patinfo/ininfo", ininfo );
-
- //model.setValue("/root/main/patinfo/indd1", model.getValue("/root/main/pathistinfo/patinfo/indd1") );
- //model.setValue("/root/main/patinfo/orddeptcd", model.getValue("/root/main/pathistinfo/patinfo/orddeptcd") );
- //model.setValue("/root/main/patinfo/medispclid", model.getValue("/root/main/pathistinfo/patinfo/medispclid") );
-
- if(model.getValue("/root/main/patinfo/nursdocflag") == "N"){
- fDateSetting("Init");
- }else{
- model.setValue("/root/main/patinfo/cardarrgenrdd", getCurrentDate());
- int_cardarrgenrdd.disabled = false;
- }
-
- fClearChildNode("/root/main/resusinfo/resuslist");
- fInputBoxInit(pFlag);
- model.setValue(xPathCardArrPatInfo+"/rrgstno" , rrgstno);
-
- if( model.getValue("/root/main/patinfo/cardarrgenrdd") == "" ){
- model.setValue("/root/main/patinfo/cardarrgenrdd", model.getValue("/root/main/pathistinfo/pathistlist/cardarrgenrdd" ));
- model.setValue("/root/main/patinfo/cardarrgenrtm", model.getValue("/root/main/pathistinfo/pathistlist/cardarrgenrtm" ));
- model.setValue("/root/main/patinfo/cardarrgenrdt", model.getValue("/root/main/pathistinfo/pathistlist/cardarrgenrdt" ));
- }
-
- // 외래 O, 응급 E ,입원 I
- if( model.getValue("/root/srchmax/popflag") != "Y" ){
- if( model.getValue("/root/main/pathistinfo/patinfo/ordtype" ) == "I" ){
- model.setValue("/root/main/patinfo/patinfoflag", "1");
- }else if( model.getValue("/root/main/pathistinfo/patinfo/ordtype" ) == "O" ){
- model.setValue("/root/main/patinfo/patinfoflag", "2");
- model.setValue("/root/main/patinfo/wardnm", "");
- }else if( model.getValue("/root/main/pathistinfo/patinfo/ordtype" ) == "E" ){
- model.setValue("/root/main/patinfo/patinfoflag", "3");
- model.setValue("/root/main/patinfo/wardnm", "");
- }else if( model.getValue("/root/main/pathistinfo/patinfo/ordtype" ) == "4" ){
- model.setValue("/root/main/patinfo/patinfoflag", "4");
- }else if( model.getValue("/root/main/pathistinfo/patinfo/ordtype" ) == "5" ){
- model.setValue("/root/main/patinfo/patinfoflag", "5");
- }else if( model.getValue("/root/main/pathistinfo/patinfo/ordtype" ) == "6" ){
- model.setValue("/root/main/patinfo/patinfoflag", "6");
- }else{
- model.setValue("/root/main/patinfo/patinfoflag", "");
- model.setValue("/root/main/patinfo/wardnm", "");
- }
- }
-
- model.refresh();
- }else{
- messageBox("조회 결과가 없습니다.","I");
- fInitPatList();
- fInputBoxInit(pFlag)
- return;
- }
- }
- /**
- * @group :
- * @ver : 2007.12.04
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 심폐소생술 보고서 환자정보 초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInitPatList(){
- model.setValue("/root/main/patinfo/pid" , "");
- model.setValue("/root/main/patinfo/rrgstno" , "");
- model.setValue("/root/main/patinfo/indd" , "");
- model.setValue("/root/main/patinfo/cretno" , "");
- model.setValue("/root/main/patinfo/instcd" , "");
- model.setValue("/root/main/patinfo/patnm" , "");
- model.setValue("/root/main/patinfo/grdrage" , "");
- model.setValue("/root/main/patinfo/cntctel" , "");
- model.setValue("/root/main/patinfo/addr" , "");
- model.setValue("/root/main/patinfo/ininfo" , "");
- model.refresh();
- }
- /**
- * @group :
- * @ver : 2014.10.15
- * @by : 최예원
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 작성자와 수정자가 같은지 비교
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSaveChk(){
- var userid = getUserInfo("userid");
- var lastupdtrid = model.getValue("/root/main/pathistinfo/pathistlist[" + grd_pastlst.row +"]/lastupdtrid");
-
- if( userid != lastupdtrid ){
- messageBox("해당 데이터의 기록자만 수정/삭제 가능합니다.","E");
- return false;
- }else{
- return true;
- }
- }
- /**
- * @group :
- * @ver : 2014.10.15
- * @by : 최예원
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 임시저장
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fPartCardArrResusSave(pFlag){
- var pStatus = "";
- var sRow = grd_pastlst.row;
-
- if( fSaveBfChk() == false ){
- return;
- }
-
- if( grd_pastlst.rows > 1 ){
- if( model.getValue("/root/main/patinfo/selectrow") != "" || sRow >= 1 ){
- pStatus = "U";
- }else{
- pStatus = "I";
- }
- }else{
- pStatus = "I";
- }
-
- model.removeNode("/root/send");
- model.makeNode("/root/item/list");
- model.copyNode("/root/item/list", "/root/main/resusinfo");
-
- var sDocHeader = "hosinhosoutflag▦pid▦patnm▦indd▦cretno▦histno▦gender▦age▦wardcd▦roomcd▦diagnm▦diagcd▦atdoctcd▦medispclid▦orddeptcd▦cardarrgenrdt▦instcd";
- var cardarrgenrdt = "";
- //cardarrgenrdt = model.getValue("/root/main/patinfo/cardarrgenrdd") + model.getValue("/root/main/patinfo/cardarrgenrtm");
- cardarrgenrdt = model.getValue("/root/main/patinfo/cardarrgenrdt");
- /*if( model.getValue("/root/main/patinfo/cardarrgenrdt") != "" && pStatus != "I"){
- cardarrgenrdt = model.getValue("/root/main/patinfo/cardarrgenrdt");
- }else{
- cardarrgenrdt = model.getValue("/root/main/patinfo/cardarrgenrdd") + model.getValue("/root/main/patinfo/cardarrgenrtm");
- }*/
- var patinfoflag = model.getValue("/root/main/patinfo/patinfoflag");
- if( pStatus == "I" && ( patinfoflag == "4" || patinfoflag == "5" || patinfoflag == "6" ) && model.getValue(xPathCardArrPatInfo+"/pid" ) == "" ){
- fMakePid(patinfoflag);
- }
- //20160920칠곡 심정지 발생일시 수정
- if( getUserInfo("dutplceinstcd") == "032" && pStatus == "I" ){
- cardarrgenrdt = model.getValue("/root/main/resusinfo/resuslist/cardarrgenrdtchg");
- }
-
- // 키값 설정부분
- var sCondData = "1" +"▦"
- + model.getValue(xPathCardArrPatInfo+"/pid" ) +"▦"
- + model.getValue(xPathCardArrPatInfo+"/patnm") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/indd" ) +"▦"
- + model.getValue(xPathCardArrPatInfo+"/cretno") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/histno") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/gender") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/age") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/wardcd") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/roomcd") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/diagnm") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/diagcd") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/atdoctcd") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/medispclid") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/orddeptcd") +"▦"
- + cardarrgenrdt +"▦"
- + model.getValue(xPathCardArrPatInfo+"/instcd");
-
- model.makeValue("/root/send/cond", sDocHeader+"▩"+sCondData+"▩" );
-
- if( pFlag == "1" ){ // 간호입력
- sDocHeader += "▦"
- + "status▦"
- + "pflag▦"
- + "cardarrgoalyn▦"
- + "cardarrdiscvpsn▦"
- + "cardarrdiscvpsnetc▦"
- + "cardarrgenrplceflag▦"
- + "cardarrgenrplcedept▦"
- + "cardarrgenrplceetc▦"
- + "resusteamarvbfresus▦"
- + "resusteamarvbfresusetc▦"
- + "resusteamfresus▦"
- + "resusteamfresusetc▦"
- + "ambulancearvbfresus▦"
- + "ambulancearvbfresusetc▦"
- + "ambulanceresus▦"
- + "ambulanceresusetc▦"
- + "ercentresus▦"
- + "ercentresusetc▦"
- + "cardarrestmdd▦"
- + "cardarrestmtm▦"
- + "cardarrestmflag▦"
- + "cardarrfinddd▦"
- + "cardarrfindtm▦"
- + "resusteamcalldd▦"
- + "resusteamcalltm▦"
- + "resusteamarvdd▦"
- + "resusteamarvtm▦"
- + "initrhythmcnfmdd▦"
- + "initrhythmcnfmtm▦"
- + "resusfromdd▦"
- + "resusfromtm▦"
- + "resustodd▦"
- + "resustotm▦"
- + "resusteamarvbfresusflag▦"
- + "resusteamarvbfresustext▦"
- + "resusteamarvbfresusnurse▦"
- + "resusteamarvbfresusnurseetc▦"
- + "cardarrgenrtm▦"
- + "cardarrgenrdtchg▦"
- + "cardarryn▦"
- + "bluebirdalarmyn▦"
- + "bluebirdalarmdd▦"
- + "bluebirdalarmtm▦"
- + "cardarrgenrplceward▦"
- + "cardarrgenrplcewardflag▦"
- + "cardarrgenrplcehosin▦"
- + "cardarrgenrplcehoscenter▦"
- + "cardarrgenrplcetestroom▦"
- + "cardarrgenrplcehosout▦"
- + "cardarrgenrplceetcbigo▦"
- + "hosparvbfresus▦"
- + "hosparvbfresusetc▦"
- + "hosparvbfresusynflag▦"
- + "atdoctcalldd▦"
- + "atdoctcalltm▦"
- + "atdoctarrdd▦"
- + "atdoctarrtm▦"
- + "fstresusexecflag▦"
- + "fstresusexecetc▦"
- + "initpatcscs▦"
- + "initpatbreth▦"
- + "initpatpulse▦"
- + "defibrstartdd▦"
- + "defibrstarttm▦"
- + "defibrjul▦"
- + "defibrtims▦"
- + "defibrjul2▦"
- + "defibrtims2▦"
- + "resusteamarvafresus▦"
- + "patinfoflag▦"
- + "patinfoflagetc▦"
- + "gender▦"
- + "age▦"
- + "wardcd▦"
- + "roomcd▦"
- + "diagnm▦"
- + "diagcd▦"
- + "atdoctcd▦"
- + "medispclid▦"
- + "orddeptcd▦"
- + "resusteamarvafresusetc▦"
- + "cardarrcas▦"
- + "initrhythm▦"
- + "resusendresn▦"
- + "resusendresnetc▦"
- + "cardarrrslt▦"
- + "cardarrrsltetc▦"
- + "dschdethdd▦"
- + "dschdethtm▦"
- + "dschneurologystat▦"
- + "resusteamorddept▦"
- + "resusteamorddr▦"
- + "resusteamnum▦"
- + "patstatus▦"
- + "patstatusetc▦"
- + "defibrflag▦"
- + "curerslt▩";
-
- var resusteamarvbfresus = "";
- var resusteamarvbfresusetc = "";
- var resusteamarvbfresusnurse = "";
- var resusteamarvbfresusnurseetc = "";
-
- resusteamarvbfresus = model.getValue(xPathCardArrResusList+"/resusteamarvbfresus"); //model.getValue("hidden/list/resusteamarvbfresus");
- resusteamarvbfresusetc = model.getValue(xPathCardArrResusList+"/resusteamarvbfresusetc");
- resusteamarvbfresusnurse = model.getValue(xPathCardArrResusList+"/resusteamarvbfresusnurse");
- resusteamarvbfresusnurseetc = model.getValue(xPathCardArrResusList+"/resusteamarvbfresusnurseetc");
-
- if( model.getValue("/root/main/resusinfo/resuslist/hosparvbfresusynflag") != "Y" ){
- model.setValue(xPathCardArrResusList+"/hosparvbfresus", "" );
- model.setValue(xPathCardArrResusList+"/hosparvbfresusetc", "" );
- }
- sCondData += "▦"
- + pStatus + "▦"
- + pFlag + "▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgoalyn") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrdiscvpsn") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrdiscvpsnetc") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplceflag") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplcedept") +"▦"
- + "▦"
- + resusteamarvbfresus +"▦"
- + resusteamarvbfresusetc +"▦"
- + model.getValue("hidden/list/resusteamfresus") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamfresusetc") +"▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + model.getValue(xPathCardArrResusList+"/cardarrestmdd") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrestmtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrestmflag") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrfinddd") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrfindtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamcalldd") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamcalltm") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamarvdd") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamarvtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/initrhythmcnfmdd") +"▦"
- + model.getValue(xPathCardArrResusList+"/initrhythmcnfmtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusfromdd") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusfromtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/resustodd") +"▦"
- + model.getValue(xPathCardArrResusList+"/resustotm") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamarvbfresusflag") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamarvbfresustext") +"▦"
- + resusteamarvbfresusnurse +"▦"
- + resusteamarvbfresusnurseetc +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrdtchg") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarryn") +"▦"
- + model.getValue(xPathCardArrResusList+"/bluebirdalarmyn") +"▦"
- + model.getValue(xPathCardArrResusList+"/bluebirdalarmdd") +"▦"
- + model.getValue(xPathCardArrResusList+"/bluebirdalarmtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplceward") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplcewardflag") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplcehosin") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplcehoscenter") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplcetestroom") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplcehosout") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplceetcbigo") +"▦"
- + model.getValue(xPathCardArrResusList+"/hosparvbfresus") +"▦"
- + model.getValue(xPathCardArrResusList+"/hosparvbfresusetc") +"▦"
- + model.getValue(xPathCardArrResusList+"/hosparvbfresusynflag") +"▦"
- + model.getValue(xPathCardArrResusList+"/atdoctcalldd") +"▦"
- + model.getValue(xPathCardArrResusList+"/atdoctcalltm") +"▦"
- + model.getValue(xPathCardArrResusList+"/atdoctarrdd") +"▦"
- + model.getValue(xPathCardArrResusList+"/atdoctarrtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/fstresusexecflag") +"▦"
- + model.getValue(xPathCardArrResusList+"/fstresusexecetc") +"▦"
- + model.getValue(xPathCardArrResusList+"/initpatcscs") +"▦"
- + model.getValue(xPathCardArrResusList+"/initpatbreth") +"▦"
- + model.getValue(xPathCardArrResusList+"/initpatpulse") +"▦"
- + model.getValue(xPathCardArrResusList+"/defibrstartdd") +"▦"
- + model.getValue(xPathCardArrResusList+"/defibrstarttm") +"▦"
- + model.getValue(xPathCardArrResusList+"/defibrjul") +"▦"
- + model.getValue(xPathCardArrResusList+"/defibrtims") +"▦"
- + model.getValue(xPathCardArrResusList+"/defibrjul2") +"▦"
- + model.getValue(xPathCardArrResusList+"/defibrtims2") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamarvafresus") +"▦"
- + model.getValue("/root/main/patinfo/patinfoflag") +"▦"
- + model.getValue(xPathCardArrResusList+"/patinfoflagetc") +"▦"
- + model.getValue("/root/main/patinfo/gender") +"▦"
- + model.getValue("/root/main/patinfo/age") +"▦"
- + model.getValue("/root/main/patinfo/wardcd") +"▦"
- + model.getValue("/root/main/patinfo/roomcd") +"▦"
- + model.getValue("/root/main/patinfo/diagnm") +"▦"
- + model.getValue("/root/main/patinfo/diagcd") +"▦"
- + model.getValue("/root/main/patinfo/atdoctcd") +"▦"
- + model.getValue("/root/main/patinfo/medispclid") +"▦"
- + model.getValue("/root/main/patinfo/orddeptcd") +"▦"
- + model.getValue(xPathCardArrResusList + "/resusteamarvafresusetc") +"▦"
- + model.getValue(xPathCardArrResusList + "/cardarrcas") +"▦"
- + model.getValue(xPathCardArrResusList + "/initrhythm") +"▦"
- + model.getValue(xPathCardArrResusList + "/resusendresn") +"▦"
- + model.getValue(xPathCardArrResusList + "/resusendresnetc") +"▦"
- + model.getValue(xPathCardArrResusList + "/cardarrrslt") +"▦"
- + model.getValue(xPathCardArrResusList + "/cardarrrsltetc") +"▦"
- + model.getValue(xPathCardArrResusList + "/dschdethdd") +"▦"
- + model.getValue(xPathCardArrResusList + "/dschdethtm") +"▦"
- + model.getValue(xPathCardArrResusList + "/dschneurologystat") +"▦"
- + model.getValue(xPathCardArrResusList + "/resusteamorddept") +"▦"
- + model.getValue(xPathCardArrResusList + "/resusteamorddr") +"▦"
- + model.getValue(xPathCardArrResusList + "/resusteamnum") +"▦"
- + model.getValue(xPathCardArrResusList + "/patstatus") +"▦"
- + model.getValue(xPathCardArrResusList + "/patstatusetc") +"▦"
- + model.getValue(xPathCardArrResusList + "/defibrflag") +"▦"
- + model.getValue(xPathCardArrResusList + "/curerslt") +"▩";
- }
-
- model.makeValue("/root/send/recdata", sDocHeader+sCondData );
-
- // Hist 데이터 입력
- var DetailHeader = "pid▦indd▦cretno▦histno▦cardarrgenrdt▦instcd▩";
- var Detail_Cardarrgenrdt = model.getValue("/root/main/patinfo/cardarrgenrdd") + model.getValue("/root/main/patinfo/cardarrgenrtm");
- // 키값 설정부분
- var DetailData = model.getValue(xPathCardArrPatInfo+"/pid" ) +"▦"
- + model.getValue(xPathCardArrPatInfo+"/indd" ) +"▦"
- + model.getValue(xPathCardArrPatInfo+"/cretno") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/histno") +"▦"
- + Detail_Cardarrgenrdt +"▦"
- + model.getValue(xPathCardArrPatInfo+"/instcd") +"▩";
- model.makeValue("/root/send/recdetail", DetailHeader + DetailData );
- if( submit("TXMNE02302") == true ){
- model.copynode("/root/main/resusinfo", "/root/resusbase" );
- model.setValue("/root/saveinfo/nurseinfo" , "" );
- model.setValue("/root/saveinfo/lastinfo" , "" );
- fSrchHistList("1");
- fActionStatus("1", pStatus, sRow );
- }
-
- model.removeNodeset("/root/item");
- model.refresh();
- }
- /**
- * @group :
- * @ver : 2014.10.15
- * @by : 최예원
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 필수입력체크
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSaveBfChk(){
- if( model.getValue( xPathCardArrPatInfo +"/patinfoflag") == ""){
- messageBox("대상자 구분 정보는 필수입력입니다.","E");
- return false;
- }
-
- if( model.getValue( xPathCardArrPatInfo + "/pid" ) == "" && model.getValue( xPathCardArrPatInfo + "/patnm" ) == "" ){
- messageBox("환자정보는 필수입력입니다.","E");
- return false;
- }
-
- if ( (model.getValue("/root/main/resusinfo/resuslist/cardarrgenrdd") != "" && model.getValue("/root/main/resusinfo/resuslist/cardarrgenrtm") == "")
- && (model.getValue("/root/main/resusinfo/resuslist/cardarrgenrdd") == "" && model.getValue("/root/main/resusinfo/resuslist/cardarrgenrtm") != "") ){
- messageBox("발생일시의 날짜/시간을 모두 입력하십시요.","E");
- return false;
- }
-
- if( model.getValue("/root/main/resusinfo/resuslist/cardarryn") == "" ){
- messageBox("심정지 여부는 필수입력입니다.","E");
- return false;
- }else if (model.getValue("/root/main/resusinfo/resuslist/cardarryn") == "Y" && (model.getValue("/root/main/resusinfo/resuslist/cardarrfinddd") == "" || model.getValue("/root/main/resusinfo/resuslist/cardarrfindtm") == "") ){
- messageBox("심정지 여부가 Y일 경우 심정지 발견시간은 필수입력입니다.","E");
- return false;
- }
-
- if ( (model.getValue("/root/main/resusinfo/resuslist/cardarrestmdd") != "" && model.getValue("/root/main/resusinfo/resuslist/cardarrestmtm") == "")
- && (model.getValue("/root/main/resusinfo/resuslist/cardarrestmdd") == "" && model.getValue("/root/main/resusinfo/resuslist/cardarrestmtm") != "")){
- messageBox("심정지 추정시간의 날짜/시간을 모두 입력하십시요.","E");
- return false;
- }
-
-
- if( model.getValue("/root/main/resusinfo/resuslist/bluebirdalarmyn") == "" ){
- messageBox("파랑새 발령 호출여부는 필수입력입니다.","E");
- return false;
- }else if (model.getValue("/root/main/resusinfo/resuslist/bluebirdalarmyn") == "Y" && (model.getValue("/root/main/resusinfo/resuslist/bluebirdalarmdd") == "" || model.getValue("/root/main/resusinfo/resuslist/bluebirdalarmtm") == "") ){
- messageBox("파랑새 발령 호출여부 Y일 경우 파랑새 발령 호출시간은 필수입력입니다.","E");
- return false;
- }
-
- if( model.getValue("/root/main/resusinfo/resuslist/resusteamarvdd") == "" || model.getValue("/root/main/resusinfo/resuslist/resusteamarvtm") == "" ){
- messageBox("CPR 도착시간은 필수입력입니다.","E");
- return false;
- }
-
- if(model.getValue("/root/main/resusinfo/resuslist/cardarrgoalyn") == ""){
- messageBox("목격여부는 필수입력입니다.","E");
- return false;
- }
-
- if( model.getValue("/root/main/resusinfo/resuslist/cardarrdiscvpsn") == ""){
- messageBox("발견자(목격자)는 필수입력입니다.","E");
- return false;
- }else if( model.getValue("/root/main/resusinfo/resuslist/cardarrdiscvpsn") == "09" && model.getValue("/root/main/resusinfo/resuslist/cardarrdiscvpsnetc") == "" ){
- messageBox("발견자(목격자)가 기타일 경우 기타입력란은 필수입력입니다.","E");
- return false;
- }
-
-
- if( model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == ""){
- messageBox("발생장소는 필수입력입니다.","E");
- return false;
- }
-
- if( model.getValue("/root/main/resusinfo/resuslist/resusteamarvbfresusflag") == ""){
- messageBox("CPR팀 도착 전 처치는 필수입력입니다.","E");
- return false;
- }
-
- if( model.getValue("/root/main/resusinfo/resuslist/fstresusexecflag") == ""){
- messageBox(" 최초 소생술 시행자는 필수입력입니다.","E");
- return false;
- } else if ( model.getValue("/root/main/resusinfo/resuslist/fstresusexecflag") == "09" && model.getValue("/root/main/resusinfo/resuslist/fstresusexecetc") == ""){
- messageBox(" 최초 소생술 시행자가 기타일 경우 기타입력란은 필수입력입니다.","E");
- return false;
- }
-
- if ( (model.getValue("/root/main/resusinfo/resuslist/atdoctcalldd") != "" && model.getValue("/root/main/resusinfo/resuslist/atdoctcalltm") == "")
- && (model.getValue("/root/main/resusinfo/resuslist/atdoctcalldd") == "" && model.getValue("/root/main/resusinfo/resuslist/atdoctcalltm") != "")){
- messageBox("담당의(주치의) 호출시간의 날짜/시간을 모두 입력하십시요.","E");
- return false;
- }
-
- if ( (model.getValue("/root/main/resusinfo/resuslist/atdoctarrdd") != "" && model.getValue("/root/main/resusinfo/resuslist/atdoctarrtm") == "")
- && (model.getValue("/root/main/resusinfo/resuslist/atdoctarrdd") == "" && model.getValue("/root/main/resusinfo/resuslist/atdoctarrtm") != "")){
- messageBox("담당의(주치의) 도착시간의 날짜/시간을 모두 입력하십시요.","E");
- return false;
- }
-
- if ( (model.getValue("/root/main/resusinfo/resuslist/initrhythmcnfmdd") != "" && model.getValue("/root/main/resusinfo/resuslist/initrhythmcnfmtm") == "")
- && (model.getValue("/root/main/resusinfo/resuslist/initrhythmcnfmdd") == "" && model.getValue("/root/main/resusinfo/resuslist/initrhythmcnfmtm") != "")){
- messageBox("초기리듬 확인시간의 날짜/시간을 모두 입력하십시요.","E");
- return false;
- }
-
- if ( (model.getValue("/root/main/resusinfo/resuslist/defibrstartdd") != "" && model.getValue("/root/main/resusinfo/resuslist/defibrstarttm") == "")
- && (model.getValue("/root/main/resusinfo/resuslist/defibrstartdd") == "" && model.getValue("/root/main/resusinfo/resuslist/defibrstarttm") != "")){
- messageBox("제세동 시작시간의 날짜/시간을 모두 입력하십시요.","E");
- return false;
- }
-
- if ( (model.getValue("/root/main/resusinfo/resuslist/resusfromdd") != "" && model.getValue("/root/main/resusinfo/resuslist/resusfromtm") == "")
- && (model.getValue("/root/main/resusinfo/resuslist/resusfromdd") == "" && model.getValue("/root/main/resusinfo/resuslist/resusfromtm") != "")){
- messageBox("소생술 시작시간의 날짜/시간을 모두 입력하십시요.","E");
- return false;
- }
- if ( (model.getValue("/root/main/resusinfo/resuslist/resustodd") != "" && model.getValue("/root/main/resusinfo/resuslist/resustotm") == "")
- && (model.getValue("/root/main/resusinfo/resuslist/resustodd") == "" && model.getValue("/root/main/resusinfo/resuslist/resustotm") != "")){
- messageBox("소생술 종료시간의 날짜/시간을 모두 입력하십시요.","E");
- return false;
- }
-
- if( model.getValue("/root/main/resusinfo/resuslist/resusteamarvafresus") == ""){
- messageBox("CPR팀 도착 후 처치는 필수입력입니다.","E");
- return false;
- }else if( model.getValue("/root/main/resusinfo/resuslist/resusteamarvafresus") == "09" && model.getValue("/root/main/resusinfo/resuslist/resusteamarvafresusetc") == "" ){
- messageBox("CPR팀 도착 후 처치가 기타일 경우 기타입력란은 필수입력입니다.","E");
- return false;
- }
-
- if( model.getValue("/root/main/resusinfo/resuslist/resusendresn") == ""){
- messageBox("소생술 종료사유는 필수입력입니다.","E");
- return false;
- }else if( model.getValue("/root/main/resusinfo/resuslist/resusendresn") == "09" && model.getValue("/root/main/resusinfo/resuslist/resusendresnetc") == ""){
- messageBox("소생술 종료사유가 기타일 경우 기타입력란은 필수입력입니다.","E");
- return false;
- }
-
- if( model.getValue("/root/main/resusinfo/resuslist/cardarrrslt") == ""){
- messageBox("소생술 결과는 필수입력입니다.","E");
- return false;
- } else if( model.getValue("/root/main/resusinfo/resuslist/cardarrrslt") == "01"
- && (model.getValue("/root/main/resusinfo/resuslist/dschdethdd") == "" || model.getValue("/root/main/resusinfo/resuslist/dschdethtm") == "" )){
- messageBox("자발순환회복못함(사망) 선택 시 사망일시는 필수입력입니다.","E");
- return false;
- }
-
- if( model.getValue("/root/main/resusinfo/resuslist/curerslt") == ""){
- messageBox("처치 및 결과(육하원칙에 의해)는 필수입력입니다.","E");
- return false;
- }
- return true;
- }
- /**
- * @group :
- * @ver : 2014.10.15
- * @by : 최예원
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 최종 인증저장
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCardArrResusLastSave(pStatus){
- var sRow = grd_pastlst.row;
- model.removeNode("/root/send");
- model.makeNode("/root/item/list");
- model.copyNode("/root/item/list", "/root/main/resusinfo");
-
- var sDocHeader = "hosinhosoutflag▦pid▦patnm▦indd▦cretno▦histno▦gender▦age▦wardcd▦roomcd▦diagnm▦diagcd▦atdoctcd▦medispclid▦orddeptcd▦cardarrgenrdt▦instcd▦lastsaveyn";
-
- //최종저장시 저장 안되는 부분 수정
- //cardarrgenrdt = model.getValue("/root/main/patinfo/cardarrgenrdd") + model.getValue("/root/main/patinfo/cardarrgenrtm");
- cardarrgenrdt = model.getValue("/root/main/patinfo/cardarrgenrdt");
-
- var patinfoflag = model.getValue("/root/main/patinfo/patinfoflag");
- if( pStatus == "I" && ( patinfoflag == "4" || patinfoflag == "5" || patinfoflag == "6" ) && model.getValue(xPathCardArrPatInfo+"/pid" ) == "" ){
- fMakePid(patinfoflag);
- }
-
- //20160920칠곡 심정지 발생일시 수정
- if( getUserInfo("dutplceinstcd") == "032" && pStatus == "I" ){
- cardarrgenrdt = model.getValue("/root/main/resusinfo/resuslist/cardarrgenrdtchg");
- }
-
- // 키값 설정부분
- var sCondData = "1" +"▦"
- + model.getValue(xPathCardArrPatInfo+"/pid" ) +"▦"
- + model.getValue(xPathCardArrPatInfo+"/patnm") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/indd" ) +"▦"
- + model.getValue(xPathCardArrPatInfo+"/cretno") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/histno") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/gender") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/age") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/wardcd") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/roomcd") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/diagnm") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/diagcd") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/atdoctcd") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/medispclid") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/orddeptcd") +"▦"
- + cardarrgenrdt +"▦"
- + model.getValue(xPathCardArrPatInfo+"/instcd") +"▦"
- + "Y";
-
- model.makeValue("/root/send/cond", sDocHeader+"▩"+sCondData+"▩" );
-
- sDocHeader += "▦"
- + "status▦"
- + "pflag▦"
- + "cardarrgoalyn▦"
- + "cardarrdiscvpsn▦"
- + "cardarrdiscvpsnetc▦"
- + "cardarrgenrplceflag▦"
- + "cardarrgenrplcedept▦"
- + "cardarrgenrplceetc▦"
- + "resusteamarvbfresus▦"
- + "resusteamarvbfresusetc▦"
- + "resusteamfresus▦"
- + "resusteamfresusetc▦"
- + "ambulancearvbfresus▦"
- + "ambulancearvbfresusetc▦"
- + "ambulanceresus▦"
- + "ambulanceresusetc▦"
- + "ercentresus▦"
- + "ercentresusetc▦"
- + "cardarrestmdd▦"
- + "cardarrestmtm▦"
- + "cardarrestmflag▦"
- + "cardarrfinddd▦"
- + "cardarrfindtm▦"
- + "resusteamcalldd▦"
- + "resusteamcalltm▦"
- + "resusteamarvdd▦"
- + "resusteamarvtm▦"
- + "initrhythmcnfmdd▦"
- + "initrhythmcnfmtm▦"
- + "resusfromdd▦"
- + "resusfromtm▦"
- + "resustodd▦"
- + "resustotm▦"
- + "resusteamarvbfresusflag▦"
- + "resusteamarvbfresustext▦"
- + "resusteamarvbfresusnurse▦"
- + "resusteamarvbfresusnurseetc▦"
- + "cardarrgenrtm▦"
- + "cardarrgenrdtchg▦"
- + "cardarryn▦"
- + "bluebirdalarmyn▦"
- + "bluebirdalarmdd▦"
- + "bluebirdalarmtm▦"
- + "cardarrgenrplceward▦"
- + "cardarrgenrplcewardflag▦"
- + "cardarrgenrplcehosin▦"
- + "cardarrgenrplcehoscenter▦"
- + "cardarrgenrplcetestroom▦"
- + "cardarrgenrplcehosout▦"
- + "hosparvbfresus▦"
- + "hosparvbfresusetc▦"
- + "hosparvbfresusynflag▦"
- + "atdoctcalldd▦"
- + "atdoctcalltm▦"
- + "atdoctarrdd▦"
- + "atdoctarrtm▦"
- + "defibrstartdd▦"
- + "defibrstarttm▦"
- + "defibrjul▦"
- + "defibrtims▦"
- + "defibrjul2▦"
- + "defibrtims2▦"
- + "resusteamarvafresus▦"
- + "patinfoflag▦"
- + "patinfoflagetc▦"
- + "gender▦"
- + "age▦"
- + "wardcd▦"
- + "roomcd▦"
- + "diagnm▦"
- + "diagcd▦"
- + "atdoctcd▦"
- + "medispclid▦"
- + "orddeptcd▦"
- + "resusteamarvafresusetc▦"
- + "cardarrcas▦"
- + "initrhythm▦"
- + "resusendresn▦"
- + "resusendresnetc▦"
- + "cardarrrslt▦"
- + "cardarrrsltetc▦"
- + "dschdethdd▦"
- + "dschdethtm▦"
- + "dschneurologystat▦"
- + "resusteamorddept▦"
- + "resusteamorddr▦"
- + "resusteamnum▦"
- + "patstatus▦"
- + "patstatusetc▦"
- + "defibrflag▦"
- + "curerslt▩";
-
- var resusteamarvbfresus = "";
- var resusteamarvbfresusetc = "";
- var resusteamarvbfresusnurse = "";
- var resusteamarvbfresusnurseetc = "";
-
- resusteamarvbfresus = model.getValue(xPathCardArrResusList+"/resusteamarvbfresus"); //model.getValue("hidden/list/resusteamarvbfresus");
- resusteamarvbfresusetc = model.getValue(xPathCardArrResusList+"/resusteamarvbfresusetc");
- resusteamarvbfresusnurse = model.getValue(xPathCardArrResusList+"/resusteamarvbfresusnurse");
- resusteamarvbfresusnurseetc = model.getValue(xPathCardArrResusList+"/resusteamarvbfresusnurseetc");
-
- if( model.getValue("/root/main/resusinfo/resuslist/hosparvbfresusynflag") != "Y" ){
- model.setValue(xPathCardArrResusList+"/hosparvbfresus", "" );
- model.setValue(xPathCardArrResusList+"/hosparvbfresusetc", "" );
- }
-
- sCondData += "▦"
- + pStatus + "▦"
- + "1" + "▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgoalyn") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrdiscvpsn") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrdiscvpsnetc") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplceflag") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplcedept") +"▦"
- + "▦"
- + resusteamarvbfresus +"▦"
- + resusteamarvbfresusetc +"▦"
- + model.getValue("hidden/list/resusteamfresus") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamfresusetc") +"▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + "▦"
- + model.getValue(xPathCardArrResusList+"/cardarrestmdd") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrestmtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrestmflag") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrfinddd") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrfindtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamcalldd") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamcalltm") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamarvdd") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamarvtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/initrhythmcnfmdd") +"▦"
- + model.getValue(xPathCardArrResusList+"/initrhythmcnfmtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusfromdd") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusfromtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/resustodd") +"▦"
- + model.getValue(xPathCardArrResusList+"/resustotm") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamarvbfresusflag") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamarvbfresustext") +"▦"
- + resusteamarvbfresusnurse +"▦"
- + resusteamarvbfresusnurseetc +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrdtchg") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarryn") +"▦"
- + model.getValue(xPathCardArrResusList+"/bluebirdalarmyn") +"▦"
- + model.getValue(xPathCardArrResusList+"/bluebirdalarmdd") +"▦"
- + model.getValue(xPathCardArrResusList+"/bluebirdalarmtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplceward") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplcewardflag") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplcehosin") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplcehoscenter") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplcetestroom") +"▦"
- + model.getValue(xPathCardArrResusList+"/cardarrgenrplcehosout") +"▦"
- + model.getValue(xPathCardArrResusList+"/hosparvbfresus") +"▦"
- + model.getValue(xPathCardArrResusList+"/hosparvbfresusetc") +"▦"
- + model.getValue(xPathCardArrResusList+"/hosparvbfresusynflag") +"▦"
- + model.getValue(xPathCardArrResusList+"/atdoctcalldd") +"▦"
- + model.getValue(xPathCardArrResusList+"/atdoctcalltm") +"▦"
- + model.getValue(xPathCardArrResusList+"/atdoctarrdd") +"▦"
- + model.getValue(xPathCardArrResusList+"/atdoctarrtm") +"▦"
- + model.getValue(xPathCardArrResusList+"/defibrstartdd") +"▦"
- + model.getValue(xPathCardArrResusList+"/defibrstarttm") +"▦"
- + model.getValue(xPathCardArrResusList+"/defibrjul") +"▦"
- + model.getValue(xPathCardArrResusList+"/defibrtims") +"▦"
- + model.getValue(xPathCardArrResusList+"/defibrjul2") +"▦"
- + model.getValue(xPathCardArrResusList+"/defibrtims2") +"▦"
- + model.getValue(xPathCardArrResusList+"/resusteamarvafresus") +"▦"
- + model.getValue("/root/main/patinfo/patinfoflag") +"▦"
- + model.getValue(xPathCardArrResusList+"/patinfoflagetc") +"▦"
- + model.getValue("/root/main/patinfo/gender") +"▦"
- + model.getValue("/root/main/patinfo/age") +"▦"
- + model.getValue("/root/main/patinfo/wardcd") +"▦"
- + model.getValue("/root/main/patinfo/roomcd") +"▦"
- + model.getValue("/root/main/patinfo/diagnm") +"▦"
- + model.getValue("/root/main/patinfo/diagcd") +"▦"
- + model.getValue("/root/main/patinfo/atdoctcd") +"▦"
- + model.getValue("/root/main/patinfo/medispclid") +"▦"
- + model.getValue("/root/main/patinfo/orddeptcd") +"▦"
- + model.getValue(xPathCardArrResusList + "/resusteamarvafresusetc") +"▦"
- + model.getValue(xPathCardArrResusList + "/cardarrcas") +"▦"
- + model.getValue(xPathCardArrResusList + "/initrhythm") +"▦"
- + model.getValue(xPathCardArrResusList + "/resusendresn") +"▦"
- + model.getValue(xPathCardArrResusList + "/resusendresnetc") +"▦"
- + model.getValue(xPathCardArrResusList + "/cardarrrslt") +"▦"
- + model.getValue(xPathCardArrResusList + "/cardarrrsltetc") +"▦"
- + model.getValue(xPathCardArrResusList + "/dschdethdd") +"▦"
- + model.getValue(xPathCardArrResusList + "/dschdethtm") +"▦"
- + model.getValue(xPathCardArrResusList + "/dschneurologystat") +"▦"
- + model.getValue(xPathCardArrResusList + "/resusteamorddept") +"▦"
- + model.getValue(xPathCardArrResusList + "/resusteamorddr") +"▦"
- + model.getValue(xPathCardArrResusList + "/resusteamnum") +"▦"
- + model.getValue(xPathCardArrResusList + "/patstatus") +"▦"
- + model.getValue(xPathCardArrResusList + "/patstatusetc") +"▦"
- + model.getValue(xPathCardArrResusList + "/defibrflag") +"▦"
- + model.getValue(xPathCardArrResusList + "/curerslt") +"▩";
- model.makeValue("/root/send/recdata", sDocHeader+sCondData );
-
- // Hist 데이터 입력
- var DetailHeader = "pid▦indd▦cretno▦histno▦cardarrgenrdt▦instcd▩";
- var Detail_Cardarrgenrdt = model.getValue("/root/main/patinfo/cardarrgenrdd") + model.getValue("/root/main/patinfo/cardarrgenrtm");
- // 키값 설정부분
- var DetailData = model.getValue(xPathCardArrPatInfo+"/pid" ) +"▦"
- + model.getValue(xPathCardArrPatInfo+"/indd" ) +"▦"
- + model.getValue(xPathCardArrPatInfo+"/cretno") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/histno") +"▦"
- + Detail_Cardarrgenrdt +"▦"
- + model.getValue(xPathCardArrPatInfo+"/instcd") +"▩";
- model.makeValue("/root/send/recdetail", DetailHeader + DetailData );
-
- if( submit("TXMNE02302") ){
- fSrchHistList("1");
- fActionStatus("1", "U", sRow);
- }
- }
- /**
- * PID 만들기 ( 보호자, 방문객, 기타일 경우 PID가 존재하지 않기때문에 )
- * 보호자 4 -- P + 00001 ( 일련번호 )
- * 방문객 5 -- V + 00001
- * 기 타 6 -- E + 00001
- */
- function fMakePid(patinfoflag){
-
- var pid = model.getValue(xPathCardArrPatInfo + "/pid");
- var patnm = model.getValue(xPathCardArrPatInfo + "/patnm");
- model.setValue("/root/srchmax/patinfoflag" , patinfoflag );
- if( patinfoflag == "4" ){ model.setValue("/root/srchmax/patinfoflagtxt", "P") };
- if( patinfoflag == "5" ){ model.setValue("/root/srchmax/patinfoflagtxt", "V") };
- if( patinfoflag == "6" ){ model.setValue("/root/srchmax/patinfoflagtxt", "E") };
-
- if( submit("TRMNE02311") ){
- model.setValue(xPathCardArrPatInfo+"/pid", model.getValue("/root/srchmax/patinfoflagtxt") + model.getValue("/root/temp/maxseq/item/pidseq"));
- model.setValue(xPathCardArrPatInfo+"/indd" , "-" );
- model.setValue(xPathCardArrPatInfo+"/cretno" , "1" );
- model.setValue(xPathCardArrPatInfo+"/instcd" , getUserInfo("dutplceinstcd") );
- }
- }
- function fGetCareComRoomList(pWard){
- model.makeValue("/root/send/wardcd", pWard);
- if(submit("TRMNR01003")){
- }
- }
- // 출력
- function fPrint(){
- model.removenode("/root/print");
-
- model.makeNode("/root/print/resusinfo");
- model.makeNode("/root/print/patinfo");
- model.copyNode("/root/print/resusinfo", "/root/main/resusinfo/resuslist");
- model.copyNode("/root/print/patinfo", "/root/main/patinfo");
- model.setValue("/root/print/patinfo/wardcd", cmb_wardcd.label );
- model.setValue("/root/print/patinfo/roomcd", cmb_roomcd.label );
- model.setValue("/root/print/patinfo/medispclid", cmb_medispclid.label );
- model.setValue("/root/print/patinfo/atdoctcd", cmb_atdoctcd.label );
- model.makeValue("/root/print/patinfo/cardarrgenrdate", model.getValue("/root/main/patinfo/cardarrgenrdd") );
-
- fChkBoxItemSetting();
- exeReportPreview("RPMNE02302","XMLSTR");
-
- model.refresh();
- }
- function fChkBoxItemSetting(){
-
- // 병원 도착전 처치
- var text = model.getValue("/root/main/resusinfo/resuslist/hosparvbfresus");
- var tmp1 = text.split(" ");
-
- for( var i = 0; i < tmp1.length; i++ ){
- if( tmp1[i] == "01" )
- model.makeValue("/root/print/resusinfo/hosparvbfresusitem1", "1");
- if( tmp1[i] == "02" )
- model.makeValue("/root/print/resusinfo/hosparvbfresusitem2", "1");
- if( tmp1[i] == "03" )
- model.makeValue("/root/print/resusinfo/hosparvbfresusitem3", "1");
- if( tmp1[i] == "04" )
- model.makeValue("/root/print/resusinfo/hosparvbfresusitem4", "1");
- if( tmp1[i] == "05" )
- model.makeValue("/root/print/resusinfo/hosparvbfresusitem5", "1");
- if( tmp1[i] == "06" )
- model.makeValue("/root/print/resusinfo/hosparvbfresusitem6", "1");
- if( tmp1[i] == "09" )
- model.makeValue("/root/print/resusinfo/hosparvbfresusitem7", "1");
- }
-
- // 소생팀 도착전 처치 ( 담당의 )
- text = model.getValue("/root/main/resusinfo/resuslist/resusteamarvbfresus");
- var tmp2 = text.split(" ");
- for( var i = 0; i < tmp2.length; i++ ){
- if( tmp2[i] == "01" )
- model.makeValue("/root/print/resusinfo/resusteamarvbfresusitem1", "1");
- if( tmp2[i] == "02" )
- model.makeValue("/root/print/resusinfo/resusteamarvbfresusitem2", "1");
- if( tmp2[i] == "03" )
- model.makeValue("/root/print/resusinfo/resusteamarvbfresusitem3", "1");
- if( tmp2[i] == "04" )
- model.makeValue("/root/print/resusinfo/resusteamarvbfresusitem4", "1");
- if( tmp2[i] == "05" )
- model.makeValue("/root/print/resusinfo/resusteamarvbfresusitem5", "1");
- if( tmp2[i] == "06" )
- model.makeValue("/root/print/resusinfo/resusteamarvbfresusitem6", "1");
- if( tmp2[i] == "09" )
- model.makeValue("/root/print/resusinfo/resusteamarvbfresusitem7", "1");
- }
-
- // 소생팀 도착전 처치 ( 간호사 )
- text = model.getValue("/root/main/resusinfo/resuslist/resusteamarvbfresusnurse");
- var tmp3 = text.split(" ");
- for( var i = 0; i < tmp3.length; i++ ){
- if( tmp3[i] == "01" )
- model.makeValue("/root/print/resusinfo/resusteamarvbfresusnurseitem1", "1");
- if( tmp3[i] == "02" )
- model.makeValue("/root/print/resusinfo/resusteamarvbfresusnurseitem2", "1");
- if( tmp3[i] == "03" )
- model.makeValue("/root/print/resusinfo/resusteamarvbfresusnurseitem3", "1");
- if( tmp3[i] == "04" )
- model.makeValue("/root/print/resusinfo/resusteamarvbfresusnurseitem4", "1");
- if( tmp3[i] == "05" )
- model.makeValue("/root/print/resusinfo/resusteamarvbfresusnurseitem5", "1");
- if( tmp3[i] == "06" )
- model.makeValue("/root/print/resusinfo/resusteamarvbfresusnurseitem6", "1");
- if( tmp3[i] == "09" )
- model.makeValue("/root/print/resusinfo/resusteamarvbfresusnurseitem7", "1");
- }
- // 소생팀 도착후 처치
- text = model.getValue("/root/main/resusinfo/resuslist/resusteamarvafresus");
- var tmp4 = text.split(" ");
- for( var i = 0; i < tmp4.length; i++ ){
- if( tmp4[i] == "01" )
- model.makeValue("/root/print/resusinfo/resusteamarvafresusitem1", "1");
- if( tmp4[i] == "02" )
- model.makeValue("/root/print/resusinfo/resusteamarvafresusitem2", "1");
- if( tmp4[i] == "03" )
- model.makeValue("/root/print/resusinfo/resusteamarvafresusitem3", "1");
- if( tmp4[i] == "04" )
- model.makeValue("/root/print/resusinfo/resusteamarvafresusitem4", "1");
- if( tmp4[i] == "05" )
- model.makeValue("/root/print/resusinfo/resusteamarvafresusitem5", "1");
- if( tmp4[i] == "06" )
- model.makeValue("/root/print/resusinfo/resusteamarvafresusitem6", "1");
- if( tmp4[i] == "09" )
- model.makeValue("/root/print/resusinfo/resusteamarvafresusitem7", "1");
- }
- // 병실, 병실외
- text = model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplcewardflag");
- var tmp5 = text.split(" ");
- for( var i = 0; i < tmp5.length; i++ ){
- if( tmp5[i] == "1" )
- model.makeValue("/root/print/resusinfo/cardarrgenrplcewardflagitem1", "1");
- if( tmp5[i] == "2" )
- model.makeValue("/root/print/resusinfo/cardarrgenrplcewardflagitem2", "1");
- }
-
- // 소생팀 도착전처치 - 담당의, 간호사
- text = model.getValue("/root/main/resusinfo/resuslist/resusteamarvbfresusflag");
- var tmp6 = text.split(" ");
-
- for( var i = 0; i < tmp6.length; i++ ){
-
- if( tmp6[i] == "1" )
- model.makeValue("/root/print/resusinfo/resusteamarvbfresusflagitem1", "1");
- if( tmp6[i] == "2" )
- model.makeValue("/root/print/resusinfo/resusteamarvbfresusflagitem2", "1");
- if( tmp6[i] == "9" )
- model.makeValue("/root/print/resusinfo/resusteamarvbfresusflagitem3", "1");
- }
-
- // 발생장소
- if( model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "01" ) // 병동
- model.makeValue("/root/print/resusinfo/cardarrgenrplcenm", cmb_cardarrgenrplceward.label );
- if( model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "02" ) // 외래
- model.makeValue("/root/print/resusinfo/cardarrgenrplcenm", cmb_cardarrgenrplcehosin.label );
- if( model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "03" ) // 진단/검사실
- model.makeValue("/root/print/resusinfo/cardarrgenrplcenm", cmb_cardarrgenrplcetestroom.label );
- if( model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "04" ) // 원외
- model.makeValue("/root/print/resusinfo/cardarrgenrplcenm", int_cardarrgenrplcehosout.value );
- if( model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "05" ) // 응급실
- model.makeValue("/root/print/resusinfo/cardarrgenrplcenm", "" );
- if( model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "06" ) // 수술/회복실
- model.makeValue("/root/print/resusinfo/cardarrgenrplcenm", "" );
- if( model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "07" ) // 집중치료실
- model.makeValue("/root/print/resusinfo/cardarrgenrplcenm", cmb_cardarrgenrplcehoscenter.value );
- if( model.getValue("/root/main/resusinfo/resuslist/cardarrgenrplceflag") == "08" ) // 기 타
- model.makeValue("/root/print/resusinfo/cardarrgenrplcenm", int_cardarrgenrplceetcbigo.value );
-
- if( model.getValue("/root/main/patinfo/orddeptcd" ) != "")
- model.makeValue("/root/print/resusinfo/orddeptnm", cmb_dept.label );
- if( model.getValue("/root/main/resusinfo/resuslist/defibrjul2") != "")
- model.makeValue("/root/print/resusinfo/defibrjultwo", model.getValue("/root/main/resusinfo/resuslist/defibrjul2") );
-
- if( model.getValue("/root/main/resusinfo/resuslist/defibrtims2") != "")
- model.makeValue("/root/print/resusinfo/defibrtimstwo", model.getValue("/root/main/resusinfo/resuslist/defibrtims2") );
-
- model.refresh();
- }
- //SMS전송
- function fSendSMS(){
- model.removeNode("/root/send");
- var sRow = grd_pastlst.row;
- var sDocHeader = "hosinhosoutflag▦pid▦patnm▦indd▦cretno▦histno▦cardarrgenrdt▦instcd";
-
- // 키값 설정부분
- var sCondData = "1" +"▦"
- + model.getValue(xPathCardArrPatInfo+"/pid" ) +"▦"
- + model.getValue(xPathCardArrPatInfo+"/patnm") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/indd" ) +"▦"
- + model.getValue(xPathCardArrPatInfo+"/cretno") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/histno") +"▦"
- + model.getValue("/root/main/patinfo/cardarrgenrdt") +"▦"
- + model.getValue(xPathCardArrPatInfo+"/instcd");
-
- model.makeValue("/root/send/cond", sDocHeader+"▩"+sCondData+"▩" );
- if( submit("TXMNE02310") ){
- fSrchHistList("1");
- }
- }
- function addSetDiag( diagInfo ){
- var diagRow = diagInfo.split ( "▩" ).length;
- if( diagRow > 3 ){
- messageBox("진단은 하나만 선택해주십시오.","E999");
- return;
- }else{
- model.makeNode( "/root/main/diaginfo" );
-
- var icd10cd = getArrayData ( diagInfo, 1, 8, "▩", "▦" );
- var diagcd = getArrayData ( diagInfo, 1, 9, "▩", "▦" );
- var diagengnm = getArrayData ( diagInfo, 1, 2, "▩", "▦" );
- var diaghngnm = getArrayData ( diagInfo, 1, 3, "▩", "▦" );
- var spclinfo = getArrayData ( diagInfo, 1, 5, "▩", "▦" );
-
- model.makeValue("/root/main/diaginfo/icd10cd" , icd10cd );
- model.makeValue("/root/main/diaginfo/diagcd" , diagcd );
- model.makeValue("/root/main/diaginfo/diagengnm" , diagengnm );
- model.makeValue("/root/main/diaginfo/diaghngnm" , diaghngnm );
- model.makeValue("/root/main/diaginfo/spclinfo" , spclinfo );
- model.makeValue("/root/main/patinfo/diagcd" , diagcd );
- model.makeValue("/root/main/patinfo/diagnm" , diaghngnm );
-
- model.refresh();
- }
- }
- function getArrayData (pData, pRow, pCol, pRowSep, pColSep ) {
- var arrRow = pData.split(pRowSep);
-
- if(arrRow.length <= pRow) return "";
- var arrCol = arrRow[pRow].split(pColSep);
- if(arrCol.length <= pCol) return "";
-
- return arrCol[pCol];
- }
|