1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>병동간호정보조사</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <wardrecinfo>
- <bfrecddtm/>
- <bfrecdd/>
- <bfrectm/>
- <bfrecuser/>
- <recdd/>
- <rectm/>
- <recuser/>
- <patinfo/>
- <infooffer/>
- <signno/>
- <room/>
- <patnm/>
- <sex/>
- <age/>
- <pid/>
- <fstrgstrnm/>
- <fstrgstdt/>
- </wardrecinfo>
- </main>
- <send>
- <req/>
- <patgnrlinfo/>
- <wardrecinfo/>
- <bodyases/>
- </send>
- <init>
- <mlist>
- <M0068>
- <cdid/>
- <cdnm/>
- </M0068>
- <M0069>
- <cdid/>
- <cdnm/>
- </M0069>
- <M0070>
- <cdid/>
- <cdnm/>
- </M0070>
- <M0072>
- <cdid/>
- <cdnm/>
- </M0072>
- <M0073>
- <cdid/>
- <cdnm/>
- </M0073>
- <M0074>
- <cdid/>
- <cdnm/>
- </M0074>
- <M0634>
- <cdid/>
- <cdnm/>
- </M0634>
- </mlist>
- <cond>
- <unitflag>ward</unitflag>
- </cond>
- </init>
- <hidden>
- <paminfo/>
- <histinfo/>
- <wardrecinfo/>
- <bodyases>
- <mfmdstatinfo/>
- <shpaininfo/>
- <resorgninfo/>
- <digorgninfo/>
- <nvesysinfo/>
- <info/>
- </bodyases>
- <errecinfo/>
- <rsltinfo/>
- </hidden>
- <codeinfo/>
- <signinfo>
- <signno/>
- </signinfo>
- <code>
- <codeinfo/>
- </code>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- //debugger;
- fGetCmbList();
- fInit();
- if(fGetInitRecInfo()) {
-
-
- fGetIndtInfo(); //현재수진이력의 입원시간을 가져온다
-
- fInitEvent("init");
-
- model.refresh();
-
- //---------(20101029) 경북대
- if (fEssentialBackColor != "") {
- //간호정보조사지 필수입력사항 backcolor 지정
- ipt_infooffer.attribute("background-color") = fEssentialBackColor;
- // 일반정보 필수입력사항 backcolor 지정-> 각자 화면에서 ready시 호출함
- //import1.window.javaScript.fessential();
- // 신체사정 필수입력사항 backcolor 지정-> 각자 화면에서 ready시 호출함
- //import4.window.javaScript.fessential();
- // 교육요구 필수입력사항 backcolor 지정
- if (model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid") =="Y") {
- ivw_edurec.window.javaScript.fessential();
- }
- }
- //---------(20101029) 경북대
-
- //20110308 이선경 (경북대) 신체사정에 쓰일 구분자추가
- model.makeValue("/root/init/cond/unitflag", "ward");
- } else {
- window.close();
- }
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var allgInsYN = "Y";
- var NoneInspCode = "-1"; //측정불가코드값
-
- //현재수진이력의 입원시간을 가져온다
- function fGetIndtInfo() {
- var indd = model.getValue("/root/temp/cond/list/indd");
- var recpkspec = (model.getValue("/root/main/wardrecinfo/bfrecddtm")).split("|"); //이전기록일시
- var bfrecindd = recpkspec[1]; //이전기록일시 입원일자
-
- if(indd != bfrecindd) {
- ipt_indt.value = model.getValue("/root/temp/cond/list/careinrmtm"); //입원시간
- }
- }
-
- function fGetCmbList() {
- //성가병원 기관코드 조회_20090626_SMY
- model.removeNodeset("/root/init/mlist");
- model.makeNode("/root/init/mlist");
- fGetNursHardCdInfo("'077','172','177','U31','W25'", getCurrentDate()); //CareCom.js
- zbcfGetCodeList( new Array ( "M0068" //직업
- ,"M0069" //교육정도
- ,"M0070" //종교
- ,"M0151" //결혼상태
- ,"M0072" //관계
- ,"M0073" //부위
- ,"M0376" //혈액형
- ,"M0075" //의식상태
- ,"M0088" //생존여부
- ,"M0090" //알러지
- ,"M0098" //동반자
- ,"M0100" //지남력
- ,"M0102" //요흔
- ,"M0103" //부착기구
- ,"M0104" //소변색깔
- ,"M0105" //소변증상
- ,"M0106" //대변색깔
- ,"M0107" //대변종류
- ,"M0109" //동공빛반사여부
- ,"M0110" //동공수치
- ,"M0411" //영적요구
- ,"M0210" //입원방법
- ,"M0418" //입원경로
- ,"M0375" //체온부위
- ,"M0368" //가족병력내역
- ,"M0532" //과거병력내역_20090406_SMY추가
- ,"M0634" //통증사정내역
- )
- , new Array ( "/root/init/mlist" //직업
- ,"/root/init/mlist" //교육정도
- ,"/root/init/mlist" //종교
- ,"/root/init/mlist" //결혼상태
- ,"/root/init/mlist" //관계
- ,"/root/init/mlist" //부위
- ,"/root/init/mlist" //혈액형
- ,"/root/init/mlist" //의식상태
- ,"/root/init/mlist" //생존여부
- ,"/root/init/mlist" //알러지
- ,"/root/init/mlist" //동반자
- ,"/root/init/mlist" //지남력
- ,"/root/init/mlist" //요흔
- ,"/root/init/mlist" //부착기구
- ,"/root/init/mlist" //소변색깔
- ,"/root/init/mlist" //소변증상
- ,"/root/init/mlist" //대변색깔
- ,"/root/init/mlist" //대변종류
- ,"/root/init/mlist" //동공빛반사여부
- ,"/root/init/mlist" //동공수치
- ,"/root/init/mlist" //영적요구
- ,"/root/init/mlist" //입원방법
- ,"/root/init/mlist" //입원경로
- ,"/root/init/mlist" //체온부위
- ,"/root/init/mlist" //가족병력내역
- ,"/root/init/mlist" //과거병력내역
- ,"/root/init/mlist" //통증사정내역
- )
- );
-
- model.refresh();
- }
-
- function fInitEvent(pFlag) {
- fInitEventGnrlInfo();
- fInitEventBodyAses(pFlag);
- }
-
- //화면 로딩시
- function fInit(){
- //원목에서 화면 사용할 경우 인증저장 버튼 비활성화
- if(getScreenMenuParameter() == "4050400000" || opener.javascript.getParameter("deptcd") == "4050400000"){ //원목 메뉴파라미터
- btn_signsave.disabled = true;
- }else{
- btn_signsave.disabled = false;
- }
-
- model.copyNode("/root/hidden/histinfo", "/root/main/histinfo");
- model.copyNode("/root/hidden/wardrecinfo", "/root/main/wardrecinfo");
-
- //alert(instance1.selectNodesXml("/root/main/histinfo"));
- //alert(instance1.selectNodesXml("/root/main/wardrecinfo"));
-
- // var node_1 = instance1.selectNodesXml("/root/main/histinfo");
- // var node_2 = instance1.selectNodesXml("/root/main/wardrecinfo")
-
- model.makeValue("/root/hidden/histinfo/pasthistinfo/pasthist/pasthistinclyn", "1"); // 과거병력 해당없음
- model.makeValue("/root/hidden/histinfo/famyhistinfo/famyhist/famyhistinclyn", "1"); // 가족병력 해당없음
- model.makeValue("/root/hidden/histinfo/inhistinfo/inhist/inhistinclyn", "1"); // 입원이력 해당없음
- model.makeValue("/root/hidden/histinfo/ophistinfo/ophist/ophistinclyn", "1"); // 수술이력 해당없음
- //model.makeValue("/root/hidden/wardrecinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn", "1"); // 최근투약상태 해당없음
- model.makeValue("/root/hidden/histinfo/allghistinfo/allghist/allghistinclyn", "1"); // 알러지 -> 무 체크
- model.makeValue("/root/hidden/histinfo/vacnhistinfo/vacnhist/vacnhistinfoinclyn", "1"); // 신생아정보외부(예방접종이력 해당없음)
- model.makeValue("/root/hidden/histinfo/smokinfo/smok/smokinclyn", "1"); // SMMNW08800_병력(흡연정보) 해당없음
- model.makeValue("/root/hidden/histinfo/drunkinfo/drunk/drunkinclyn", "1"); // SMMNW08800_병력(음주정보) 해당없음
- model.makeValue("/root/hidden/histinfo/gustofoodinfo/gustofood/gustofoodinclyn", "1"); // SMMNW08800_병력(기호식품) 해당없음
- model.makeValue("/root/hidden/histinfo/tnsseffcinfo/tnsseffc/tnsseffcinclyn", "1"); // SMMNW08800_병력(수혈부작용) 해당없음
-
- model.copyNode("/root/hidden/bodyases/mfmdstatinfo", "/root/main/wardrecinfo/mfmdstatinfo"); // 신체사정 - 기형상태
- model.makeValue("/root/hidden/bodyases/mfmdstatinfo/mfmdstat/mfmdstatinfoinclyn", "1"); // 신체사정 - 기형상태 해당없음
- model.copyNode("/root/hidden/bodyases/shpaininfo", "/root/main/wardrecinfo/shpaininfo"); // 신체사정 - 통증
- model.makeValue("/root/hidden/bodyases/shpaininfo/shpain/shpaininfoinclyn", "1"); // 신체사정 - 통증(무)
- model.copyNode("/root/hidden/bodyases/resorgninfo", "/root/main/wardrecinfo/resorgninfo"); // 신체사정 - 호흡기계
- model.makeValue("/root/hidden/bodyases/resorgninfo/resorgn/resorgninfoinclyn", "1"); // 신체사정 - 호흡기계 해당없음
- model.copyNode("/root/hidden/bodyases/digorgninfo", "/root/main/wardrecinfo/digorgninfo"); // 신체사정 - 소화기계
- model.makeValue("/root/hidden/bodyases/digorgninfo/digorgn/digorgninfoinclyn", "1"); // 신체사정 - 소화기계 해당없음
- model.copyNode("/root/hidden/bodyases/nvesysinfo", "/root/main/wardrecinfo/nvesysinfo"); // 신체사정 - 신경계
- model.makeValue("/root/hidden/bodyases/nvesysinfo/nvesys/nvesysinfoinclyn", "1"); // 신체사정 - 신경계 해당없음
- model.makeNode("/root/hidden/bodyases/skinsectinfo");
- model.copyNode("/root/hidden/bodyases/skinsectinfo", "/root/main/wardrecinfo/skinsectinfo"); // 신체사정 - 피부계
- model.makeValue("/root/hidden/bodyases/skinsectinfo/skinsect/skincolorinfoinclyn", "1"); // 신체사정 - 피부계 - 피부색 - 해당없음
- model.makeValue("/root/hidden/bodyases/skinsectinfo/skinsect/skinstatinfoinclyn", "1"); // 신체사정 - 피부계 - 피부상태 - 해당없음
-
- model.makeNode("/root/temp/cond/list");
- getPatientInfoDetails("/root/temp/cond/list"); // 환자정보 호출
-
- //각 화면 상단에 선택된 환자 정보 display 필요함. (병실-성명-S/A-등록번호)
- var pid;
- var room;
- var patnm;
- var sex;
- var age;
- var instcd;
- var orddeptcd;
- var indd;
- room = model.getValue("/root/temp/cond/list/roomcd");
- patnm = model.getValue("/root/temp/cond/list/hngnm2");
- sex = model.getValue("/root/temp/cond/list/sex");
- age = model.getValue("/root/temp/cond/list/age");
- pid = model.getValue("/root/temp/cond/list/pid");
- indd = model.getValue("/root/temp/cond/list/indd");
- instcd = model.getValue("/root/temp/cond/list/instcd");
- orddeptcd = model.getValue("/root/temp/cond/list/orddeptcd");
-
- cretno = model.getValue("/root/temp/cond/list/cretno");
- ioflag = model.getValue("/root/temp/cond/list/ioflag");
-
- /*
- model.setValue("/root/main/wardrecinfo/room", room);
- model.setValue("/root/main/wardrecinfo/patnm", patnm);
- model.setValue("/root/main/wardrecinfo/sex", sex);
- model.setValue("/root/main/wardrecinfo/age", age);
- model.setValue("/root/main/wardrecinfo/pid", pid);
- */
- model.makeValue("/root/main/wardrecinfo/room", room);
- model.makeValue("/root/main/wardrecinfo/patnm", patnm);
- model.makeValue("/root/main/wardrecinfo/sex", sex);
- model.makeValue("/root/main/wardrecinfo/age", age);
- model.makeValue("/root/main/wardrecinfo/pid", pid);
-
- var scrnid =getScreenID();
- var param = "pid▦orddd▦cretno▦ordtype▦scrnid"
- +"▩" + pid+"▦" +indd+"▦"+cretno+"▦"+ioflag+"▦"+scrnid+"▩";
- fEnrCareComRecInfo_SPMNZ002(param, "/root/main/enrcarecomrecinfo"); //타 간호정보조사지기록 유무확인
- model.refresh();
- }
-
- //간호정보조사지 조회
- function fGetInitRecInfo() {
- /*
- model.copyNode("/root/hidden/histinfo", "/root/main/histinfo");
-
- model.setValue("/root/hidden/histinfo/pasthistinfo/pasthist/pasthistinclyn", "1");
- model.setValue("/root/hidden/histinfo/famyhistinfo/famyhist/famyhistinclyn", "1");
- model.setValue("/root/hidden/histinfo/inhistinfo/inhist/inhistinclyn", "1");
- model.setValue("/root/hidden/histinfo/ophistinfo/ophist/ophistinclyn", "1");
- model.setValue("/root/hidden/histinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn", "1");
- model.setValue("/root/hidden/histinfo/allghistinfo/allghist/allghistinclyn", "1");
- model.setValue("/root/hidden/histinfo/vacnhistinfo/vacnhist/vacnhistinfoinclyn", "1");
- model.setValue("/root/hidden/histinfo/smokinfo/smok/smokinclyn", "1");
- model.setValue("/root/hidden/histinfo/drunkinfo/drunk/drunkinclyn", "1");
- model.setValue("/root/hidden/histinfo/gustofoodinfo/gustofood/gustofoodinclyn", "1");
- model.setValue("/root/hidden/histinfo/tnsseffcinfo/tnsseffc/tnsseffcinclyn", "1");
-
- model.copyNode("/root/hidden/bodyases/mfmdstatinfo", "/root/main/wardrecinfo/mfmdstatinfo");
- model.setValue("/root/hidden/bodyases/mfmdstatinfo/mfmdstat/mfmdstatinfoinclyn", "1");
- model.copyNode("/root/hidden/bodyases/shpaininfo", "/root/main/wardrecinfo/shpaininfo");
- model.setValue("/root/hidden/bodyases/shpaininfo/shpain/shpaininfoinclyn", "1");
- model.copyNode("/root/hidden/bodyases/resorgninfo", "/root/main/wardrecinfo/resorgninfo");
- model.setValue("/root/hidden/bodyases/resorgninfo/resorgn/resorgninfoinclyn", "1");
- model.copyNode("/root/hidden/bodyases/digorgninfo", "/root/main/wardrecinfo/digorgninfo");
- model.setValue("/root/hidden/bodyases/digorgninfo/digorgn/digorgninfoinclyn", "1");
- model.copyNode("/root/hidden/bodyases/nvesysinfo", "/root/main/wardrecinfo/nvesysinfo");
- model.setValue("/root/hidden/bodyases/nvesysinfo/nvesys/nvesysinfoinclyn", "1");
- model.makeNode("/root/hidden/bodyases/skinsectinfo");
- model.copyNode("/root/hidden/bodyases/skinsectinfo", "/root/main/wardrecinfo/skinsectinfo");
- model.setValue("/root/hidden/bodyases/skinsectinfo/skinsect/skincolorinfoinclyn", "1");
- model.setValue("/root/hidden/bodyases/skinsectinfo/skinsect/skinstatinfoinclyn", "1");
-
- //model.removeNodeset("/root/main/famyfact");
-
- model.makeNode("/root/temp/cond/list");
- getPatientInfoDetails("/root/temp/cond/list");
-
- //각 화면 상단에 선택된 환자 정보 display 필요함. (병실-성명-S/A-등록번호)
- var pid;
- var room;
- var patnm;
- var sex;
- var age;
- var instcd;
- var orddeptcd;
- var indd;
-
- room = model.getValue("/root/temp/cond/list/roomcd");
- patnm = model.getValue("/root/temp/cond/list/hngnm");
- sex = model.getValue("/root/temp/cond/list/sex");
- age = model.getValue("/root/temp/cond/list/age");
- pid = model.getValue("/root/temp/cond/list/pid");
- indd = model.getValue("/root/temp/cond/list/indd");
- instcd = model.getValue("/root/temp/cond/list/instcd");
- orddeptcd = model.getValue("/root/temp/cond/list/orddeptcd");
-
-
- model.setValue("/root/main/wardrecinfo/room", room);
- model.setValue("/root/main/wardrecinfo/patnm", patnm);
- model.setValue("/root/main/wardrecinfo/sex", sex);
- model.setValue("/root/main/wardrecinfo/age", age);
- model.setValue("/root/main/wardrecinfo/pid", pid);
-
- //웹용 인자값 셋팅
- model.makeValue("/root/send/req/pid", pid);
- model.makeValue("/root/send/req/indd", indd);
- model.makeValue("/root/send/req/instcd", instcd);
- model.makeValue("/root/send/req/recflag", "01");
- model.makeValue("/root/send/req/docucode", "0000002435");
- model.makeValue("/root/send/req/deptcd", orddeptcd);
-
- */
-
- var pid = model.getValue("/root/temp/cond/list/pid");
- var indd = model.getValue("/root/temp/cond/list/indd");
- var cretno = model.getValue("/root/temp/cond/list/cretno");
-
- var instcd = model.getValue("/root/temp/cond/list/instcd");
- var orddeptcd = model.getValue("/root/temp/cond/list/orddeptcd");
-
- var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
-
-
- var deptcd = model.getValue("/root/temp/cond/list/wardcd");
- var userdept = getUserInfo("dutplcecd");
- var spiritdept = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='U31']/cdid");
- var jobkindcd = getUserInfo("jobkindcd");
-
- if(jobkindcd != "0330") {
- if(deptcd == spiritdept) {
- if(userdept != spiritdept) {
- messageBox("환자 개인정보 보호를 위해 해당병동 사용자외엔 조회를 제한합니다", "E");
- return false;
- }
- }
- }
-
- //웹용 인자값 셋팅
- model.makeValue("/root/send/req/pid", pid);
- model.makeValue("/root/send/req/indd", indd);
- model.makeValue("/root/send/req/instcd", instcd);
- model.makeValue("/root/send/req/recflag", "01");
- model.makeValue("/root/send/req/docucode", "0000002435");
- model.makeValue("/root/send/req/deptcd", orddeptcd);
-
- if(pid == "") {
- messageBox("환자를 선택하지 ", "E007");
- window.close();
- return;
- } else {
- if(instUseYN == "Y"){ // 교육요구도사정을 사용한다면...
- btn_edurec.visible = true;
- btn_SPMMO14900.visible = true; // 최근투약상태 - 처방조회버튼 활성화
- grp_patinfo.attribute("style")="left:310px; top:50px; width:640px; height:20px;" ;
-
- setParameter("SPMRJ00300_pid", pid);
- setParameter("SPMRJ00300_orddd", indd);
- setParameter("SPMRJ00300_cretno", cretno);
- ivw_edurec.src = "../../../emr/jcimngtweb/xrw/SPMRJ00300_교육요구도사정.xrw";
-
- }else{
- grp_patinfo.attribute("style")="left:210px; top:50px; width:640px; height:20px;" ;
- btn_edurec.visible = false;
- btn_SPMMO14900.visible = false;
- }
- submit("TRMNW03101", "false"); //저장후 삭제(K), 신규(I), 수정(U)
-
- var exeflag = model.getValue("/root/hidden/paminfo/paminfo/exeflag");
-
- if(exeflag == 'U' ) {
- submit("TRMNW03102", false);
-
- //인증번호set_20090722_SMY
- model.setValue("/root/signinfo/signno", model.getValue("/root/main/wardrecinfo/signno"));
-
- var existfamyinfo = model.getValue("/root/main/wardrecinfo/existfamyinfo"); // 가계도 정보 존재 여부
- setParameter("SPMMR04711_shape", fGetXmlToStr("/root/main/wardrecinfo/genogrmnm/XMD"));
-
- //마지막 기록일시 셋팅
- model.makeValue("/root/main/wardrecinfo/bfrecddtm", model.getValue("/root/hidden/paminfo/recinfo[recflag = '01' and indd = '" + indd + "']/recpkspec"));
- model.makeValue("/root/main/wardrecinfo/bfrecuser", model.getValue("/root/hidden/paminfo/recinfo[recflag = '01' and indd = '" + indd + "']/bfrecuser"));
-
- //입원일자 셋팅(응급실 경유 환자인 경우 입실체크가 되는 시점(즉 응급실 퇴실시점)의 일자가 병동 입원일자로 조회됨)_20090303_SMY
- model.setValue("/root/main/wardrecinfo/indd", model.getValue("/root/temp/cond/list/careinrmdd"));
- model.refresh();
- //model.copyNode("/root/main/wardrecinfo/famyfact", "/root/main/famyfact");
- //model.copyNode("/root/main/wardrecinfo/histinfo", "/root/main/histinfo");
-
- } else {
- //이전 기록이 있을 경우 가장 최근의 정보 자동 셋팅
- if(model.getValue("/root/hidden/paminfo/recinfo/recpkspec") != ""){
- model.setValue("/root/main/wardrecinfo/bfrecddtm", model.getValue("/root/hidden/paminfo/recinfo/recpkspec"));
- fChgRecHistInfo();
- }else{
- submit("TRMNW03104"); // 예전 기록이 없는 경우
-
- var exist = model.getValue("/root/hidden/cominfo/histinfo/existyn"); // 병력, 이력 등의 정보 존재 여부
-
- var existfamyinfo = model.getValue("/root/hidden/cominfo/famyinfo/existfamyinfo"); // 가족력 존재 여부
- setParameter("SPMMR04711_shape", fGetXmlToStr("/root/hidden/cominfo/famyinfo/genogrmnm/XMD"));
-
- //가족사항 연동부분
- model.removeNodeset("/root/main/famyfact");
- if(getNodesetCount("/root/hidden/cominfo/famyfact") > 0){
- //model.copyNode("/root/main/famyfact", "/root/hidden/cominfo/famyfact");
- for(var i=1; i <= getNodesetCount("/root/hidden/cominfo/famyfact"); i++) {
- if(model.getValue("/root/hidden/cominfo/famyfact["+ i +"]/rela") != ""){
- model.duplicate("/root/main", "/root/hidden/cominfo/famyfact["+ i +"]");
- }
- }
- }
-
- if(exist == "N") {
- model.copyNode("/root/main/histinfo", "/root/hidden/histinfo");
- model.setValue("/root/main/histinfo/pasthistinfo/pasthist/pasthistinclyn", "");
- model.setValue("/root/main/histinfo/famyhistinfo/famyhist/famyhistinclyn", "");
- model.setValue("/root/main/histinfo/inhistinfo/inhist/inhistinclyn", "");
- model.setValue("/root/main/histinfo/ophistinfo/ophist/ophistinclyn", "");
- model.setValue("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn", "");
- model.setValue("/root/main/histinfo/allghistinfo/allghist/allghistinclyn", "");
- model.setValue("/root/main/histinfo/vacnhistinfo/vacnhist/vacnhistinfoinclyn", "");
- model.setValue("/root/main/histinfo/smokinfo/smok/smokinclyn", "");
- model.setValue("/root/main/histinfo/drunkinfo/drunk/drunkinclyn", "");
- model.setValue("/root/main/histinfo/gustofoodinfo/gustofood/gustofoodinclyn", "");
- model.setValue("/root/main/histinfo/tnsseffcinfo/tnsseffc/tnsseffcinclyn", "");
- } else {
- model.copyNode("/root/main/histinfo", "/root/hidden/cominfo/histinfo");
- }
-
- //var recDD = getCurrentDate();
- //var recDT = getCurrentTime();
- //var recUser = getUserName();
-
- //model.setValue("/root/main/wardrecinfo/bfrecdd", recDD);
- //model.setValue("/root/main/wardrecinfo/bfrecdt", recDT);
- //model.setValue("/root/main/wardrecinfo/bfrecuser", recUser);
- //model.setValue("/root/main/wardrecinfo/recdd", recDD);
- //model.setValue("/root/main/wardrecinfo/recdt", recDT);
- //model.setValue("/root/main/wardrecinfo/recuser", recUser);
-
- model.setValue("/root/main/wardrecinfo/religncd", model.getValue("/root/hidden/paminfo/paminfo/religncd"));
- model.setValue("/root/main/wardrecinfo/baptnm", model.getValue("/root/hidden/paminfo/paminfo/baptnm"));
- model.setValue("/root/main/wardrecinfo/tel", model.getValue("/root/hidden/paminfo/paminfo/tel"));
- model.setValue("/root/main/wardrecinfo/mphone", model.getValue("/root/hidden/paminfo/paminfo/mphone"));
- model.setValue("/root/main/wardrecinfo/etcphone1", model.getValue("/root/hidden/paminfo/paminfo/etcphone1"));
- model.setValue("/root/main/wardrecinfo/etcphone2", model.getValue("/root/hidden/paminfo/paminfo/etcphone2"));
- model.setValue("/root/main/wardrecinfo/nationalityflag", model.getValue("/root/hidden/paminfo/paminfo/nationalityflag")); // 15.03.23 - AYS 추가(국적 추가)
- //입원일자 셋팅(응급실 경유 환자인 경우 입실체크가 되는 시점(즉 응급실 퇴실시점)의 일자가 병동 입원일자로 조회됨)_20090303_SMY
- model.setValue("/root/main/wardrecinfo/indd", model.getValue("/root/temp/cond/list/careinrmdd"));
-
- //model.setValue("/root/main/wardrecinfo/indd", indd);
-
- //기록일시 정보를 쿼리에서 가져옴
- model.setValue("/root/main/wardrecinfo/recdd", model.getValue("/root/hidden/paminfo/paminfo/recdd"));
- model.setValue("/root/main/wardrecinfo/rectm", model.getValue("/root/hidden/paminfo/paminfo/rectm"));
- model.setValue("/root/main/wardrecinfo/recuser", model.getValue("/root/hidden/paminfo/paminfo/recuser"));
-
- model.refresh();
- }
- }
-
- fMNWCareComFstdtSet( "01", "SRCH" );//recflag : 간호정보조사 플래그 CareCom.js 간호정보조사 최초기록일시 및 사용자 세팅
-
- fNotExistsNodeCreate();
-
- //가계도 연동부분.
- if(existfamyinfo == "Y") {
- model.setValue("/root/main/wardrecinfo/famytree/existyn", "Y");
- opt_existyn.refresh();
- }
-
- }
- //status = "select";
-
- if(grd_allghist.rows > 1) {
- for(var i = 0; i < grd_allghist.cols; i++) {
- if(grd_allghist.valueMatrix(1, i) != "") {
- allgInsYN = "N";
- }
- }
- }
-
- // 입원동기와 병에 대한 인식 - 입원동기 자의 타의 선택
- if(model.getValue("/root/main/wardrecinfo/inmotiveinfo/inmotive/inmotive1") == ""){
- model.setValue("/root/main/wardrecinfo/inmotiveinfo/inmotive/inmotive1", "Y");
- }
-
- // 입원동기와 병에 대한 인식 - 병에대한 인식 유무 선택
- if(model.getValue("/root/main/wardrecinfo/inmotiveinfo/inmotive/illnessflag") == ""){
- model.setValue("/root/main/wardrecinfo/inmotiveinfo/inmotive/illnessflag", "Y");
- }
- // 기호정보 - 음주정보 유무 선택
- if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/drunkinfo/drunkinfoyn") == ""){
- model.setValue("/root/main/wardrecinfo/gustoinfo/gusto/drunkinfo/drunkinfoyn", "1");
- }
-
- // if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/gustofoodinfo/gustofoodyn") == ""){
- // model.setValue("/root/main/wardrecinfo/gustoinfo/gusto/gustofoodinfo/gustofoodyn", "1");
- // }
-
- // if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn") == ""){
- // model.setValue("/root/main/wardrecinfo/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn", "1");
- // }
- // 여성정보 - 폐경여부 체크 (15.04.01 주석처리)
- // if(model.getValue("/root/main/wardrecinfo/mensinfo/mens/endmensyn") == ""){
- // model.setValue("/root/main/wardrecinfo/mensinfo/mens/endmensyn", "1");
- // //model.makeValue("/root/main/wardrecinfo/mensinfo/mens/endmensyn", "1");
- // }
-
- model.refresh();
- return true;
- }
- //노드 추가에 따른 존재하지 않는 노드생성
- function fNotExistsNodeCreate(){
- //var bdwtchngtermflag= instance1.selectSingleNode("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngtermflag"); // 15.03.23 - AYS 삭제
- //var constipt= instance1.selectSingleNode("/root/main/wardrecinfo/stoolinfo/stool/stoolconstipation");
- //var incdecflag= instance1.selectSingleNode(rdo_incdecflag.attribute("ref"));
- //var shpaininfoflag= instance1.selectSingleNode(cmb_shpaininfoflag.attribute("ref"));
-
- // 15.03.17 추가 - AYS
- var nationalityflag= instance1.selectSingleNode(rdo_nationalityflag.attribute("ref")); // 국적선택
- var nationalitynm= instance1.selectSingleNode(ipt_nationalitynm.attribute("ref")); // 국적 입력
- var socialwelfareflag= instance1.selectSingleNode(rdo_socialwelfare.attribute("ref")); // 사회복지선택 입력
- var famychildren = instance1.selectSingleNode(ipt_famychildren.attribute("ref")); // 가족사항(자녀)
- var famybrother = instance1.selectSingleNode(ipt_famybrother.attribute("ref")); // 가족사항(형제)
- var famyparent = instance1.selectSingleNode(chk_famyparent.attribute("ref")); // 가족사항(부모)
- var famyspouse = instance1.selectSingleNode(rdo_famyspouse.attribute("ref")); // 가족사항(배우자)
- var dysphagiayn = instance1.selectSingleNode(rdo_dysphagiayn.attribute("ref")); // 신체사정 - 일반정보 - 연하곤란 유무
- var stoolstatflag = instance1.selectSingleNode(rdo_stoolstatflag.attribute("ref")); // 신체사정 - 대변 - 대변양상
- var stoolstatkind = instance1.selectSingleNode(cmb_stoolstatkind.attribute("ref")); // 신체사정 - 대변 - 비정상 선택시 콤보박스
- var stoolstatetc = instance1.selectSingleNode(ipt_stoolstatetc.attribute("ref")); // 신체사정 - 대변 - 비정상 선택시 기타
- var tnsseffcyn = instance1.selectSingleNode(rdo_tnsseffcyn.attribute("ref")); // 일반정보 - 알러지 - 수혈부작용(유무)
- var tnsseffcdetl = instance1.selectSingleNode(ipt_tnsseffc.attribute("ref")); // 일반정보 - 알러지 - 수혈부작용(입력)
- var endmensyn = instance1.selectSingleNode(rdo_endmensyn.attribute("ref")); // 신체정보 - 여성정보 - 폐경여무 유무
- var closmensage = instance1.selectSingleNode(ipt_closmensage.attribute("ref")); // 신체정보 - 여성정보 - 폐경나이 입력
- var lastmensdd = instance1.selectSingleNode(ipt_lastmensdd.attribute("ref")); // 신체정보 - 여성정보 - 최종월경일
- var prgbthhisg = instance1.selectSingleNode(ipt_prgbthhisg.attribute("ref")); // 신체정보 - 여성정보 - 임신출산력(G)
- var prgbthhisp = instance1.selectSingleNode(ipt_prgbthhisp.attribute("ref")); // 신체정보 - 여성정보 - 임신출산력(P)
- var prgbthhisa = instance1.selectSingleNode(ipt_prgbthhisa.attribute("ref")); // 신체정보 - 여성정보 - 임신출산력(A)
- var prgbthhissa = instance1.selectSingleNode(ipt_prgbthhissa.attribute("ref")); // 신체정보 - 여성정보 - 임신출산력(SA)
- var prgbthhisaa = instance1.selectSingleNode(ipt_prgbthhisaa.attribute("ref")); // 신체정보 - 여성정보 - 임신출산력(AA)
- var prgbthhisl = instance1.selectSingleNode(ipt_prgbthhisl.attribute("ref")); // 신체정보 - 여성정보 - 임신출산력(L)
- var mensaddinfoyn = instance1.selectSingleNode(chk_mensaddinfoyn.attribute("ref")); // 신체정보 - 여성정보 - 여성정보 추가사정
- var urinestat = instance1.selectSingleNode(rdo_urinestat.attribute("ref")); // 신체정보 - 비뇨기계 - 소변상태
- var allgyn = instance1.selectSingleNode(rdo_allgyn.attribute("ref")); // 일반정보 - 알러지
-
- // if ( bdwtchngtermflag == null ) { // 15.03.23 - AYS 삭제
- // model.makeValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngtermflag","");
- // }
- // if ( rdo_incdecflag != null){
- // if ( incdecflag == null ) {
- // model.makeNode(rdo_incdecflag.attribute("ref"));
- // }
- // }
- // if ( constipt == null ) {
- // model.makeValue("/root/main/wardrecinfo/stoolinfo/stool/stoolconstipation","");
- // }
- // 15.04.10 - 간호초기평가 2차 수정요청
- // if(shpaininfoflag == null) {
- // model.makeValue(cmb_shpaininfoflag.attribute("ref"), "");
- // }
-
- // if(model.getValue(rdo_shpaininfoinclyn.attribute("ref")) == "1") {
- // cmb_shpaininfoflag.disabled = false;
- // } else {
- // cmb_shpaininfoflag.disabled = true;
- // }
-
- // 15.03.27 추가 - AYS
- // 국적(내국인/외국인) 선택 추가
- if(nationalityflag == null) {
- model.makeValue(rdo_nationalityflag.attribute("ref"), "");
- }
-
- // 국적 입력 추가
- if(nationalitynm == null) {
- model.makeValue(ipt_nationalitynm.attribute("ref"), "");
- }
-
- // 사회복지상담 추가
- if(socialwelfareflag == null) {
- model.makeValue(rdo_socialwelfare.attribute("ref"), "");
- }
-
- // 가족사항(자녀) 추가
- if(famychildren == null) {
- model.makeValue(ipt_famychildren.attribute("ref"), "");
- }
-
- // 가족사항(형제) 추가
- if(famybrother == null) {
- model.makeValue(ipt_famybrother.attribute("ref"), "");
- }
-
- // 가족사항(부모) 추가
- if(famyparent == null) {
- model.makeValue(chk_famyparent.attribute("ref"), "");
- }
-
- // 가족사항(배우자) 추가
- if(famyspouse == null) {
- model.makeValue(rdo_famyspouse.attribute("ref"), "");
- }
-
- // 신체사정 - 일반정보 - 연하곤란 유무
- if(dysphagiayn == null) {
- model.makeValue(rdo_dysphagiayn.attribute("ref"), "");
- }
-
- // 신체사정 - 대변 - 대변양상
- if(stoolstatflag == null) {
- model.makeValue(rdo_stoolstatflag.attribute("ref"), "");
- }
-
- // 신체사정 - 대변 - 비정상 선택시 콤보박스
- if(stoolstatkind == null) {
- model.makeValue(cmb_stoolstatkind.attribute("ref"), "");
- }
-
- // 신체사정 - 대변 - 비정상 선택시 기타
- if(stoolstatetc == null) {
- model.makeValue(ipt_stoolstatetc.attribute("ref"), "");
- }
-
- // 일반정보 - 알러지 - 수혈부작용(유무)
- if(tnsseffcyn == null) {
- model.makeValue(rdo_tnsseffcyn.attribute("ref"), "");
- }
-
- // 일반정보 - 알러지 - 수혈부작용(입력)
- if(tnsseffcdetl == null) {
- model.makeValue(ipt_tnsseffc.attribute("ref"), "");
- }
-
- // 신체정보 - 여성정보 - 폐경여무 유무
- if(endmensyn == null) {
- model.makeValue(rdo_endmensyn.attribute("ref"), "");
- }
-
- // 신체정보 - 여성정보 - 폐경나이 입력
- if(closmensage == null) {
- model.makeValue(ipt_closmensage.attribute("ref"), "");
- }
-
- // 신체정보 - 여성정보 - 최종월경일
- if(lastmensdd == null) {
- model.makeValue(ipt_lastmensdd.attribute("ref"), "");
- }
-
- // 신체정보 - 여성정보 - 임신출산력(G)
- if(prgbthhisg == null) {
- model.makeValue(ipt_prgbthhisg.attribute("ref"), "");
- }
-
- // 신체정보 - 여성정보 - 임신출산력(P)
- if(prgbthhisp == null) {
- model.makeValue(ipt_prgbthhisp.attribute("ref"), "");
- }
-
- // 신체정보 - 여성정보 - 임신출산력(A)
- if(prgbthhisa == null) {
- model.makeValue(ipt_prgbthhisa.attribute("ref"), "");
- }
-
- // 신체정보 - 여성정보 - 임신출산력(SA)
- if(prgbthhissa == null) {
- model.makeValue(ipt_prgbthhissa.attribute("ref"), "");
- }
-
- // 신체정보 - 여성정보 - 임신출산력(AA)
- if(prgbthhisaa == null) {
- model.makeValue(ipt_prgbthhisaa.attribute("ref"), "");
- }
-
- // 신체정보 - 여성정보 - 임신출산력(L)
- if(prgbthhisl == null) {
- model.makeValue(ipt_prgbthhisl.attribute("ref"), "");
- }
-
- // 신체정보 - 여성정보 - 여성정보 추가사정
- if(mensaddinfoyn == null) {
- model.makeValue(chk_mensaddinfoyn.attribute("ref"), "");
- }
-
- // 신체정보 - 비뇨기계 - 소변상태 항목 추가
- if(urinestat == null) {
- model.makeValue(rdo_urinestat.attribute("ref"), "");
- }
-
- // 일반정보 - 알러지
- if(allgyn == null) {
- model.makeValue(rdo_allgyn.attribute("ref"), "");
- }
-
-
- }
-
- function fGetXmlToStr(xPath) {
-
- var str = instance1.selectNodesXml(xPath);
-
- return str;
- }
-
- function fChkInclYN() {
- //병력 XML
- var pasthistyn = model.getValue("/root/main/histinfo/pasthistinfo/pasthist/pasthistinclyn"); // 과거병력 해당없음
- var famyhistyn = model.getValue("/root/main/histinfo/famyhistinfo/famyhist/famyhistinclyn"); // 가족병력 해당없음
- var inhistyn = model.getValue("/root/main/histinfo/inhistinfo/inhist/inhistinclyn"); // 입원이력 해당없음
- var ophistyn = model.getValue("/root/main/histinfo/ophistinfo/ophist/ophistinclyn"); // 수술이력 해당없음
- var rectmedistatyn = model.getValue("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn"); // 최근투약상태
- var allhistinclyn = model.getValue("/root/main/histinfo/allghistinfo/allghist/allghistinclyn"); // 알러지 유/무/잘모름 선택
-
- //신체사정XML
- var mfmdstatyn = model.getValue("/root/main/wardrecinfo/mfmdstatinfo/mfmdstat/mfmdstatinfoinclyn"); // 기형상태 해당없음
- var shpaininfoyn = model.getValue("/root/main/wardrecinfo/shpaininfo/shpain/shpaininfoinclyn"); // 통증 유무 선택
- var resorgninfoyn = model.getValue("/root/main/wardrecinfo/resorgninfo/resorgn/resorgninfoinclyn"); // 호흡기계 해당없음
- var digorgninfoyn = model.getValue("/root/main/wardrecinfo/digorgninfo/digorgn/digorgninfoinclyn"); // 소화기계 해당없음
- var nvesysinfoyn = model.getValue("/root/main/wardrecinfo/nvesysinfo/nvesys/nvesysinfoinclyn"); // 신경계 해당없음
- var skincolorinfoyn = model.getValue("/root/main/wardrecinfo/skinsectinfo/skinsect/skincolorinfoinclyn"); // 피부계 - 피부색 해당없음
- var skinstatinfoyn = model.getValue("/root/main/wardrecinfo/skinsectinfo/skinsect/skinstatinfoinclyn"); // 피부계 - 피부상태 해당없음
-
- //신체사정 - 기형상태 유무
- if(mfmdstatyn == "1") {
- model.makeValue("/root/send/wardrecinfo/mfmdstatinfo", fGetXmlToStr("/root/hidden/bodyases/mfmdstatinfo/mfmdstat"));
- } else {
- model.makeValue("/root/send/wardrecinfo/mfmdstatinfo", fGetXmlToStr("/root/main/wardrecinfo/mfmdstatinfo/mfmdstat"));
- }
-
- if(shpaininfoyn == "1") {//통증 : 무(default)/유 선택20100122 김홍점
- model.makeValue("/root/send/wardrecinfo/shpaininfo", fGetXmlToStr("/root/hidden/bodyases/shpaininfo/shpain"));
- }else {
- model.makeValue("/root/send/wardrecinfo/shpaininfo", fGetXmlToStr("/root/main/wardrecinfo/shpaininfo/shpain"));
- }
-
- // 호흡기계
- if(resorgninfoyn == "1") {
- model.makeValue("/root/send/wardrecinfo/resorgninfo", fGetXmlToStr("/root/hidden/bodyases/resorgninfo/resorgn"));
- } else {
- model.makeValue("/root/send/wardrecinfo/resorgninfo", fGetXmlToStr("/root/main/wardrecinfo/resorgninfo/resorgn"));
- }
-
- // 소화기계
- if(digorgninfoyn == "1") {
- model.makeValue("root/send/wardrecinfo/digorgninfo", fGetXmlToStr("/root/hidden/bodyases/digorgninfo/digorgn"));
-
- } else {
- model.makeValue("/root/send/wardrecinfo/digorgninfo", fGetXmlToStr("/root/main/wardrecinfo/digorgninfo/digorgn"));
- }
-
- // 신경계
- if(nvesysinfoyn == "1") {
- model.makeValue("/root/send/wardrecinfo/nvesysinfo", fGetXmlToStr("/root/hidden/bodyases/nvesysinfo/nvesys"));
- } else {
- model.makeValue("/root/send/wardrecinfo/nvesysinfo",
- fGetXmlToStr("/root/main/wardrecinfo/nvesysinfo/nvesys"));
- }
-
- // 피부계
- model.makeNode("/root/temp/wardrecinfo/skinsectinfo");
- model.copyNode("/root/temp/wardrecinfo/skinsectinfo", "/root/main/wardrecinfo/skinsectinfo");
- if(skincolorinfoyn != "1" && skinstatinfoyn != "1") {
- model.makeValue("/root/temp/wardrecinfo/skinsectinfo", fGetXmlToStr("/root/main/wardrecinfo/skinsectinfo/skinsect"));
- } else {
-
- if(skincolorinfoyn == "1") {
- model.setValue("/root/temp/wardrecinfo/skinsectinfo/skinsect/skincolorinfoinclyn", model.getValue("/root/hidden/bodyases/skinsectinfo/skinsect/skincolorinfoinclyn"));
- model.copyNode("/root/temp/wardrecinfo/skinsectinfo/skinsect/skincolor", "/root/hidden/bodyases/skinsectinfo/skinsect/skincolor");
- }
- if(skinstatinfoyn == "1") {
- model.setValue("/root/temp/wardrecinfo/skinsectinfo/skinsect/skinstatinfoinclyn", model.getValue("/root/hidden/bodyases/skinsectinfo/skinsect/skinstatinfoinclyn"));
- model.copyNode("/root/temp/wardrecinfo/skinsectinfo/skinsect/skinstat", "/root/hidden/bodyases/skinsectinfo/skinsect/skinstat");
-
- }
- }
- model.makeValue("/root/send/wardrecinfo/skinsectinfo", fGetXmlToStr("/root/temp/wardrecinfo/skinsectinfo/skinsect"));
-
- // 병력
- if(pasthistyn == "1") {
- model.makeValue("/root/send/wardrecinfo/pasthistinfo", fGetXmlToStr("/root/hidden/histinfo/pasthistinfo/pasthist"));
- } else {
- model.makeValue("/root/send/wardrecinfo/pasthistinfo", fGetXmlToStr("/root/main/histinfo/pasthistinfo/pasthist"));
- }
-
- // 가족병력
- if(famyhistyn == "1") {
- model.makeValue("/root/send/wardrecinfo/famyhistinfo", fGetXmlToStr("/root/hidden/histinfo/famyhistinfo/famyhist"));
- } else {
- model.makeValue("/root/send/wardrecinfo/famyhistinfo", fGetXmlToStr("/root/main/histinfo/famyhistinfo/famyhist"));
- }
-
- // 입원이력
- if(inhistyn == "1") {
- model.makeValue("/root/send/wardrecinfo/inhistinfo", fGetXmlToStr("/root/hidden/histinfo/inhistinfo/inhist"));
- } else {
- model.makeValue("/root/send/wardrecinfo/inhistinfo", fGetXmlToStr("/root/main/histinfo/inhistinfo/inhist"));
- }
-
- // 수술이력
- if(ophistyn == "1") {
- model.makeValue("/root/send/wardrecinfo/ophistinfo", fGetXmlToStr("/root/hidden/histinfo/ophistinfo/ophist"));
- } else {
- model.makeValue("/root/send/wardrecinfo/ophistinfo", fGetXmlToStr("/root/main/histinfo/ophistinfo/ophist"));
- }
-
- // 최근투약상태
- if(rectmedistatyn == "1") {
- model.makeValue("/root/send/wardrecinfo/rectmedistatinfo", fGetXmlToStr("/root/hidden/wardrecinfo/rectmedistatinfo/rectmedistat"));
- } else {
- model.makeValue("/root/send/wardrecinfo/rectmedistatinfo", fGetXmlToStr("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat"));
- }
-
- // 알러지
- if(allhistinclyn == "1") {
- model.makeValue("/root/send/wardrecinfo/allghistinfo", fGetXmlToStr("/root/hidden/histinfo/allghistinfo/allghist"));
- } else {
- model.makeValue("/root/send/wardrecinfo/allghistinfo", fGetXmlToStr("/root/main/histinfo/allghistinfo/allghist"));
- }
- //model.makeValue("/root/send/wardrecinfo/vacnhistinfo", fGetXmlToStr("/root/hidden/histinfo/vacnhistinfo/vacnhist"));
- //model.makeValue("/root/send/wardrecinfo/smokinfo", fGetXmlToStr("/root/hidden/histinfo/smokinfo/smok"));
- //model.makeValue("/root/send/wardrecinfo/drunkinfo", fGetXmlToStr("/root/hidden/histinfo/drunkinfo/drunk"));
- //model.makeValue("/root/send/wardrecinfo/gustofoodinfo", fGetXmlToStr("/root/hidden/histinfo/gustofoodinfo/gustofood"));
- //model.makeValue("/root/send/wardrecinfo/tnsseffcinfo", fGetXmlToStr("/root/hidden/histinfo/tnsseffcinfo/tnsseffc"));
- //다른 기록지에서 저장한 이력을 조회하여 저장한다.
- model.makeValue("/root/send/wardrecinfo/vacnhistinfo", fGetXmlToStr("/root/main/histinfo/vacnhistinfo/vacnhist"));
- model.makeValue("/root/send/wardrecinfo/smokinfo", fGetXmlToStr("/root/main/histinfo/smokinfo/smok"));
- model.makeValue("/root/send/wardrecinfo/drunkinfo", fGetXmlToStr("/root/main/histinfo/drunkinfo/drunk"));
- model.makeValue("/root/send/wardrecinfo/gustofoodinfo", fGetXmlToStr("/root/main/histinfo/gustofoodinfo/gustofood"));
- model.makeValue("/root/send/wardrecinfo/tnsseffcinfo", fGetXmlToStr("/root/main/histinfo/tnsseffcinfo/tnsseffc"));
-
-
-
- }
-
- function fPatgnrlInfo(certFlag) {
- var userid = getUserId();
- model.removeNodeset("/root/send/wardinfo");
-
- //환자기본정보
- model.makeValue("/root/send/wardrecinfo/privacy", model.getValue("/root/main/wardrecinfo/privacy"));
- model.makeValue("/root/send/wardrecinfo/jobcd", model.getValue("/root/main/wardrecinfo/jobcd"));
- model.makeValue("/root/send/wardrecinfo/jobnm", model.getValue("/root/main/wardrecinfo/jobnm"));
- model.makeValue("/root/send/wardrecinfo/educgrdecd", model.getValue("/root/main/wardrecinfo/educgrdecd"));
- model.makeValue("/root/send/wardrecinfo/educgrdenm", model.getValue("/root/main/wardrecinfo/educgrdenm"));
- model.makeValue("/root/send/wardrecinfo/religncd", model.getValue("/root/main/wardrecinfo/religncd"));
- model.makeValue("/root/send/wardrecinfo/relignnm", model.getValue("/root/main/wardrecinfo/relignnm"));
- model.makeValue("/root/send/wardrecinfo/marystatcd", model.getValue("/root/main/wardrecinfo/marystatcd"));
- model.makeValue("/root/send/wardrecinfo/marystatnm", model.getValue("/root/main/wardrecinfo/marystatnm"));
- model.makeValue("/root/send/wardrecinfo/baptnm", model.getValue("/root/main/wardrecinfo/baptnm"));
-
- // 환자기본정보 추가(국적, 사회복지상담, 가족사항 등(15.03.23 - AYS)
- model.makeValue("/root/send/wardrecinfo/nationalityflag", model.getValue("/root/main/wardrecinfo/nationalityflag"));
- model.makeValue("/root/send/wardrecinfo/nationalitynm", model.getValue("/root/main/wardrecinfo/nationalitynm"));
- model.makeValue("/root/send/wardrecinfo/socialwelfareflag", model.getValue("/root/main/wardrecinfo/socialwelfareflag"));
- model.makeValue("/root/send/wardrecinfo/famyinfo", fGetXmlToStr("/root/main/wardrecinfo/famyinfo/famyinfo"));
-
- // model.makeValue("/root/send/wardrecinfo/spo", model.getValue("/root/main/wardrecinfo/spo2"));
-
- model.makeValue("/root/send/wardrecinfo/relignreq", model.getValue("/root/main/wardrecinfo/relignreq"));
-
- //연락처구분, 기타연락처구분 추가
- //model.makeValue("/root/send/wardrecinfo/telflag", model.getValue("/root/main/wardrecinfo/telflag"));
- model.makeValue("/root/send/wardrecinfo/tel", model.getValue("/root/main/wardrecinfo/tel"));
- model.makeValue("/root/send/wardrecinfo/mphone", model.getValue("/root/main/wardrecinfo/mphone"));
-
- //model.makeValue("/root/send/wardrecinfo/etctelflag", model.getValue("/root/main/wardrecinfo/etctelflag"));
- //model.makeValue("/root/send/wardrecinfo/etcphone1", model.getValue("/root/main/wardrecinfo/etcphone1"));
- //model.makeValue("/root/send/wardrecinfo/etcphone2", model.getValue("/root/main/wardrecinfo/etcphone2"));
-
- //가계도
- model.makeValue("/root/send/wardrecinfo/famytree", fGetXmlToStr("/root/main/wardrecinfo/famytree/existyn"));
-
- //입원정보
- model.makeValue("/root/send/wardrecinfo/indd", model.getValue("/root/main/wardrecinfo/indd"));
- model.makeValue("/root/send/wardrecinfo/indt", model.getValue("/root/main/wardrecinfo/indt"));
- model.makeValue("/root/send/wardrecinfo/inpathcd", model.getValue("/root/main/wardrecinfo/inpathcd"));
- model.makeValue("/root/send/wardrecinfo/inpathnm", model.getValue("/root/main/wardrecinfo/inpathnm"));
- model.makeValue("/root/send/wardrecinfo/inmthdcd", model.getValue("/root/main/wardrecinfo/inmthdcd"));
- model.makeValue("/root/send/wardrecinfo/inmthdnm", model.getValue("/root/main/wardrecinfo/inmthdnm"));
- model.makeValue("/root/send/wardrecinfo/inacompstcd", model.getValue("/root/main/wardrecinfo/inacompstcd"));
- model.makeValue("/root/send/wardrecinfo/inacompstnm", model.getValue("/root/main/wardrecinfo/inacompstnm"));
-
- //일반정보
- model.makeValue("/root/send/wardrecinfo/basebdinfoinclyn", model.getValue("/root/main/wardrecinfo/basebdinfoinclyn"));
- /*
- model.makeValue("/root/send/wardrecinfo/lowbp", model.getValue("/root/main/wardrecinfo/lowbp"));
- model.makeValue("/root/send/wardrecinfo/highbp", model.getValue("/root/main/wardrecinfo/highbp"));
- model.makeValue("/root/send/wardrecinfo/pulse", model.getValue("/root/main/wardrecinfo/pulse"));
- model.makeValue("/root/send/wardrecinfo/breth", model.getValue("/root/main/wardrecinfo/breth"));
- model.makeValue("/root/send/wardrecinfo/bdtp", model.getValue("/root/main/wardrecinfo/bdtp"));
- model.makeValue("/root/send/wardrecinfo/bdtppartcd", model.getValue("/root/main/wardrecinfo/bdtppartcd"));
- model.makeValue("/root/send/wardrecinfo/bdht", model.getValue("/root/main/wardrecinfo/bdht"));
- model.makeValue("/root/send/wardrecinfo/bdwt", model.getValue("/root/main/wardrecinfo/bdwt"));
- */
- model.makeValue("/root/send/wardrecinfo/bdbtype", model.getValue("/root/main/wardrecinfo/bdbtype"));
- model.makeValue("/root/send/wardrecinfo/bdbtyperh", model.getValue("/root/main/wardrecinfo/bdbtyperh"));
-
- //신체정보 측정불가체크시 측정불가코드값 저장로직 추가_20090306_SMY
- //혈압
- // if(model.getValue("/root/main/wardrecinfo/bpinspyn") == "Y"){
- // model.makeValue("/root/send/wardrecinfo/lowbp", NoneInspCode);
- // model.makeValue("/root/send/wardrecinfo/highbp", NoneInspCode);
- // }else{
- // model.makeValue("/root/send/wardrecinfo/lowbp", model.getValue("/root/main/wardrecinfo/lowbp"));
- // model.makeValue("/root/send/wardrecinfo/highbp", model.getValue("/root/main/wardrecinfo/highbp"));
- // }
- // //맥박
- // if(model.getValue("/root/main/wardrecinfo/pulseinspyn") == "Y"){
- // model.makeValue("/root/send/wardrecinfo/pulse", NoneInspCode);
- // }else{
- // model.makeValue("/root/send/wardrecinfo/pulse", model.getValue("/root/main/wardrecinfo/pulse"));
- // }
- // //호흡
- // if(model.getValue("/root/main/wardrecinfo/brethinspyn") == "Y"){
- // model.makeValue("/root/send/wardrecinfo/breth", NoneInspCode);
- // }else{
- // model.makeValue("/root/send/wardrecinfo/breth", model.getValue("/root/main/wardrecinfo/breth"));
- // }
- // //체온
- // if(model.getValue("/root/main/wardrecinfo/bdtpinspyn") == "Y"){
- // model.makeValue("/root/send/wardrecinfo/bdtp", NoneInspCode);
- // model.makeValue("/root/send/wardrecinfo/bdtppartcd", NoneInspCode);
- // }else{
- // model.makeValue("/root/send/wardrecinfo/bdtp", model.getValue("/root/main/wardrecinfo/bdtp"));
- // model.makeValue("/root/send/wardrecinfo/bdtppartcd", model.getValue("/root/main/wardrecinfo/bdtppartcd"));
- // }
- //신장
- if(model.getValue("/root/main/wardrecinfo/bdhtinspyn") == "Y"){
- model.makeValue("/root/send/wardrecinfo/bdht", NoneInspCode);
- }else{
- model.makeValue("/root/send/wardrecinfo/bdht", model.getValue("/root/main/wardrecinfo/bdht"));
- }
- //체중
- if(model.getValue("/root/main/wardrecinfo/bdwtinspyn") == "Y"){
- model.makeValue("/root/send/wardrecinfo/bdwt", NoneInspCode);
- }else{
- model.makeValue("/root/send/wardrecinfo/bdwt", model.getValue("/root/main/wardrecinfo/bdwt"));
- }
- //SpO2
- if(model.getValue("/root/main/wardrecinfo/spo2inspyn") == "Y"){
- model.makeValue("/root/send/wardrecinfo/spo", NoneInspCode);
- }else{
- model.makeValue("/root/send/wardrecinfo/spo", model.getValue("/root/main/wardrecinfo/spo2"));
- }
-
- //입원동기 등등(xml)
- model.makeValue("/root/send/wardrecinfo/inmotiveinfo", fGetXmlToStr("/root/main/wardrecinfo/inmotiveinfo/inmotive")); // 입원동기 병에대한 인식
- model.makeValue("/root/send/wardrecinfo/gustoinfo", fGetXmlToStr("/root/main/wardrecinfo/gustoinfo/gusto")); // 기호정보
- //model.makeValue("/root/send/wardrecinfo/femaleinfo", fGetXmlToStr("/root/main/wardrecinfo/femaleinfo/female"));
- model.makeValue("/root/send/wardrecinfo/spcffact", fGetXmlToStr("/root/main/wardrecinfo/spcffact/spcf")); // 특이사항
-
- //가족사항(가족연락처table)
- var updtdata = getGridUpdateData(grd_famyfact);
- model.makeValue("/root/send/wardrecinfo/famyfact", updtdata);
-
- //병력
- fChkInclYN();
-
- //신체사정
- model.makeValue("/root/send/wardrecinfo/shpaininfo", fGetXmlToStr("/root/main/wardrecinfo/shpaininfo/shpain")); // 통증
- model.makeValue("/root/send/wardrecinfo/apttbdwtchnginfo", fGetXmlToStr("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng")); // 영양사정(일반정보로 이동)
- model.makeValue("/root/send/wardrecinfo/slepstatinfo", fGetXmlToStr("/root/main/wardrecinfo/slepstatinfo/slepstat")); // 수면상태
- model.makeValue("/root/send/wardrecinfo/cscsstatinfo", fGetXmlToStr("/root/main/wardrecinfo/cscsstatinfo/cscsstat")); // 의식상태
- model.makeValue("/root/send/wardrecinfo/mensinfo", fGetXmlToStr("/root/main/wardrecinfo/mensinfo/mens")); // 여성정보
- model.makeValue("/root/send/wardrecinfo/cirorgninfo", fGetXmlToStr("/root/main/wardrecinfo/cirorgninfo/cirorgn")); // 순환기계
-
- model.makeValue("/root/send/wardrecinfo/uriorgninfo", fGetXmlToStr("/root/main/wardrecinfo/uriorgninfo/uriorgn")); // 비뇨기계
- model.makeValue("/root/send/wardrecinfo/stoolinfo", fGetXmlToStr("/root/main/wardrecinfo/stoolinfo/stool")); // 대변
- model.makeValue("/root/send/wardrecinfo/actinfo", fGetXmlToStr("/root/main/wardrecinfo/actinfo/act")); // 활동
-
- model.makeValue("/root/send/wardrecinfo/visdsordinfo", fGetXmlToStr("/root/main/wardrecinfo/visdsordinfo/visdsord")); // 시력장애
- model.makeValue("/root/send/wardrecinfo/heardsordinfo", fGetXmlToStr("/root/main/wardrecinfo/heardsordinfo/heardsord")); // 청력장애
- model.makeValue("/root/send/wardrecinfo/tootstatinfo", fGetXmlToStr("/root/main/wardrecinfo/tootstatinfo/tootstat")); // 치아상태
-
- //수행구분(I, U에 따른 입력, 수정을위한 구분)
- model.makeValue("/root/send/wardrecinfo/exeflag", model.getValue("/root/hidden/paminfo/paminfo/exeflag"));
- //웹 테스트
- model.makeValue("/root/send/wardrecinfo/pid", model.getValue("/root/temp/cond/list/pid"));
- model.makeValue("/root/send/wardrecinfo/indd", model.getValue("/root/temp/cond/list/indd"));
- model.makeValue("/root/send/wardrecinfo/instcd", model.getValue("/root/temp/cond/list/instcd"));
- model.makeValue("/root/send/wardrecinfo/deptcd", model.getValue("/root/temp/cond/list/orddeptcd"));
- model.makeValue("/root/send/wardrecinfo/infooffer", model.getValue("/root/main/wardrecinfo/infooffer"));
-
- //알러지
- if(grd_allghist.rows > 1) {
- if(allgInsYN == "Y") {
- grd_allghist.addStatus(1, "insert");
- }
- }
- model.makeValue("/root/send/wardrecinfo/allginfo", grd_allghist.getUpdateData());
-
- model.makeValue("/root/send/wardrecinfo/recflag", "01");
- model.makeValue("/root/send/wardrecinfo/docucode", "0000002435");
- model.makeValue("/root/send/wardrecinfo/userid", userid);
- if(model.getValue("/root/properties/parameters/SPMMR04711_shape/SPMMR04711_shapevalue") == "") {
- //model.makeValue("/root/send/wardrecinfo/genogrmnm", "<XMD/>");
- model.makeValue("/root/send/wardrecinfo/genogrmnm", "");
-
- } else {
- model.makeValue("/root/send/wardrecinfo/genogrmnm", model.getValue("/root/properties/parameters/SPMMR04711_shape/SPMMR04711_shapevalue"));
- }
-
- model.makeValue("/root/send/wardrecinfo/certflag", certFlag);
-
- model.makeValue("/root/send/wardrecinfo/recdd", model.getValue("/root/main/wardrecinfo/recdd"));
- model.makeValue("/root/send/wardrecinfo/rectm", model.getValue("/root/main/wardrecinfo/rectm"));
- model.makeValue("/root/send/wardrecinfo/recdt", model.getValue("/root/main/wardrecinfo/recdd") + model.getValue("/root/main/wardrecinfo/rectm"));
-
- //----------(20110108)
- //fnNRScalc(); // '15.03.23 - AYS (NRSclae 미사용에 따른 주석)
- //----------(20110108)
- //------------(20101219) 경북대
- // model.makeValue("/root/send/wardrecinfo/nrs1cd", model.getValue("/root/main/wardrecinfo/nrs1cd"));
- // model.makeValue("/root/send/wardrecinfo/nrs1nm", model.getValue("/root/main/wardrecinfo/nrs1nm"));
- // model.makeValue("/root/send/wardrecinfo/nrs21cd", model.getValue("/root/main/wardrecinfo/nrs21cd"));
- // model.makeValue("/root/send/wardrecinfo/nrs21nm", model.getValue("/root/main/wardrecinfo/nrs21nm"));
- // model.makeValue("/root/send/wardrecinfo/nrs22cd", model.getValue("/root/main/wardrecinfo/nrs22cd"));
- // model.makeValue("/root/send/wardrecinfo/nrs22nm", model.getValue("/root/main/wardrecinfo/nrs22nm"));
- // model.makeValue("/root/send/wardrecinfo/nrs23cd", model.getValue("/root/main/wardrecinfo/nrs23cd"));
- // model.makeValue("/root/send/wardrecinfo/nrs23nm", model.getValue("/root/main/wardrecinfo/nrs23nm"));
- // model.makeValue("/root/send/wardrecinfo/nrsscore", model.getValue("/root/main/wardrecinfo/nrsscore"));
- //------------(20101219) 경북대
- }
-
- function fSetSignData() {
-
- var xWardRecPath = Sign.XPATH_SIGNINFO + "/wardrecinfo";
- var xHistPath = Sign.XPATH_SIGNINFO + "/histinfo";
- var xFamyPath = Sign.XPATH_SIGNINFO + "/famyfactinfo";
-
- /****************************** 환자기본정보 **************************************/
- //직업
- var jobcd = model.getValue(xWardRecPath + "/jobcd");
- if(jobcd != "") {
- if(jobcd == "10") {
- if(model.getValue(xWardRecPath + "/jobnm") == "") {
- model.setValue(xWardRecPath + "/jobcd", cmb_job.label);
- } else {
- model.setValue(xWardRecPath + "/jobcd", model.getValue(xWardRecPath + "/jobnm"));
- }
-
- } else {
- model.setValue(xWardRecPath + "/jobcd", cmb_job.label);
- }
- }
- //교육정도
- var educgrde = model.getValue(xWardRecPath + "/educgrdecd");
- if(educgrde != "") {
-
- if(educgrde == "15") {
- if(model.getValue(xWardRecPath + "/educgrdenm") != "") {
- model.setValue(xWardRecPath + "/educgrdecd", model.getValue(xWardRecPath + "/educgrdenm"));
-
- } else {
- model.setValue(xWardRecPath + "/educgrdecd", cmb_educgrde.label);
- }
- } else {
- model.setValue(xWardRecPath + "/educgrdecd", cmb_educgrde.label);
- }
- }
- //종교
- var relign = model.getValue(xWardRecPath + "/religncd");
- if(relign != "") {
- if(relign == "01") {
- model.setValue(xWardRecPath + "/religncd", cmb_relign.label);
- if(model.getValue(xWardRecPath + "/baptnm") != "") {
- model.setValue(xWardRecPath + "/religncd", model.getValue(xWardRecPath + "/religncd") + "(" + model.getValue(xWardRecPath + "/baptnm") + ")");
- }
-
- } else if( relign == "09") {
- if(model.getValue(xWardRecPath + "/relignnm") == "") {
- model.setValue(xWardRecPath + "/religncd", cmb_relign.label);
-
- } else {
- model.setValue(xWardRecPath + "/religncd", model.getValue(xWardRecPath + "/relignnm"));
- }
-
- } else {
- model.setValue(xWardRecPath + "/religncd", cmb_relign.label);
- }
- }
- //영적요구
- var relignreq = model.getValue(xWardRecPath + "/relignreq");
- if (relignreq != ""){
- model.setValue(xWardRecPath + "/relignreq", cmb_relignreq.label);
- }
- //결혼상태
- var marystat = model.getValue(xWardRecPath + "/marystatcd");
- if(marystat != "") {
- if(marystat == "06") {
- if(model.getValue(xWardRecPath + "/marystatnm") != "") {
- model.setValue(xWardRecPath + "/marystatcd", model.getValue(xWardRecPath + "/marystatnm"));
- } else {
- model.setValue(xWardRecPath + "/marystatcd", cmb_marystat.label);
- }
-
- } else {
- model.setValue(xWardRecPath + "/marystatcd", cmb_marystat.label);
- }
- }
-
- // 국적
- var nationalityflag = model.getValue(xWardRecPath + "/nationalityflag");
- if(nationalityflag != ""){
- if(nationalityflag == "Y") {
- if(model.getValue(xWardRecPath + "/nationalitynm") != ""){
- model.setValue(xWardRecPath + "/nationalityflag", rdo_nationalityflag.label + "(" + model.getValue(xWardRecPath + "/nationalitynm") + ")");
- }
- } else {
- model.setValue(xWardRecPath + "/nationalityflag", rdo_nationalityflag.label);
- }
- }
-
- //사회복지상담
- var socialwelfareflag = model.getValue(xWardRecPath + "/socialwelfareflag");
- if(socialwelfareflag != ""){
- model.setValue(xWardRecPath + "/socialwelfareflag", rdo_socialwelfare.label);
- }
-
- //가족사항(부모)
- var famyparent = model.getValue(xWardRecPath + "/famyinfo/famyinfo/famyparent");
- if(famyparent != ""){
- model.setValue(xWardRecPath + "/famyinfo/famyinfo/famyparent", chk_famyparent.label.split(" "));
- }
-
- //가족사항(배우자)
- var famyspouse = model.getValue(xWardRecPath + "/famyinfo/famyinfo/famyspouse");
- if(famyspouse != ""){
- model.setValue(xWardRecPath + "/famyinfo/famyinfo/famyspouse", rdo_famyspouse.label);
- }
-
-
- /****************************** 가족사항 **************************************/
- //가족사항 관계
- var rows = grd_famyfact.rows;
- var rela;
- for(var i = 1 ; i < rows; i++) {
- rela = model.getValue(xFamyPath + "/famyfact[" + i + "]/rela");
- if( !isNull(rela) ) {
- model.setValue(xFamyPath + "/famyfact[" + i + "]/rela", grd_famyfact.labelMatrix(i, grd_famyfact.colRef("rela")));
- }
- }
- /****************************** 입원정보 **************************************/
- //입원경로
- var inpath = model.getValue(xWardRecPath + "/inpathcd");
- if(inpath != "") {
- if(inpath == "08") {
- if(model.getValue(xWardRecPath + "/inpathnm") != "") {
- model.setValue(xWardRecPath + "/inpathcd", model.getValue(xWardRecPath + "/inpathnm"));
- } else {
- model.setValue(xWardRecPath + "/inpathcd", cmb_inpath.label);
- }
- } else {
- model.setValue(xWardRecPath + "/inpathcd", cmb_inpath.label);
- }
- }
-
- //입원방법
- var inmthd = model.getValue(xWardRecPath + "/inmthdcd");
- if(inmthd != "") {
- if(inmthd == "08") {
- if(model.getValue(xWardRecPath + "/inmthdnm") != "") {
- model.setValue(xWardRecPath + "/inmthdcd", model.getValue(xWardRecPath + "/inmthdnm"));
- } else {
- model.setValue(xWardRecPath + "/inmthdcd", cmb_inmthd.label);
- }
- } else {
- model.setValue(xWardRecPath + "/inmthdcd", cmb_inmthd.label);
- }
- }
-
- //입원시동반자
- var inacompst = model.getValue(xWardRecPath + "/inacompstcd");
- if(inacompst != "") {
- if(inacompst == "04") {
- if(model.getValue(xWardRecPath + "/inacompstnm") != "") {
- model.setValue(xWardRecPath + "/inacompstcd", model.getValue(xWardRecPath + "/inacompstnm"));
- } else {
- model.setValue(xWardRecPath + "/inacompstcd", cmb_inacompst.label);
- }
- } else {
- model.setValue(xWardRecPath + "/inacompstcd", cmb_inacompst.label);
- }
- }
-
- //병원도착전 24시간내 항생제 투약여부
- var antibiodrugyn = model.getValue(xWardRecPath + "/rectmedistatinfo/rectmedistat/antibiodrugyn");
-
- if(antibiodrugyn != "") {
- model.setValue(xWardRecPath + "/rectmedistatinfo/rectmedistat/antibiodrugyn", cmb_antibiodrugyn.label);
- }
-
- /****************************** 입원동기와 병에대한 인식 **************************************/
- //입원동기와 병에대한 인식
- var inmotive1 = model.getValue(xWardRecPath + "/inmotiveinfo/inmotive/inmotive1");
- var illnessflag = model.getValue(xWardRecPath + "/inmotiveinfo/inmotive/illnessflag");
-
- if( inmotive1 != "") {
- model.setValue(xWardRecPath + "/inmotiveinfo/inmotive/inmotive1", rdo_inmotv.label);
- }
- if( illnessflag != "") {
- model.setValue(xWardRecPath + "/inmotiveinfo/inmotive/illnessflag", rdo_illnessflag.label);
- }
-
- /****************************** 기본 신체정보 **************************************/
- //혈액형
- var bdbtype = model.getValue(xWardRecPath + "/bdbtype");
- if(bdbtype != "") {
- model.setValue(xWardRecPath + "/bdbtype", cmb_bdbtype.label);
- }
-
- //체온
- var bdtppart = model.getValue(xWardRecPath + "/bdtppartcd");
- if(bdtppart != "") {
- model.setValue(xWardRecPath + "/bdtppartcd", cmb_bdtp.label);
- }
-
- /****************************** 기호정보 **************************************/
- /*
- //입원전 1개월간 흡연력
- var smokinfoyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn");
- var smokinfocnt = model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfocnt");
- if(smokinfoyn != "") {
- if(smokinfoyn == "2" && smokinfocnt != ""){
- model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn", rdo_smokinfo.label + "(" + smokinfocnt + ")");
- }else{
- model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn", rdo_smokinfo.label);
- }
- }
- */
- //흡연정보
- var smokinfoyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn");
- var bfsmokinfoyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/bfsmokinfoyn");
- if(smokinfoyn != "") {
- if(bfsmokinfoyn != ""){
- model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn", rdo_smokinfo.label + "(" + rdo_bfsmokinfo.label + ")");
- }else{
- model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn", rdo_smokinfo.label);
- }
- }
-
- //금연상담여부
- var nosmokcnstyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnstyn");
- if(nosmokcnstyn == "1") {
- var str = rdo_nosmokcnstyn.label;
-
- if(model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnst") != "") {
- if(model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnst") == "03") {
- if(model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnstnm") != "") {
- str += "(" + ipt_nosmokcnstnm.label + ")";
- model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnstyn", str);
- } else {
- str += "(" + cmb_nosmokcnst.label + ")";
- model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnstyn", str);
- }
-
- } else {
- str += "(" + cmb_nosmokcnst.label + ")";
- model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnstyn", str);
- }
- } else {
- model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnstyn", rdo_nosmokcnstyn.label);
- }
- } else {
- model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnstyn", rdo_nosmokcnstyn.label);
- }
-
- //음주정보
- var drunkinfoyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn");
- if(drunkinfoyn != "") {
- if(drunkinfoyn == "2") {
- if(model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfokind") != "") {
- if(model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") != "") {
- model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfokind") + " "
- + model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") + cap_drunkinfoterm.label);
- }else{
- model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfokind"));
- }
- } else {
- if(model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") != "") {
- model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") + cap_drunkinfoterm.label);
- }else{
- model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", rdo_drunkinfo.label);
- }
- }
- } else {
- model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", rdo_drunkinfo.label);
- }
- }
-
- //식욕상태 (15.03.24 - AYS 추가)
- var apptstatflag = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptstatflag");
- if(apptstatflag != "") {
- model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptstatflag", rdo_apttstatflag.label);
- }
- //체중변화 (15.03.24 - AYS 추가)
- var bdwtchngyn = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn");
- if(bdwtchngyn != "") {
- model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn", rdo_apttchngyn.label);
- }
- //연하곤란 (15.03.24 - AYS 추가)
- var dysphagiayn = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/dysphagiayn");
- if(dysphagiayn != "") {
- model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/dysphagiayn", rdo_dysphagiayn.label);
- }
-
- //기호식품 (기호식품 삭제에 따른 주석 처리 - 15.03.23 - AYS)
- // var gustofoodyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn");
- // if(gustofoodyn != "") {
- // if(gustofoodyn == "2") {
- // if(model.getValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofooddetl") != "") {
- // model.setValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofooddetl"));
- //
- // } else {
- // model.setValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn", rdo_gustofoodyn.label);
- // }
- // } else {
- // model.setValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn", rdo_gustofoodyn.label);
- // }
- // }
-
- // //수혈부작용 (15.03.23 - AYS 수혈부작용 이동에 따른 주석처리)
- // var tnsseffcyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn");
- // if(tnsseffcyn != "") {
- // if(tnsseffcyn == "2") {
- // if(model.getValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcdetl") != "") {
- // model.setValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcdetl"));
- // } else {
- // model.setValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn", rdo_tnsseffcyn.label);
- // }
- // } else {
- // model.setValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn", rdo_tnsseffcyn.label);
- // }
- // }
- // 여성정보 신체사정 항목으로 이동에 따른 주석처리(15.03.24 - AYS)
- // /****************************** 여성정보 **************************************/
- // //폐경여부
- // var endmensyn = model.getValue(xWardRecPath + "/femaleinfo/female/female/endmensyn");
- // var endmensdd = model.getValue(xWardRecPath + "/femaleinfo/female/female/endmensdd");
- // if(endmensyn != "") {
- // if(endmensyn == "2") {
- // if(endmensdd != "") {
- // model.setValue(xWardRecPath + "/femaleinfo/female/female/endmensyn", endmensdd.substr(0,4) + "-" + endmensdd.substr(4,2) + "-" + endmensdd.substr(6,2));
- // } else {
- // model.setValue(xWardRecPath + "/femaleinfo/female/female/endmensyn", rdo_endmensyn.label);
- // }
- // } else {
- // model.setValue(xWardRecPath + "/femaleinfo/female/female/endmensyn", rdo_endmensyn.label);
- // }
- // }
- //
- // //최종월경일
- // var lastmensdd = model.getValue(xWardRecPath + "/femaleinfo/female/female/lastmensdd");
- // if(lastmensdd != ""){
- // model.setValue(xWardRecPath + "/femaleinfo/female/female/lastmensdd", lastmensdd.substr(0,4) + "-" + lastmensdd.substr(4,2) + "-" + lastmensdd.substr(6,2));
- // }
- /****************************** 병력 **************************************/
- //과거병력
- var rows = grd_pasthist.rows;
- var histspec;
- for(var i = 1 ; i < rows; i++) {
- histspec = model.getValue(xHistPath + "/pasthistinfo/pasthist/pasthist[" + i + "]/histspec");
- if(histspec != "") {
- model.setValue(xHistPath + "/pasthistinfo/pasthist/pasthist[" + i + "]/histspec", grd_pasthist.labelMatrix(i, grd_pasthist.colRef("histspec")));
- }
- }
-
- //가족병력
- var famyrel;
- var existyn;
- rows = grd_famyhist.rows;
-
- for(var i = 1 ; i < rows; i++) {
- famyrel = model.getValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/famyrel");
- existyn = model.getValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/existyn");
- histspec = model.getValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/histspec");
-
- if(famyrel != "") {
- model.setValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/famyrel", grd_famyhist.labelMatrix(i, grd_famyhist.colRef("famyrel")));
- }
-
- if(existyn != "") {
- model.setValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/existyn", grd_famyhist.labelMatrix(i, grd_famyhist.colRef("existyn")));
- }
-
- if(histspec != "") {
- model.setValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/histspec", grd_famyhist.labelMatrix(i, grd_famyhist.colRef("histspec")));
- }
- }
-
- //allergy구분
- rows = grd_allghist.rows;
- var flag;
-
- for(var i = 1 ; i < rows; i++) {
- flag = model.getValue(xHistPath + "/allghistinfo/allghist/allghist[" + i + "]/flag");
- if(flag != "") {
- model.setValue(xHistPath + "/allghistinfo/allghist/allghist[" + i + "]/flag", grd_allghist.labelMatrix(i, grd_allghist.colRef("flag")));
- }
- }
-
- //수혈부작용(15.03.24 - AYS 추가)
- // var tnsseffcyn = model.getValue(xHistPath + "/allghistinfo/allghist/tnsseffcyn");
- //
- // if(tnsseffcyn != "") {
- // if(tnsseffcyn == "2") {
- // if(model.getValue(xHistPath + "/allghistinfo/allghist/tnsseffcdetl") != "") {
- // model.setValue(xHistPath + "/allghistinfo/allghist/tnsseffcyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcdetl"));
- // } else {
- // model.setValue(xHistPath + "/allghistinfo/allghist/tnsseffcyn", rdo_tnsseffcyn.label);
- // }
- // } else {
- // model.setValue(xHistPath + "/allghistinfo/allghist/tnsseffcyn", rdo_tnsseffcyn.label);
- // }
- // }
- // 15.03.30 - AYS 수정
- var tnsseffcyn = model.getValue(xHistPath + "/allghistinfo/allghist/tnsseffcyn");
- var tnsseffcdetl = model.getValue(xHistPath + "/allghistinfo/allghist/tnsseffcdetl");
- str = rdo_tnsseffcyn.label;
- if(tnsseffcyn != "") {
- if(tnsseffcyn == "2") {
- if(tnsseffcdetl != "") {
- str += "(" + tnsseffcdetl + ")";
- }
- }
- model.setValue(xHistPath + "/allghistinfo/allghist/tnsseffcyn", str);
- }
-
- /****************************** 신체사정 **************************************/
- // 15.04.10 - 간호정보조사지 2차 수정 - AYS
- //기형상태
- // var mfmdstatLen = grd_mfmdstat.rows;
- // var part;
- // var direc;
- //
- // if(mfmdstatLen > 0) {
- // for(var i = 0; i < mfmdstatLen; i++) {
- // part = model.getValue(xWardRecPath + "/mfmdstatinfo/mfmdstat/mfmdstat[" + i + "]/part");
- // direc = model.getValue(xWardRecPath + "/mfmdstatinfo/mfmdstat/mfmdstat[" + i + "]/direc");
- //
- // if(part != "" ) {
- // model.setValue(xWardRecPath + "/mfmdstatinfo/mfmdstat/mfmdstat[" + i + "]/part", grd_mfmdstat.labelMatrix(i, grd_mfmdstat.colRef("part")));
- // }
- // if(direc != "") {
- // model.setValue(xWardRecPath + "/mfmdstatinfo/mfmdstat/mfmdstat[" + i + "]/direc", grd_mfmdstat.labelMatrix(i, grd_mfmdstat.colRef("direc")));
- // }
- // }
- // }
-
- //20120625_김병국(통증사정 정보 추가) :XSLT보이기용.
- var shpaininfoinclyn = model.getValue(xWardRecPath + "/shpaininfo/shpain/shpaininfoinclyn");
- // var shpaininfoflag = cmb_shpaininfoflag.label;
- var shpaininfo = "";
-
- if(shpaininfoinclyn != "") {
- shpaininfo = rdo_shpaininfoinclyn.label;
-
- // if(shpaininfoinclyn == "1") {
- // if(shpaininfoflag != "") {
- // shpaininfo += "(" + shpaininfoflag + ")";
- // }
- // }
-
- model.makeValue(xWardRecPath + "/shpaininfo/shpain/shpaininfoinclyn", shpaininfo);
- model.makeValue(xWardRecPath + "/shpaininfo/shpain/shpaininfochgdd", "20100125");//20100125 일부터 동통에서 통증으로 변경됨.
- }
-
- // 15.03.24 - AYS(일반정보로 이동함에 따라 주석처리)
- /****************************** 식욕 및 체중변화 **************************************/
- //식욕변화
- // var apptchngyn = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptchngyn");
- // str = rdo_apttchngyn.label;
- //
- // if(apptchngyn != "") {
- // if(apptchngyn == "2") {
- // if(model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptaddyn") != "") {
- // str += "(" + rdo_apttchngflag.label+ ")";
- // }
- // }
- // model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptchngyn", str);
- // }
- //
- // //식욕상태
- // var apptstatflag = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptstatflag");
- //
- // if(apptstatflag != "") {
- // model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptstatflag", rdo_apttstatflag.label);
- // }
- //
- // //체중변화
- // var bdwtchngyn = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn");
- // var incdecflag = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/incdecflag");
- // var bdwtchnggrde = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchnggrde");
- // var bdwtchngterm = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngterm");
- // var bdwtchngtermflag = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngtermflag");
- //
- // str = rdo_bdwtchngyn.label;
- //
- // if(bdwtchngyn != "") {
- // if(bdwtchngyn == "2") {
- // if( !isNull(incdecflag) && bdwtchnggrde != "" && bdwtchngtermflag != "") {
- // str += "(" + rdo_incdecflag.label+ ": " + bdwtchnggrde + "kg " + "/ 기간 : " + rdo_bdwtchngtermflag.label + " (" + bdwtchngterm + ") )";
- // } else if(bdwtchnggrde != "" && bdwtchngtermflag == "") {
- // str += "(" + rdo_incdecflag.label+ ": " + bdwtchnggrde + "kg )";
- // } else if(bdwtchnggrde == "" && bdwtchngtermflag != "") {
- // str += "(" + "기간 : " + rdo_bdwtchngtermflag.label + " ( " + bdwtchngterm + ") )";
- // }
- //
- // }
- // model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn", str);
- //
- // }
- // //편식
- // var onemealyn = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/onemealyn");
- //
- // if(apptstatflag != "") {
- // model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/onemealyn", rdo_onemealyn.label);
- // }
-
- /****************************** 수면상태 **************************************/
- //수면장애
- var slepdsordyn = model.getValue(xWardRecPath + "/slepstatinfo/slepstat/slepdsordyn");
- var slepdsordtm = model.getValue(xWardRecPath + "/slepstatinfo/slepstat/slepdsordtm");
-
- str = rdo_slepdsord.label;
-
- if(slepdsordyn != "") {
- if(slepdsordyn == "2") {
- if(slepdsordtm != "") {
- str += "(" + slepdsordtm + "시간/일)";
- }
- }
- model.setValue(xWardRecPath + "/slepstatinfo/slepstat/slepdsordyn", str);
- }
-
- //약물복용
- var dugtmedyn = model.getValue(xWardRecPath + "/slepstatinfo/slepstat/dugtmedyn");
- var dugtmeddetl = model.getValue(xWardRecPath + "/slepstatinfo/slepstat/dugtmeddetl");
-
- str = rdo_drugtmedyn.label;
-
- if(dugtmedyn != "") {
- if(dugtmedyn == "2") {
- if(dugtmeddetl != "") {
- str += "(" + dugtmeddetl + ")";
- }
- }
- model.setValue(xWardRecPath + "/slepstatinfo/slepstat/dugtmedyn", str);
- }
-
- /****************************** 의식상태 **************************************/
- //지남력
- var cscsstathuman = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstathuman");
- var cscsstattm = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstattm");
- var cscsstatplce = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstatplce");
-
- if(cscsstathuman != "") {
- model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstathuman", cmb_cscsstathuman.label);
- }
- if(cscsstattm != "") {
- model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstattm", cmb_cscsstattm.label);
- }
-
- if(cscsstatplce != "") {
- model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstatplce", cmb_cscsstatplce.label);
- }
- //의식상태
- var cscsstat = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstat");
- if(cscsstat != "") {
- model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstat", cmb_cscsstat.label);
- }
- //의사소통
- var communication = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/communication");
- if( communication != "") {
- model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/communication", rdo_communication.label);
- }
- //정서상태
- var emotstat = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/emotstat");;
- if(emotstat != "") {
- model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/emotstat", cmb_emotstat.label);
- }
-
-
- /****************************** 여성정보 **************************************/
- //폐경여부
- var endmensyn = model.getValue(xWardRecPath + "/mensinfo/mens/endmensyn");
- if(endmensyn != "") {
- model.setValue(xWardRecPath + "/mensinfo/mens/endmensyn", rdo_endmensyn.label);
- }
-
- //최종월경일
- var lastmensdd = model.getValue(xWardRecPath + "/mensinfo/mens/lastmensdd");
- if(lastmensdd != ""){
- model.setValue(xWardRecPath + "/mensinfo/mens/lastmensdd", lastmensdd.substr(0,4) + "-" + lastmensdd.substr(4,2) + "-" + lastmensdd.substr(6,2));
- }
-
- /****************************** 월경 **************************************/
- //월경
- var mensyn = model.getValue(xWardRecPath + "/mensinfo/mens/mensyn");
- if(mensyn != "") {
- model.setValue(xWardRecPath + "/mensinfo/mens/mensyn", rdo_mensyn.label);
- }
- //상태
- var mensstat = model.getValue(xWardRecPath + "/mensinfo/mens/mensstat");
- if(mensstat != "") {
- model.setValue(xWardRecPath + "/mensinfo/mens/mensstat", rdo_mensstat.label);
- }
- //월경통
- var menspainyn = model.getValue(xWardRecPath + "/mensinfo/mens/menspainyn");
- if(menspainyn != "") {
- model.setValue(xWardRecPath + "/mensinfo/mens/menspainyn", rdo_menspainyn.label);
- }
-
- //월경주기 20090820
- var mensday = model.getValue(xWardRecPath + "/mensinfo/mens/mensday");
- var mensweek = model.getValue(xWardRecPath + "/mensinfo/mens/mensweek");
- if( (getCurrentDate() >= '20090821' ) && ( !isNull(mensday) || !isNull(mensweek) )) {
- model.makeValue(xWardRecPath + "/mensinfo/mens/mensdayweek", mensday+"일/" + mensweek+"일 주기");
- model.setValue(xWardRecPath + "/mensinfo/mens/mensday", "");
- model.setValue(xWardRecPath + "/mensinfo/mens/mensweek", "");
-
- }
-
- /****************************** 순환기계 **************************************/
- //순환장애
- var cirdsordkind = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cirdsordkind");
- var arr = new Array();
- arr = chk_cycdsordkind.label.split(" ");
- if(cirdsordkind != "") {
- model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cirdsordkind", arr);
- }
- //부종
- var edema = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/edemakind");
- var edemadetll = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/edemadetll");
- str = cmb_edema.label;
-
- if(edema != "") {
- if(edema == "7") {
- if(edemadetll != "") {
- str = edemadetll;
- }
- }
- model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/edemakind", str);
- }
- //요흔
- var yohnyn = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/yohnyn");
- var yohn = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/yohnddetl");
- str = rdo_yohnyn.label;
-
- if(yohnyn != "") {
- if(yohnyn == "2") {
- if(yohn != "") {
- str = yohn;
- }
- }
- model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/yohnyn", str);
- }
- //부착기구
- var cyccateyn = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cyccateyn");
- var cyccatekind = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cyccatekind");
- var catedetl = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/catedetl");
- str = rdo_cyccateyn.label;
-
- if(cyccateyn != "") {
- if(cyccateyn == "2") {
- if(cyccatekind != "") {
-
- if(cyccatekind == "3") {
- if(catedetl != "") {
- str += "(" + catedetl + ")";
- }
- } else {
- str += "(" + cmb_cyccatekind.label + ")";
- }
- }
- }
- model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cyccateyn", str);
- }
-
- /****************************** 대변 **************************************/
- // //대변색깔
- // var stoolcolor = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolcolor");
- // if(stoolcolor != "") {
- // model.setValue(xWardRecPath + "/stoolinfo/stool/stoolcolor", cmb_stoolcolor.label);
- // }
-
- // //대변종류
- // var stoolkind = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolkind");
- // if(stoolkind != "") {
- // model.setValue(xWardRecPath + "/stoolinfo/stool/stoolkind", cmb_stoolkind.label);
- // }
-
- // //변비
- // var constipt = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolconstipation");
- // if(constipt == "Y") {
- // model.makeValue(xWardRecPath + "/stoolinfo/stool/stoolcateconstipation", "유");
- // }else {
- // model.makeValue(xWardRecPath + "/stoolinfo/stool/stoolcateconstipation", "무");
- // }
- // 비뇨기계 - 소변양상(15.04.01 - AYS)
- var urinestat = model.getValue(xWardRecPath + "/uriorgninfo/uriorgn/urinestat");
- str = rdo_urinestat.label;
-
- if(urinestat != "") {
- model.setValue(xWardRecPath + "/uriorgninfo/uriorgn/urinestat", str);
- }
-
- //대변부착기구
- var stoolcateyn = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolcateyn");
- var stoolcatekind = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolcatekind");
-
- str = rdo_stoolcateyn.label;
-
- if(stoolcateyn != "") {
- if(stoolcatekind != "") {
- str += "(" + stoolcatekind + ")";
- }
- model.setValue(xWardRecPath + "/stoolinfo/stool/stoolcateyn", str);
- }
-
- // 대변양상
- var stoolstatflag = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolstatflag");
- var stoolstatkind = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolstatkind");
- var stoolstatetc = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolstatetc");
- str = rdo_stoolstatflag.label;
- if(stoolstatflag != "") {
- if(stoolstatflag == "2") {
- if(stoolstatkind != "") {
-
- if(stoolstatkind == "3") {
- if(stoolstatetc != "") {
- str += "(" + stoolstatetc + ")";
- }
- } else {
- str += "(" + cmb_stoolstatkind.label + ")";
- }
- }
- }
- model.setValue(xWardRecPath + "/stoolinfo/stool/stoolstatflag", str);
- }
-
- /****************************** 기타 활동 및 장애 **************************************/
- //활동
- var actfreeyn = model.getValue(xWardRecPath + "/actinfo/act/actfreeyn");
- if(actfreeyn != "") {
- model.setValue(xWardRecPath + "/actinfo/act/actfreeyn", rdo_actfreeyn.label);
- }
-
- //보조기구
- var supptoolkind = model.getValue(xWardRecPath + "/actinfo/act/supptoolkind");
- arr = chk_supptoolkind.label.split('▦');
-
- if(supptoolkind != "") {
- model.setValue(xWardRecPath + "/actinfo/act/supptoolkind", arr);
- }
-
- //신경계 동공
- var pupilsymmetryyn = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilsymmetryyn");
- if(pupilsymmetryyn != "") {
- model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilsymmetryyn", rdo_pupilsymmetryyn.label);
- }
-
- //좌
- var pupilleft = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilleft");
- if(pupilleft != "") {
- model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilleft", cmb_pupilleft.label);
- }
-
- //좌 빛반사
- var pupilleftrflx = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilleftrflx");
- if(pupilleftrflx != "") {
- model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilleftrflx", cmb_pupilleftrflx.label);
- }
-
- //우
- var pupilrght = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilrght");
- if(pupilrght != "") {
- model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilrght", cmb_pupilrght.label);
- }
-
- //우 빛반사
- var pupilrghtrflx = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilrghtrflx");
- if(pupilrghtrflx != "") {
- model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilrghtrflx", cmb_pupilrghtrflx.label);
- }
-
- //시력장애
- var visdsordyn = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordyn");
- var visdsordpos = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordpos");
- var visdsordleft = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordleft");
- var visdsordrght = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordrght");
- var visdsordkind = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordkind");
- var visdsordblind = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordblind");
- str = rdo_visdsordyn.label;
-
- if(visdsordyn != "") {
- if(visdsordyn == "2") {
- if(visdsordpos != "") {
-
- // if(visdsordleft != "" && visdsordrght != "") {
- // str += "(좌: " + visdsordleft + " 우: " + visdsordrght + ")";
- // } else if(visdsordpos == "1") {
- // str += "(좌: " + visdsordleft + ")";
- // } else if(visdsordpos == "2") {
- // str += "(우: " + visdsordrght + ")";
- // }
- // }
-
- if(visdsordpos == "1 2" || visdsordpos == "2 1") {
- if(visdsordleft != "" && visdsordrght != "") {
- str += "(좌: " + visdsordleft + " 우: " + visdsordrght + ")";
- } else if(visdsordleft != "" && visdsordrght == "") {
- str += "(좌: " + visdsordleft + ")";
- } else if(visdsordleft == "" && visdsordrght != "") {
- str += "(우: " + visdsordrght + ")";
- }
- } else if(visdsordpos == "1") {
- if(visdsordleft != "") {
- str += "(좌: " + visdsordleft + ")";
- }
- } else if(visdsordpos == "2") {
- if(visdsordrght != "") {
- str += "(우: " + visdsordrght + ")";
- }
- }
- }
-
- if(visdsordkind != "") {
- arr = chk_visdsordkind.label.split(" ");
- str += " (" + arr + ")";
- }
-
- if(visdsordblind != "") {
- arr = chk_blindnesspos.label.split(" ");
- str += " (" + arr + ")";
- }
-
- }
- model.setValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordyn", str);
- }
-
-
- //청력장애
- var heardsordyn = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordyn");
- var heardsordpos = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordpos");
- var heardsordleft = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordleft");
- var heardsordrght = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordrght");
- var heardsordkind = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordkind");
- str = rdo_heardsordyn.label;
-
- if(heardsordyn != "") {
- if(heardsordyn == "2") {
- if(heardsordpos != "") {
- if(heardsordpos == "1 2" || heardsordpos == "2 1") {
- if(heardsordleft != "" && heardsordrght != "") {
- str += "(좌: " + heardsordleft + " 우: " + heardsordrght + ")";
- } else if(heardsordleft != "" && heardsordrght == "") {
- str += "(좌: " + heardsordleft + ")";
- } else if(heardsordleft == "" && heardsordrght != "") {
- str += "(우: " + heardsordrght + ")";
- }
- } else if(heardsordpos == "1") {
- if(heardsordleft != "") {
- str += "(좌: " + heardsordleft + ")";
- }
- } else if(heardsordpos == "2") {
- if(heardsordrght != "") {
- str += "(우: " + heardsordrght + ")";
- }
- }
- }
-
- if(heardsordkind != "") {
- arr = chk_heardsordkind.label.split(" ");
- str += ", " + arr;
- }
- }
-
- model.setValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordyn", str);
- }
-
- //치아상태
- var tootstatkind = model.getValue(xWardRecPath + "/tootstatinfo/tootstat/tootstatkind");
- if(tootstatkind != "") {
- arr = chk_tootstatkind.label.split(" ");
- model.setValue(xWardRecPath + "/tootstatinfo/tootstat/tootstatkind", arr);
- }
- }
-
- function fMake_SignData() {
- //JCI 교육요구도 추가 (20100113 김홍점)
- var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
- if ( instUseYN =="Y" ){
- Sign.addnode("/root/temp/signdata/edurecinfo");
- }
-
- Sign.addnode("/root/main/wardrecinfo");
- Sign.addnode("/root/main/histinfo");
- //가족사항 정보 생성(그리드형식)
- model.removeNodeset("/root/main/famyfactinfo");
- model.makeNode("/root/main/famyfactinfo");
- for(var i=1; i <= getNodesetCount("/root/main/famyfact"); i++) {
- if(model.getValue("/root/main/famyfact["+ i +"]/rela") != ""){
- model.duplicate("/root/main/famyfactinfo", "/root/main/famyfact["+ i +"]");
- }
-
- }
- Sign.addnode("/root/main/famyfactinfo");
-
- fSetSignData();
- }
-
- //이전기록일시 변경
- function fChgRecHistInfo(){
- var recpkspec = (model.getValue("/root/main/wardrecinfo/bfrecddtm")).split("|");
- var bfrecpid = recpkspec[0];
- var bfrecindd = recpkspec[1];
- var bfreccretno = recpkspec[2];
- var bfrecflag = recpkspec[3];
- var bfrecinstcd = recpkspec[4];
-
- model.removeNodeset("/root/send/req");
- model.makeNode("/root/send/req");
-
- model.makeValue("/root/send/req/pid", bfrecpid);
- model.makeValue("/root/send/req/indd", bfrecindd);
- model.makeValue("/root/send/req/cretno", bfreccretno);
- model.makeValue("/root/send/req/instcd", bfrecinstcd);
- model.makeValue("/root/send/req/recflag", bfrecflag);
- //model.makeValue("/root/send/req/docucode", "0000002435");
- //model.makeValue("/root/send/req/deptcd", orddeptcd);
-
- if (bfrecflag == '10'){ //응급실입실기록지
- model.resetInstanceNode("/root/main");
- if(submit("TRMNW03105", false)){
- /* 응급실입실기록지 중 병동간호정보조사지와 같은 item항목을 조회해줌
- : 과거병력, 최근투약상태, 수술이력, 시력장애, 청력장애, 치아상태, 피부계 중 피부상태만, Allergy, 환자기본정보중 연락처/휴대폰/비상연락처(입원시동반자는 제외), 흡연력
- */
- //이전기록자
- model.setValue("/root/main/wardrecinfo/bfrecddtm", model.getValue("/root/hidden/errecinfo/wardrecinfo/recpkspec"));
- model.setValue("/root/main/wardrecinfo/bfrecdd", model.getValue("/root/hidden/errecinfo/wardrecinfo/bfrecdd"));
- model.setValue("/root/main/wardrecinfo/bfrectm", model.getValue("/root/hidden/errecinfo/wardrecinfo/bfrectm"));
- model.setValue("/root/main/wardrecinfo/bfrecuser", model.getValue("/root/hidden/errecinfo/wardrecinfo/bfrecuser"));
- model.setValue("/root/main/wardrecinfo/recdd", model.getValue("/root/hidden/errecinfo/wardrecinfo/recdd"));
- model.setValue("/root/main/wardrecinfo/rectm", model.getValue("/root/hidden/errecinfo/wardrecinfo/rectm"));
- model.setValue("/root/main/wardrecinfo/recuser", model.getValue("/root/hidden/errecinfo/wardrecinfo/recuser"));
-
- //환자기본정보
- model.setValue("/root/main/wardrecinfo/bdwt", model.getValue("/root/hidden/errecinfo/wardrecinfo/bdwt"));//20100608 khj 몸무게추가
- model.setValue("/root/main/wardrecinfo/tel", model.getValue("/root/hidden/errecinfo/wardrecinfo/tel"));
- model.setValue("/root/main/wardrecinfo/mphone", model.getValue("/root/hidden/errecinfo/wardrecinfo/mphone"));
- model.setValue("/root/main/wardrecinfo/etcphone1", model.getValue("/root/hidden/errecinfo/wardrecinfo/etcphone1"));
- model.setValue("/root/main/wardrecinfo/etcphone2", model.getValue("/root/hidden/errecinfo/wardrecinfo/etcphone2"));
- model.setValue("/root/main/wardrecinfo/nationalityflag", model.getValue("/root/hidden/paminfo/paminfo/nationalityflag")); // 15.03.23 - AYS 추가(국적 추가)
-
- model.copyNode("/root/main/histinfo/pasthistinfo", "/root/hidden/errecinfo/histinfo/pasthistinfo"); //과거병력
- model.copyNode("/root/main/wardrecinfo/rectmedistatinfo", "/root/hidden/errecinfo/wardrecinfo/rectmedistatinfo"); //최근투약상태
- model.copyNode("/root/main/histinfo/ophistinfo", "/root/hidden/errecinfo/histinfo/ophistinfo"); //수술이력
- model.copyNode("/root/main/histinfo/allghistinfo", "/root/hidden/errecinfo/histinfo/allghistinfo"); //Allergy
- model.copyNode("/root/main/wardrecinfo/visdsordinfo", "/root/hidden/errecinfo/wardrecinfo/visdsordinfo"); //시력장애
- model.copyNode("/root/main/wardrecinfo/heardsordinfo", "/root/hidden/errecinfo/wardrecinfo/heardsordinfo"); //청력장애
- model.copyNode("/root/main/wardrecinfo/tootstatinfo", "/root/hidden/errecinfo/wardrecinfo/tootstatinfo"); //치아상태
- model.copyNode("/root/main/wardrecinfo/skinsectinfo", "/root/hidden/errecinfo/wardrecinfo/skinsectinfo"); //피부계
- model.copyNode("/root/main/wardrecinfo/gustoinfo", "/root/hidden/errecinfo/wardrecinfo/gustoinfo"); //흡연력
-
- model.setValue("/root/main/wardrecinfo/inpathcd", "02"); //응급실에서 오는 환자인 경우 [입원정보]에서 입원경로 중 "응급실" 자동 체크
-
- //각 화면 상단에 선택된 환자 정보 display 필요함. (병실-성명-S/A-등록번호), 응급일 경우 정보세팅 - by 박영우 20091204
- var pid;
- var room;
- var patnm;
- var sex;
- var age;
- var instcd;
- var orddeptcd;
- var indd;
-
- room = model.getValue("/root/temp/cond/list/roomcd");
- patnm = model.getValue("/root/temp/cond/list/hngnm");
- sex = model.getValue("/root/temp/cond/list/sex");
- age = model.getValue("/root/temp/cond/list/age");
- pid = model.getValue("/root/temp/cond/list/pid");
- indd = model.getValue("/root/temp/cond/list/indd");
- instcd = model.getValue("/root/temp/cond/list/instcd");
- orddeptcd = model.getValue("/root/temp/cond/list/orddeptcd");
-
- model.makeValue("/root/main/wardrecinfo/room", room);
- model.makeValue("/root/main/wardrecinfo/patnm", patnm);
- model.makeValue("/root/main/wardrecinfo/sex", sex);
- model.makeValue("/root/main/wardrecinfo/age", age);
- model.makeValue("/root/main/wardrecinfo/pid", pid);
- }
-
- }else{ //병동간호정보조사지
- submit("TRMNW03102", false);
- setParameter("SPMMR04711_shape", fGetXmlToStr("/root/main/wardrecinfo/genogrmnm/XMD"));
- }
- /*
- var recDD = getCurrentDate();
- var recDT = getCurrentTime();
- var recUser = getUserName();
- model.setValue("/root/main/wardrecinfo/recdd", recDD);
- model.setValue("/root/main/wardrecinfo/recdt", recDT);
- model.setValue("/root/main/wardrecinfo/recuser", recUser);
- */
- fNotExistsNodeCreate();
- //입원일자 셋팅(응급실 경유 환자인 경우 입실체크가 되는 시점(즉 응급실 퇴실시점)의 일자가 병동 입원일자로 조회됨)_20090303_SMY
- model.setValue("/root/main/wardrecinfo/indd", model.getValue("/root/temp/cond/list/careinrmdd"));
- model.refresh();
- }
-
- function fCareBodyAssBlock(){
- var msgblock = "";
- // 통증 유무 check가 되지 않은 경우
- if ( (rdo_shpaininfoinclyn != null && isNull(model.getValue(rdo_shpaininfoinclyn.attribute("ref"))) )
- ){
- msgblock += " [통증]";
- }
-
- // 활동 활동 항목에 기록하지 않은 경우
- if ( (rdo_actfreeyn != null && isNull(model.getValue(rdo_actfreeyn.attribute("ref"))) )
- ){
- msgblock += " [활동]";
- }
-
- // 식욕및체중변화 식욕변화/식욕상태/체중변화의 각 항목에 기록이 되지 않은 경우
- // if ( (rdo_apttchngyn != null && isNull(model.getValue(rdo_apttchngyn.attribute("ref"))) )
- // || (rdo_apttchngyn != null && model.getValue(rdo_apttchngyn.attribute("ref")) =="2" && rdo_apttchngflag != null && isNull(model.getValue(rdo_apttchngflag.attribute("ref"))) )
- // || (rdo_onemealyn != null && isNull(model.getValue(rdo_onemealyn.attribute("ref"))) )
- // || (rdo_apttstatflag != null && isNull(model.getValue(rdo_apttstatflag.attribute("ref"))) )
- // || (rdo_bdwtchngyn != null && isNull(model.getValue(rdo_bdwtchngyn.attribute("ref"))) )
- // || (rdo_bdwtchngyn != null && model.getValue(rdo_bdwtchngyn.attribute("ref")) == "2"
- // && (
- // // rdo_incdecflag != null && isNull(model.getValue(rdo_incdecflag.attribute("ref")))
- // // || ipt_chnggrde != null && isNull(model.getValue(ipt_chnggrde.attribute("ref")))
- // (!( rdo_incdecflag != null && isNull(model.getValue(rdo_incdecflag.attribute("ref")))) && ipt_chnggrde != null && isNull(model.getValue(ipt_chnggrde.attribute("ref"))) )//체중변화증가/감소선택 했을때만 체중기록필수입력체크(소경화ITC요청)
- // || rdo_bdwtchngtermflag != null && isNull(model.getValue(rdo_bdwtchngtermflag.attribute("ref")))
- // //|| ipt_term != null && isNull(model.getValue(ipt_term.attribute("ref")))
- // )
- // )
- // ){
- // msgblock += " [식욕 및 체중변화]";
- // }
-
- // 15.04.09 - 영양사정 일반정보 msg로 이동
- // if ( (rdo_apttstatflag != null && isNull(model.getValue(rdo_apttstatflag.attribute("ref"))) )
- // || (rdo_apttchngyn != null && isNull(model.getValue(rdo_apttchngyn.attribute("ref"))) )
- // || (rdo_dysphagiayn != null && isNull(model.getValue(rdo_dysphagiayn.attribute("ref"))))
- // ){
- // msgblock += " [영양사정]";
- // }
-
- // 의식상태 지남력/의식상태/의사소통/정서상태의 각 항목에 기록이 되지않은 경우
- if ( (cmb_cscsstathuman != null && isNull(model.getValue(cmb_cscsstathuman.attribute("ref"))) )
- || (cmb_cscsstattm != null && isNull(model.getValue(cmb_cscsstattm.attribute("ref"))) )
- || (cmb_cscsstatplce != null && isNull(model.getValue(cmb_cscsstatplce.attribute("ref"))) )
- || (cmb_cscsstat != null && isNull(model.getValue(cmb_cscsstat.attribute("ref"))) )
- || (rdo_communication != null && isNull(model.getValue(rdo_communication.attribute("ref"))) )
- || (cmb_emotstat != null && isNull(model.getValue(cmb_emotstat.attribute("ref"))) )
- ){
- msgblock += " [의식상태]";
- }
-
- // 신경계 장애 해당없음 또는 동공 항목 중 대칭 또는 비대칭을 기록하지 않은 경우
- if ( (chk_nvesysinfoinclyn != null && isNull(model.getValue(chk_nvesysinfoinclyn.attribute("ref"))) )
- && (rdo_pupilsymmetryyn != null && isNull(model.getValue(rdo_pupilsymmetryyn.attribute("ref"))) )
- ){
- msgblock += " [신경계 장애]";
- }
- // 소화기계 해당없음 또는 행추가하여 기록하지 않은 경우
- if ( (chk_digorgninfoinclyn != null && isNull(model.getValue(chk_digorgninfoinclyn.attribute("ref")))
- && grd_digorgn != null && isNull(model.getValue(grd_digorgn.attribute("nodeset")+ "[1]/symp") ) && isNull(model.getValue(grd_digorgn.attribute("nodeset")+ "[1]/cate") ) )
- ){
- msgblock += " [소화기계]";
- }
-
- // 비뇨기계 소변횟수/소변량/소변냄새 항목에 기록하지 않은 경우
- // if ( (ipt_urinetims != null && isNull(model.getValue(ipt_urinetims.attribute("ref"))) )
- // || (ipt_urineday != null && isNull(model.getValue(ipt_urineday.attribute("ref"))) )
- // || (ipt_urinevol != null && isNull(model.getValue(ipt_urinevol.attribute("ref"))) )
- //
- // ){
- // msgblock += " [비뇨기계]";
- // }
- if (rdo_urinestat != null && isNull(model.getValue(rdo_urinestat.attribute("ref")))){
- msgblock += " [비뇨기계]";
- }
- // 대변 대변횟수/마지막대변일/대변색깔/대변종류 항목에 기록하지 않은 경우
- // if ( (ipt_stooltims != null && isNull(model.getValue(ipt_stooltims.attribute("ref"))) )
- // || (ipt_stoolday != null && isNull(model.getValue(ipt_stoolday.attribute("ref"))) )
- // || (ipt_laststoolday != null && isNull(model.getValue(ipt_laststoolday.attribute("ref"))) )
- // || (cmb_stoolcolor != null && isNull(model.getValue(cmb_stoolcolor.attribute("ref"))) )
- // || (cmb_stoolkind != null && isNull(model.getValue(cmb_stoolkind.attribute("ref"))) )
- // ){
- // msgblock += " [대변]";
- // }
-
- if ( (rdo_stoolcateyn != null && isNull(model.getValue(rdo_stoolcateyn.attribute("ref"))) )
- || (rdo_stoolstatflag != null && isNull(model.getValue(rdo_stoolstatflag.attribute("ref"))) )
- ){
- msgblock += " [대변]";
- }
-
- // 시력장애 시력장애 항목 중 무/유 기록하지 않은 경우
- if ( (rdo_visdsordyn != null && isNull(model.getValue(rdo_visdsordyn.attribute("ref"))) )
- ){
- msgblock += " [시력장애]";
- }
-
- // 청력장애 청력장애 항목 중 무/유 기록하지 않은 경우
- if ( (rdo_heardsordyn != null && isNull(model.getValue(rdo_heardsordyn.attribute("ref"))) )
- ){
- msgblock += " [청력장애]";
- }
- // 치아상태 치아상태에 check가 되지 않은 경우
- if ( (chk_tootstatkind != null && isNull(model.getValue(chk_tootstatkind.attribute("ref")).getTrim()) )
- ){
- msgblock += " [치아상태]";
- }
-
- return msgblock;
- }
- ]]>
- </script>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../emr/formmngtweb/js/MRF03800.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/codeinfo/codelist"/>
- <submission id="TRMNW03101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/paminfo"/>
- <submission id="TRMNW03102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main"/>
- <submission id="TRMNW03103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/init/newpat"/>
- <submission id="TRMNW03104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/cominfo"/>
- <submission id="TRMNW03105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/errecinfo"/>
- <submission id="TXMNW03101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/wardrecinfo" resultref="/root/hidden/rsltinfo"/>
- <submission id="TXMNW03102" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/hidden/rsltinfo"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMNZ00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/enrcarecomrecinfo"/>
- <submission id="TRMNW04802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/detlgrup"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1426;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:15px; ">간호초기평가(일반병동)</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_patinfo" scroll="auto" style="left:210px; top:50px; width:640px; height:20px; ">
- <caption id="caption10" ref="/root/main/wardrecinfo/pid" style="left:534px; top:0px; width:96px; height:20px; font-family:돋움; "/>
- <caption id="caption1" ref="/root/main/wardrecinfo/room" style="left:53px; top:0px; width:52px; height:20px; font-family:돋움; "/>
- <caption id="caption2" ref="/root/main/wardrecinfo/patnm" style="left:180px; top:0px; width:60px; height:20px; font-family:돋움; "/>
- <caption id="caption3" class="search_name" style="left:112px; top:1px; width:68px; height:17px; ">환자명:</caption>
- <caption id="caption4" ref="/root/main/wardrecinfo/sex" style="left:308px; top:0px; width:32px; height:20px; font-family:돋움; "/>
- <caption id="caption68" class="search_name" style="left:0px; top:1px; width:55px; height:17px; ">병실:</caption>
- <caption id="caption5" class="search_name" style="left:250px; top:1px; width:58px; height:17px; ">성별:</caption>
- <caption id="caption7" ref="/root/main/wardrecinfo/age" style="left:408px; top:0px; width:37px; height:20px; font-family:돋움; "/>
- <caption id="caption8" class="search_name" style="left:350px; top:1px; width:58px; height:17px; ">나이:</caption>
- <caption id="caption9" class="search_name" style="left:450px; top:1px; width:81px; height:17px; ">등록번호:</caption>
- </group>
- <input id="ipt_bfrecdd" ref="/root/main/wardrecinfo/bfrecdd" class="input_default" disabled="true" visibility="hidden" inputtype="date" style="left:83px; top:45px; width:100px; height:19px; "/>
- <output id="opt_bfrectm" ref="/root/main/wardrecinfo/bfrectm" class="output_fix" visibility="hidden" format="hh:nn" style="left:186px; top:45px; width:50px; height:19px; "/>
- <button id="btn_gnrlinfo" class="btn_sw" group="tab" selected="true" style="left:0px; top:49px; width:100px; height:22px; ">
- <caption>일반정보</caption>
- <toggle case="case1" ev:event="onclick"/>
- </button>
- <button id="btn_bodyasses" class="btn_sw" group="tab" style="left:100px; top:49px; width:100px; height:22px; ">
- <caption>신체사정</caption>
- <toggle case="case2" ev:event="onclick"/>
- </button>
- <button id="btn_edurec" class="btn_sw" visibility="hidden" group="tab" style="left:200px; top:49px; width:100px; height:22px; ">
- <caption>교육요구도</caption>
- <toggle case="case_edurec" ev:event="onclick"/>
- </button>
- <switch id="switch1" style="left:0px; top:70px; width:1194px; height:670px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case1" selected="true" style="left:0px; top:0px; width:1194px; height:674px; ">
- <import id="import1" instancetype="merge" src="..\..\..\emr\wardcareweb\xrw\SMMNW09500_NEW일반정보.xrw" style="left:0px; top:0px; width:1194px; height:670px; "/>
- </case>
- <case id="case2" style="left:0px; top:0px; width:1194px; height:673px; border-color:transparent; ">
- <import id="import4" instancetype="merge" src="..\..\..\emr\wardcareweb\xrw\SMMNW09400_NEW신체사정.xrw" style="left:0px; top:0px; width:1194px; height:670px; "/>
- </case>
- <case id="case_edurec" style="left:0px; top:0px; width:1194px; height:673px; border-color:transparent; ">
- <iviewer id="ivw_edurec" style="left:0px; top:0px; width:1194px; height:670px; "/>
- </case>
- </switch>
- <line id="line64" class="line_3" style="x1:0px; y1:41px; x2:1194px; y2:41px; "/>
- <line id="line13" class="line_1" style="x1:0px; y1:13px; x2:1194px; y2:13px; "/>
- <caption id="cap_bfrecdt" class="cell_1" style="left:0px; top:18px; width:80px; height:23px; vertical-align:middle; ">이전기록일시</caption>
- <caption id="cap_bfrecuser" class="cell_1" style="left:205px; top:18px; width:67px; height:23px; vertical-align:middle; ">이전기록자</caption>
- <output id="opt_bfrecuser" ref="/root/main/wardrecinfo/bfrecuser" class="output_fix" style="left:274px; top:20px; width:75px; height:19px; "/>
- <caption id="cap_recdt" class="cell_1" style="left:351px; top:18px; width:56px; height:23px; vertical-align:middle; ">기록일시</caption>
- <input id="ipt_recdd" ref="/root/main/wardrecinfo/recdd" class="input_default" inputtype="date" style="left:409px; top:20px; width:90px; height:19px; "/>
- <input id="ipt_rectm" ref="/root/main/wardrecinfo/rectm" class="input_default" format="hh:nn" validateformat="true" style="left:500px; top:20px; width:50px; height:19px; "/>
- <caption id="cap_recuser" class="cell_1" style="left:553px; top:18px; width:47px; height:23px; vertical-align:middle; ">기록자</caption>
- <output id="opt_recuser" ref="/root/main/wardrecinfo/recuser" class="output_fix" style="left:601px; top:20px; width:75px; height:19px; "/>
- <caption id="cap_sinfodnor" class="cell_1" style="left:677px; top:18px; width:68px; height:23px; vertical-align:middle; ">정보제공자</caption>
- <input id="ipt_infooffer" ref="/root/main/wardrecinfo/infooffer" class="input_default" maxlength="10" style="left:747px; top:20px; width:97px; height:19px; "/>
- <button id="btn_save" class="btn2_letter4" style="left:1062px; top:49px; width:64px; height:19px; ">
- <caption>임시저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPatgnrlInfo("T");
-
- if(submit("TXMNW03101") == true) {
- grd_famyfact.clearStatus();
- model.setValue("/root/send/wardrecinfo", "");
- messageBox("저장이 ", "I001");
- // //mrfmform formnm,formtypecls, ocrtagprntyn (서식명칭, 서식type, ocrtag출력여부)
- // //fPrint(prntflag) 저장시 prntflag 필요없음, 저장이 필요없으면 'A'
- // //iveiwer.window.javascript.fGetOCRInfo(
- // // iviewer1.window.javascript.fGetOCRInfo("0000001778", "20694", "20070824", "1", "I", "3", "Y");
- //
- // // iviewer1.window.javascript.fGetOCRInfo("0000001778", "20694", "20070824", "1", "I", "3", "Y");
- // // iviewer1.window.javascript.fPrint("A");
- model.makeValue("/root/hidden/paminfo/paminfo/exeflag", "U");
- } else {
- messageBox("저장이 실패하였습니다. ", "E");
- }
-
- ]]>
- </script>
- </button>
- <iviewer id="iviewer1" visibility="hidden" style="left:280px; top:75px; width:390px; height:110px; "/>
- <button id="btn_signsave" class="btn5_letter4" style="left:1129px; top:49px; width:64px; height:19px; ">
- <caption>인증저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //debugger;
- var msgstr = "";
- var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
-
- if(model.getValue("/root/main/wardrecinfo/infooffer") == ""){
- var msg1 = "[정보제공자]";
- if(msgstr == ""){
- msgstr += msg1;
- }else{
- msgstr += ", " + msg1;
- }
- }
- if(model.getValue("/root/main/wardrecinfo/inmotiveinfo/inmotive/inmotive1") == "" || model.getValue("/root/main/wardrecinfo/inmotiveinfo/inmotive/inmotive2") == ""){
- var msg2 = "[입원동기]";
- if(msgstr == ""){
- msgstr += msg2;
- }else{
- msgstr += ", " + msg2;
- }
- }
- //20090626_SMY추가
- // 15.04.09 - 일반정보 필수항목 추가
- if(model.getValue("/root/main/wardrecinfo/nationalityflag") == ""){
- var msg3 = "[국적]";
- if(msgstr == ""){
- msgstr += msg3;
- }else{
- msgstr += ", " + msg3;
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/nationalityflag") == "2"){
- if(model.getValue("/root/main/wardrecinfo/nationalitynm") == ""){
- var msg4 = "[국적명]";
- if(msgstr == ""){
- msgstr += msg4;
- }else{
- msgstr += ", " + msg4;
- }
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/jobcd") == ""){
- var msg5 = "[직업]";
- if(msgstr == ""){
- msgstr += msg5;
- }else{
- msgstr += ", " + msg5;
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/jobcd") == "10"){
- if(model.getValue("/root/main/wardrecinfo/jobnm") == ""){
- var msg6 = "[직업 기타입력]";
- if(msgstr == ""){
- msgstr += msg6;
- }else{
- msgstr += ", " + msg6;
- }
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/educgrdecd") == ""){
- var msg7 = "[교육정도]";
- if(msgstr == ""){
- msgstr += msg7;
- }else{
- msgstr += ", " + msg7;
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/educgrdecd") == "15"){
- if(model.getValue("/root/main/wardrecinfo/educgrdenm") == ""){
- var msg8 = "[교육정도 기타입력]";
- if(msgstr == ""){
- msgstr += msg8;
- }else{
- msgstr += ", " + msg8;
- }
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/marystatcd") == ""){
- var msg9 = "[결혼상태]";
- if(msgstr == ""){
- msgstr += msg9;
- }else{
- msgstr += ", " + msg9;
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/marystatcd") == "09"){
- if(model.getValue("/root/main/wardrecinfo/marystatnm") == ""){
- var msg10 = "[결혼상태 기타입력]";
- if(msgstr == ""){
- msgstr += msg10;
- }else{
- msgstr += ", " + msg10;
- }
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/socialwelfareflag") == ""){
- var msg11 = "[사회복지상담]";
- if(msgstr == ""){
- msgstr += msg11;
- }else{
- msgstr += ", " + msg11;
- }
- }
-
- //가족사항 : 관계 필수 입력
- for(var i = 1 ; i < grd_famyfact.rows; i++) {
- var rela = model.getValue("/root/main/famyfact[" + i + "]/rela");
- if(rela == "") {
- var msg12 = "[보호자 연락처 - 관계]";
- msgstr += msg12;
- break;
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/bdht") == "" && model.getValue("/root/main/wardrecinfo/bdhtinspyn") != "Y"){
- var msg13 = "[신장]";
- if(msgstr == ""){
- msgstr += msg13;
- }else{
- msgstr += ", " + msg13;
- }
- }
- if(model.getValue("/root/main/wardrecinfo/bdwt") == "" && model.getValue("/root/main/wardrecinfo/bdwtinspyn") != "Y"){
- var msg14 = "[체중]";
- if(msgstr == ""){
- msgstr += msg14;
- }else{
- msgstr += ", " + msg14;
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/spo2") == "" && model.getValue("/root/main/wardrecinfo/spo2inspyn") != "Y"){
- var msg15 = "[SpO2]";
- if(msgstr == ""){
- msgstr += msg15;
- }else{
- msgstr += ", " + msg15;
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/smokinfoyn") == ""){
- var msg16 = "[흡연정보]";
- if(msgstr == ""){
- msgstr += msg16;
- }else{
- msgstr += ", " + msg16;
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/smokinfoyn") == "2"){
- if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/bfsmokinfoyn") == ""){
- var msg17 = "[입원전1개월이내 흡연여부]";
- if(msgstr == ""){
- msgstr += msg17;
- }else{
- msgstr += ", " + msg17;
- }
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/nosmokcnstyn") == ""){
- var msg18 = "[금연상담여부]";
- if(msgstr == ""){
- msgstr += msg18;
- }else{
- msgstr += ", " + msg18;
- }
- }else if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/nosmokcnstyn") == "1"){
- if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/smokinfoyn")=="4" ||
- (model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/smokinfoyn")=="2"
- &model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/bfsmokinfoyn")=="Y")){
- if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/nosmokcnst")==""
- && model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/nosmokcnstnm")=="") {
- var msg19 = "[금연상담여부사유]";
- if(msgstr == ""){
- msgstr += msg19;
- }else{
- msgstr += ", " + msg19;
- }
- }
- }
- }
-
- if( (model.getValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/apptstatflag") == "") ||
- (model.getValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn") == "") ||
- (model.getValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/dysphagiayn") == "") ) {
- var msg20 = "[영양사정]";
- if(msgstr == ""){
- msgstr += msg20;
- }else{
- msgstr += ", " + msg20;
- }
- }
-
- if(model.getValue("/root/main/histinfo/allghistinfo/allghist/allghistinclyn") == ""){
- var msg21 = "[Allergy]";
- if(msgstr == ""){
- msgstr += msg21;
- }else{
- msgstr += ", " + msg21;
- }
- }
-
- if(model.getValue("/root/main/histinfo/allghistinfo/allghist/tnsseffcyn") == ""){
- var msg22 = "[수혈부작용]";
- if(msgstr == ""){
- msgstr += msg22;
- }else{
- msgstr += ", " + msg22;
- }
- }
-
- if(model.getValue("/root/main/histinfo/allghistinfo/allghist/tnsseffcyn") == "2"){
- if(model.getValue("/root/main/histinfo/allghistinfo/allghist/tnsseffcdetl") == ""){
- var msg23 = "[수혈부작용]";
- if(msgstr == ""){
- msgstr += msg23;
- }else{
- msgstr += ", " + msg23;
- }
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat/antibiodrugyn") == ""){
- var msg24 = "[병원도착전 24시간내 항생제 투약여부]";
- if(msgstr == ""){
- msgstr += msg24;
- }else{
- msgstr += ", " + msg24;
- }
- }
-
-
- // 15.03.24 - 영양위험 항목 삭제로 인한 주석처리
- //------------(20110121) 경북대
- //해당인스턴스가 있는지 확인한다.
-
- // if ( instance1.selectSingleNode("/root/main/wardrecinfo/nrs1cd") != null) {
- // if(model.getValue("/root/main/wardrecinfo/nrs1cd") == ""){
- // var msg8 = "[영양상태지표]";
- // if(msgstr == ""){
- // msgstr += msg8;
- // }else{
- // msgstr += ", " + msg8;
- // }
- // }
- // }
- //
- // if ( instance1.selectSingleNode("/root/main/wardrecinfo/nrs21cd") != null) {
- // if(model.getValue("/root/main/wardrecinfo/nrs21cd") == ""){
- // var msg9 = "[임상상태지표1]";
- // if(msgstr == ""){
- // msgstr += msg9;
- // }else{
- // msgstr += ", " + msg9;
- // }
- // }
- // }
- //
- // if ( instance1.selectSingleNode("/root/main/wardrecinfo/nrs22cd") != null) {
- // if(model.getValue("/root/main/wardrecinfo/nrs22cd") == ""){
- // var msg10 = "[영양상태지표2]";
- // if(msgstr == ""){
- // msgstr += msg10;
- // }else{
- // msgstr += ", " + msg10;
- // }
- // }
- // }
- //
- // if ( instance1.selectSingleNode("/root/main/wardrecinfo/nrs23cd") != null) {
- // if(model.getValue("/root/main/wardrecinfo/nrs23cd") == ""){
- // var msg11 = "[영양상태지표3]";
- // if(msgstr == ""){
- // msgstr += msg11;
- // }else{
- // msgstr += ", " + msg11;
- // }
- // }
- // }
-
- //20110308 이선경(경북대) 통증여부가 '유'일때 통증관리기록이 있는지 체크
- if(model.getValue("/root/main/wardrecinfo/shpaininfo/shpain/shpaininfoinclyn") == "2") {
- model.makeValue("/root/send/pid", model.getValue("/root/temp/cond/list/pid"));
- model.makeValue("/root/send/indd", model.getValue("/root/temp/cond/list/indd"));
- model.makeValue("/root/send/cretno", model.getValue("/root/temp/cond/list/cretno"));
- model.makeValue("/root/send/genrdd", getCurrentDate());
- model.makeValue("/root/send/genrtm", getCurrentDateTime().substring(9,13));
- model.makeValue("/root/send/stdradio", "0");
-
- model.makeValue("/root/send/req/indd", model.getValue("/root/temp/cond/list/indd"));
- model.makeValue("/root/send/req/cretno", model.getValue("/root/temp/cond/list/cretno"));
-
- submit('TRMNW04802');
-
- if(getNodesetCount("/root/main/detlgrup/detlgruplist") == 0) {
- var msg25 = "[통증관리기록]";
- if(msgstr == ""){
- msgstr += msg25;
- }else{
- msgstr += ", " + msg25;
- }
- }
- }
-
- //------------(20110121) 경북대
-
- if ( instUseYN =="Y"){
- var msgblock = fCareBodyAssBlock();
- if( msgblock != ""){
- msgstr += "\n" + msgblock;
- }
- }
- if(msgstr != "" ){
- messageBox(msgstr + " 은(는) ", "I003");//필수입력입니다
- return;
- }
-
- //------------(20110121) 경북대
- //aaaaaaaaaaaaaaa
- //return
- //------------(20110121) 경북대
-
- fPatgnrlInfo("C");
- //20100115 JCI 김홍점 교육요구도 적용병원만 데이타 저장 및 인증데이타 생성
- if ( instUseYN =="Y"){
- model.removenode('/root/temp/signdata');
-
- if ( !ivw_edurec.window.javascript.fSave() ){
- return;
- }
-
- var xEduRecPath = '/root/temp/signdata/edurecinfo';
-
- fMNWCareInfoRecMakeForJCI(xEduRecPath, ivw_edurec, "N");//carecom.js (srcPath, destObj , 응급간호정보조사여부 구분 erYn)
- }
- //최초기록자
- fMNWCareComFstdtSet( "01", "SAVE" );
-
- Sign.certreload = true ;
- if (Sign.signprocess() == true){
- //src="C:\CMCProject\application\webapps\emr\formmngtweb\xrw\SSMRF03800_OCR뷰어.xrw"
- // alert("인증성공" );
- // alert("1. 인증성공여부 false / true \n\n" + Sign.signedInfos[0]); // 인증성공여부 false / true
- // alert("2. 인증할 데이터 정보 (미기록 노드 제거전 원본 노드) \n\n" + Sign.signedInfos[3]); // 인증할 데이터 정보 (미기록 노드 제거전 원본 노드)
- // alert("2.--> text 데이터(없는 노드 포함된) text 형태 변형 결과 \n\n" + Sign.signedInfos[4]); // [3] 데이터(없는 노드 포함된) text 형태 변형 결과
- // alert("3. 인증할 데이터 정보(미기록 노드 제거된 정보) \n\n" + Sign.signedInfos[1]); // 인증할 데이터 정보(미기록 노드 제거된 정보)
- // alert("3. -->text 데이터(없는 노드 제거된) text 형태 변형 결과 \n\n" + Sign.signedInfos[5]); // ★[1] 데이터(없는 노드 제거된) text 형태 변형 결과 >>> [5]
- // alert("3. -->text --> sign 공인인증 처리후 데이터 \n\n" + Sign.signedInfos[2]); // ★공인인증 처리후 데이터 >>> [2]
- //
- model.makeValue("/root/send/wardrecinfo/pid", model.getValue("/root/temp/cond/list/pid"));
- model.makeValue("/root/send/wardrecinfo/indd", model.getValue("/root/temp/cond/list/indd"));
- //model.makeValue("/root/send/wardrecinfo/signno", model.getValue("/root/main/wardrecinfo/signno"));
- model.makeValue("/root/send/wardrecinfo/signno", model.getValue("/root/signinfo/signno")); //20090722_SMY변경
- model.makeValue("/root/send/wardrecinfo/cretno", model.getValue("/root/temp/cond/list/cretno"));
- model.makeValue("/root/send/wardrecinfo/recdd", model.getValue("/root/main/wardrecinfo/recdd"));
- model.makeValue("/root/send/wardrecinfo/rectm", model.getValue("/root/main/wardrecinfo/rectm"));
- //model.makeValue("/root/send/wardrecinfo/recsaveflag", model.getValue("Y"));
- model.makeValue("/root/send/wardrecinfo/recsaveflag", "Y");
- model.makeValue("/root/send/wardrecinfo/signflag", "02");
- model.makeValue("/root/send/wardrecinfo/signgenrflag", model.getValue("/root/temp/cond/list/ioflag"));
- model.makeValue("/root/send/wardrecinfo/formcd", "0000002435");
- model.makeValue("/root/send/wardrecinfo/orddeptcd", model.getValue("/root/temp/cond/list/orddeptcd"));
- model.makeValue("/root/send/wardrecinfo/orddrid", model.getValue("/root/temp/cond/list/medispclid"));
- model.makeValue("/root/send/wardrecinfo/signbfcnts", Sign.signedInfos[1]);
- model.makeValue("/root/send/wardrecinfo/signaftcnts", Sign.signedInfos[2]);
-
-
- model.makeValue("/root/send/wardrecinfo/wardcd", model.getValue("/root/temp/cond/list/wardcd"));
- model.makeValue("/root/send/wardrecinfo/roomcd", model.getValue("/root/temp/cond/list/roomcd"));
- model.makeValue("/root/send/wardrecinfo/instcd", model.getValue("/root/temp/cond/list/instcd"));
-
- if(submit("TXMNW03101") == true) {
-
- grd_famyfact.clearStatus();
- model.setValue("/root/send/wardrecinfo", "");
- messageBox("저장이 ", "I001");
- // //mrfmform formnm,formtypecls, ocrtagprntyn (서식명칭, 서식type, ocrtag출력여부)
- // //fPrint(prntflag) 저장시 prntflag 필요없음, 저장이 필요없으면 'A'
- // //iveiwer.window.javascript.fGetOCRInfo(
- // // iviewer1.window.javascript.fGetOCRInfo("0000001778", "20694", "20070824", "1", "I", "3", "Y");
- //iviewer1.window.javascript.fGetOCRInfo("0000001778", "20694", "20070824", "1", "I", "3", "Y");
- //iviewer1.window.javascript.fPrint("A");
-
- model.makeValue("/root/hidden/paminfo/paminfo/exeflag", "U");
- //fGetInitRecInfo(); //재조회
- //fInitEvent();
-
- } else {
- messageBox("저장이 실패하였습니다. ", "E");
- }
- }
- ]]>
- </script>
- </button>
- <input id="ipt_signno" ref="/root/main/wardrecinfo/signno" visibility="hidden" style="left:860px; top:45px; width:50px; height:19px; "/>
- <select1 id="cmb_bfrecddtm" ref="/root/main/wardrecinfo/bfrecddtm" class="combo_default" navindex="16" appearance="minimal" style="left:83px; top:20px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/paminfo/recinfo">
- <label ref="bfrecddtm"/>
- <value ref="recpkspec"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChgRecHistInfo();
- fMNWCareComFstdtSet( "01", "SRCH" );//recflag : 간호정보조사 플래그 CareCom.js 간호정보조사 최초기록일시 및 사용자 세팅
- model.refresh();
- ]]>
- </script>
- </select1>
- <button id="button1" class="btn2_letter6" style="left:973px; top:49px; width:86px; height:19px; ">
- <caption>전체기록삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //debugger;
- setCareInfoDel("TXMNW03101"); //CareCom.js
- fGetIndtInfo(); //현재수진이력의 입원시간을 가져온다
- ]]>
- </script>
- </button>
- <caption id="caption11" class="cell_1" style="left:1044px; top:18px; width:71px; height:23px; vertical-align:middle; ">최초기록자</caption>
- <output id="output1" ref="/root/main/wardrecinfo/fstrgstdt" class="output_fix" style="left:927px; top:20px; width:115px; height:19px; "/>
- <caption id="caption12" class="cell_1" style="left:845px; top:18px; width:80px; height:23px; vertical-align:middle; ">최초기록일시</caption>
- <output id="output2" ref="/root/main/wardrecinfo/fstrgstrnm" class="output_fix" style="left:1116px; top:20px; width:75px; height:19px; "/>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:756px; width:1195px; height:22px; ">
- <line id="line62" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <caption id="caption13" style="left:1169px; top:4px; width:26px; height:15px; ">[표]</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|