123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698 |
- var checkgrade="true";
- var pushbutton="false";
- var daychk = "";
- var anonybtn = "N";
- /**
- * @---------------------------------------------------
- * @desc : SMMQR00100_안전사고통합보고가 load될때 실행되는 function
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInitialize(){
-
- iviewer_rept.attribute("border-style") = "hidden";
-
- var lrg = model.getValue("/root/main/condition/lrg");
- var ano = "";
- var daychk = "";
-
- if(!isNull(opener.javascript.getParameter("ano"))){ //메뉴에서 open -> 신규, Popup -> 과거조회
- ano = opener.javascript.getParameter("ano");
- daychk = opener.javascript.getParameter("daychk");
- }
-
- model.setValue("/root/main/condition/acptno", ano);
- model.setValue("/root/main/condition/daychk", daychk);
- model.makeValue("/root/temp/btn_value", "익명보고");
-
- zbcfGetCodeList(new Array("M0425" //대상자구분값.
- ,"M0427" //임상, 비임상
- ,"P0313" //Sex
- ,"M0449" //상담중, 감면처리중, 소송(의료분쟁)중, 종결, 취소
- ,"M0448"), //진행중, 종결
- new Array("/root/init/trgtmanflag"
- , "/root/init/lrg"
- , "/root/init/trgsex"
- , "/root/init/prcsyn"
- , "/root/init/rlstyn"),
- true);
-
- reqGetAccidentStepList();
-
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/trgtorddept", "O");
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/trgtatdoct", getUserInfo("dutplcecd"), "0330");
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/main/wardlist", "W");
- addComboInstance("/root/main/wardlist/ward", "deptcd^depthngnm", "-^전체", "dept");
- model.setValue("/root/main/condition/trgtwardcd", "-");
- model.removeNodeset("/root/main/reduct/reductlist");
-
-
- if(model.getValue("/root/main/condition/acptno") == ""){ //신규작성일 경우
- var rtnparam = opener.javascript.getParameter("SMMQR00100_PARAM"); // Main에서 open.
- var rtnparam2 = opener.javascript.getParameter("SMMQR00100_PARAM2"); // Main에서 open.
- if ( rtnparam.getTrim() != "") {
-
- rtnparam = rtnparam.split("▦");
- if( rtnparam[10] == "I"){
- model.setValue("/root/main/condition/trgtmanflag", "01"); //입원환자
- }else if( rtnparam[10] == "O" || rtnparam[10] == "E" ){
- model.setValue("/root/main/condition/trgtmanflag", "02"); //외래/응급센터 내원환자
- }else{
- model.setValue("/root/main/condition/trgtmanflag", "06"); //기타
- }
-
- cmb_trgtmanflag.dispatch("xforms-value-changed");
-
- model.setValue("/root/main/condition/trgtid", rtnparam[0]);
- model.setValue("/root/main/condition/trgtnm", rtnparam[1]);
- model.setValue("/root/main/condition/trgtorddept", rtnparam[2]);
- model.setValue("/root/main/condition/trgtdiagcdnm", rtnparam[4]);
- model.setValue("/root/main/condition/trgtdiagcd", rtnparam[5]);
- model.setValue("/root/main/condition/trgtsextext", rtnparam[6]);
- model.setValue("/root/main/condition/trgtage", rtnparam[7]);
- model.setValue("/root/main/condition/trgtwardcd", rtnparam[8]);
- cmb_trgtorddept.dispatch("xforms-value-changed");
- model.setValue("/root/main/condition/trgtroom", rtnparam[9]);
- model.setValue("/root/main/condition/trgtatdoct", rtnparam[3]);
- } else if(rtnparam2.getTrim() != "") {
- rtnparam2 = rtnparam2.split("▦");
-
- model.setValue("/root/send/patinfo/pid", rtnparam2[0]);
- model.setValue("/root/send/patinfo/orddd", rtnparam2[1]);
- model.setValue("/root/send/patinfo/cretno", rtnparam2[2]);
- model.setValue("/root/send/patinfo/ordtype", rtnparam2[3]);
- model.setValue("/root/send/patinfo/oprsrvno", rtnparam2[4]);
- if(submit("TRMQR00108")) { // 환자정보 조회
- model.setValue("/root/main/condition/trgtmanflag", model.getValue("/root/temp/initparam/trgtmanflag")); //입원환자
- cmb_trgtmanflag.dispatch("xforms-value-changed");
-
- model.setValue("/root/main/condition/trgtid", model.getValue("/root/temp/initparam/trgtid"));
- model.setValue("/root/main/condition/trgtnm", model.getValue("/root/temp/initparam/trgtnm"));
- model.setValue("/root/main/condition/trgtorddept", model.getValue("/root/temp/initparam/trgtorddept"));
- model.setValue("/root/main/condition/trgtdiagcdnm", model.getValue("/root/temp/initparam/trgtdiagcdnm"));
- model.setValue("/root/main/condition/trgtdiagcd", model.getValue("/root/temp/initparam/trgtdiagcd"));
- model.setValue("/root/main/condition/trgtsextext", model.getValue("/root/temp/initparam/trgtsextext"));
- model.setValue("/root/main/condition/trgtage", model.getValue("/root/temp/initparam/trgtage"));
- model.setValue("/root/main/condition/trgtwardcd", model.getValue("/root/temp/initparam/trgtwardcd"));
- cmb_trgtorddept.dispatch("xforms-value-changed");
- model.setValue("/root/main/condition/trgtroom", model.getValue("/root/temp/initparam/trgtroom"));
- model.setValue("/root/main/condition/trgtatdoct", model.getValue("/root/temp/initparam/trgtatdoct"));
- }
- }
-
-
- // 보고자정보 설정
- submit("TRMQR00100");
- model.setValue("/root/main/condition/reptid", model.getValue("/root/main/userinfo/reptid"));
- model.setValue("/root/main/condition/reptnm", model.getValue("/root/main/userinfo/reptnm"));
- model.setValue("/root/main/condition/reptjobkind", model.getValue("/root/main/userinfo/reptjobkind"));
- model.setValue("/root/main/condition/reptjobkindtext", model.getValue("/root/main/userinfo/reptjobkindtext"));
- model.setValue("/root/main/condition/reptdutdept", model.getValue("/root/main/userinfo/reptdutdept"));
- model.setValue("/root/main/condition/reptdutdepttext", model.getValue("/root/main/userinfo/reptdutdepttext"));
- model.setValue("/root/main/condition/reptcntctel", model.getValue("/root/main/userinfo/reptcntctel"));
- model.setValue("/root/main/condition/reptdutyearno", model.getValue("/root/main/userinfo/reptdutyearno"));
- model.setValue("/root/main/condition/reptposdeptcd", model.getValue("/root/main/userinfo/reptposdeptcd"));
- }
- else{ //조회일 경우
- model.setValue("/root/send/acptno", model.getValue("/root/main/condition/acptno"));
- submit("TRMQR00102");
- var lrg = model.getValue("/root/tmp/reptinfo/recinfo/lrg");
- var mdl = model.getValue("/root/tmp/reptinfo/recinfo/mdl");
- var trgsex = model.getValue("/root/tmp/reptinfo/recinfo/trgtsex");
-
- model.setValue("/root/main/condition/lrg", lrg);
- model.setValue("/root/main/condition/mdl", mdl);
- model.setValue("/root/main/condition/inwritingyn" , model.getValue("/root/tmp/reptinfo/recinfo/inwritingyn"));
- model.setValue("/root/main/condition/trgtsex" , trgsex);
- model.setValue("/root/main/condition/reptid" , model.getValue("/root/tmp/reptinfo/recinfo/reptid" ));
- model.setValue("/root/main/condition/reptnm" , model.getValue("/root/tmp/reptinfo/recinfo/reptnm" ));
- model.setValue("/root/main/condition/reptjobkind" , model.getValue("/root/tmp/reptinfo/recinfo/reptjobkind" ));
- model.setValue("/root/main/condition/reptjobkindtext" , model.getValue("/root/tmp/reptinfo/recinfo/reptjobkindtext" ));
- model.setValue("/root/main/condition/reptdutdept" , model.getValue("/root/tmp/reptinfo/recinfo/reptdutdept" ));
- model.setValue("/root/main/condition/reptdutdepttext" , model.getValue("/root/tmp/reptinfo/recinfo/reptdutdepttext" ));
- model.setValue("/root/main/condition/reptposdeptcd" , model.getValue("/root/main/userinfo/reptposdeptcd"));
- model.setValue("/root/main/condition/reptdutyearno" , model.getValue("/root/tmp/reptinfo/recinfo/reptdutyearno" ));
- model.setValue("/root/main/condition/reptcntctel" , model.getValue("/root/tmp/reptinfo/recinfo/reptcntctel" ));
- model.setValue("/root/main/condition/serdiaggrde" , model.getValue("/root/tmp/reptinfo/recinfo/serdiaggrde" ));
- model.setValue("/root/main/condition/trgtmanflag" , model.getValue("/root/tmp/reptinfo/recinfo/trgtmanflag" ));
- model.setValue("/root/main/condition/etctrgtmanflag" , model.getValue("/root/tmp/reptinfo/recinfo/etctrgtmanflag" ));
- model.setValue("/root/main/condition/trgtrelemp" , model.getValue("/root/tmp/reptinfo/recinfo/trgtrelemp" ));
- model.setValue("/root/main/condition/trgtid" , model.getValue("/root/tmp/reptinfo/recinfo/trgtid" ));
- model.setValue("/root/main/condition/trgtnm" , model.getValue("/root/tmp/reptinfo/recinfo/trgtnm" ));
- model.setValue("/root/main/condition/trgtage" , model.getValue("/root/tmp/reptinfo/recinfo/trgtage" ));
- model.setValue("/root/main/condition/trgtroom" , model.getValue("/root/tmp/reptinfo/recinfo/trgtroom" ));
- model.setValue("/root/main/condition/trgtdiagcd" , model.getValue("/root/tmp/reptinfo/recinfo/trgtdiagcd" ));
- model.setValue("/root/main/condition/trgtdiagcdnm" , model.getValue("/root/tmp/reptinfo/recinfo/trgtdiagcdnm" ));
- model.setValue("/root/main/condition/detlcnts" , model.getValue("/root/tmp/reptinfo/recinfo/detlcnts" ));
- model.setValue("/root/main/condition/detlcnts_how" , model.getValue("/root/tmp/reptinfo/recinfo/detlcnts_how" ));
- model.setValue("/root/main/condition/detlcnts_why" , model.getValue("/root/tmp/reptinfo/recinfo/detlcnts_why" ));
- model.setValue("/root/main/condition/erracdyn" , model.getValue("/root/tmp/reptinfo/recinfo/erracdyn" ));
- model.setValue("/root/main/condition/doctorcallyn" , model.getValue("/root/tmp/reptinfo/recinfo/doctorcallyn" ));
- model.setValue("/root/main/condition/doctorcalldt" , model.getValue("/root/tmp/reptinfo/recinfo/doctorcalldt"));
- model.setValue("/root/main/condition/mediationyn" , model.getValue("/root/tmp/reptinfo/recinfo/mediationyn"));
- model.setValue("/root/main/condition/mediationdt" , model.getValue("/root/tmp/reptinfo/recinfo/mediationdt"));
- var trgtorddept = model.getValue("/root/tmp/reptinfo/recinfo/trgtorddept");
- model.setValue("/root/main/condition/trgtorddept" , trgtorddept);
- model.setValue("/root/main/condition/trgtwardcd" , model.getValue("/root/tmp/reptinfo/recinfo/trgtwardcd"));
-
-
- if(model.getValue("/root/tmp/reptinfo/recinfo/anonyyn")=='Y'){ //익명보고
- checkgrade="false";
- fCheckgrade();
- pushbutton="true";
- btn_anony.attribute("class")="btn2_letter6";
- model.setValue("/root/temp/btn_value", "익명보고해제");
- // btn_anony.disabled="false";
- }
-
-
- if(model.getValue("/root/tmp/reptinfo/recinfo/serdiaggrde") < "4"){ //안전사고단계(M0426)
- btn_anony.disabled="false";
- }else{
- btn_anony.disabled="true";
- }
-
-
- if( trgtorddept != ""){
- model.removeNodeset("/root/init/trgtatdoct");
- model.makeNode("/root/init/trgtatdoct/usercombo");
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/trgtatdoct", trgtorddept, "0330");
- }
-
- model.setValue("/root/main/condition/trgtatdoct" , model.getValue("/root/tmp/reptinfo/recinfo/trgtatdoct" ));
- model.setValue("/root/main/condition/trgtrrgstno1" , model.getValue("/root/tmp/reptinfo/recinfo/trgtrrgstno1" ));
- model.setValue("/root/main/condition/trgtrrgstno2" , model.getValue("/root/tmp/reptinfo/recinfo/trgtrrgstno2" ));
- model.setValue("/root/main/condition/trgtcntctel" , model.getValue("/root/tmp/reptinfo/recinfo/trgtcntctel" ));
- model.setValue("/root/main/condition/genrdd" , model.getValue("/root/tmp/reptinfo/recinfo/genrdd" ));
- model.setValue("/root/main/condition/genrtmmnt" , model.getValue("/root/tmp/reptinfo/recinfo/genrtmmnt" ));
- model.setValue("/root/main/condition/discvdd" , model.getValue("/root/tmp/reptinfo/recinfo/discvdd" ));
- model.setValue("/root/main/condition/discvtmmnt" , model.getValue("/root/tmp/reptinfo/recinfo/discvtmmnt" ));
- model.setValue("/root/main/condition/reptdd" , model.getValue("/root/tmp/reptinfo/recinfo/reptdd" ));
- model.setValue("/root/main/condition/repttmmnt" , model.getValue("/root/tmp/reptinfo/recinfo/repttmmnt" ));
- model.setValue("/root/main/condition/prgnoacdrsltcnts" , model.getValue("/root/tmp/reptinfo/recinfo/prgnoacdrsltcnts"));
- model.setValue("/root/main/condition/imprvactcnts" , model.getValue("/root/tmp/reptinfo/recinfo/imprvactcnts" ));
- model.setValue("/root/main/condition/rsltyn" , model.getValue("/root/tmp/reptinfo/recinfo/rsltyn" ));
- model.setValue("/root/main/condition/trsmyn" , model.getValue("/root/tmp/reptinfo/recinfo/trsmyn" ));
- model.setValue("/root/hidden/rsltyn" , model.getValue("/root/tmp/reptinfo/recinfo/rsltyn" )); //전송할경우 기존상태를 비교하기위해
-
-
- var genrtmnt = model.getValue("/root/tmp/reptinfo/recinfo/genrtmmnt" );
- model.setValue("/root/main/condition/genrthh" , genrtmnt.substring(0,2));
- model.setValue("/root/main/condition/genrtmi" , genrtmnt.substring(2,4));
-
- var discvtmmnt = model.getValue("/root/tmp/reptinfo/recinfo/discvtmmnt" );
- model.setValue("/root/main/condition/discvthh", discvtmmnt.substring(0,2));
- model.setValue("/root/main/condition/discvtmi", discvtmmnt.substring(2,4));
-
- //예측되는 사고결과중 '기타'가있으면 TextAreafmf display 해준다
- var chkprgnoacdrslt = model.getValue("/root/tmp/reptinfo/recinfo/chkprgnoacdrslt");
- model.setValue("/root/main/chkcond/chkprgnoacdrslt" , chkprgnoacdrslt);
- if(chkprgnoacdrslt.search("06") > -1){
- tar_prgnoacdcnts.visible = true;
- model.setValue("/root/main/condition/prgnoacdcnts" , model.getValue("/root/tmp/reptinfo/recinfo/prgnoacdcnts" ));
- }
-
- //개선활동 내용중 '기타'가있으면 TextArea를 display해준다
- var ChkImprvAct = model.getValue("/root/tmp/reptinfo/recinfo/chkimprvact" );
- model.setValue("/root/main/chkcond/chkimprvact" , ChkImprvAct);
- if(ChkImprvAct.search("06") > -1){
- tar_imprvactetccnts.visible = true;
- model.setValue("/root/main/condition/imprvactetccnts" , model.getValue("/root/tmp/reptinfo/recinfo/imprvactetccnts" ));
- }
- model.removenodeset("/root/main/reduct/reductlist");
- copyNodeListType("/root/main/reduct", "/root/tmp/reptinfo/reductlist", "after");
-
- setLrg(lrg);
- SetIviewer(lrg, mdl);
- setTrgtView();
- setTrgtSex(trgsex);
- sortNodeList("/root/main/reduct/reductlist", "reductdd", "asc");
-
- //감면금액 합계 표시
- grd_amt.subtotal("sum", -1, grd_amt.colRef("reductamt"),"", "", 2, "총 계");
- }
- model.refresh();
- }
- /**
- * @---------------------------------------------------
- * @desc : 안전사고통합보고를 저장/수정한다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSave(){
- // alert("fSave");
- var Lrg = model.getValue("/root/main/condition/lrg");
- var mdl = model.getValue("/root/main/condition/mdl");
-
- if(Lrg == "01" && mdl == "03"){
- if(!iviewer_rept.window.javascript.checkFalldrug()){
- return false;
- }
- iviewer_rept.window.javascript.chkbodystat();
- }
-
- GetDetlInfo(); //Iview의 상세내용을 /root/tmp로 불러들인다.
- SetRecInfo(); //공통기본정보를 send로 보낸다.
- SetDetlInfo(); //tmp의 상세내용을 send로 보낸다.
-
-
- if(checkgrade=="false" && model.getValue("/root/temp/reptid")!=""){
- model.setValue("/root/send/cond/recinfo/reptid", model.getValue("/root/temp/reptid"));
- model.setValue("/root/send/cond/recinfo/reptcntctel", model.getValue("/root/temp/reptcntctel"));
- model.setValue("/root/send/cond/recinfo/reptdutyearno", model.getValue("/root/temp/reptdutyearno"));
- }
-
- if(checkgrade=="false"){
- model.makeValue("/root/send/cond/recinfo/anonyyn", "Y");
- }else{
- model.makeValue("/root/send/cond/recinfo/anonyyn", "N");
- }
-
- model.makeValue("/root/send/cond/recinfo/trgtwardcd", model.getValue("/root/main/condition/trgtwardcd")); //병동값 저장
- model.makeValue("/root/send/cond/recinfo/status", model.getValue("/root/temp/status")); //저장시 상태값 지정
-
- if(!submit("TXMQR00100")){
- messageBox("저장을","E009");
- return false;
- }
- model.setValue("/root/main/condition/acptno", model.getValue("/root/tmp/acptno/acptno"));
- setParameter("ano", model.getValue("/root/main/condition/acptno"));
- model.refresh();
-
- if(Lrg == "01" && mdl == "03"){
- iviewer_rept.window.javascript.dreload();
- }
- return true;
- }
- /**
- * @---------------------------------------------------
- * @desc : 문자열의 Byte 크기가 제한값을 벗어나는지, 필수입력 콘트롤에 값이 입력되어있는지 체크
- * @param :
- * @return : true or false
- * @---------------------------------------------------
- */
- function fCheck(){
- // alert("fCheck");
- var lrg = model.getValue("/root/main/condition/lrg");
-
- if(lrg == "03"){
- if(grd_amt.rows > 1){
- if( grd_amt.findrow("", 1, 2) > -1){
- messageBox("감면 날짜를 ", "C001");
- return false;
- }
- if(grd_amt.findrow("", 1, 3) > -1){
- messageBox("감면 금액을 ", "C001");
- return false;
- }
- }
- }
-
- if( anonybtn == "N" ){
- //-------------------------------------------------------- 필수체크 -----------------------------------------------------------
- if(model.getValue("/root/main/condition/lrg") == "01"){ //임상
- if(!isRequiredControls("cmb_trgtmanflag", "cmb_serdiaggrde", "chk_prgnoacdrslt", "cmb_rsltyn" , "rdo_mdl" , "chk_imprvactcnts")){
- return false;
- }
- }else{ //비임상의 경우 대상자 구분정보 없더라도 수정되도록 변경.
- if(!isRequiredControls("cmb_serdiaggrde", "chk_prgnoacdrslt" , "chk_imprvactcnts" , "cmb_rsltyn" , "rdo_mdl")){
- return false;
- }
- }
-
- if(model.getValue("/root/main/condition/trgtmanflag") == "01" || model.getValue("/root/main/condition/trgtmanflag") == "02"){
- if ( model.getValue("/root/main/condition/trgtid") ==""){
- messageBox("대상자 ID는", "I003");
- return false;
- }
- }
-
- if ( model.getValue("/root/main/condition/genrdd") == "" ||
- model.getValue("/root/main/condition/genrthh") == "" ||
- model.getValue("/root/main/condition/genrtmi") == "" ){
- messageBox("발생일시는", "I003");
- return false;
- }
-
- if ( model.getValue("/root/main/condition/discvdd" ) == "" ||
- model.getValue("/root/main/condition/discvthh") == "" ||
- model.getValue("/root/main/condition/discvtmi") == "" ){
- messageBox("발견일시는", "I003");
- return false;
- }
- //------------------------------------- iView의 필수, 길이체크 Function 호출 ----------------------------------------------------
- if(!iviewer_rept.window.javascript.fDetlCheck()){
- return false;
- }
-
-
- var genrthh = model.getValue("/root/main/condition/genrthh");
- var genrtmi = model.getValue("/root/main/condition/genrtmi");
- var discvthh = model.getValue("/root/main/condition/discvthh");
- var discvtmi = model.getValue("/root/main/condition/discvtmi");
- var detlcnts=iviewer_rept.model.getValue("/root/main/cond/detlcnts");
-
- if(genrthh.length < 2){
- messageBox("발생일시는 2자리 ", "C001");
- model.setFocus("ipt_genrthh");
- return false;
- }
- if(genrtmi.length < 2){
- messageBox("발생일시는 2자리 ", "C001");
- model.setFocus("ipt_genrtmi");
- return false;
- }
- if(discvthh.length < 2){
- messageBox("발견일시는 2자리 ", "C001");
- model.setFocus("ipt_discvthh");
- return false;
- }
- if(discvtmi.length < 2){
- messageBox("발견일시는 2자리 ", "C001");
- model.setFocus("ipt_discvtmi");
- return false;
- }
- if(detlcnts==""){
- messageBox("상세내용 기술은 필수항목", "I009");
- iviewer_rept.model.setFocus("tar_detlcnts");
- return false;
- }
-
- var doctorcallyn = iviewer_rept.model.getValue("/root/main/cond/doctorcallyn");
- var doctorcalldt = iviewer_rept.model.getValue("/root/main/cond/doctorcalldt");
- var mediationyn = iviewer_rept.model.getValue("/root/main/cond/mediationyn");
- var mediationdt = iviewer_rept.model.getValue("/root/main/cond/mediationdt");
-
-
- if( doctorcallyn == "Y" ){
- if( !isValidDateTime(doctorcalldt,"YYYYMMDDhhmm") ){
- messageBox("담당의/당직의 호출시간 입력이 잘못되었습니다.(YYYY-MM-DD HH:MM)", "E");
- model.setFocus("ipt_doctorcall");
- return false;
- }
- }
- if( mediationyn == "Y" ){
- if(!isValidDateTime(mediationdt,"YYYYMMDDhhmm")){
- messageBox("중재시간 입력이 잘못되었습니다.(YYYY-MM-DD HH:MM)", "E");
- model.setFocus("ipt_mediation");
- return false;
- }
- }
- }else{
- //20140820 익명보고의 경우 상세기술 내용만 있더라도 저장 될 수 있도록 수정.
- if(!isRequiredControls("tar_detlcnts_how", "tar_detlcnts_why", "tar_detlcnts")){
- return false;
- }
- }
- return true;
- }
- /**
- * @---------------------------------------------------
- * @desc : 종결여부를 설정한다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSetRlstYN(){
- // alert("fSetRlstYN");
- var rtnval = messageBox("종결여부만 반영됩니다. ", "Q003");
-
- if(rtnval == 6){ //예
- SetRecInfo();
- if(!submit("TXMQR00101")){
- messageBox("종결여부 저장을","E009");//실패하였습니다.
- return false;
- }
-
- var lrg = model.getValue("/root/main/condition/lrg");
- if(lrg == "03"){ //감면사례인경우 처리상태(종결여부)가 04번인경우가 종결이다
- if(model.getValue("/root/main/condition/rsltyn") == "04"){ //종결인경우 이전 종결상태를 종결로 만들어준다(재전송을 막기위해)
- model.setValue("/root/hidden/rsltyn" , "04"); //종결
- }
- }else{
- if(model.getValue("/root/main/condition/rsltyn") == "03"){ //종결인경우 이전 종결상태를 종결로 만들어준다(재전송을 막기위해)
- model.setValue("/root/hidden/rsltyn" , "03"); //종결
- }
- }
- model.refresh();
- }else{
- return false;
- }
-
- return true;
- }
- /**
- * @---------------------------------------------------
- * @desc : 대상자구분에 따라 사고 대상자 정보등록 내용이 달라진다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function setTrgtView(){
- // alert("setTrgtView");
- var trgtman = model.getValue("/root/main/condition/trgtmanflag");
- if(trgtman == "01" || trgtman == "02"){
- grp_pat.visible = true;
- grp_patInfo.visible = true;
- grp_nonpat.visible = false;
- grp_nonpatInfo.visible = false;
- }
- else{
- grp_pat.visible = false;
- grp_nonpat.visible = true;
- grp_patInfo.visible = false;
- grp_nonpatInfo.visible = true;
- }
- if(trgtman == "06"){
- ipt_etctrgtmanflag.disabled = false;
- }
- else{
- ipt_etctrgtmanflag.disabled = true;
- }
- }
-
- /**
- * @---------------------------------------------------
- * @desc : 성별코드에 따라 성별 텍스틀 설정한다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function setTrgtSex(trgsex){
- // alert("setTrgtSex");
- if(trgsex == "M"){
- model.setValue("/root/main/condition/trgtsextext", "남자");
- }else if(trgsex == "F"){
- model.setValue("/root/main/condition/trgtsextext", "여자");
- }
- }
- /**
- * @---------------------------------------------------
- * @desc : 대분류가 설정되었을때 중분류를 설정하는 fuction
- * @param : lrg(대분류)
- * @return :
- * @---------------------------------------------------
- */
- function setLrg(lrg){
- // alert("setLrg");
- iviewer_rept.visible = false;
-
- if(lrg == "03"){
- iviewer_rept.attribute("height") = "300px";
-
- // 화면 하단의 버튼 4개 원위치 처리
- button1.attribute("top") = "718px";
- button2.attribute("top") = "718px";
- button3.attribute("top") = "718px";
- button9.attribute("top") = "718px";
-
- cap_mdl.visible = false;
- rdo_mdl.visible = false;
- grp_nonreductcase.visible =false;
- grp_reductcase.visible = true;
- iviewer_rept.visible = true;
- iviewer_rept.src = "SMMQR00900_감면사례보고.xrw" ;
- }
- else{
- cap_mdl.visible =true;
- rdo_mdl.visible = true;
- grp_nonreductcase.visible =true;
- grp_reductcase.visible = false;
-
- if(lrg == "01") {
-
- iviewer_rept.attribute("height") = "440px";
-
- // 예측결과 그룹과 화면 하단의 버튼 4개 원위치 처리
- grp_nonreductcase.attribute("top") = "630px";
- button1.attribute("top") = "730px";
- button2.attribute("top") = "730px";
- button3.attribute("top") = "730px";
- button9.attribute("top") = "730px";
-
- /*
- iviewer_rept.attribute("height") = "405px";
-
- // 예측결과 그룹과 화면 하단의 버튼 4개 원위치 처리
- grp_nonreductcase.attribute("top") = "592px";
- button1.attribute("top") = "718px";
- button2.attribute("top") = "718px";
- button3.attribute("top") = "718px";
- button9.attribute("top") = "718px";
- */
- model.removeNodeset("/root/init/mdl/M0428");
- zbcfGetCodeList(new Array("M0428"), new Array("/root/init/mdl"), true);
- rdo_mdl.choices.itemset.attribute("nodeset") = "/root/init/mdl/M0428";
- }
- //대분류가 비임상일 경우
- if(lrg == "02"){
- iviewer_rept.attribute("height") = "460px";
-
- // 예측결과 그룹과 화면 하단의 버튼 4개 70px만큼 아래로 위치 이동
- grp_nonreductcase.attribute("top") = "645px";
- button1.attribute("top") = "745px";
- button2.attribute("top") = "745px";
- button3.attribute("top") = "745px";
- button9.attribute("top") = "745px";
-
- model.removeNodeset("/root/init/mdl/M0429");
- zbcfGetCodeList(new Array("M0429"), new Array("/root/init/mdl"), true);
- rdo_mdl.choices.itemset.attribute("nodeset") = "/root/init/mdl/M0429";
- iviewer_rept.src = "SMMQR00800_비임상.xrw" ;
-
- }
- rdo_mdl.refresh();
- }
- }
- /**
- * @---------------------------------------------------
- * @desc : 중분류가 설정되었을때 Iview를 설정하는 fuction
- * @param : lrg(대분류), mdl(중분류)
- * @return :
- * @---------------------------------------------------
- */
- function SetIviewer(lrg, mdl){
-
-
- //대분류가 선택 안되어있을 경우 되돌려 보낸다
- if(lrg == ""){
- rdo_mdl.deselect();
- return;
- }
- //대분류가 임상일 경우
- else if(lrg == "01"){
-
- switch(mdl){
- case "01" : iviewer_rept.src = "SMMQR00200_진료및치료.xrw" ;
- break;
- case "02" : iviewer_rept.src = "SMMQR00300_투약.xrw" ;
- break;
- case "03" : iviewer_rept.src = "SMMQR00400_낙상.xrw" ;
- break;
- case "04" : iviewer_rept.src = "SMMQR00500_수혈.xrw" ;
- break;
- case "05" : iviewer_rept.src = "SMMQR00600_진단병리영상검사.xrw";
- break;
- case "06" : iviewer_rept.src = "SMMQR00700_기타.xrw" ;
- break;
- }
- }
- //대분류가 비임상일 경우
- else if(lrg == "02"){
- //iviewer_rept.visible = true;
- iviewer_rept.window.javascript.fSetDisabled(mdl);
- }
-
- iviewer_rept.visible = true;
-
- }
- /**
- * @---------------------------------------------------
- * @desc : Iview의 상세내용을 /root/tmp로 불러들인다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function GetDetlInfo(){
- // alert("GetDetlInfo");
- var Lrg = model.getValue("/root/main/condition/lrg"); //대분류
- var Mdl = model.getValue("/root/main/condition/mdl"); //중분류
-
- model.removenode("/root/tmp");
-
- var node = iviewer_rept.model.instance1.selectNodes("/root/main/cond");
- model.makeNode("/root/tmp");
- while( srcNode = node.nextNode()) {
- model.duplicate("/root/tmp", srcNode);
- }
- }
- /**
- * @---------------------------------------------------
- * @desc : 공통기본정보를 send로 보낸다
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function SetRecInfo(){
- // alert("SetDetlInfo");
-
- //model.resetInstanceNode("/root/send/cond/recinfo");
- model.removeNodeset("/root/send/cond/recinfo");
-
- var Lrg = model.getValue("/root/main/condition/lrg");
-
- if(Lrg == "03"){
- if(grd_amt.findrow("", 1, 3) == -1){
- grd_amt.subtotal("clear", -1, grd_amt.colRef("reductamt"));
- model.makeValue("/root/send/cond/recinfo/reductlist", grd_amt.getUpdateDataAll("s"));
- grd_amt.subtotal("sum", -1, grd_amt.colRef("reductamt"),"", "", 2, "총 계");
- }
- }else{
- var ChkImprvAct = model.getValue("/root/main/chkcond/chkimprvact");
- if(ChkImprvAct.search("01") > -1) model.makeValue("/root/send/cond/recinfo/bizguideaddyn" , "Y");
- if(ChkImprvAct.search("02") > -1) model.makeVaLue("/root/send/cond/recinfo/educyn" , "Y");
- if(ChkImprvAct.search("03") > -1) model.makeValue("/root/send/cond/recinfo/bizprcsyn" , "Y");
- if(ChkImprvAct.search("04") > -1) model.makeValue("/root/send/cond/recinfo/alertyn" , "Y");
- if(ChkImprvAct.search("05") > -1) model.makeValue("/root/send/cond/recinfo/imprvplanyn" , "Y");
- if(ChkImprvAct.search("06") > -1) model.makeValue("/root/send/cond/recinfo/imprvactetcyn" , "Y");
- }
-
- var ChkPrognoAcdRslt = model.getValue("/root/main/chkcond/chkprgnoacdrslt");
- if(ChkPrognoAcdRslt.search("01") > -1) model.makeValue("/root/send/cond/recinfo/patbodylossyn" , "Y");
- if(ChkPrognoAcdRslt.search("02") > -1) model.makeValue("/root/send/cond/recinfo/pateconomylossyn" , "Y");
- if(ChkPrognoAcdRslt.search("03") > -1) model.makeValue("/root/send/cond/recinfo/hopeconomylossyn" , "Y");
- if(ChkPrognoAcdRslt.search("04") > -1) model.makeValue("/root/send/cond/recinfo/bizdelyaddyn" , "Y");
- if(ChkPrognoAcdRslt.search("05") > -1) model.makeValue("/root/send/cond/recinfo/healcaretrobyn" , "Y");
- if(ChkPrognoAcdRslt.search("06") > -1) model.makeValue("/root/send/cond/recinfo/prgnoacdyn" , "Y");
- //copyNodesetType("/root/send/cond/recinfo", "/root/main/condition", "after");
- //copyNodeListType("/root/send/cond/recinfo", "/root/main/condition", "after");
- copyNodeType("/root/send/cond/recinfo", "/root/main/condition", "after");
- }
- /**
- * @---------------------------------------------------
- * @desc : tmp의 상세내용을 send로 보낸다
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function SetDetlInfo(){
- // alert("SetDetlInfo");
- model.removeNodeset("/root/send/cond/detlinfo");
-
- var Lrg = model.getValue("/root/main/condition/lrg"); //대분류
- var Mdl = model.getValue("/root/main/condition/mdl"); //중분류
-
-
-
- if(Lrg == "01"){ //임상
-
- if(Mdl == "01"){ //진료 및 치료
-
- model.makeValue("/root/send/cond/detlinfo/opdate" , model.getValue("/root/tmp/cond/opdate") ); //수술/시술일
- model.makeValue("/root/send/cond/detlinfo/opnm" , model.getValue("/root/tmp/cond/opnm") ); //수술/시술명
- model.makeValue("/root/send/cond/detlinfo/pertdr" , model.getValue("/root/tmp/cond/pertdr") ); //집도의
- model.makeValue("/root/send/cond/detlinfo/anstdr" , model.getValue("/root/tmp/cond/anstdr") ); //마취의
- model.makeValue("/root/send/cond/detlinfo/ordcurekind", model.getValue("/root/tmp/cond/ordcurekind") ); //진료및치료_사고종류
-
- model.makeValue("/root/send/cond/recinfo/detlcnts" , model.getValue("/root/tmp/cond/detlcnts") ); //상세내용 기술
- model.makeValue("/root/send/cond/recinfo/detlcnts_how" , model.getValue("/root/tmp/cond/detlcnts_how") ); //상세내용 기술
- model.makeValue("/root/send/cond/recinfo/detlcnts_why" , model.getValue("/root/tmp/cond/detlcnts_why") ); //상세내용 기술
-
- model.makeValue("/root/send/cond/recinfo/doctorcallyn" , model.getValue("/root/tmp/cond/doctorcallyn") ); //담당의_당직의 호출여부
- model.makeValue("/root/send/cond/recinfo/doctorcalldt" , model.getValue("/root/tmp/cond/doctorcalldt") ); //담당의_당직의 호출시간
- model.makeValue("/root/send/cond/recinfo/mediationyn" , model.getValue("/root/tmp/cond/mediationyn") ); //중재여부
- model.makeValue("/root/send/cond/recinfo/mediationdt" , model.getValue("/root/tmp/cond/mediationdt") ); //중재시간
-
- var OrdCureKind = model.getValue("/root/tmp/cond/ordcurekind"); //사고의 종류
- if(OrdCureKind == ""){
- messageBox("사고 종류를 ", "C001");
- return false;
- }
-
- if(OrdCureKind == "01"){ //수술/시술 관련 사고
- model.makeValue("/root/send/cond/detlinfo/opwrsgkind" , model.getValue("/root/tmp/cond/opacd/opwrsgkind") ); //wrong_surgery_종류
- model.makeValue("/root/send/cond/detlinfo/tmoutyn" , model.getValue("/root/tmp/cond/opacd/tmoutyn") ); //타임아웃유무
- if(model.getValue("/root/tmp/cond/opacd/tmoutyn") == "Y"){
- model.makeValue("/root/send/cond/detlinfo/tmoutkind" , model.getValue("/root/tmp/cond/opacd/tmoutkind") ); //타임아웃종류
- }
- model.makeValue("/root/send/cond/detlinfo/oppartdispyn" , model.getValue("/root/tmp/cond/opacd/oppartdispyn") ); //수술부위표식유무
- var ChkOpMngt = model.getValue("/root/tmp/cond/opacd/chkopmngt");
- if(ChkOpMngt.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/bfopvaluyn", "Y"); //수술_시술전환자평가부적절여부
- if(ChkOpMngt.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/opbfaprvdocudescyn", "Y"); //수술전부적절동의서및불충분설명여부
- if(ChkOpMngt.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/blodlossyn", "Y"); //수술_시술관련급격한실혈여부
- if(ChkOpMngt.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/toolcntyn", "Y"); //스폰지_거즈_수술기구카운트부적절여부
- if(ChkOpMngt.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/opdelyyn", "Y"); //응급수술_시술지연여부
- if(ChkOpMngt.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/aftmngtyn", "Y"); //수술_시술후관리부적절df여부
- if(ChkOpMngt.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/aftseffcyn", "Y"); //수술_시술후부작용sv여부
- if(ChkOpMngt.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/opfuntfaluryn", "Y"); //수술_시술관련급격한기능저하및기능부전여부
-
- if(ChkOpMngt.search("10") > -1) model.makeValue("/root/send/cond/detlinfo/opbfpatvaluyn", "Y");
- if(ChkOpMngt.search("11") > -1) model.makeValue("/root/send/cond/detlinfo/opbfdocudescyn", "Y");
- if(ChkOpMngt.search("12") > -1) model.makeValue("/root/send/cond/detlinfo/opbfcuredclryn", "Y");
-
- if(ChkOpMngt.search("14") > -1) model.makeValue("/root/send/cond/detlinfo/opaftblodlosyn", "Y");
- if(ChkOpMngt.search("15") > -1) model.makeValue("/root/send/cond/detlinfo/opaftprfoayn", "Y");
- if(ChkOpMngt.search("16") > -1) model.makeValue("/root/send/cond/detlinfo/opafthyfuntyn", "Y");
- if(ChkOpMngt.search("17") > -1) model.makeValue("/root/send/cond/detlinfo/opafdentltrmayn", "Y");
- if(ChkOpMngt.search("18") > -1) model.makeValue("/root/send/cond/detlinfo/opafttoolcntyn", "Y");
- if(ChkOpMngt.search("19") > -1) model.makeValue("/root/send/cond/detlinfo/eropdelyyn", "Y");
- if(ChkOpMngt.search("20") > -1) model.makeValue("/root/send/cond/detlinfo/opaftmngtyn", "Y");
- if(ChkOpMngt.search("21") > -1) model.makeValue("/root/send/cond/detlinfo/opaftseffcyn", "Y");
-
- if(ChkOpMngt.search("09") > -1){
- model.makeValue("/root/send/cond/detlinfo/opmdlaftetcyn" , "Y");
- model.makeValue("/root/send/cond/detlinfo/opmdlaftetccnts" , model.getValue("/root/tmp/cond/opacd/opmdlaftetccnts") );
- }
- if(ChkOpMngt.search("13") > -1){
- model.makeValue("/root/send/cond/detlinfo/opbfdescyn" , "Y");
- model.makeValue("/root/send/cond/detlinfo/opbfdesccmt" , model.getValue("/root/tmp/cond/opacd/opbfdesccmt") );
- }
- if(ChkOpMngt.search("22") > -1){
- model.makeValue("/root/send/cond/detlinfo/opaftdescyn", "Y");
- model.makeValue("/root/send/cond/detlinfo/opaftdesccmt" , model.getValue("/root/tmp/cond/opacd/opaftdesccmt") );
- }
- }
-
- if(OrdCureKind == "02"){ //마취관련 사고
- var ChkAnstCd = model.getValue("/root/tmp/cond/anstacd/chkanstacd");
-
- if(ChkAnstCd.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/bfpatvaluyn", "Y"); //마취전환자평가부적절여부
- if(ChkAnstCd.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/anstbfaprvdocudescyn", "Y"); //마취전부적절동의서및불충분설명여부
-
- if(ChkAnstCd.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/nerveinjyn", "Y"); //마취로인한신경손상및마비여부
- if(ChkAnstCd.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/itbtacdyn", "Y"); //intubation관련사고여부
- if(ChkAnstCd.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/aftbrethprlsyn", "Y"); //마취후호흡마비여부
- if(ChkAnstCd.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/anstfuntfaluryn", "Y"); //마취후급격한기능저하및기능부전여부
-
- if(ChkAnstCd.search("09") > -1) model.makeValue("/root/send/cond/detlinfo/anstbfpatvaluyn", "Y");
- if(ChkAnstCd.search("10") > -1) model.makeValue("/root/send/cond/detlinfo/anstbfdocudescyn", "Y");
-
- if(ChkAnstCd.search("12") > -1) model.makeValue("/root/send/cond/detlinfo/anstaftnerveinjyn", "Y");
- if(ChkAnstCd.search("13") > -1) model.makeValue("/root/send/cond/detlinfo/anstaftbthprlsyn", "Y");
- if(ChkAnstCd.search("14") > -1) model.makeValue("/root/send/cond/detlinfo/anstafthyfuntyn", "Y");
-
- if(ChkAnstCd.search("03") > -1){
- model.makeValue("/root/send/cond/detlinfo/anstmedierryn" , "Y"); //마취약제투약오류여부
- model.makeValue("/root/send/cond/detlinfo/anstmedidrugcd" , model.getValue("/root/tmp/cond/anstacd/anstmedidrugcd") ); //투약마취약제코드
- model.makeValue("/root/send/cond/detlinfo/anstmedidrugnm" , model.getValue("/root/tmp/cond/anstacd/anstmedidrugnm") ); //투약마취약제코드
- }
-
- if(ChkAnstCd.search("11") > -1){
- model.makeValue("/root/send/cond/detlinfo/anstaftmedierryn", "Y");
- model.makeValue("/root/send/cond/detlinfo/anstmedidrugcd" , model.getValue("/root/tmp/cond/anstacd/anstmedidrugcd") );
- model.makeValue("/root/send/cond/detlinfo/anstmedidrugnm" , model.getValue("/root/tmp/cond/anstacd/anstmedidrugnm") );
- }
-
- if(ChkAnstCd.search("08") > -1){
- model.makeValue("/root/send/cond/detlinfo/anstacdetcyn" , "Y");
- model.makeValue("/root/send/cond/detlinfo/anstacdetccnts" , model.getValue("/root/tmp/cond/anstacd/anstacdetccnts") );
- }
-
- if(ChkAnstCd.search("15") > -1){
- model.makeValue("/root/send/cond/detlinfo/anstdescyn" , "Y");
- model.makeValue("/root/send/cond/detlinfo/anstdesccmt" , model.getValue("/root/tmp/cond/anstacd/anstdesccmt") );
- }
- }
- if(OrdCureKind == "03"){ //치료/진료 관련 사고
- var ChkCureAcd = model.getValue("/root/tmp/cond/mediacd/chkcureacd");
- if(ChkCureAcd.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/cureprcsdescyn", "Y"); //부적절불충분한치료과정설명여부
- if(ChkCureAcd.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/medirecyn", "Y"); //부적절의무기록여부
- if(ChkCureAcd.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/orgninjuryyn", "Y"); //치료과정에발생한신체적손상여부
- if(ChkCureAcd.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/oprejtyn", "Y"); //환자_보호자가치료및시술거절여부
- if(ChkCureAcd.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/prsryn", "Y"); //욕창여부
- if(ChkCureAcd.search("06") > -1){
- model.makeValue("/root/send/cond/detlinfo/medierryn", "Y"); //약물투약오류여부
- model.makeValue("/root/send/cond/detlinfo/medidrugcd" , model.getValue("/root/tmp/cond/mediacd/medidrugcd") ); //투약약품코드
- }
- if(ChkCureAcd.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/tnserracdyn", "Y"); //수혈오류로인한사고여부
- if(ChkCureAcd.search("08") > -1){
- model.makeValue("/root/send/cond/detlinfo/cureacdetcyn" , "Y"); //치료_진료관련사고기타여부
- model.makeValue("/root/send/cond/detlinfo/cureacdetccnts" , model.getValue("/root/tmp/cond/mediacd/cureacdetccnts") ); //치료_진료관련사고기타상세
- }
- }
- /*2012/08/16 Start
- if(OrdCureKind == "04"){ //진단/영상/병리/핵의학 검사 관련사고
- var ChkTestAcd = model.getValue("/root/tmp/cond/testacd/chktestacd");
- if(ChkTestAcd.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/rsltreptyn", "Y"); //잘못된진단_영상_병리_핵의학검사결과보고여부
- if(ChkTestAcd.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/curedelyyn", "Y"); //결과확인누락으로처치지연여부
- if(ChkTestAcd.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/dyeseffcyn", "Y"); //조영제부작용여부
- if(ChkTestAcd.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/testorgninjuryyn", "Y"); //진단검사관련신체적손상
- if(ChkTestAcd.search("05") > -1){
- model.makeValue("/root/send/cond/detlinfo/testacdetcyn" , "Y"); //진단_영상_병리_핵의학검사기타여부
- model.makeValue("/root/send/cond/detlinfo/testacdetccnts" , model.getValue("/root/tmp/cond/testacd/testacdetccnts") ); //진단_영상_병리_핵의학검사기타상세
- }
- }
- 2012/08/16 End */
- }
- if(Mdl == "02"){ //투약
- model.makeValue("/root/send/cond/detlinfo/medidrugcd" , model.getValue("/root/tmp/cond/medidrugcd")) ;
- model.makeValue("/root/send/cond/detlinfo/medidrugnm" , model.getValue("/root/tmp/cond/medidrugnm")) ;
- model.makeValue("/root/send/cond/detlinfo/abnrdrugcd" , model.getValue("/root/tmp/cond/abnrdrugcd")) ;
- model.makeValue("/root/send/cond/detlinfo/abnrdrugcdnm" , model.getValue("/root/tmp/cond/abnrdrugcdnm")) ;
- model.makeValue("/root/send/cond/detlinfo/medidrugvol" , model.getValue("/root/tmp/cond/medidrugvol")) ;
- model.makeValue("/root/send/cond/detlinfo/abnrdrugvol" , model.getValue("/root/tmp/cond/abnrdrugvol")) ;
-
- model.makeValue("/root/send/cond/recinfo/detlcnts" , model.getValue("/root/tmp/cond/detlcnts") ); //상세내용 기술
- model.makeValue("/root/send/cond/recinfo/detlcnts_how" , model.getValue("/root/tmp/cond/detlcnts_how") ); //상세내용 기술
- model.makeValue("/root/send/cond/recinfo/detlcnts_why" , model.getValue("/root/tmp/cond/detlcnts_why") ); //상세내용 기술
-
- model.makeValue("/root/send/cond/recinfo/doctorcallyn" , model.getValue("/root/tmp/cond/doctorcallyn") ); //담당의_당직의 호출여부
- model.makeValue("/root/send/cond/recinfo/doctorcalldt" , model.getValue("/root/tmp/cond/doctorcalldt") ); //담당의_당직의 호출시간
- model.makeValue("/root/send/cond/recinfo/mediationyn" , model.getValue("/root/tmp/cond/mediationyn") ); //중재여부
- model.makeValue("/root/send/cond/recinfo/mediationdt" , model.getValue("/root/tmp/cond/mediationdt") ); //중재시간
-
- var chkprcperr = model.getValue("/root/tmp/cond/chkprcperr");
- if(chkprcperr != ""){
- model.makeValue("/root/send/cond/detlinfo/prcperryn" , "Y");
- if(chkprcperr.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/difpatprcpyn" , "Y");
- if(chkprcperr.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/incgdrugprcpyn" , "Y");
- if(chkprcperr.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/duplprcpyn" , "Y");
- if(chkprcperr.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/tbooprcpyn" , "Y");
- if(chkprcperr.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/difdtprcpyn" , "Y");
- if(chkprcperr.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/failcmntunstdyn" , "Y");
-
- if(chkprcperr.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/diffpatprcpyn" , "Y");
- if(chkprcperr.search("09") > -1) model.makeValue("/root/send/cond/detlinfo/diffdrugyn" , "Y");
- if(chkprcperr.search("10") > -1) model.makeValue("/root/send/cond/detlinfo/diffpathyn" , "Y");
- if(chkprcperr.search("11") > -1) model.makeValue("/root/send/cond/detlinfo/difftimeyn" , "Y");
- if(chkprcperr.search("12") > -1) model.makeValue("/root/send/cond/detlinfo/diffvolyn" , "Y");
- if(chkprcperr.search("13") > -1) model.makeValue("/root/send/cond/detlinfo/diffmedicntyn" , "Y");
- if(chkprcperr.search("14") > -1) model.makeValue("/root/send/cond/detlinfo/diffintvlyn" , "Y");
- if(chkprcperr.search("15") > -1) model.makeValue("/root/send/cond/detlinfo/prcpomityn" , "Y");
- if(chkprcperr.search("16") > -1) model.makeValue("/root/send/cond/detlinfo/dupprcpyn" , "Y");
- if(chkprcperr.search("17") > -1) model.makeValue("/root/send/cond/detlinfo/tbooftprcpyn" , "Y");
- if(chkprcperr.search("18") > -1) model.makeValue("/root/send/cond/detlinfo/diffdtprcpyn" , "Y");
- if(chkprcperr.search("19") > -1) model.makeValue("/root/send/cond/detlinfo/verbrelunstdyn" , "Y");
-
- if(chkprcperr.search("07") > -1){
- model.makeValue("/root/send/cond/detlinfo/prcperretcyn", "Y");
- model.makeValue("/root/send/cond/detlinfo/prcperretccnts" , model.getValue("/root/tmp/cond/prcperretccnts"));
- }
-
- if(chkprcperr.search("20") > -1){
- model.makeValue("/root/send/cond/detlinfo/medierrdescyn", "Y");
- model.makeValue("/root/send/cond/detlinfo/medierrdesccmt", model.getValue("/root/tmp/cond/medierrdesccmt"));
- }
-
- }
- var chkprcpdrugerr = model.getValue("/root/tmp/cond/chkprcpdrugerr");
- if(chkprcpdrugerr != ""){
- model.makeValue("/root/send/cond/detlinfo/prcpdrugerryn" , "Y");
- if(chkprcpdrugerr.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/difpatprcpdrugyn" , "Y");
- if(chkprcpdrugerr.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/difdrugprcpyn" , "Y");
- if(chkprcpdrugerr.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/difvolprcpdrugyn" , "Y");
- if(chkprcpdrugerr.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/lblcnfmyn" , "Y");
- if(chkprcpdrugerr.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/drugdelivedelyyn" , "Y");
- if(chkprcpdrugerr.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/difplcedeliveyn" , "Y");
- if(chkprcpdrugerr.search("07") > -1){
- model.makeValue("/root/send/cond/detlinfo/prcpdrugerretcyn" , "Y");
- model.makeValue("/root/send/cond/detlinfo/prcpdrugerretccnts" , model.getValue("/root/tmp/cond/prcpdrugerretccnts") );
- }
- }
- var chkprcpprcs = model.getValue("/root/tmp/cond/chkprcpprcs") ;
- if(chkprcpprcs != ""){
- model.makeValue("/root/send/cond/detlinfo/prcpprcsyn" , "Y");
- if(chkprcpprcs.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/difpatprcpprcsyn" , "Y");
- if(chkprcpprcs.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/difdrugprcpprcsyn" , "Y");
- if(chkprcpprcs.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/difpathprcpprcsyn" , "Y");
- if(chkprcpprcs.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/diftmprcpprcsyn" , "Y");
- if(chkprcpprcs.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/difvolprcpprcsyn" , "Y");
- if(chkprcpprcs.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/difmeditimsprcpprcsyn" , "Y");
- if(chkprcpprcs.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/difintvlprcpprcsyn" , "Y");
- if(chkprcpprcs.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/omitprcpprcsyn" , "Y");
- if(chkprcpprcs.search("09") > -1) model.makeValue("/root/send/cond/detlinfo/failcmntunstdprcpprcsyn" , "Y");
- if(chkprcpprcs.search("10") > -1){
- model.makeValue("/root/send/cond/detlinfo/prcpprcsetcyn" , "Y");
- model.makeValue("/root/send/cond/detlinfo/prcpprcsetccnts" , model.getValue("/root/tmp/cond/prcpprcsetccnts") );
- }
- }
- var chkmedierr = model.getValue("/root/tmp/cond/chkmedierr");
- if(chkmedierr != ""){
- model.makeValue("/root/send/cond/detlinfo/medierryn" , "Y");
- if(chkmedierr.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/difpatmedierryn" , "Y");
- if(chkmedierr.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/difdrugmedierryn" , "Y");
- if(chkmedierr.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/difpathmedierryn" , "Y");
- if(chkmedierr.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/diftmmedierryn" , "Y");
- if(chkmedierr.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/difvolmedierryn" , "Y");
- if(chkmedierr.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/diftimsmedierryn" , "Y");
- if(chkmedierr.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/difintvlmedierryn" , "Y");
- if(chkmedierr.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/omitmedierryn" , "Y");
- if(chkmedierr.search("09") > -1) model.makeValue("/root/send/cond/detlinfo/discontinudirecaftmedierryn" , "Y");
- if(chkmedierr.search("10") > -1) model.makeValue("/root/send/cond/detlinfo/faildilumedierryn" , "Y");
- if(chkmedierr.search("11") > -1) model.makeValue("/root/send/cond/detlinfo/ownmedierryn" , "Y");
- if(chkmedierr.search("12") > -1) model.makeValue("/root/send/cond/detlinfo/injescmedierryn" , "Y");
- if(chkmedierr.search("13") > -1) model.makeValue("/root/send/cond/detlinfo/incgpathmedierryn" , "Y");
- if(chkmedierr.search("14") > -1) {
- model.makeValue("/root/send/cond/detlinfo/medierretcyn" , "Y");
- model.makeValue("/root/send/cond/detlinfo/medierretccnts" , model.getValue("/root/tmp/cond/medierretccnts") );
- }
- }
- var chkmediseffc = model.getValue("/root/tmp/cond/chkmediseffc");
- if(chkmediseffc != ""){
- model.makeValue("/root/send/cond/detlinfo/medierrseffcyn" , "Y");
- if(chkmediseffc.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/exermalfcmedierryn" , "Y");
- if(chkmediseffc.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/bledyn" , "Y");
- if(chkmediseffc.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/brdcadyn" , "Y");
- if(chkmediseffc.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/taccadyn" , "Y");
- if(chkmediseffc.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/conpayn" , "Y");
- if(chkmediseffc.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/diahyn" , "Y");
- if(chkmediseffc.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/dzzyn" , "Y");
- if(chkmediseffc.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/myathyn" , "Y");
- if(chkmediseffc.search("09") > -1) model.makeValue("/root/send/cond/detlinfo/hallucyn" , "Y");
- if(chkmediseffc.search("10") > -1) model.makeValue("/root/send/cond/detlinfo/highbsugaryn" , "Y");
- if(chkmediseffc.search("11") > -1) model.makeValue("/root/send/cond/detlinfo/lowbsugaryn" , "Y");
- if(chkmediseffc.search("12") > -1) model.makeValue("/root/send/cond/detlinfo/lowbpyn" , "Y");
- if(chkmediseffc.search("13") > -1) model.makeValue("/root/send/cond/detlinfo/cscschngyn" , "Y");
- if(chkmediseffc.search("14") > -1) model.makeValue("/root/send/cond/detlinfo/nephroyn" , "Y");
- if(chkmediseffc.search("15") > -1) model.makeValue("/root/send/cond/detlinfo/nauseyn" , "Y");
- if(chkmediseffc.search("16") > -1) model.makeValue("/root/send/cond/detlinfo/vomityn" , "Y");
- if(chkmediseffc.search("17") > -1) model.makeValue("/root/send/cond/detlinfo/neutrpeyn" , "Y");
- if(chkmediseffc.search("18") > -1) model.makeValue("/root/send/cond/detlinfo/panctoyn" , "Y");
- if(chkmediseffc.search("19") > -1) model.makeValue("/root/send/cond/detlinfo/thrombyn" , "Y");
- if(chkmediseffc.search("20") > -1) model.makeValue("/root/send/cond/detlinfo/purpyn" , "Y");
- if(chkmediseffc.search("21") > -1) model.makeValue("/root/send/cond/detlinfo/eruptyn" , "Y");
- if(chkmediseffc.search("22") > -1) model.makeValue("/root/send/cond/detlinfo/dyspnyn" , "Y");
- if(chkmediseffc.search("23") > -1) model.makeValue("/root/send/cond/detlinfo/sedatyn" , "Y");
- if(chkmediseffc.search("24") > -1) model.makeValue("/root/send/cond/detlinfo/sezryn" , "Y");
- if(chkmediseffc.search("25") > -1) model.makeValue("/root/send/cond/detlinfo/nystagyn" , "Y");
- if(chkmediseffc.search("26") > -1) model.makeValue("/root/send/cond/detlinfo/urinereteyn" , "Y");
- if(chkmediseffc.search("27") > -1) model.makeValue("/root/send/cond/detlinfo/mucsinfla" , "Y");
- if(chkmediseffc.search("28") > -1){
- model.makeValue("/root/send/cond/detlinfo/medierrseffcetcyn" , "Y");
- model.makeValue("/root/send/cond/detlinfo/medierrseffcetccnts" , model.getValue("/root/tmp/cond/medierrseffcetccnts") );
- }
- }
- var chkarbitrationcnts = model.getValue("/root/tmp/cond/chkarbitrationcnts");
- if(chkarbitrationcnts != ""){
- model.makeValue("/root/send/cond/detlinfo/arbitrationcntsyn" , "Y");
- if(chkarbitrationcnts.search("01") > -1){
- model.makeValue("/root/send/cond/detlinfo/arbitrationmediyn" , "Y");
- model.makeValue("/root/send/cond/detlinfo/arbitrationdrugcd" , model.getValue("/root/tmp/cond/arbitrationdrugcd"));
- model.makeValue("/root/send/cond/detlinfo/arbitrationdrugnm" , model.getValue("/root/tmp/cond/arbitrationdrugnm"));
- }
- if(chkarbitrationcnts.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/volupdtyn" , "Y");
- if(chkarbitrationcnts.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/medidiscontinu" , "Y");
- if(chkarbitrationcnts.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/drugtimsupdtyn" , "Y");
- if(chkarbitrationcnts.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/icuchngroomyn" , "Y");
- if(chkarbitrationcnts.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/obsyn" , "Y");
-
- if(chkarbitrationcnts.search("06") > -1){
- model.makeValue("/root/send/cond/detlinfo/arbitrationetcyn" , "Y"); //기타가 없음
- model.makeValue("/root/send/cond/detlinfo/arbitrationetccnts" , model.getValue("/root/tmp/cond/arbitrationetccnts"));
- }
- }
- }
- if(Mdl == "03"){ //낙상
- model.makeValue("/root/send/cond/detlinfo/fallplcecd" , model.getValue("/root/tmp/cond/fallplcecd" ) ) ; //낙상장소코드
- model.makeValue("/root/send/cond/detlinfo/fallplcecnts" , model.getValue("/root/tmp/cond/fallplcecnts" ) ) ; //낙상장소기타 상세
- model.makeValue("/root/send/cond/detlinfo/falldngrasesyn" , model.getValue("/root/tmp/cond/falldngrasesyn") ) ; //낙상위험사정 여부
-
- model.makeValue("/root/send/cond/recinfo/detlcnts" , model.getValue("/root/tmp/cond/detlcnts") ); //상세내용 기술
- model.makeValue("/root/send/cond/recinfo/detlcnts_how" , model.getValue("/root/tmp/cond/detlcnts_how") ); //상세내용 기술
- model.makeValue("/root/send/cond/recinfo/detlcnts_why" , model.getValue("/root/tmp/cond/detlcnts_why") ); //상세내용 기술
-
- model.makeValue("/root/send/cond/recinfo/doctorcallyn" , model.getValue("/root/tmp/cond/doctorcallyn") ); //담당의_당직의 호출여부
- model.makeValue("/root/send/cond/recinfo/doctorcalldt" , model.getValue("/root/tmp/cond/doctorcalldt") ); //담당의_당직의 호출시간
- model.makeValue("/root/send/cond/recinfo/mediationyn" , model.getValue("/root/tmp/cond/mediationyn") ); //중재여부
- model.makeValue("/root/send/cond/recinfo/mediationdt" , model.getValue("/root/tmp/cond/mediationdt") ); //중재시간
-
-
- model.makeValue("/root/send/cond/detlinfo/drugdump" , model.getValue("/root/tmp/cond/drugdump") ); // 낙상시 투여약품 목록
- model.makeNode("/root/send/cond/detlinfo/druglist");
- copyNodeType("/root/send/cond/detlinfo/druglist","/root/tmp/cond/druglist");
-
- var fallbfpnt = model.getValue("/root/tmp/cond/fallbfpnt" )
- if(fallbfpnt != ""){
- model.makeValue("/root/send/cond/detlinfo/fallbfpnt" , fallbfpnt ) ; //낙상전점수
- }
- var fallaftpnt = model.getValue("/root/tmp/cond/fallaftpnt" )
- if(fallaftpnt != ""){
- model.makeValue("/root/send/cond/detlinfo/fallaftpnt" , fallaftpnt ) ; //낙상후점수
- }
- model.makeValue("/root/send/cond/detlinfo/pvneducyn" , model.getValue("/root/tmp/cond/pvneducyn" ) ) ; //예방교육 여부
- model.makeValue("/root/send/cond/detlinfo/bodydamcd" , model.getValue("/root/tmp/cond/bodydamcd" ) ) ; // 낙상으로인한신체적손상
- model.makeValue("/root/send/cond/detlinfo/bodypart" , model.getValue("/root/tmp/cond/bodypart" ) ) ; // 손상된 신체부위
-
- var cscsstatyn = model.getValue("/root/tmp/cond/cscsstatyn");
- if(cscsstatyn != ""){
- model.makeValue("/root/send/cond/detlinfo/cscsstatyn" , "Y"); // 의식상태 여부
- if(cscsstatyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/clryn" , "Y"); // 명료 여부
- if(cscsstatyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/slepyn" , "Y"); // 졸음 여부
- if(cscsstatyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/chaosyn" , "Y"); // 혼돈 여부
- if(cscsstatyn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/bfcomayn" , "Y"); // 반혼수 여부
- if(cscsstatyn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/comayn" , "Y"); // 혼수 여부
- if(cscsstatyn.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/cscschildyn " , "Y"); // 7세미만소아 여부
- }
- var actfuntyn = model.getValue("/root/tmp/cond/actfuntyn");
- if(actfuntyn != ""){
- model.makeValue("/root/send/cond/detlinfo/actfuntyn" , "Y"); // 활동/기능 여부
- if(actfuntyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/indcasefuntyn" , "Y"); // 독립활동 여부
- if(actfuntyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/helpneedyn" , "Y"); // 도움필요 여부
- if(actfuntyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/actimpsiyn" , "Y"); // 활동불가능 여부
- }
- var envcasyn = model.getValue("/root/tmp/cond/envcasyn");
- if(envcasyn != ""){
- model.makeValue("/root/send/cond/detlinfo/envcasyn" , "Y"); // 환경적요인 여부
- if(envcasyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/eqmtfallyn" , "Y"); // side rail이 내려져 있어서 여부
- if(envcasyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/bedeqmtflxfaluryn" , "Y"); // 침대바퀴미고정 여부
- if(envcasyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/wateryn" , "Y"); // 바닥의물기 여부
- if(envcasyn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/lightbadyn" , "Y"); // 조명불량 여부
- if(envcasyn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/falurfootwryn" , "Y"); // 부적절한신발 여부
- if(envcasyn.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/supptoolyn" , "Y"); // 보조기구사용중 여부
- if(envcasyn.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/healcaretoolyn" , "Y"); // 의료기구및관련 여부
- if(envcasyn.search("08") > -1) {
- model.makeValue("/root/send/cond/detlinfo/envcasetcyn" , "Y"); // 환경적요인기타 여부
- model.makeValue("/root/send/cond/detlinfo/envcasetccntsyn" , model.getValue("/root/tmp/cond/envcasetccntsyn" ) ) ; // 환경적요인기타 상세}
- }
- }
-
- var bodystatyn = model.getValue("/root/tmp/cond/bodystatyn");
- if(bodystatyn != ""){
- model.makeValue("/root/send/cond/detlinfo/bodystatyn" , "Y"); // 신체상태 여부
- if(bodystatyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/dzzyn" , "Y"); // 어지러움 여부
- if(bodystatyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/paralyn" , "Y"); // 마비 여부
- if(bodystatyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/weakyn" , "Y"); // 전신쇠약 여부
- if(bodystatyn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/msclabltyfallyn" , "Y"); // 근력저하 여부
- if(bodystatyn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/workdifyn" , "Y"); // 보행장애 여부
- if(bodystatyn.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/posturelowbpyn" , "Y"); // 체위성저혈압 여부
- if(bodystatyn.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/equbrmhandcapyn" , "Y"); // 평형장애 여부
- if(bodystatyn.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/emothandcapyn" , "Y"); // 정서장애 여부
- if(bodystatyn.search("09") > -1) model.makeValue("/root/send/cond/detlinfo/visacthandcapyn" , "Y"); // 시력장애 여부
- if(bodystatyn.search("10") > -1) model.makeValue("/root/send/cond/detlinfo/slephandcapyn" , "Y"); // 수면장애 여부
- if(bodystatyn.search("11") > -1) model.makeValue("/root/send/cond/detlinfo/awarhandcapyn" , "Y"); // 인지장애 여부
- if(bodystatyn.search("12") > -1) model.makeValue("/root/send/cond/detlinfo/orgnchildyn" , "Y"); // 신체상태7세미만소아 여부
- if(bodystatyn.search("13") > -1){
- model.makeValue("/root/send/cond/detlinfo/tmedyn" , "Y"); // 약물복용 여부
- model.makeValue("/root/send/cond/detlinfo/medidrugcd" , model.getValue("/root/tmp/cond/medidrugcd" ) ) ; // 복용약물코드
- }
- if(bodystatyn.search("14") > -1) model.makeValue("/root/send/cond/detlinfo/orgnfactrelyn" , "Y"); // 신체사항해당사항없음 여부
- if(bodystatyn.search("15") > -1) {
- model.makeValue("/root/send/cond/detlinfo/bodystatetcyn" , "Y"); // 신체상태 기타여부
- model.makeValue("/root/send/cond/detlinfo/bodystatetccnts" , model.getValue("/root/tmp/cond/bodystatetccnts" ) ) ; // 신체상태 기타상세
- }
- }
-
- var arbitrationcntsyn = model.getValue("/root/tmp/cond/arbitrationcntsyn");
- if(arbitrationcntsyn != ""){
- model.makeValue("/root/send/cond/detlinfo/arbitrationcntsyn" , "Y"); //즉각적중재내용 여부
- if(arbitrationcntsyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/obsyn" , "Y"); //관찰 여부
- if(arbitrationcntsyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/drssyn" , "Y"); //드레싱 여부
- if(arbitrationcntsyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/sutryn" , "Y"); //봉합 여부
- if(arbitrationcntsyn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/drugcureyn" , "Y"); //약물치료 여부
- if(arbitrationcntsyn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/physiccureyn" , "Y"); //물리치료 여부
- if(arbitrationcntsyn.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/opyn" , "Y"); //수술 여부
- if(arbitrationcntsyn.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/cureyn " , "Y"); //치료하지않음 여부
- if(arbitrationcntsyn.search("07") > -1){
- model.makeValue("/root/send/cond/detlinfo/arbitrationcntsetcyn" , "Y"); //즉각적중재내용기타 여부
- model.makeValue("/root/send/cond/detlinfo/arbitrationetccnts" , model.getValue("/root/tmp/cond/arbitrationetccnts" ) ) ; // 즉각적증재내용기타 상세
- }
- }
- }
- if(Mdl == "04"){ //수혈
- model.makeValue("/root/send/cond/detlinfo/patrh" , model.getValue("/root/tmp/cond/patrh" ) ) ;
- model.makeValue("/root/send/cond/detlinfo/patbtype" , model.getValue("/root/tmp/cond/patbtype" ) ) ;
- model.makeValue("/root/send/cond/detlinfo/tnsrh" , model.getValue("/root/tmp/cond/tnsrh" ) ) ;
- model.makeValue("/root/send/cond/detlinfo/tnsbtype" , model.getValue("/root/tmp/cond/tnsbtype" ) ) ;
-
- model.makeValue("/root/send/cond/recinfo/detlcnts" , model.getValue("/root/tmp/cond/detlcnts" ) ); //상세내용 기술
- model.makeValue("/root/send/cond/recinfo/detlcnts_how" , model.getValue("/root/tmp/cond/detlcnts_how") ); //상세내용 기술
- model.makeValue("/root/send/cond/recinfo/detlcnts_why" , model.getValue("/root/tmp/cond/detlcnts_why") ); //상세내용 기술
-
- model.makeValue("/root/send/cond/recinfo/doctorcallyn" , model.getValue("/root/tmp/cond/doctorcallyn") ); //담당의_당직의 호출여부
- model.makeValue("/root/send/cond/recinfo/doctorcalldt" , model.getValue("/root/tmp/cond/doctorcalldt") ); //담당의_당직의 호출시간
- model.makeValue("/root/send/cond/recinfo/mediationyn" , model.getValue("/root/tmp/cond/mediationyn") ); //중재여부
- model.makeValue("/root/send/cond/recinfo/mediationdt" , model.getValue("/root/tmp/cond/mediationdt") ); //중재시간
-
- var prcperryn = model.getValue("/root/tmp/cond/prcperryn");
- if(prcperryn != ""){
- model.makeValue("/root/send/cond/detlinfo/prcperryn" , "Y");
- if(prcperryn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/difpatprcpyn" , "Y");
- if(prcperryn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/incgblodprcpyn" , "Y");
- if(prcperryn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/difddprcpyn" , "Y");
- if(prcperryn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/failcmntunstdyn" , "Y");
- if(prcperryn.search("05") > -1){
- model.makeValue("/root/send/cond/detlinfo/prcperretcyn" , "Y");
- model.makeValue("/root/send/cond/detlinfo/prcperretccnts" , model.getValue("/root/tmp/cond/prcperretccnts" ) ) ;
- }
- }
-
- var brodbankerryn = model.getValue("/root/tmp/cond/brodbankerryn");
- if(brodbankerryn != ""){
- model.makeValue("/root/send/cond/detlinfo/brodbankerryn" , "Y");
- if(brodbankerryn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/difbrodproddeliveyn" , "Y");
- if(brodbankerryn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/difbtypedeliveyn" , "Y");
- if(brodbankerryn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/keeperryn" , "Y");
- if(brodbankerryn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/prepdelyyn" , "Y");
- if(brodbankerryn.search("05") > -1){
- model.makeValue("/root/send/cond/detlinfo/brodbankerretcyn" , "Y");
- model.makeValue("/root/send/cond/detlinfo/brodbankerretccnts" , model.getValue("/root/tmp/cond/brodbankerretccnts" ) ) ;
- }
- }
-
- var prcpprcsyn = model.getValue("/root/tmp/cond/prcpprcsyn");
- if(prcpprcsyn != ""){
- model.makeValue("/root/send/cond/detlinfo/prcpprcsyn" , "Y");
- if(prcpprcsyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/prcpdifpatyn" , "Y");
- if(prcpprcsyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/prcpdifbrodprodyn" , "Y");
- if(prcpprcsyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/prcpdifbtypeyn" , "Y");
- if(prcpprcsyn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/prcpdiftmyn" , "Y");
- if(prcpprcsyn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/prcpdifvolyn" , "Y");
- if(prcpprcsyn.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/prcpmismatcherryn" , "Y");
- if(prcpprcsyn.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/prcpfailcmntunstdyn" , "Y");
- if(prcpprcsyn.search("08") > -1){
- model.makeValue("/root/send/cond/detlinfo/prcpprcsetcyn" , "Y");
- model.makeValue("/root/send/cond/detlinfo/prcpprcsetccnts" , model.getValue("/root/tmp/cond/prcpprcsetccnts" ) ) ;
- }
- }
-
- var tnsprcserryn = model.getValue("/root/tmp/cond/tnsprcserryn");
- if(tnsprcserryn != ""){
- model.makeValue("/root/send/cond/detlinfo/tnsprcserryn" , "Y");
- if(tnsprcserryn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/tnsprcsdifpatyn" , "Y");
- if(tnsprcserryn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/tnsprcsdifbrodprodyn" , "Y");
- if(tnsprcserryn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/tnsprcsdifbtypeyn" , "Y");
- if(tnsprcserryn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/tnsprcsdiftmyn" , "Y");
- if(tnsprcserryn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/tnsprcsdifvolyn" , "Y");
- if(tnsprcserryn.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/tnsprcsomityn" , "Y");
- if(tnsprcserryn.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/tnsprcsinfserryn" , "Y");
- if(tnsprcserryn.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/tnsprcsseterryn" , "Y");
- if(tnsprcserryn.search("09") > -1) model.makeValue("/root/send/cond/detlinfo/tnsprcsspderryn" , "Y");
- if(tnsprcserryn.search("10") > -1) model.makeValue("/root/send/cond/detlinfo/tnsprcsoutflyn" , "Y");
- if(tnsprcserryn.search("11") > -1) model.makeValue("/root/send/cond/detlinfo/tnsprcsobsomityn" , "Y");
- if(tnsprcserryn.search("12") > -1){
- model.makeValue("/root/send/cond/detlinfo/tnsprcsetcyn" , "Y");
- model.makeValue("/root/send/cond/detlinfo/tnsprcsetccnts" , model.getValue("/root/tmp/cond/tnsprcsetccnts" ) ) ;
- }
- }
- var tnsseffcyn = model.getValue("/root/tmp/cond/tnsseffcyn");
- if(tnsseffcyn != ""){
- model.makeValue("/root/send/cond/detlinfo/tnsseffcyn" , "Y");
- if(tnsseffcyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/perspryn" , "Y");
- if(tnsseffcyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/rigoryn" , "Y");
- if(tnsseffcyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/chstpainyn" , "Y");
- if(tnsseffcyn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/abdmnpainyn" , "Y");
- if(tnsseffcyn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/shockyn" , "Y");
- if(tnsseffcyn.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/blodcoaguhandcapyn" , "Y");
- if(tnsseffcyn.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/dyspnyn" , "Y");
- if(tnsseffcyn.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/hematyn" , "Y");
- if(tnsseffcyn.search("09") > -1) model.makeValue("/root/send/cond/detlinfo/pyrexyn" , "Y");
- if(tnsseffcyn.search("10") > -1) model.makeValue("/root/send/cond/detlinfo/lowbpyn" , "Y");
- if(tnsseffcyn.search("11") > -1) model.makeValue("/root/send/cond/detlinfo/highbpyn" , "Y");
- if(tnsseffcyn.search("12") > -1) model.makeValue("/root/send/cond/detlinfo/urticayn" , "Y");
- if(tnsseffcyn.search("13") > -1) model.makeValue("/root/send/cond/detlinfo/eruptyn" , "Y");
- if(tnsseffcyn.search("14") > -1) model.makeValue("/root/send/cond/detlinfo/anpshockyn" , "Y");
- if(tnsseffcyn.search("15") > -1) model.makeValue("/root/send/cond/detlinfo/lungedemayn" , "Y");
- if(tnsseffcyn.search("16") > -1){
- model.makeValue("/root/send/cond/detlinfo/tnsseffcetcyn" , "Y");
- model.makeValue("/root/send/cond/detlinfo/tnsseffcetccnts" , model.getValue("/root/tmp/cond/tnsseffcetccnts" ) ) ;
- }
- }
- var arbitrationcntsyn = model.getValue("/root/tmp/cond/arbitrationcntsyn");
- if(arbitrationcntsyn != ""){
- model.makeValue("/root/send/cond/detlinfo/arbitrationcntsyn" , "Y");
- if(arbitrationcntsyn.search("01") > -1){
- model.makeValue("/root/send/cond/detlinfo/arbitrationdrugcd" , model.getValue("/root/tmp/cond/arbitrationdrugcd" ) ) ;
- model.makeValue("/root/send/cond/detlinfo/arbitrationdrugnm" , model.getValue("/root/tmp/cond/arbitrationdrugnm" ) ) ;
- model.makeValue("/root/send/cond/detlinfo/arbitrationmediyn" , "Y");
- }
- if(arbitrationcntsyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/tnsdiscontinuyn" , "Y");
- if(arbitrationcntsyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/icuchngroomyn" , "Y");
- if(arbitrationcntsyn.search("04") > -1){
- model.makeValue("/root/send/cond/detlinfo/arbitrationetcyn" , "Y");
- model.makeValue("/root/send/cond/detlinfo/arbitrationetccntsyn" , model.getValue("/root/tmp/cond/arbitrationetccntsyn" ) ) ;
- }
- }
- }
- if(Mdl == "05"){ //진단병리영상검사{
- model.makeValue("/root/send/cond/detlinfo/testreadnm" , model.getValue("/root/tmp/cond/testreadnm" ) ) ;
- model.makeValue("/root/send/cond/recinfo/detlcnts" , model.getValue("/root/tmp/cond/detlcnts" ) ); //상세내용 기술
- model.makeValue("/root/send/cond/recinfo/detlcnts_how" , model.getValue("/root/tmp/cond/detlcnts_how") ); //상세내용 기술
- model.makeValue("/root/send/cond/recinfo/detlcnts_why" , model.getValue("/root/tmp/cond/detlcnts_why") ); //상세내용 기술
- model.makeValue("/root/send/cond/recinfo/doctorcallyn" , model.getValue("/root/tmp/cond/doctorcallyn") ); //담당의_당직의 호출여부
- model.makeValue("/root/send/cond/recinfo/doctorcalldt" , model.getValue("/root/tmp/cond/doctorcalldt") ); //담당의_당직의 호출시간
- model.makeValue("/root/send/cond/recinfo/mediationyn" , model.getValue("/root/tmp/cond/mediationyn") ); //중재여부
- model.makeValue("/root/send/cond/recinfo/mediationdt" , model.getValue("/root/tmp/cond/mediationdt") ); //중재시간
-
- var prcperryn = model.getValue("/root/tmp/cond/prcperryn");
- if(prcperryn != ""){
- model.makeValue("/root/send/cond/detlinfo/prcperryn" , "Y");
- if(prcperryn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/difpatprcpyn" , "Y");
- if(prcperryn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/difpartprcpyn" , "Y");
- if(prcperryn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/diftestprcpyn" , "Y");
- if(prcperryn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/duplprcpyn" , "Y");
- if(prcperryn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/difddprcpyn" , "Y");
- if(prcperryn.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/failcmntunstdyn" , "Y");
- if(prcperryn.search("07") > -1){
- model.makeValue("/root/send/cond/detlinfo/prcperretcyn" , "Y");
- model.makeValue("/root/send/cond/detlinfo/prcperretccnts" , model.getValue("/root/tmp/cond/prcperretccnts" ) ) ;
- }
- }
-
- var prcpprcsyn = model.getValue("/root/tmp/cond/prcpprcsyn");
- if(prcpprcsyn != ""){
- model.makeValue("/root/send/cond/detlinfo/prcpprcsyn" , "Y");
- if(prcpprcsyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/prcpdifpatyn" , "Y");
- if(prcpprcsyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/prcpdifpartyn" , "Y");
- if(prcpprcsyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/prcpdiftestyn" , "Y");
- if(prcpprcsyn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/prcpdifddyn" , "Y");
- if(prcpprcsyn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/prcpfailcmntunstdyn" , "Y");
- if(prcpprcsyn.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/prcpseffccnfmomityn" , "Y");
- if(prcpprcsyn.search("07") > -1){
- model.makeValue("/root/send/cond/detlinfo/prcpprcsetcyn" , "Y");
- model.makeValue("/root/send/cond/detlinfo/prcpprcsetccnts" , model.getValue("/root/tmp/cond/prcpprcsetccnts" ) ) ;
- }
- }
-
- var testprcsyn = model.getValue("/root/tmp/cond/testprcsyn");
- if(testprcsyn != ""){
- model.makeValue("/root/send/cond/detlinfo/testprcsyn" , "Y");
- if(testprcsyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/testdifpatyn" , "Y");
- if(testprcsyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/testdifpartyn" , "Y");
- if(testprcsyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/testdiftestyn" , "Y");
- if(testprcsyn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/testdifddyn" , "Y");
- if(testprcsyn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/testempseffcyn" , "Y");
- if(testprcsyn.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/testcompuhandcapyn" , "Y");
- if(testprcsyn.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/testfailcmntunstdyn" , "Y");
- if(testprcsyn.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/testdyeseffcyn" , "Y");
- //if(testprcsyn.search("09") > -1) model.makeValue("/root/send/cond/detlinfo/testbarcderryn" , "Y");
- if(testprcsyn.search("10") > -1){
- model.makeValue("/root/send/cond/detlinfo/testprcsetcyn" , "Y")
- model.makeValue("/root/send/cond/detlinfo/testprcsetccnts" , model.getValue("/root/tmp/cond/testprcsetccnts" ) ) ;
- }
- }
-
- var tranreptyn = model.getValue("/root/tmp/cond/tranreptyn");
- if(tranreptyn != ""){
- model.makeValue("/root/send/cond/detlinfo/tranreptyn" , "Y");
- if(tranreptyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/spcmissyn" , "Y");
- if(tranreptyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/spcexchyn" , "Y");
- if(tranreptyn.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/testbarcderryn" , "Y");
- if(tranreptyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/spctrandelyyn" , "Y");
- if(tranreptyn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/spcdiftranyn" , "Y");
- if(tranreptyn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/rsltreptyn" , "Y");
- if(tranreptyn.search("06") > -1){
- model.makeValue("/root/send/cond/detlinfo/tranreptetcyn" , "Y")
- model.makeValue("/root/send/cond/detlinfo/tranreptetccnts" , model.getValue("/root/tmp/cond/tranreptetccnts" ) ) ;
- }
- if(tranreptyn.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/testbarcderryn" , "Y");
- }
-
- var testseffcyn = model.getValue("/root/tmp/cond/testseffcyn");
- if(testseffcyn != ""){
- model.makeValue("/root/send/cond/detlinfo/testseffcyn" , "Y");
- if(testseffcyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/urticayn" , "Y");
- if(testseffcyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/dyspnyn" , "Y");
- if(testseffcyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/lowbpyn" , "Y");
- if(testseffcyn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/vomityn" , "Y");
- if(testseffcyn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/bledyn" , "Y");
- if(testseffcyn.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/cscslowyn" , "Y");
- if(testseffcyn.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/dethyn" , "Y");
- if(testseffcyn.search("08") > -1){
- model.makeValue("/root/send/cond/detlinfo/testseffcetcyn" , "Y")
- model.makeValue("/root/send/cond/detlinfo/testseffcetccntsyn" , model.getValue("/root/tmp/cond/testseffcetccntsyn" ) ) ;
- }
- }
-
- var arbitrationcntsyn = model.getValue("/root/tmp/cond/arbitrationcntsyn");
- if(arbitrationcntsyn != ""){
- model.makeValue("/root/send/cond/detlinfo/arbitrationcntsyn" , "Y");
- if(arbitrationcntsyn.search("01") > -1){
- model.makeValue("/root/send/cond/detlinfo/arbitrationmediyn" , "Y");
- model.makeValue("/root/send/cond/detlinfo/medidrugcd" , model.getValue("/root/tmp/cond/medidrugcd" ));
- }
- if(arbitrationcntsyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/testdiscontinuyn" , "Y");
- if(arbitrationcntsyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/rpttestyn" , "Y");
- if(arbitrationcntsyn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/icuchngroomyn" , "Y");
- if(arbitrationcntsyn.search("05") > -1){
- model.makeValue("/root/send/cond/detlinfo/arbitrationetcyn" , "Y")
- model.makeValue("/root/send/cond/detlinfo/arbitrationetccntsyn" , model.getValue("/root/tmp/cond/arbitrationetccntsyn" ) ) ;
- }
- }
- }
- if(Mdl == "06"){ //임상 기타
- model.makeValue("/root/send/cond/detlinfo/acptno" , model.getValue("/root/tmp/cond/acptno" ) ) ;
- model.makeValue("/root/send/cond/detlinfo/clincetckind" , model.getValue("/root/tmp/cond/clincetckind" ) ) ;
- model.makeValue("/root/send/cond/detlinfo/burngrdecd" , model.getValue("/root/tmp/cond/burngrdecd" ) ) ;
- model.makeValue("/root/send/cond/detlinfo/clincetccnts" , model.getValue("/root/tmp/cond/clincetccnts" ) ) ;
-
- model.makeValue("/root/send/cond/recinfo/detlcnts" , model.getValue("/root/tmp/cond/detlcnts") ); //상세내용 기술
- model.makeValue("/root/send/cond/recinfo/detlcnts_how" , model.getValue("/root/tmp/cond/detlcnts_how") ); //상세내용 기술
- model.makeValue("/root/send/cond/recinfo/detlcnts_why" , model.getValue("/root/tmp/cond/detlcnts_why") ); //상세내용 기술
-
- model.makeValue("/root/send/cond/recinfo/doctorcallyn" , model.getValue("/root/tmp/cond/doctorcallyn") ); //담당의_당직의 호출여부
- model.makeValue("/root/send/cond/recinfo/doctorcalldt" , model.getValue("/root/tmp/cond/doctorcalldt") ); //담당의_당직의 호출시간
- model.makeValue("/root/send/cond/recinfo/mediationyn" , model.getValue("/root/tmp/cond/mediationyn") ); //중재여부
- model.makeValue("/root/send/cond/recinfo/mediationdt" , model.getValue("/root/tmp/cond/mediationdt") ); //중재시간
-
- var burnpart = model.getValue("/root/tmp/cond/burnpart");
- if(burnpart != ""){
- if(burnpart.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/headyn" , "Y");
- if(burnpart.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/faceyn" , "Y");
- if(burnpart.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/neckyn" , "Y");
- if(burnpart.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/armyn" , "Y");
- if(burnpart.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/handyn" , "Y");
- if(burnpart.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/trunkyn" , "Y");
- if(burnpart.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/hipyn" , "Y");
- if(burnpart.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/prnlregyn" , "Y");
- if(burnpart.search("09") > -1) model.makeValue("/root/send/cond/detlinfo/legyn" , "Y");
- if(burnpart.search("10") > -1) model.makeValue("/root/send/cond/detlinfo/footyn" , "Y");
- if(burnpart.search("11") > -1){
- model.makeValue("/root/send/cond/detlinfo/burnpartetcyn" , "Y");
- model.makeValue("/root/send/cond/detlinfo/burnpartetccnts" , model.getValue("/root/tmp/cond/burnpartetccnts" ) ) ;
- }
- model.makeValue("/root/send/cond/detlinfo/burnscop1" , model.getValue("/root/tmp/cond/burnscop1" ) ) ;
- model.makeValue("/root/send/cond/detlinfo/burnscop2" , model.getValue("/root/tmp/cond/burnscop2" ) ) ;
-
- }
- var burncas = model.getValue("/root/tmp/cond/burncas");
- if(burncas != ""){
- if(burncas.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/wateryn" , "Y");
- if(burncas.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/cauteryn" , "Y");
- if(burncas.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/dfibrilyn" , "Y");
- if(burncas.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/chemiyn" , "Y");
- if(burncas.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/fireyn" , "Y");
- if(burncas.search("06") > -1){
- model.makeValue("/root/send/cond/detlinfo/burncasetcyn" , "Y");
- model.makeValue("/root/send/cond/detlinfo/burncasetccnts" , model.getValue("/root/tmp/cond/burncasetccnts" ) ) ;
- }
- }
- var meal = model.getValue("/root/tmp/cond/meal");
- if(meal != ""){
- if(meal.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/mealprcperryn" , "Y");
- if(meal.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/mealomityn" , "Y");
- if(meal.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/difmealyn" , "Y");
- if(meal.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/badmealyn" , "Y");
- if(meal.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/suplmealerryn" , "Y");
- if(meal.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/suplmealdelyyn" , "Y");
- if(meal.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/matrkeepprobyn" , "Y");
- if(meal.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/cookprcsprobyn" , "Y");
- if(meal.search("09") > -1) {
- model.makeValue("/root/send/cond/detlinfo/mealetcyn" , "Y");
- model.makeValue("/root/send/cond/detlinfo/mealetccnts" , model.getValue("/root/tmp/cond/mealetccnts" ) ) ;
- }
- }
- var sucid = model.getValue("/root/tmp/cond/sucid");
- if(sucid != ""){
- if(sucid.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/falldwnyn" , "Y");
- if(sucid.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/hanginyn" , "Y");
- if(sucid.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/selfmulyn" , "Y");
- if(sucid.search("04") > -1){
- model.makeValue("/root/send/cond/detlinfo/sucidetcyn" , "Y");
- model.makeValue("/root/send/cond/detlinfo/sucidetccnts" , model.getValue("/root/tmp/cond/sucidetccnts" ) ) ;
- }
- }
- var arbitrationcntsyn = model.getValue("/root/tmp/cond/arbitrationcntsyn");
- if(arbitrationcntsyn != ""){
- model.makeValue("/root/send/cond/detlinfo/arbitrationcntsyn" , "Y");
- if(arbitrationcntsyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/obsyn" , "Y");
- if(arbitrationcntsyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/drssyn" , "Y");
- if(arbitrationcntsyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/sutryn" , "Y");
- if(arbitrationcntsyn.search("04") > -1) {
- model.makeValue("/root/send/cond/detlinfo/drugcureyn" , "Y");
- model.makeValue("/root/send/cond/detlinfo/arbitrationdrugcd" , model.getValue("/root/tmp/cond/arbitrationdrugcd" ) ) ;
- }
- if(arbitrationcntsyn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/opyn" , "Y");
- if(arbitrationcntsyn.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/repetsuplmealyn" , "Y");
- if(arbitrationcntsyn.search("07") > -1) model.makeValue("/root/send/cond/detlinfo/suplmealdiscontinuyn" , "Y");
- if(arbitrationcntsyn.search("08") > -1) model.makeValue("/root/send/cond/detlinfo/icuchngroomyn" , "Y");
- if(arbitrationcntsyn.search("09") > -1) model.makeValue("/root/send/cond/detlinfo/cureyn" , "Y");
- if(arbitrationcntsyn.search("10") > -1){
- model.makeValue("/root/send/cond/detlinfo/arbitrationetcyn" , "Y");
- model.makeValue("/root/send/cond/detlinfo/arbitrationetccntsyn" , model.getValue("/root/tmp/cond/arbitrationetccntsyn" ) ) ;
- }
- }
- }
- }
- if(Lrg == "02"){ //비임상
- model.makeValue("/root/send/cond/detlinfo/genrplce" , model.getValue("/root/tmp/cond/genrplce" ));
- model.makeValue("/root/send/cond/detlinfo/etcreptcnts" , model.getValue("/root/tmp/cond/etcreptcnts" ));
- model.makeValue("/root/send/cond/detlinfo/tretinstcd" , model.getValue("/root/tmp/cond/tretinstcd" ));
- model.makeValue("/root/send/cond/detlinfo/lossyn" , model.getValue("/root/tmp/cond/lossyn" ));
-
- model.makeValue("/root/send/cond/recinfo/detlcnts" , model.getValue("/root/tmp/cond/detlcnts") ); //상세내용 기술
- model.makeValue("/root/send/cond/recinfo/detlcnts_how" , model.getValue("/root/tmp/cond/detlcnts_how") ); //상세내용 기술
- model.makeValue("/root/send/cond/recinfo/detlcnts_why" , model.getValue("/root/tmp/cond/detlcnts_why") ); //상세내용 기술
-
- if (model.getValue("/root/tmp/cond/losscnt") != ""){
- model.makeValue("/root/send/cond/detlinfo/losscnt" , model.getValue("/root/tmp/cond/losscnt" ));
- }
- model.makeValue("/root/send/cond/detlinfo/locktmcd" , model.getValue("/root/tmp/cond/locktmcd" ));
- model.makeValue("/root/send/cond/detlinfo/locktmetccnts" , model.getValue("/root/tmp/cond/locktmetccnts" ));
- model.makeValue("/root/send/cond/detlinfo/handcaptermcd" , model.getValue("/root/tmp/cond/handcaptermcd" ));
- model.makeValue("/root/send/cond/detlinfo/lossitem" , model.getValue("/root/tmp/cond/lossitem" ));
- model.makeValue("/root/send/cond/detlinfo/tranyn" , model.getValue("/root/tmp/cond/tranyn" ));
- model.makeValue("/root/send/cond/detlinfo/trannotoccrplce" , model.getValue("/root/tmp/cond/trannotoccrplce" ));
- model.makeValue("/root/send/cond/detlinfo/actpsn" , model.getValue("/root/tmp/cond/actpsn" ));
- model.makeValue("/root/send/cond/detlinfo/losspsn" , model.getValue("/root/tmp/cond/losspsn" ));
-
- model.makeValue("/root/send/cond/detlinfo/actpid" , model.getValue("/root/tmp/cond/actpid" ));
- model.makeValue("/root/send/cond/detlinfo/losspid" , model.getValue("/root/tmp/cond/losspid" ));
-
- var chkkind = model.getValue("/root/tmp/cond/chkkind");
- if(chkkind != ""){
- if(chkkind.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/oxydiscontinuyn" , "Y");
- if(chkkind.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/vacumdiscontinuyn" , "Y");
- if(chkkind.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/compryn" , "Y");
- if(chkkind.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/gasdiscontinuyn" , "Y");
- if(chkkind.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/electcdiscontinuyn" , "Y");
- }
-
- var patlossyn = model.getValue("/root/tmp/cond/patlossyn");
- if(patlossyn != ""){
- model.makeValue("/root/send/cond/detlinfo/patlossyn" , "Y");
- if(patlossyn.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/artficrespdiscontinuyn" , "Y");
- if(patlossyn.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/patoxydiscontinuyn" , "Y");
- if(patlossyn.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/anstdiscontinuyn" , "Y");
- if(patlossyn.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/lossnotoccryn" , "Y");
- if(patlossyn.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/lossetcyn" , "Y");
- }
- }
- if(Lrg == "03"){ //감면사례 보고
- model.makeValue("/root/send/cond/detlinfo/insuflagcd" , model.getValue("/root/tmp/cond/insuflagcd" ));
- model.makeValue("/root/send/cond/detlinfo/opdate" , model.getValue("/root/tmp/cond/opdate" ));
- model.makeValue("/root/send/cond/detlinfo/opnm" , model.getValue("/root/tmp/cond/opnm" ));
- model.makeValue("/root/send/cond/detlinfo/civilapldeptcd" , model.getValue("/root/tmp/cond/civilapldeptcd" ));
- model.makeValue("/root/send/cond/detlinfo/pertdr" , model.getValue("/root/tmp/cond/pertdr" ));
- model.makeValue("/root/send/cond/detlinfo/anstdr" , model.getValue("/root/tmp/cond/anstdr" ));
- model.makeValue("/root/send/cond/detlinfo/reldremp" , model.getValue("/root/tmp/cond/reldremp" ));
- model.makeValue("/root/send/cond/detlinfo/detldesccnts" , model.getValue("/root/tmp/cond/detldesccnts" ));
-
-
- var chkcase = model.getValue("/root/tmp/cond/chkcase");
- if(chkcase != ""){
- if(chkcase.search("01") > -1) model.makeValue("/root/send/cond/detlinfo/optestacdyn" , "Y");
- if(chkcase.search("02") > -1) model.makeValue("/root/send/cond/detlinfo/anstacdyn" , "Y");
- if(chkcase.search("03") > -1) model.makeValue("/root/send/cond/detlinfo/ordacdyn" , "Y");
- if(chkcase.search("04") > -1) model.makeValue("/root/send/cond/detlinfo/noncuresatsfctyn" , "Y");
- if(chkcase.search("05") > -1) model.makeValue("/root/send/cond/detlinfo/nondescsatsfctyn" , "Y");
- if(chkcase.search("06") > -1) model.makeValue("/root/send/cond/detlinfo/envacdyn" , "Y");
- if(chkcase.search("07") > -1){
- model.makeValue("/root/send/cond/detlinfo/caseetcyn" , "Y");
- model.makeValue("/root/send/cond/detlinfo/caseetccnts" , model.getValue("/root/tmp/cond/caseetccnts" ));
- }
- }
- }
- }
-
- /**
- * @---------------------------------------------------
- * @desc : report를 작성하기 위한 Instance 생성 function
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function SetRepDetlInfo(){
- // alert("SetRepDetlInfo+");
- if(model.getValue("/root/main/condition/acptno") == ""){
- return;
- }
- model.setValue("/root/send/acptno", model.getValue("/root/main/condition/acptno"));
- submit("TRMQR00102");
-
- var lrg = model.getValue("/root/tmp/reptinfo/recinfo/lrg");
- var mdl = model.getValue("/root/tmp/reptinfo/recinfo/mdl");
-
- model.removenode("/root/send/report/recinfo");
- model.removenode("/root/send/report/detlinfo");
- model.makeNode("/root/send/report/recinfo");
- model.makeNode("/root/send/report/detlinfo");
-
- //2012/07/26 Start
- var grade=model.getValue("/root/main/condition/serdiaggrde");
- if(grade<"4" && checkgrade=="false"){
- model.setValue("/root/tmp/reptinfo/recinfo/reptid", "");
- model.setValue("/root/tmp/reptinfo/recinfo/reptnm", "");
- model.setValue("/root/tmp/reptinfo/recinfo/reptjobkindtext", "");
- model.setValue("/root/tmp/reptinfo/recinfo/reptdutdepttext", "");
- model.setValue("/root/tmp/reptinfo/recinfo/reptcntctel", "");
- model.setValue("/root/tmp/reptinfo/recinfo/reptdutyearno", "");
- }
- //2012/07/26 End
-
- copyNodeType("/root/send/report/recinfo", "/root/tmp/reptinfo/recinfo", "after");
-
- if(lrg == "01") {
- if(mdl == "01"){ //진료 및 치료
-
- copyNodeType("/root/send/report/detlinfo", "/root/tmp/reptinfo/detlinfo", "after");
- exeReportPreview("RPMQR00100", "XMLSTR", "/root/send/report");
- }
- if(mdl == "02"){ // 투약
- copyNodeType("/root/send/report/detlinfo", "/root/tmp/reptinfo/mediinfo", "after");
- exeReportPreview("RPMQR00200", "XMLSTR", "/root/send/report");
- }
- if(mdl == "03"){ // 낙상
- copyNodeType("/root/send/report/detlinfo", "/root/tmp/reptinfo/fallinfo", "after");
- exeReportPreview("RPMQR00300", "XMLSTR", "/root/send/report");
- }
- if(mdl == "04"){ // 수혈
- copyNodeType("/root/send/report/detlinfo", "/root/tmp/reptinfo/tnsinfo", "after");
- exeReportPreview("RPMQR00400", "XMLSTR", "/root/send/report");
- }
- if(mdl == "05"){ // 진단/병리/영상/핵의학 검사
- copyNodeType("/root/send/report/detlinfo", "/root/tmp/reptinfo/diagtestinfo", "after");
- exeReportPreview("RPMQR00500", "XMLSTR", "/root/send/report");
- }
- if(mdl == "06"){ // 기타
- copyNodeType("/root/send/report/detlinfo", "/root/tmp/reptinfo/etcinfo", "after");
- exeReportPreview("RPMQR00600", "XMLSTR", "/root/send/report");
- }
-
- }
- if(lrg == "02") { //비임상
-
- copyNodeType("/root/send/report/detlinfo", "/root/tmp/reptinfo/nonclincinfo", "after");
-
- if(mdl == "01"){ //화재
- exeReportPreview("RPMQR00700", "XMLSTR", "/root/send/report");
- }
- if(mdl == "02"){ //의료가스/의료전기
- exeReportPreview("RPMQR00800", "XMLSTR", "/root/send/report");
- }
- if(mdl == "03"){ //전산장애
- exeReportPreview("RPMQR00900", "XMLSTR", "/root/send/report");
- }
- if(mdl == "04"){ //도난
- exeReportPreview("RPMQR01000", "XMLSTR", "/root/send/report");
- }
- if(mdl == "05"){ //탈원
- exeReportPreview("RPMQR01100", "XMLSTR", "/root/send/report");
- }
- if(mdl == "06"){ //폭력/난동/성폭력
- exeReportPreview("RPMQR01200", "XMLSTR", "/root/send/report");
- }
- if(mdl == "07"){ //기타
- exeReportPreview("RPMQR01300", "XMLSTR", "/root/send/report");
- }
-
- }
- if(lrg == "03") {
- copyNodeType("/root/send/report/detlinfo", "/root/tmp/reptinfo/reductinfo", "replace");
- copyNodeListType("/root/send/report/reductlist", "/root/tmp/reptinfo/reductlist", "replace");
- exeReportPreview("RPMQR01400", "XMLSTR", "/root/send/report");
- }
-
- }
- /**
- * @---------------------------------------------------
- * @desc : 중등도 단계에 따라서 보고자 정보 등록 감추기
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCheckgrade(){
- // alert("fCheckgrade");
- if(checkgrade=="false"){
- model.makeValue("/root/temp/reptid", model.getValue("/root/main/condition/reptid"));
- model.makeValue("/root/temp/reptnm", model.getValue("/root/main/condition/reptnm"));
- model.makeValue("/root/temp/reptjobkindtext", model.getValue("/root/main/condition/reptjobkindtext"));
- model.makeValue("/root/temp/reptdutdepttext", model.getValue("/root/main/condition/reptdutdepttext"));
- model.makeValue("/root/temp/reptcntctel", model.getValue("/root/main/condition/reptcntctel"));
- model.makeValue("/root/temp/reptdutyearno", model.getValue("/root/main/condition/reptdutyearno"));
- model.setValue("/root/main/condition/reptid", "");
- model.setValue("/root/main/condition/reptnm", "");
- model.setValue("/root/main/condition/reptjobkindtext", "");
- model.setValue("/root/main/condition/reptdutdepttext", "");
- model.setValue("/root/main/condition/reptcntctel", "");
- model.setValue("/root/main/condition/reptdutyearno", "");
- }if(checkgrade=="true"){
- model.setValue("/root/main/condition/reptid", model.getValue("/root/temp/reptid"));
- model.setValue("/root/main/condition/reptnm", model.getValue("/root/temp/reptnm"));
- model.setValue("/root/main/condition/reptjobkindtext", model.getValue("/root/temp/reptjobkindtext"));
- model.setValue("/root/main/condition/reptdutdepttext", model.getValue("/root/temp/reptdutdepttext"));
- model.setValue("/root/main/condition/reptcntctel", model.getValue("/root/temp/reptcntctel"));
- model.setValue("/root/main/condition/reptdutyearno", model.getValue("/root/temp/reptdutyearno"));
- }
- model.refresh();
- }
- /**
- * @---------------------------------------------------
- * @desc : 익명보고 버튼 클릭시 이벤트
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fChangeValue(){
- // alert("fChangeValue");
- if(pushbutton=="false"){
- var ans=messageBox("익명 보고로 진행하시겠습니까?", "Q999");
- if(ans=="6"){
- pushbutton="true";
- btn_anony.attribute("class")="btn2_letter6";
- model.setValue("/root/temp/btn_value", "익명보고해제");
- checkgrade="false";
- anonybtn = "Y";
- fCheckgrade();
- }
- }else if(pushbutton=="true"){
- var ans=messageBox("익명 보고를 해제하시겠습니까?", "Q999");
- if(ans=="6"){
- pushbutton="false";
- btn_anony.attribute("class")="btn2_letter4";
- model.setValue("/root/temp/btn_value", "익명보고");
- checkgrade="true";
- anonybtn = "N";
- fCheckgrade();
- }
- }
- model.refresh();
- }
- /**
- * @---------------------------------------------------
- * @desc : 안전사고단계 클릭시 이벤트 ( 익명보고 체크 )
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fChangegrade(){
- // alert("fChangegrade");
-
- if(model.getValue("/root/tmp/reptinfo/recinfo/anonyyn")!="Y" && pushbutton=="false"){
- btn_anony.disabled="false";
- model.makeValue("/root/temp/befserdiaggrde", model.getValue("/root/main/condition/serdiaggrde"));
- }
-
- if(model.getValue("/root/tmp/reptinfo/recinfo/anonyyn")=="Y" && pushbutton=="false"){
- btn_anony.disabled="false";
- }
- }
- /**
- * @desc : 병실리스트 - 병동에 해당하는 병실코드 조회
- * @param : wardcd - 병동코드
- * @return : void
- * @authur : 오지훈 2007. 6. 14
- */
- function reqGetRoomList(wardcd){
- // alert("reqGetRoomList");
- model.removeNodeset("/root/send/reqdata/wardcd");
- model.makeValue("/root/send/reqdata/wardcd", wardcd);
- submit("TRMMO04107");
- }
- function reqGetAccidentStepList(){
- // alert("reqGetAccidentStepList");
- submit("TRMQR00104");
- }
|