123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454 |
- <?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/>
- <bfrecuser/>
- <bfrectm/>
- <recdd/>
- <rectm/>
- <recuser/>
- <infooffer/>
- <patinfo/>
- <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>
- <M0071>
- <cdid/>
- <cdnm/>
- </M0071>
- <M0072>
- <cdid/>
- <cdnm/>
- </M0072>
- <M0073>
- <cdid/>
- <cdnm/>
- </M0073>
- <M0074>
- <cdid/>
- <cdnm/>
- </M0074>
- </mlist>
- </init>
- <hidden>
- <paminfo/>
- <histinfo/>
- <wardrecinfo/>
- <bodyases>
- <mfmdstatinfo/>
- <shpaininfo/>
- <resorgninfo/>
- <digorgninfo/>
- <nvesysinfo/>
- <skinsectinfo/>
- </bodyases>
- <rsltinfo/>
- </hidden>
- <codeinfo/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //--------(20101028) 경북대
- if (fEssentialBackColor != "") {
- ipt_infooffer.attribute("background-color") = fEssentialBackColor;
- }
- //--------(20101028) 경북대
-
- fGetCmbList();
- fInit();
- if(fGetInitRecInfo()) {
-
- fGetIndtInfo(); //현재수진이력의 입원시간을 가져온다
-
- fInitEvent("init");
-
- model.refresh();
- } else {
- window.close();
- }
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var status = "select";
- 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() {
- model.removeNodeset("/root/init/mlist");
- model.makeNode("/root/init/mlist");
- //성가병원 기관코드 조회_20090626_SMY
- fGetNursHardCdInfo("'077','172','177', 'U31','R02','W25'", getCurrentDate()); //CareCom.js
-
- zbcfGetCodeList( new Array ( "M0068" //직업
- ,"M0069" //교육정도
- ,"M0070" //종교
- ,"M0071" //결혼상태
- ,"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" //과거병력내역
- ,"/root/init/mlist" //통증사정내역
- )
- );
-
- model.refresh();
- }
-
- function fInitEvent(pFlag) {
-
- fInitEventBrthInfo();
- fInitEventBodyAses(pFlag);
- }
-
- //화면 로딩시
- function fInit(){
- var hiddenhistPath = "/root/hidden/histinfo";
- var hiddenbodyasesPath = "/root/hidden/bodyases";
-
- model.copyNode(hiddenhistPath, "/root/main/histinfo");
- model.copyNode("/root/hidden/wardrecinfo", "/root/main/wardrecinfo");
-
- model.makeValue(hiddenhistPath + "/pasthistinfo/pasthist/pasthistinclyn", "1");
- model.makeValue(hiddenhistPath + "/famyhistinfo/famyhist/famyhistinclyn", "1");
- model.makeValue(hiddenhistPath + "/inhistinfo/inhist/inhistinclyn", "1");
- model.makeValue(hiddenhistPath + "/ophistinfo/ophist/ophistinclyn", "1");
- model.makeValue("/root/hidden/wardrecinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn", "1");
- model.makeValue(hiddenhistPath + "/allghistinfo/allghist/allghistinclyn", "1");
- model.makeValue(hiddenhistPath + "/vacnhistinfo/vacnhist/vacnhistinfoinclyn", "1");
-
- model.copyNode(hiddenbodyasesPath + "/mfmdstatinfo", "/root/main/wardrecinfo/mfmdstatinfo");
- model.makeValue(hiddenbodyasesPath + "/mfmdstatinfo/mfmdstat/mfmdstatinfoinclyn", "1");
- model.copyNode(hiddenbodyasesPath + "/shpaininfo", "/root/main/wardrecinfo/shpaininfo");
- model.makeValue(hiddenbodyasesPath + "/shpaininfo/shpain/shpaininfoinclyn", "1");
- model.copyNode(hiddenbodyasesPath + "/resorgninfo", "/root/main/wardrecinfo/resorgninfo");
- model.makeValue(hiddenbodyasesPath + "/resorgninfo/resorgn/resorgninfoinclyn", "1");
- model.copyNode(hiddenbodyasesPath + "/digorgninfo", "/root/main/wardrecinfo/digorgninfo");
- model.makeValue(hiddenbodyasesPath + "/digorgninfo/digorgn/digorgninfoinclyn", "1");
- model.copyNode(hiddenbodyasesPath + "/nvesysinfo", "/root/main/wardrecinfo/nvesysinfo");
- model.makeValue(hiddenbodyasesPath + "/nvesysinfo/nvesys/nvesysinfoinclyn", "1");
- model.copyNode(hiddenbodyasesPath + "/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");
-
- // 현재 로컬 웹상에서 사용할 경우
- // model.makeValue("/root/send/req/pid", model.getValue("/root/temp/cond/list/pid"));
- // model.makeValue("/root/send/req/indd", model.getValue("/root/temp/cond/list/indd"));
- // model.makeValue("/root/send/req/instcd", model.getValue("/root/temp/cond/list/instcd"));
- // model.makeValue("/root/send/req/cretno", model.getValue("/root/temp/cond/list/cretno"));
- // model.makeValue("/root/send/req/recflag", "03");
-
- //각 화면 상단에 선택된 환자 정보 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");
- orddetpcd = model.getValue("/root/temp/cond/list/orddeptcd");
- cretno = model.getValue("/root/temp/cond/list/cretno");
- ioflag = model.getValue("/root/temp/cond/list/ioflag");
-
- 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);
- model.makeValue("/root/main/wardrecinfo/indd", indd);
-
- var scrnid =getScreenID();
- var param = "pid▦orddd▦cretno▦ordtype▦scrnid"
- +"▩" + pid+"▦" +indd+"▦"+cretno+"▦"+ioflag+"▦"+scrnid+"▩";
- fEnrCareComRecInfo_SPMNZ002(param, "/root/main/enrcarecomrecinfo"); //타 간호정보조사지기록 유무확인 model.refresh();
- model.refresh();
- }
-
- //간호정보조사지 조회
- function fGetInitRecInfo() {
- 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");
-
- 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", "03");
- model.makeValue("/root/send/req/docucode", "0000002504");
- model.makeValue("/root/send/req/deptcd", orddeptcd);
-
- if(pid == "") {
- messageBox("환자를 선택하지 ", "E007");
- window.close();
-
- } 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.xrw";
-
- }else{
- grp_patinfo.attribute("style")="left:210px; top:50px; width:640px; height:20px;" ;
- btn_edurec.visible = false;
- btn_SPMMO14900.visible = false;
- }
- submit("TRMNN00301", false); //저장후 삭제(K), 신규(I), 수정(U)
-
- var exeflag = model.getValue("/root/hidden/paminfo/paminfo/exeflag");
-
- if(exeflag == 'U') {
- submit("TRMNN00302", false);
-
- var existfamyinfo = model.getValue("/root/main/wardrecinfo/existfamyinfo");
- setParameter("SPMMR04711_shape", fGetXmlToStr("/root/main/wardrecinfo/genogrmnm/XMD"));
-
- //마지막 기록일시 셋팅
- var fstrgstdt = model.getValue("/root/hidden/paminfo/recinfo[recflag = '03' and indd = '" + indd + "']/fstrgstdt");
- model.setValue("/root/main/wardrecinfo/bfrecddtm", model.getValue("/root/hidden/paminfo/recinfo[recflag = '03' and indd = '" + indd + "']/recpkspec"));
- model.setValue("/root/main/wardrecinfo/bfrecuser", model.getValue("/root/hidden/paminfo/recinfo[recflag = '03' and indd = '" + indd + "']/bfrecuser"));
- //임신주수 계산
- ipt_edc.dispatch("xforms-value-changed");
-
- //입원일자 셋팅(응급실 경유 환자인 경우 입실체크가 되는 시점(즉 응급실 퇴실시점)의 일자가 병동 입원일자로 조회됨)_20090303_SMY
- model.setValue("/root/main/wardrecinfo/indd", model.getValue("/root/temp/cond/list/careinrmdd"));
- model.refresh();
-
- } 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("TRMNN00304", false);
-
- 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){
- 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", "");
-
- } else {
- model.copyNode("/root/main/histinfo", "/root/hidden/cominfo/histinfo");
- }
-
- 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"));
- //입원일자 셋팅(응급실 경유 환자인 경우 입실체크가 되는 시점(즉 응급실 퇴실시점)의 일자가 병동 입원일자로 조회됨)_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( "03", "SRCH" );
- 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");
- }
-
- if(model.getValue("/root/main/allgtemp/smoktemp") == ""){
- model.makeValue("/root/main/allgtemp/smoktemp", "(입원전 1개월이내 ");
- }
-
- if(model.getValue("/root/main/allgtemp/smoktemp2") == ""){
- model.makeValue("/root/main/allgtemp/smoktemp2", "흡연여부 : ");
- }
-
- model.refresh();
- return true;
- }
-
- //노드 추가에 따른 존재하지 않는 노드생성
- function fNotExistsNodeCreate(){
- // var bdwtchngtermflag= instance1.selectSingleNode("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngtermflag");
- //
- // if ( bdwtchngtermflag == null ) {
- //
- // model.makeValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngtermflag","");
- // }
- // if ( rdo_incdecflag != null){
- // var incdecflag= instance1.selectSingleNode(rdo_incdecflag.attribute("ref"));
- //
- // if ( incdecflag == null ) {
- //
- // model.makeNode(rdo_incdecflag.attribute("ref"));
- // }
- //
- // }
-
- var constipt= instance1.selectSingleNode("/root/main/wardrecinfo/stoolinfo/stool/stoolconstipation");
-
- if ( constipt == null ) {
-
- model.makeValue("/root/main/wardrecinfo/stoolinfo/stool/stoolconstipation","");
- }
-
- var shpaininfoflag= instance1.selectSingleNode(cmb_shpaininfoflag.attribute("ref"));
-
- 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.05.19 - AYS)
- var apptstatflag= instance1.selectSingleNode("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/apptstatflag");
- if ( apptstatflag == null ) {
- model.makeValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/apptstatflag","");
- }
-
- // 영양사정 - 체중감소 ('15.05.19 - AYS)
- var bdwtchngyn= instance1.selectSingleNode("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn");
- if ( bdwtchngyn == null ) {
- model.makeValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn","");
- }
-
- // 영양사정 - 연하곤란 ('15.05.19 - AYS)
- var dysphagiayn= instance1.selectSingleNode("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/dysphagiayn");
- if ( dysphagiayn == null ) {
- model.makeValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/dysphagiayn","");
- }
- }
-
- function fGetXmlToStr(xPath) {
-
- var str = instance1.selectNodesXml(xPath);
-
- return str;
- }
-
- function fChkInclYN() {
-
- var mainhistPath = "/root/main/histinfo";
- var hiddenhistPath = "/root/hidden/histinfo";
- var sendPath = "/root/send/wardrecinfo";
- var mainPath = "/root/main/wardrecinfo";
- var tempPath = "/root/temp/wardrecinfo";
- var bodyasesPath = "/root/hidden/bodyases";
-
- //병력 XML
- var pasthistyn = model.getValue(mainhistPath + "/pasthistinfo/pasthist/pasthistinclyn");
- var famyhistyn = model.getValue(mainhistPath + "/famyhistinfo/famyhist/famyhistinclyn");
- var inhistyn = model.getValue(mainhistPath + "/inhistinfo/inhist/inhistinclyn");
- var ophistyn = model.getValue(mainhistPath + "/ophistinfo/ophist/ophistinclyn");
- var rectmedistatyn = model.getValue("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn");
- var allhistinclyn = model.getValue(mainhistPath + "/allghistinfo/allghist/allghistinclyn");
-
- //신체사정XML
- var mfmdstatyn = model.getValue(mainPath + "/mfmdstatinfo/mfmdstat/mfmdstatinfoinclyn");
- var shpaininfoyn = model.getValue(mainPath + "/shpaininfo/shpain/shpaininfoinclyn");
- var resorgninfoyn = model.getValue(mainPath + "/resorgninfo/resorgn/resorgninfoinclyn");
- var digorgninfoyn = model.getValue(mainPath + "/digorgninfo/digorgn/digorgninfoinclyn");
- var nvesysinfoyn = model.getValue(mainPath + "/nvesysinfo/nvesys/nvesysinfoinclyn");
- var skincolorinfoyn = model.getValue(mainPath + "/skinsectinfo/skinsect/skincolorinfoinclyn");
- var skinstatinfoyn = model.getValue(mainPath + "/skinsectinfo/skinsect/skinstatinfoinclyn");
-
- //신체사정
- if(mfmdstatyn == "1") {
- model.makeValue(sendPath + "/mfmdstatinfo", fGetXmlToStr(bodyasesPath + "/mfmdstatinfo/mfmdstat"));
- } else {
- model.makeValue(sendPath + "/mfmdstatinfo", fGetXmlToStr(mainPath +"/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(sendPath + "/resorgninfo", fGetXmlToStr(bodyasesPath + "/resorgninfo/resorgn"));
- } else {
- model.makeValue(sendPath + "/resorgninfo", fGetXmlToStr(mainPath + "/resorgninfo/resorgn"));
- }
-
- if(digorgninfoyn == "1") {
- model.makeValue(sendPath + "/digorgninfo", fGetXmlToStr(bodyasesPath + "/digorgninfo/digorgn"));
-
- } else {
- model.makeValue(sendPath + "/digorgninfo", fGetXmlToStr(mainPath + "/digorgninfo/digorgn"));
- }
-
- if(nvesysinfoyn == "1") {
- model.makeValue(sendPath + "/nvesysinfo", fGetXmlToStr(bodyasesPath + "/nvesysinfo/nvesys"));
- } else {
- model.makeValue(sendPath + "/nvesysinfo", fGetXmlToStr(mainPath + "/nvesysinfo/nvesys"));
- }
-
- model.makeNode(tempPath + "/skinsectinfo");
- model.copyNode(tempPath + "/skinsectinfo", mainPath + "/skinsectinfo");
- if(skincolorinfoyn != "1" && skinstatinfoyn != "1") {
- model.makeValue(sendPath + "/skinsectinfo", fGetXmlToStr(mainPath + "/skinsectinfo/skinsect"));
- } else {
- if(skincolorinfoyn == "1") {
- model.setValue(tempPath + "/skinsectinfo/skinsect/skincolorinfoinclyn", model.getValue(bodyasesPath + "/skinsectinfo/skinsect/skincolorinfoinclyn"));
- model.copyNode(tempPath + "/skinsectinfo/skinsect/skincolor", bodyasesPath + "/skinsectinfo/skinsect/skincolor");
- }
- if(skinstatinfoyn == "1") {
- model.setValue(tempPath + "/skinsectinfo/skinsect/skinstatinfoinclyn", model.getValue(bodyasesPath + "/skinsectinfo/skinsect/skinstatinfoinclyn"));
- model.copyNode(tempPath + "/skinsectinfo/skinsect/skinstat", bodyasesPath + "/skinsectinfo/skinsect/skinstat");
- }
- model.makeValue(sendPath + "/skinsectinfo", fGetXmlToStr(tempPath + "/skinsectinfo/skinsect"));
-
- }
-
- //병력
- if(pasthistyn == "1") {
- model.makeValue(sendPath + "/pasthistinfo", fGetXmlToStr(hiddenhistPath + "/pasthistinfo/pasthist"));
- } else {
- model.makeValue(sendPath + "/pasthistinfo", fGetXmlToStr(mainhistPath + "/pasthistinfo/pasthist"));
- }
- if(famyhistyn == "1") {
- model.makeValue(sendPath + "/famyhistinfo", fGetXmlToStr(hiddenhistPath + "/famyhistinfo/famyhist"));
- } else {
- model.makeValue(sendPath + "/famyhistinfo", fGetXmlToStr(mainhistPath + "/famyhistinfo/famyhist"));
- }
- if(inhistyn == "1") {
- model.makeValue(sendPath + "/inhistinfo", fGetXmlToStr(hiddenhistPath + "/inhistinfo/inhist"));
- } else {
- model.makeValue(sendPath + "/inhistinfo", fGetXmlToStr(mainhistPath + "/inhistinfo/inhist"));
- }
- if(ophistyn == "1") {
- model.makeValue(sendPath + "/ophistinfo", fGetXmlToStr(hiddenhistPath + "/ophistinfo/ophist"));
- } else {
- model.makeValue(sendPath + "/ophistinfo", fGetXmlToStr(mainhistPath + "/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(sendPath + "/allghistinfo", fGetXmlToStr(hiddenhistPath + "/allghistinfo/allghist"));
- } else {
- model.makeValue(sendPath + "/allghistinfo", fGetXmlToStr(mainhistPath + "/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();
-
- var mainPath ="/root/main/wardrecinfo";
- var sendPath = "/root/send/wardrecinfo";
-
- //model.removeNodeset("/root/send/wardinfo");
-
- //환자기본정보
- model.makeValue(sendPath + "/privacy", model.getValue(mainPath + "/privacy"));
- model.makeValue(sendPath + "/jobcd", model.getValue(mainPath + "/jobcd"));
- model.makeValue(sendPath + "/jobnm", model.getValue(mainPath + "/jobnm"));
- model.makeValue(sendPath + "/educgrdecd", model.getValue(mainPath + "/educgrdecd"));
- model.makeValue(sendPath + "/educgrdenm", model.getValue(mainPath + "/educgrdenm"));
- model.makeValue(sendPath + "/religncd", model.getValue(mainPath + "/religncd"));
- model.makeValue(sendPath + "/relignnm", model.getValue(mainPath + "/relignnm"));
- model.makeValue(sendPath + "/marystatcd", model.getValue(mainPath + "/marystatcd"));
- model.makeValue(sendPath + "/marystatnm", model.getValue(mainPath + "/marystatnm"));
- model.makeValue(sendPath + "/baptnm", model.getValue(mainPath + "/baptnm"));
-
- model.makeValue(sendPath + "/relignreq", model.getValue(mainPath + "/relignreq"));
- model.makeValue(sendPath + "/telflag", model.getValue(mainPath + "/telflag"));
- model.makeValue(sendPath + "/tel", model.getValue(mainPath + "/tel"));
-
- model.makeValue(sendPath + "/mphone", model.getValue(mainPath + "/mphone"));
-
- model.makeValue(sendPath + "/etctelflag", model.getValue(mainPath + "/etctelflag"));
- model.makeValue(sendPath + "/etcphone1", model.getValue(mainPath + "/etcphone1"));
- model.makeValue(sendPath + "/etcphone2", model.getValue(mainPath + "/etcphone2"));
-
- //가계도
- model.makeValue(sendPath + "/famytree", fGetXmlToStr(mainPath + "/famytree/existyn"));
-
- //입원정보
- model.makeValue(sendPath + "/indd", model.getValue(mainPath + "/indd"));
- model.makeValue(sendPath + "/indt", model.getValue(mainPath + "/indt"));
- model.makeValue(sendPath + "/inpathcd", model.getValue(mainPath + "/inpathcd"));
- model.makeValue(sendPath + "/inpathnm", model.getValue(mainPath + "/inpathnm"));
- model.makeValue(sendPath + "/inmthdcd", model.getValue(mainPath + "/inmthdcd"));
- model.makeValue(sendPath + "/inmthdnm", model.getValue(mainPath + "/inmthdnm"));
- model.makeValue(sendPath + "/inacompstcd", model.getValue(mainPath + "/inacompstcd"));
- model.makeValue(sendPath + "/inacompstnm", model.getValue(mainPath + "/inacompstnm"));
-
- //일반정보
- model.makeValue(sendPath + "/basebdinfoinclyn", model.getValue(mainPath + "/basebdinfoinclyn"));
- /*
- model.makeValue(sendPath + "/lowbp", model.getValue(mainPath + "/lowbp"));
- model.makeValue(sendPath + "/highbp", model.getValue(mainPath + "/highbp"));
- model.makeValue(sendPath + "/pulse", model.getValue(mainPath + "/pulse"));
- model.makeValue(sendPath + "/breth", model.getValue(mainPath + "/breth"));
- model.makeValue(sendPath + "/bdtp", model.getValue(mainPath + "/bdtp"));
- model.makeValue(sendPath + "/bdtppartcd", model.getValue(mainPath + "/bdtppartcd"));
- model.makeValue(sendPath + "/bdht", model.getValue(mainPath + "/bdht"));
- model.makeValue(sendPath + "/spo", model.getValue(mainPath + "/spo2"));
- */
- model.makeValue(sendPath + "/bdbtype", model.getValue(mainPath + "/bdbtype"));
-
- //산과정보
- // model.makeValue(sendPath + "/prgbfbdwt", model.getValue(mainPath + "/prgbfbdwt"));
- // model.makeValue(sendPath + "/inbdwt", model.getValue(mainPath + "/inbdwt"));
-
- //신체정보 측정불가체크시 측정불가코드값 저장로직 추가_20090306_SMY
- //혈압
- // if(model.getValue("/root/main/wardrecinfo/bpinspyn") == "Y"){
- // model.makeValue(sendPath + "/lowbp", NoneInspCode);
- // model.makeValue(sendPath + "/highbp", NoneInspCode);
- // }else{
- // model.makeValue(sendPath + "/lowbp", model.getValue(mainPath + "/lowbp"));
- // model.makeValue(sendPath + "/highbp", model.getValue(mainPath + "/highbp"));
- // }
- // //맥박, 호흡
- // if(model.getValue("/root/main/wardrecinfo/pulseinspyn") == "Y"){
- // model.makeValue(sendPath + "/pulse", NoneInspCode);
- // model.makeValue(sendPath + "/breth", NoneInspCode);
- // }else{
- // model.makeValue(sendPath + "/pulse", model.getValue(mainPath + "/pulse"));
- // model.makeValue(sendPath + "/breth", model.getValue(mainPath + "/breth"));
- // }
- // //체온
- // if(model.getValue("/root/main/wardrecinfo/bdtpinspyn") == "Y"){
- // model.makeValue(sendPath + "/bdtp", NoneInspCode);
- // model.makeValue(sendPath + "/bdtppartcd", NoneInspCode);
- // }else{
- // model.makeValue(sendPath + "/bdtp", model.getValue(mainPath + "/bdtp"));
- // model.makeValue(sendPath + "/bdtppartcd", model.getValue(mainPath + "/bdtppartcd"));
- // }
- //신장
- if(model.getValue("/root/main/wardrecinfo/bdhtinspyn") == "Y"){
- model.makeValue(sendPath + "/bdht", NoneInspCode);
- }else{
- model.makeValue(sendPath + "/bdht", model.getValue(mainPath + "/bdht"));
- }
- //체중
- if(model.getValue("/root/main/wardrecinfo/bdwtinspyn") == "Y"){
- model.makeValue(sendPath + "/prgbfbdwt", NoneInspCode);
- model.makeValue(sendPath + "/inbdwt", NoneInspCode);
- }else{
- model.makeValue(sendPath + "/prgbfbdwt", model.getValue(mainPath + "/prgbfbdwt"));
- model.makeValue(sendPath + "/inbdwt", model.getValue(mainPath + "/inbdwt"));
- }
- //SpO2
- if(model.getValue("/root/main/wardrecinfo/spo2inspyn") == "Y"){
- model.makeValue(sendPath + "/spo", NoneInspCode);
- }else{
- model.makeValue(sendPath + "/spo", model.getValue(mainPath + "/spo2"));
- }
-
- //입원동기 등등(xml)
- model.makeValue(sendPath + "/spcffact", fGetXmlToStr(mainPath + "/spcffact/spcf"));
- model.makeValue(sendPath + "/inmotiveinfo", fGetXmlToStr(mainPath + "/inmotiveinfo/inmotive"));
-
- //기호정보
- model.makeValue(sendPath + "/gustoinfo", fGetXmlToStr(mainPath + "/gustoinfo/gusto"));
-
- //산과정보
- //XML
- model.makeValue(sendPath + "/obgyninfoetc", fGetXmlToStr(mainPath + "/obgyninfoetc/obgyn"));
- model.makeValue(sendPath + "/brthhistinfo", fGetXmlToStr(mainPath + "/brthhistinfo/brthhist"));
- model.makeValue(sendPath + "/inrelainfo", fGetXmlToStr(mainPath + "/inrelainfo/inrela"));
- model.makeValue(sendPath + "/etcinfo", fGetXmlToStr(mainPath + "/etcinfo/etc"));
-
- //단일컨트롤
- model.makeValue(sendPath + "/obgyninfoinclyn", model.getValue(mainPath + "/obgyninfoinclyn"));
- model.makeValue(sendPath + "/befchildbrthmed", model.getValue(mainPath + "/befchildbrthmed"));
- model.makeValue(sendPath + "/gesage", model.getValue(mainPath + "/gesage"));
- model.makeValue(sendPath + "/lastmensdd", model.getValue(mainPath + "/lastmensdd"));
- model.makeValue(sendPath + "/edc", model.getValue(mainPath + "/edc"));
- model.makeValue(sendPath + "/parityg", model.getValue(mainPath + "/parityg"));
- model.makeValue(sendPath + "/parityp", model.getValue(mainPath + "/parityp"));
- model.makeValue(sendPath + "/paritya", model.getValue(mainPath + "/paritya"));
- model.makeValue(sendPath + "/paritysa", model.getValue(mainPath + "/paritysa"));
- model.makeValue(sendPath + "/parityaa", model.getValue(mainPath + "/parityaa"));
- model.makeValue(sendPath + "/parityl", model.getValue(mainPath + "/parityl"));
-
- //배우자정보
- model.makeValue(sendPath + "/ptnernm", model.getValue(mainPath + "/ptnernm"));
- model.makeValue(sendPath + "/ptnerage", model.getValue(mainPath + "/ptnerage"));
- model.makeValue(sendPath + "/ptnerbtype", model.getValue(mainPath + "/ptnerbtype"));
-
- model.makeValue(sendPath + "/ptnertel", model.getValue(mainPath + "/ptnertel"));
- model.makeValue(sendPath + "/ptnerinfcinfoyn", model.getValue(mainPath + "/ptnerinfcinfoyn"));
- model.makeValue(sendPath + "/ptnerinfcinfo", model.getValue(mainPath + "/ptnerinfcinfo"));
- model.makeValue(sendPath + "/ptnerinfcinfonm", model.getValue(mainPath + "/ptnerinfcinfonm"));
-
- model.makeValue(sendPath + "/babyphotoyn", model.getValue(mainPath + "/babyphotoyn"));
- model.makeValue(sendPath + "/ptneinclyn", model.getValue(mainPath + "/ptneinclyn"));
- model.makeValue(sendPath + "/ogirinmotive", model.getValue(mainPath + "/ogirinmotive"));
- model.makeValue(sendPath + "/ptnerbrthdd", model.getValue(mainPath + "/ptnerbrthdd"));
- model.makeValue(sendPath + "/ptnerjobcd", model.getValue(mainPath + "/ptnerjobcd"));
-
-
- //가족사항(가족연락처table)
- var updtdata = getGridUpdateData(grd_famyfact);
- model.makeValue(sendPath + "/famyfact", updtdata);
-
- //병력
- fChkInclYN();
-
- //신체사정
- model.makeValue(sendPath + "/shpaininfo", fGetXmlToStr("/root/main/wardrecinfo/shpaininfo/shpain"));
- model.makeValue(sendPath + "/apttbdwtchnginfo", fGetXmlToStr(mainPath + "/apttbdwtchnginfo/apttbdwtchng"));
- model.makeValue(sendPath + "/slepstatinfo", fGetXmlToStr(mainPath + "/slepstatinfo/slepstat"));
- model.makeValue(sendPath + "/cscsstatinfo", fGetXmlToStr(mainPath + "/cscsstatinfo/cscsstat"));
- model.makeValue(sendPath + "/mensinfo", fGetXmlToStr(mainPath + "/mensinfo/mens"));
- model.makeValue(sendPath + "/cirorgninfo", fGetXmlToStr(mainPath + "/cirorgninfo/cirorgn"));
-
- model.makeValue(sendPath + "/uriorgninfo", fGetXmlToStr(mainPath + "/uriorgninfo/uriorgn"));
- model.makeValue(sendPath + "/stoolinfo", fGetXmlToStr(mainPath + "/stoolinfo/stool"));
- model.makeValue(sendPath + "/actinfo", fGetXmlToStr(mainPath + "/actinfo/act"));
-
- model.makeValue(sendPath + "/visdsordinfo", fGetXmlToStr(mainPath + "/visdsordinfo/visdsord"));
- model.makeValue(sendPath + "/heardsordinfo", fGetXmlToStr(mainPath + "/heardsordinfo/heardsord"));
- model.makeValue(sendPath + "/tootstatinfo", fGetXmlToStr(mainPath + "/tootstatinfo/tootstat"));
-
- //알러지
- if(grd_allghist.rows > 1) {
- if(allgInsYN == "Y") {
- grd_allghist.addStatus(1, "insert");
- }
- }
- model.makeValue("/root/send/wardrecinfo/allginfo", grd_allghist.getUpdateData());
-
- //인자값
- model.makeValue(sendPath + "/pid", model.getValue("/root/temp/cond/list/pid"));
- model.makeValue(sendPath + "/indd", model.getValue("/root/temp/cond/list/indd"));
- model.makeValue(sendPath + "/instcd", model.getValue("/root/temp/cond/list/instcd"));
- model.makeValue(sendPath + "/deptcd", model.getValue("/root/temp/cond/list/orddeptcd"));
- model.makeValue(sendPath + "/docucode", "0000002504");
- model.makeValue(sendPath + "/userid", userid);
- model.makeValue(sendPath + "/recflag", "03");
- model.makeValue("/root/send/wardrecinfo/infooffer", model.getValue("/root/main/wardrecinfo/infooffer"));
- if(model.getValue("/root/properties/parameters/SPMMR04711_shape/SPMMR04711_shapevalue") == "") {
- model.makeValue("/root/send/wardrecinfo/genogrmnm", "");
- } else {
- model.makeValue("/root/send/wardrecinfo/genogrmnm", model.getValue("/root/properties/parameters/SPMMR04711_shape/SPMMR04711_shapevalue"));
- }
-
- //수행구분(I, U에 따른 입력, 수정을위한 구분)
- model.makeValue("/root/send/wardrecinfo/exeflag", model.getValue("/root/hidden/paminfo/paminfo/exeflag"));
-
- 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();
- // //----------(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 rows = grd_famyfact.rows;
- var rela;
- for(var i = 1 ; i < rows; i++) {
- rela = model.getValue(xFamyPath + "/famyfact[" + i + "]/rela");
- if(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 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/nosmokcnst", 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);
- }
- }
-
- //기호식품
- 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);
- }
- }
-
- //수혈부작용
- 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);
- }
- }
-
- /****************************** 산과정보 **************************************/
- //산전진찰
- var befchildbrthmed = model.getValue(xWardRecPath + "/befchildbrthmed");
- if(befchildbrthmed != "") {
- model.setValue(xWardRecPath + "/befchildbrthmed", cmb_befchildbrthmed.label);
- }
-
- //이슬
- var nbabymucusyn = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/nbabymucusyn");
- var nbabymucusdd = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/nbabymucusdd");
- var nbabymucusdt = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/nbabymucusdt");
- str = rdo_nbabymucusyn.label;
-
- if(nbabymucusyn != "") {
- if( nbabymucusyn == "2") {
- if(nbabymucusdd != "") {
- str += "(" + nbabymucusdd.substr(0, 4) + "-" + nbabymucusdd.substr(4, 2) + "-" + nbabymucusdd.substr(6, 2) + " " + nbabymucusdt.substr(0, 2) + ":" + nbabymucusdt.substr(2, 2) + ")";
- }
- }
-
- model.setValue(xWardRecPath + "/obgyninfoetc/obgyn/nbabymucusyn", str);
- }
-
- //조기파수
- var ruptureyn = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/ruptureyn");
- var rupturedd = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/rupturedd");
- var rupturedt = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/rupturedt");
- str = rdo_ruptureyn.label;
-
- if(ruptureyn != "") {
- if( ruptureyn == "2") {
- if(rupturedd != "") {
- str += "(" + rupturedd.substr(0, 4) + "-" + rupturedd.substr(4, 2) + "-" + rupturedd.substr(6, 2) + " " + rupturedt.substr(0, 2) + ":" + rupturedt.substr(2, 2) + ")";
- }
- }
- model.setValue(xWardRecPath + "/obgyninfoetc/obgyn/ruptureyn", str);
- }
-
- //진통
- var angsiayn = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/angsiayn");
- var angsiadd = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/angsiadd");
- var angsiadt = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/angsiadt");
- var angsiatermmin = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/angsiatermmin");
- var angsiatermsec = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/angsiatermsec");
- str = rdo_angsiayn.label;
-
- if(angsiayn != "") {
- if( angsiayn == "2") {
- if(angsiadd != "") {
- str += "(" + angsiadd.substr(0, 4) + "-" + angsiadd.substr(4, 2) + "-" + angsiadd.substr(6, 2) + " " + angsiadt.substr(0, 2) + ":" + angsiadt.substr(2, 2) + "), "
- + "진통간격:" + angsiatermmin + "분마다 " + angsiatermsec + "초간" ;
- }
- }
- model.setValue(xWardRecPath + "/obgyninfoetc/obgyn/angsiayn", str);
- }
-
- /****************************** 배우자정보 **************************************/
- //배우자 혈액형
- var ptnerbtype = model.getValue(xWardRecPath + "/ptnerbtype");
- if(ptnerbtype != "") {
- model.setValue(xWardRecPath + "/ptnerbtype", cmb_ptnerbtype.label);
- }
-
- //배우자 감염정보
- var ptnerinfcinfoyn = model.getValue(xWardRecPath + "/ptnerinfcinfoyn");
- var ptnerinfcinfo = model.getValue(xWardRecPath + "/ptnerinfcinfo");
- var ptnerinfcinfonm = model.getValue(xWardRecPath + "/ptnerinfcinfonm");
- str = rdo_ptnerinfcinfoyn.label;
- arr = "";
-
- if(ptnerinfcinfoyn != "") {
- if(ptnerinfcinfoyn == "2") { //유
- if(ptnerinfcinfo != "") {
-
- for(var i = 1; i<= chk_ptnerinfcinfo.length; i++){
- var ptnerinfo = isSearchString(ptnerinfcinfo, i);
- if(ptnerinfo == true) {
- if(arr == ""){
- arr += chk_ptnerinfcinfo.item(i-1).label;
- }else{
- arr += ", " + chk_ptnerinfcinfo.item(i-1).label;
- }
- }
- }
- if(ptnerinfcinfonm != "") {
- arr += "(" + ptnerinfcinfonm + ")";
- }
- str += "(" + arr + ")";
- }
- }
- model.setValue(xWardRecPath + "/ptnerinfcinfoyn", str);
- }
-
- //배우자 직업
- var ptnerjobcd = model.getValue(xWardRecPath + "/ptnerjobcd");
- if(ptnerjobcd != "") {
- model.setValue(xWardRecPath + "/ptnerjobcd", cmb_ptnerjobcd.label);
- }
-
- /****************************** 입원관련정보 **************************************/
- //임신중약물복용
- var drugintoxicyn = model.getValue(xWardRecPath + "/inrelainfo/inrela/drugintoxicyn");
- if(drugintoxicyn != "") {
- model.setValue(xWardRecPath + "/inrelainfo/inrela/drugintoxicyn", rdo_drugintoxicyn.label);
- }
-
- //최종음식물섭취
- var lastfoodintkdd = model.getValue(xWardRecPath + "/inrelainfo/inrela/lastfoodintkdd");
- var lastfoodintkdt = model.getValue(xWardRecPath + "/inrelainfo/inrela/lastfoodintkdt");
- var str = "";
-
- if(lastfoodintkdd != "") {
- if(lastfoodintkdt != "") {
- str = lastfoodintkdd.substr(0, 4) + "-" + lastfoodintkdd.substr(4, 2) + "-" + lastfoodintkdd.substr(6, 2) + " " + lastfoodintkdt.substr(0, 2) + ":" + lastfoodintkdt.substr(2, 2);
- }else{
- str = lastfoodintkdd.substr(0, 4) + "-" + lastfoodintkdd.substr(4, 2) + "-" + lastfoodintkdd.substr(6, 2);
- }
- model.setValue(xWardRecPath + "/inrelainfo/inrela/lastfoodintkdd", str);
- }
-
- //태아심음
- var ftalhatyn = model.getValue(xWardRecPath + "/inrelainfo/inrela/ftalhatyn");
- var ftalhatgrde = model.getValue(xWardRecPath + "/inrelainfo/inrela/ftalhatgrde");
- str = rdo_ftalhatyn.label;
-
- if(ftalhatyn != "") {
- if( ftalhatyn == "2") {
- if(ftalhatgrde != "") {
- str += "(" + ftalhatgrde + " (bpm))";
- }
- }
- model.setValue(xWardRecPath + "/inrelainfo/inrela/ftalhatyn", str);
- }
-
- //부종
- var edemayn = model.getValue(xWardRecPath + "/inrelainfo/inrela/edemayn");
- var edemakind = model.getValue(xWardRecPath + "/inrelainfo/inrela/edemakind");
- str = rdo_edemayn.label;
-
- if(edemayn != "") {
- if( edemayn == "2") {
- if(edemakind != "") {
- str += "(" + cmb_edemakind.label + ")";
- }
- }
- model.setValue(xWardRecPath + "/inrelainfo/inrela/edemayn", str);
- }
-
- //뇨단백
- var urineprotyn = model.getValue(xWardRecPath + "/inrelainfo/inrela/urineprotyn");
- var urineprotkind = model.getValue(xWardRecPath + "/inrelainfo/inrela/urineprotkind");
- str = rdo_urineprotyn.label;
-
- if(urineprotyn != "") {
- if( urineprotyn == "2") {
- if(urineprotkind != "") {
- str += "(" + cmb_urineprotkind.label + ")";
- }
- }
- model.setValue(xWardRecPath + "/inrelainfo/inrela/urineprotyn", str);
- }
-
- //임신중합병증
- var prgcmplyn = model.getValue(xWardRecPath + "/inrelainfo/inrela/prgcmplyn");
- var prgcmplcnts = model.getValue(xWardRecPath + "/inrelainfo/inrela/prgcmplcnts");
- str = rdo_prgcmplyn.label;
-
- if(prgcmplyn != "") {
- if( prgcmplyn == "2") {
- if(prgcmplcnts != "") {
- str += "(" + prgcmplcnts + ")";
- }
- }
- model.setValue(xWardRecPath + "/inrelainfo/inrela/prgcmplyn", str);
- }
-
- //신체증상
- var bodysympyn = model.getValue(xWardRecPath + "/inrelainfo/inrela/bodysympyn");
- var bodysympcnts = model.getValue(xWardRecPath + "/inrelainfo/inrela/bodysympcnts");
- str = rdo_bodysympyn.label;
-
- if(bodysympyn != "") {
- if( bodysympyn == "2") {
- if(bodysympcnts != "") {
- str += "(" + bodysympcnts + ")";
- }
- }
- model.setValue(xWardRecPath + "/inrelainfo/inrela/bodysympyn", str);
- }
-
- /****************************** 기타 **************************************/
- //수유계획
- var lctplan = model.getValue(xWardRecPath + "/etcinfo/etc/lctplan");
- if(lctplan !="") {
- model.setValue(xWardRecPath + "/etcinfo/etc/lctplan", cmb_lctplan.label);
- }
-
- //산후조리계획
- var postpatrecplankind = model.getValue(xWardRecPath + "/etcinfo/etc/postpatrecplankind");
- var postpatrecplanetc = model.getValue(xWardRecPath + "/etcinfo/etc/postpatrecplanetc");
- str = rdo_postpatrecplankind.label;
-
- if(postpatrecplankind != "") {
- if( postpatrecplankind == "4") {
- if(postpatrecplanetc != "") {
- str += "(" + postpatrecplanetc + ")";
- }
- }
- model.setValue(xWardRecPath + "/etcinfo/etc/postpatrecplankind", str);
- }
- //분만교육
- var partrtneduc = model.getValue(xWardRecPath + "/etcinfo/etc/partrtneduc");
- var partrtneducetc = model.getValue(xWardRecPath + "/etcinfo/etc/partrtneducetc");
- var arr = chk_partrtneduc.label.split(" ");
-
- if(partrtneduc != "") {
- var partrtn = isSearchString(partrtneduc, "5");
-
- if(partrtn == true) {
- if(partrtneducetc != "") {
- arr += "(" + partrtneducetc + ")";
- }
- }
- model.setValue(xWardRecPath + "/etcinfo/etc/partrtneduc", arr);
- }
-
- /****************************** 병력 **************************************/
- //과거병력
- 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")));
- }
- }
-
-
- /****************************** 신체사정 **************************************/
- //기형상태
- 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")));
- }
- }
- }
-
- /****************************** 식욕 및 체중변화 **************************************/
- //동통에서 통증 : 무(default)/유 선택으로 변경 20100122 김홍점
- //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 일부터 동통에서 통증으로 변경됨.
- }
-
- if(shpaininfoinclyn != "") {
- model.makeValue(xWardRecPath + "/shpaininfo/shpain/shpaininfoinclyn", rdo_shpaininfoinclyn.label);
- model.makeValue(xWardRecPath + "/shpaininfo/shpain/shpaininfochgdd", "20100125");//20100125 일부터 동통에서 통증으로 변경됨.
- }
-
- // //식욕변화
- // 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);
- // }
- //식욕상태 (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_bdwtchngyn.label);
- }
- //연하곤란 (15.03.24 - AYS 추가)
- var dysphagiayn = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/dysphagiayn");
- if(dysphagiayn != "") {
- model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/dysphagiayn", rdo_dysphagiayn.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 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 += "(" + cyccatekind + ")";
- }
- }
- }
- 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", "무");
- }
-
- //대변부착기구
- 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 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(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 = heardsordkind.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);
- }
-
- // 신생아 사진 게재 여부
- var babyphotoyn = model.getValue(xWardRecPath + "/babyphotoyn");
- if(babyphotoyn != "") {
- model.setValue(xWardRecPath + "/babyphotoyn", rdo_babyphotoyn.label);
- }
-
- // 산모입원동기
- var ogirinmotive = model.getValue(xWardRecPath + "/ogirinmotive");
- if(ogirinmotive != "") {
- model.setValue(xWardRecPath + "/ogirinmotive", cmb_ogirinmotive.label);
- }
-
- }
-
- 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/instcd", bfrecinstcd);
- model.makeValue("/root/send/req/recflag", bfrecflag);
- //model.makeValue("/root/send/req/docucode", "0000002504");
- //model.makeValue("/root/send/req/deptcd", orddeptcd);
-
- //산모간호정보조사지
- submit("TRMNN00302", false);
- setParameter("SPMMR04711_shape", fGetXmlToStr("/root/main/wardrecinfo/genogrmnm/XMD"));
- //임신주수 계산
- ipt_edc.dispatch("xforms-value-changed");
-
- 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( (model.getValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/apptstatflag") == "") ||
- (model.getValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn") == "") ||
- (model.getValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/dysphagiayn") == "") )
- {
- 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_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"))) )
- || (ipt_urinesmell != null && isNull(model.getValue(ipt_urinesmell.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_actfreeyn != null && isNull(model.getValue(rdo_actfreeyn.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 ( (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="TRMNN00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/paminfo"/>
- <submission id="TRMNN00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main"/>
- <submission id="TRMNN00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/init/newpat"/>
- <submission id="TRMNN00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/cominfo"/>
- <submission id="TXMNN00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/wardrecinfo" 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"/>
- </model>
- </xhtml:head>
- <xhtml:body 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>
- <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; "/>
- <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; "/>
- <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\SMMNW07910_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\SMMNW07710_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; "/>
- <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("TXMNN00301") == true) {
- messageBox("저장이 ", "I001");
- model.makeValue("/root/hidden/paminfo/paminfo/exeflag", "U");
- } else {
- messageBox("저장이 실패하였습니다.", "I001");
- }
- ]]>
- </script>
- </button>
- <button id="button2" class="btn5_letter4" style="left:1129px; top:49px; width:64px; height:19px; ">
- <caption>인증저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var msgstr = "";
- var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
-
- //가족사항 : 관계 필수 입력
- for(var i = 1 ; i < grd_famyfact.rows; i++) {
- var rela = model.getValue("/root/main/famyfact[" + i + "]/rela");
- if(rela == "") {
- var msg1 = "[가족사항 - 관계]";
- msgstr += msg1;
- break;
- }
- }
-
- //필수입력사항 blocking
- if(model.getValue("/root/main/wardrecinfo/spo2") == "" && model.getValue("/root/main/wardrecinfo/spo2inspyn") != "Y"){
- var msg2 = "[SpO2]";
- if(msgstr == ""){
- msgstr += msg2;
- }else{
- msgstr += ", " + msg2;
- }
- }
- if(model.getValue("/root/main/wardrecinfo/infooffer") == ""){
- var msg9 = "[정보제공자]";
- if(msgstr == ""){
- msgstr += msg9;
- }else{
- msgstr += ", " + msg9;
- }
- }
- if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/smokinfoyn") == ""){
- var msg3 = "[흡연정보]";
- if(msgstr == ""){
- msgstr += msg3;
- }else{
- msgstr += ", " + msg3;
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/smokinfoyn") == "2"){
- if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/bfsmokinfoyn") == ""){
- var msg24 = "[입원전1개월이내 흡연여부]";
- if(msgstr == ""){
- msgstr += msg24
- }else{
- msgstr += ", " + msg24;
- }
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/nosmokcnstyn") == ""){
- var msg4 = "[금연상담여부]";
- if(msgstr == ""){
- msgstr += msg4;
- }else{
- msgstr += ", " + msg4;
- }
- }
- if(model.getValue("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat/antibiodrugyn") == ""){
- var msg5 = "[병원도착전 24시간내 항생제 투약여부]";
- if(msgstr == ""){
- msgstr += msg5;
- }else{
- msgstr += ", " + msg5;
- }
- }
-
- //20090626_SMY추가
- if(model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid = '077' and supcdid = '03' and cdid = '"+ getUserInfo("dutplceinstcd") +"']/cdid")){ //supcdid='03' : 부천성가병원
- if(model.getValue("/root/main/wardrecinfo/bdht") == "" && model.getValue("/root/main/wardrecinfo/bdhtinspyn") != "Y"){
- var msg6 = "[신장]";
- if(msgstr == ""){
- msgstr += msg6;
- }else{
- msgstr += ", " + msg6;
- }
- }
- if(model.getValue("/root/main/wardrecinfo/bdwtinspyn") != "Y"){
- if(model.getValue("/root/main/wardrecinfo/prgbfbdwt") == ""){
- var msg7 = "[임신전 체중]";
- if(msgstr == ""){
- msgstr += msg7;
- }else{
- msgstr += ", " + msg7;
- }
- }
- if(model.getValue("/root/main/wardrecinfo/inbdwt") == ""){
- var msg8 = "[입원시 체중]";
- if(msgstr == ""){
- msgstr += msg8;
- }else{
- msgstr += ", " + msg8;
- }
- }
- }
- }
-
- //------------(20110121) 경북대
- // if(model.getValue("/root/main/wardrecinfo/nrs1cd") == ""){
- // var msg8 = "[영양상태지표]";
- // if(msgstr == ""){
- // msgstr += msg8;
- // }else{
- // msgstr += ", " + msg8;
- // }
- // }
- // if(model.getValue("/root/main/wardrecinfo/nrs21cd") == ""){
- // var msg9 = "[임상상태지표1]";
- // if(msgstr == ""){
- // msgstr += msg9;
- // }else{
- // msgstr += ", " + msg9;
- // }
- // }
- // if(model.getValue("/root/main/wardrecinfo/nrs22cd") == ""){
- // var msg10 = "[영양상태지표2]";
- // if(msgstr == ""){
- // msgstr += msg10;
- // }else{
- // msgstr += ", " + msg10;
- // }
- // }
- // if(model.getValue("/root/main/wardrecinfo/nrs23cd") == ""){
- // var msg11 = "[영양상태지표3]";
- // if(msgstr == ""){
- // msgstr += msg11;
- // }else{
- // msgstr += ", " + msg11;
- // }
- // }
- //------------(20110121) 경북대
-
- // 2013.04.25 배우자정보 필수항목으로 지정!!
- if(model.getValue("/root/main/wardrecinfo/ptneinclyn") != "1"){
- if(model.getValue("/root/main/wardrecinfo/ptnernm") == ""){
- var msg12 = "[배우자이름]";
- if(msgstr == ""){
- msgstr += msg12;
- }else{
- msgstr += ", " + msg12;
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/ptnerbrthdd") == ""){
- var msg25 = "[배우자생년월일]";
- if(msgstr == ""){
- msgstr += msg25;
- }else{
- msgstr += ", " + msg25;
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/ptnerage") == ""){
- var msg13 = "[배우자나이]";
- if(msgstr == ""){
- msgstr += msg13;
- }else{
- msgstr += ", " + msg13;
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/ptnertel") == ""){
- var msg14 = "[배우자연락처]";
- if(msgstr == ""){
- msgstr += msg14;
- }else{
- msgstr += ", " + msg14;
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/ptnerjobcd") == ""){
- var msg26 = "[배우자직업]";
- if(msgstr == ""){
- msgstr += msg26;
- }else{
- msgstr += ", " + msg26;
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/ptnerbtype") == ""){
- var msg15 = "[배우자혈액형]";
- if(msgstr == ""){
- msgstr += msg15;
- }else{
- msgstr += ", " + msg15;
- }
- }
- }
-
- // 2013.07.16 산과정보 필수항목으로 지정!!
- if(model.getValue("/root/main/wardrecinfo/obgyninfoinclyn") != "1"){
- if(model.getValue("/root/main/wardrecinfo/befchildbrthmed") == ""){
- var msg16 = "[산전진찰]";
- if(msgstr == ""){
- msgstr += msg16;
- }else{
- msgstr += ", " + msg16;
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/gesage") == ""){
- var msg17 = "[임신주수]";
- if(msgstr == ""){
- msgstr += msg17;
- }else{
- msgstr += ", " +msg17;
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/lastmensdd") == ""){
- var msg18 = "[최종월경일]";
- if(msgstr == ""){
- msgstr += msg18;
- }else{
- msgstr += ", " + msg18;
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/edc") == ""){
- var msg19 = "[분만예정일]";
- if(msgstr == ""){
- msgstr += msg19;
- }else{
- msgstr += ", " + msg19;
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/parityg") == "" && model.getValue("/root/main/wardrecinfo/parityp") == "" && model.getValue("/root/main/wardrecinfo/paritya") == ""
- && model.getValue("/root/main/wardrecinfo/paritysa") == "" && model.getValue("/root/main/wardrecinfo/parityaa") == "" && model.getValue("/root/main/wardrecinfo/parityl") == ""){
- var msg20 = "[임신출산력]";
- if(msgstr == ""){
- msgstr += msg20;
- }else{
- msgstr += ", " + msg20;
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/nbabymucusyn") != ""){
- if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/nbabymucusyn") == "2"){
- if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/nbabymucusdd") == "" || model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/nbabymucusdt") == ""){
- var msg21= "[이슬]";
- if(msgstr == ""){
- msgstr += msg21;
- }else{
- msgstr += ", " + msg21;
- }
- }
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/ruptureyn") != ""){
- if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/ruptureyn") == "2"){
- if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/rupturedd") == "" || model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/rupturedt") == ""){
- var msg22= "[조기파수]";
- if(msgstr == ""){
- msgstr += msg22;
- }else{
- msgstr += ", " + msg22;
- }
- }
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/angsiayn") != ""){
- if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/angsiayn") == "2"){
- if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/angsiadd") == "" || model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/angsiadt") == ""
- || model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/angsiatermmin") == "" || model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/angsiatermsec") == ""){
- var msg23= "[진통]";
- if(msgstr == ""){
- msgstr += msg23;
- }else{
- msgstr += ", " + msg23;
- }
- }
- }
- }
- }
-
- if ( instUseYN =="Y"){
- // var msgblock = fMNWCareBodyAssBlockForJCI();
- var msgblock = fCareBodyAssBlock();
- if( msgblock != ""){
- msgstr += "\n" + msgblock;
- }
- }
- if(msgstr != "" ){
- messageBox(msgstr + " 은(는) ", "I003");//필수입력입니다
- return;
- }
-
- 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( "03", "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/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", "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", "0000002504");
- 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("TXMNN00301") == true) {
-
- grd_famyfact.clearStatus();
- model.setValue("/root/send/wardrecinfo", "");
- messageBox("저장이 ", "I001");
- model.makeValue("/root/hidden/paminfo/paminfo/exeflag", "U");
- fGetInitRecInfo(); //재조회
- fInitEvent();
-
- } else {
- messageBox("저장이 실패하였습니다.", "I001");
- }
- }
- ]]>
- </script>
- </button>
- <input id="ipt_signno" ref="/root/main/wardrecinfo/signno" visibility="hidden" style="left:855px; top:45px; width:50px; height:19px; "/>
- <button id="button1" class="btn2_letter6" style="left:973px; top:49px; width:86px; height:19px; ">
- <caption>전체기록삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setCareInfoDel("TXMNN00301"); //CareCom.js
- fGetIndtInfo(); //현재수진이력의 입원시간을 가져온다
- ]]>
- </script>
- </button>
- <caption id="cap_sinfodnor" class="cell_1" style="left:677px; top:18px; width:68px; height:23px; vertical-align:middle; ">정보제공자</caption>
- <caption id="cap_bfrecdt" class="cell_1" style="left:0px; top:18px; width:80px; height:23px; vertical-align:middle; ">이전기록일시</caption>
- <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_recdt" class="cell_1" style="left:351px; top:18px; width:56px; 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="caption11" class="cell_1" style="left:1044px; top:18px; width:71px; height:23px; vertical-align:middle; ">최초기록자</caption>
- <caption id="caption12" class="cell_1" style="left:845px; top:18px; width:80px; 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; "/>
- <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( "03", "SRCH" );
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="cap_recuser" class="cell_1" style="left:553px; top:18px; width:47px; 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_bfrecuser" class="cell_1" style="left:205px; top:18px; width:67px; 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; "/>
- <output id="output2" ref="/root/main/wardrecinfo/fstrgstrnm" class="output_fix" style="left:1116px; top:20px; width:75px; height:19px; "/>
- <input id="ipt_infooffer" ref="/root/main/wardrecinfo/infooffer" class="input_default" maxlength="10" style="left:747px; top:20px; width:97px; 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:0px; width:26px; height:20px; ">[표]</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|