1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>산모간호정보조사</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";
-
- }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(){
- // 15.06.18 여성, 월경, 비뇨기계, 대변 항목 추가
- var mensaddinfoynflag = instance1.selectSingleNode(chk_mensaddinfoyn.attribute("ref"));
- var urinecateynflag = instance1.selectSingleNode(rdo_urinecateyn.attribute("ref"));
- var urinevoldaytime = instance1.selectSingleNode(cmb_urinevoldaytime.attribute("ref"));
- var bdwtchngtermflag= instance1.selectSingleNode("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngtermflag");
- // 16.04.22_배우자_기타입력_항목_추가_AYS
- var ptnerjobnm = instance1.selectSingleNode(ipt_ptnerjobnm.attribute("ref"));
-
- 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.06.16 추가 - 여성정보 추가사정
- if(mensaddinfoynflag == null) {
- model.makeValue(chk_mensaddinfoyn.attribute("ref"), "");
- }
-
- if(urinecateynflag == null) {
- model.makeValue(rdo_urinecateyn.attribute("ref"), "");
- }
- if(urinevoldaytime == null) {
- model.makeValue(cmb_urinevoldaytime.attribute("ref"), "");
- }
-
- // 16.04.22_배우자_기타입력_항목_AYS
- if(ptnerjobnm == null) {
- model.makeValue(ipt_ptnerjobnm.attribute("ref"), "");
- }
- }
-
- 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"));
- // 16.04.22_배우자 기타명 추가_AYS
- model.makeValue(sendPath + "/ptnerjobnm", model.getValue(mainPath + "/ptnerjobnm"));
-
-
- //가족사항(가족연락처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"));
-
- //'15.06.22 - 추가
- 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);
- }
- }
-
- // 15.08.25 - 개인정보사정 미 동의시 [개인정보사정미동의] 내용표기
- var privacy = model.getValue(xWardRecPath + "/privacy");
- if(privacy != "") {
- if(privacy == "Y") {
- model.setValue(xWardRecPath + "/jobcd", trim(chk_privacy.label));
- model.setValue(xWardRecPath + "/religncd", chk_privacy.label);
- model.setValue(xWardRecPath + "/marystatcd", chk_privacy.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);
- }
-
- //배우자 직업(16.04.22_주석처리)
- /*
- var ptnerjobcd = model.getValue(xWardRecPath + "/ptnerjobcd");
- if(ptnerjobcd != "") {
- model.setValue(xWardRecPath + "/ptnerjobcd", cmb_ptnerjobcd.label);
- }
- */
-
- // 배우자 직업 수정(기타 추가)_ 16.04.22_ AYS
- var ptnerjobcd = model.getValue(xWardRecPath + "/ptnerjobcd");
- if(ptnerjobcd != "") {
- if(ptnerjobcd == "10") {
- if(model.getValue(xWardRecPath + "/ptnerjobnm") == "") {
- model.setValue(xWardRecPath + "/ptnerjobcd", cmb_ptnerjobcd.label);
- } else {
- model.setValue(xWardRecPath + "/ptnerjobcd", model.getValue(xWardRecPath + "/ptnerjobnm"));
- }
-
- } else {
- 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);
- }
-
- /****************************** 수면상태 **************************************/
- //수면장애
- 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);
- } else{
- model.setValue(xWardRecPath + "/mensinfo/mens/mensyn", "사정불필요");
- }
-
- //상태
- var mensstat = model.getValue(xWardRecPath + "/mensinfo/mens/mensstat");
- if(mensstat != "") {
- model.setValue(xWardRecPath + "/mensinfo/mens/mensstat", rdo_mensstat.label);
- } else{
- model.setValue(xWardRecPath + "/mensinfo/mens/mensstat", "사정불필요");
- }
-
- //월경통
- var menspainyn = model.getValue(xWardRecPath + "/mensinfo/mens/menspainyn");
- if(menspainyn != "") {
- model.setValue(xWardRecPath + "/mensinfo/mens/menspainyn", rdo_menspainyn.label);
- } else{
- model.setValue(xWardRecPath + "/mensinfo/mens/menspainyn", "사정불필요");
- }
-
- //월경주기 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", "");
- } else{
- model.makeValue(xWardRecPath + "/mensinfo/mens/mensdayweek", "사정불필요");
- }
-
- // 양
- var mensvol = model.getValue(xWardRecPath + "/mensinfo/mens/mensvol");
- if (mensvol == "" || mensvol == null){
- model.setValue(xWardRecPath + "/mensinfo/mens/mensvol", "사정불필요");
- }
-
- // 초경
- var fstmensage = model.getValue(xWardRecPath + "/mensinfo/mens/fstmensage");
- if (fstmensage == "" || fstmensage == null){
- model.setValue(xWardRecPath + "/mensinfo/mens/fstmensage", "사정불필요");
- }
-
- // 월경 기타
- var mensetc = model.getValue(xWardRecPath + "/mensinfo/mens/mensetc");
- if (mensetc == "" || mensetc == null){
- model.setValue(xWardRecPath + "/mensinfo/mens/mensetc", "사정불필요");
- }
-
- /****************************** 순환기계 **************************************/
- //순환장애
- var cirdsordkind = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cirdsordkind");
- var arr = new Array();
- arr = chk_cycdsordkind.label.split(" ");
- if(cirdsordkind != "") {
- model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cirdsordkind", arr);
- }
- //부종
- var edema = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/edemakind");
- var edemadetll = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/edemadetll");
- str = cmb_edema.label;
-
- if(edema != "") {
- if(edema == "7") {
- if(edemadetll != "") {
- str = edemadetll;
- }
- }
- model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/edemakind", str);
- }
- //요흔
- var yohnyn = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/yohnyn");
- var yohn = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/yohnddetl");
- str = rdo_yohnyn.label;
-
- if(yohnyn != "") {
- if(yohnyn == "2") {
- if(yohn != "") {
- str = yohn;
- }
- }
- model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/yohnyn", str);
- }
- //부착기구
- var cyccateyn = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cyccateyn");
- var cyccatekind = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cyccatekind");
- var catedetl = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/catedetl");
- str = rdo_cyccateyn.label;
-
- if(cyccateyn != "") {
- if(cyccateyn == "2") {
- if(cyccatekind != "") {
-
- if(cyccatekind == "3") {
- if(catedetl != "") {
- str += "(" + catedetl + ")";
- }
- } else {
- str += "(" + cmb_cyccatekind.label + ")";
- }
- }
- }
- model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cyccateyn", str);
- }
-
- // 15.06.18 - 추가
- /****************************** 비뇨기계 **************************************/
- // 비뇨기계 부착기구
- var urinecateyn = model.getValue(xWardRecPath + "/uriorgninfo/uriorgn/urinecateyn");
-
- if(urinecateyn != "") {
- model.setValue(xWardRecPath + "/uriorgninfo/uriorgn/urinecateyn", rdo_urinecateyn.label);
- }
-
- // 비뇨기계 소변양(회/일)
- var urinevoldaytime = model.getValue(xWardRecPath + "/uriorgninfo/uriorgn/urinevoldaytime");
-
- if(urinevoldaytime != "") {
- model.setValue(xWardRecPath + "/uriorgninfo/uriorgn/urinevoldaytime", cmb_urinevoldaytime.label);
- }
- // 15.06.18 - 추가
-
- /****************************** 대변 **************************************/
- //대변색깔
- 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 = chk_heardsordkind.label.split(" ");
- str += ", " + arr;
- }
- }
-
- model.setValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordyn", str);
- }
-
- //치아상태
- var tootstatkind = model.getValue(xWardRecPath + "/tootstatinfo/tootstat/tootstatkind");
- if(tootstatkind != "") {
- arr = chk_tootstatkind.label.split(" ");
- model.setValue(xWardRecPath + "/tootstatinfo/tootstat/tootstatkind", arr);
- }
-
- // 신생아 사진 게재 여부
- 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 ( (rdo_apttchngyn != null && isNull(model.getValue(rdo_apttchngyn.attribute("ref"))) )
- || (rdo_apttchngyn != null && model.getValue(rdo_apttchngyn.attribute("ref")) =="2" && rdo_apttchngflag != null && isNull(model.getValue(rdo_apttchngflag.attribute("ref"))) )
- || (rdo_onemealyn != null && isNull(model.getValue(rdo_onemealyn.attribute("ref"))) )
- || (rdo_apttstatflag != null && isNull(model.getValue(rdo_apttstatflag.attribute("ref"))) )
- || (rdo_bdwtchngyn != null && isNull(model.getValue(rdo_bdwtchngyn.attribute("ref"))) )
- || (rdo_bdwtchngyn != null && model.getValue(rdo_bdwtchngyn.attribute("ref")) == "2"
- && (
- // rdo_incdecflag != null && isNull(model.getValue(rdo_incdecflag.attribute("ref")))
- // || ipt_chnggrde != null && isNull(model.getValue(ipt_chnggrde.attribute("ref")))
- (!( rdo_incdecflag != null && isNull(model.getValue(rdo_incdecflag.attribute("ref")))) && ipt_chnggrde != null && isNull(model.getValue(ipt_chnggrde.attribute("ref"))) )//체중변화증가/감소선택 했을때만 체중기록필수입력체크(소경화ITC요청)
- || rdo_bdwtchngtermflag != null && isNull(model.getValue(rdo_bdwtchngtermflag.attribute("ref")))
- //|| ipt_term != null && isNull(model.getValue(ipt_term.attribute("ref")))
- )
- )
- ){
- msgblock += " [식욕 및 체중변화]";
- }
- // 의식상태 지남력/의식상태/의사소통/정서상태의 각 항목에 기록이 되지않은 경우
- 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"))) && rdo_urinecateyn != null && model.getValue(rdo_urinecateyn.attribute("ref")) =="1")
- || (ipt_urineday != null && isNull(model.getValue(ipt_urineday.attribute("ref"))) && rdo_urinecateyn != null && model.getValue(rdo_urinecateyn.attribute("ref")) =="1")
- || (ipt_urinevol != null && isNull(model.getValue(ipt_urinevol.attribute("ref"))) )
- || (cmb_urinevoldaytime != null && isNull(model.getValue(cmb_urinevoldaytime.attribute("ref"))) )
- || (ipt_urinesmell != null && isNull(model.getValue(ipt_urinesmell.attribute("ref"))) )
- || (rdo_urinecateyn != null && isNull(model.getValue(rdo_urinecateyn.attribute("ref"))) )
- ){
- msgblock += " [비뇨기계]";
- }
- // 대변 대변횟수/마지막대변일/대변색깔/대변종류 항목에 기록하지 않은 경우
- if ( (ipt_stooltims != null && isNull(model.getValue(ipt_stooltims.attribute("ref"))) && rdo_stoolcateyn != null && model.getValue(rdo_stoolcateyn.attribute("ref")) =="1")
- || (ipt_stoolday != null && isNull(model.getValue(ipt_stoolday.attribute("ref"))) && rdo_stoolcateyn != null && model.getValue(rdo_stoolcateyn.attribute("ref")) =="1")
- || (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"))) )
- || (rdo_stoolcateyn != null && isNull(model.getValue(rdo_stoolcateyn.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\SMMNW07900_산과정보.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\SMMNW07700_신체사정.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;
- }
- }
-
- // '16.04.18 - 발병일자 필수 입력
- if(model.getValue("/root/main/wardrecinfo/inmotiveinfo/inmotive/attackdd") == ""){
- var msg27 = "[발병일자]";
- if(msgstr == ""){
- msgstr += msg27;
- }else{
- msgstr += ", " + msg27;
- }
- }
-
- if(model.getValue("/root/main/wardrecinfo/inmotiveinfo/inmotive/attackdt") == ""){
- var msg28 = "[발병시간]";
- if(msgstr == ""){
- msgstr += msg28;
- }else{
- msgstr += ", " + msg28;
- }
- }
- // '16.04.18 - 발병일자 필수 입력
-
- 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) 경북대
-
- //20110308 이선경(경북대) 통증여부가 '유'일때 통증관리기록이 있는지 체크
- // '16.04.18 - AYS 추가
- if(model.getValue("/root/main/wardrecinfo/shpaininfo/shpain/shpaininfoinclyn") == "2") {
- model.makeValue("/root/send/pid", model.getValue("/root/temp/cond/list/pid"));
- model.makeValue("/root/send/indd", model.getValue("/root/temp/cond/list/indd"));
- model.makeValue("/root/send/cretno", model.getValue("/root/temp/cond/list/cretno"));
- model.makeValue("/root/send/genrdd", getCurrentDate());
- model.makeValue("/root/send/genrtm", getCurrentDateTime().substring(9,13));
- model.makeValue("/root/send/stdradio", "0");
-
- model.makeValue("/root/send/req/indd", model.getValue("/root/temp/cond/list/indd"));
- model.makeValue("/root/send/req/cretno", model.getValue("/root/temp/cond/list/cretno"));
-
- submit('TRMNW04802');
-
- if(getNodesetCount("/root/main/detlgrup/detlgruplist") == 0) {
- var msg29 = "[통증관리기록]";
- if(msgstr == ""){
- msgstr += msg29;
- }else{
- msgstr += ", " + msg29;
- }
- }
- } else { // '16.04.18 - AYS 추가
- if(model.getValue("/root/main/wardrecinfo/shpaininfo/shpain/shpaininfoflag") == "") {
- var msg30 = "[통증]";
- if(msgstr == ""){
- msgstr += msg30;
- }else{
- msgstr += ", " + msg30;
- }
- }
- }
-
- // 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;
- }
- }
-
- // 16.04.22_배우자직업 기타
- if(model.getValue("/root/main/wardrecinfo/ptnerjobcd") == "10"){
- if(model.getValue("/root/main/wardrecinfo/ptnerjobnm") == ""){
- var msg31 = "[배우자직업 기타]";
- if(msgstr == ""){
- msgstr += msg31;
- }else{
- msgstr += ", " + msg31;
- }
- }
- }
-
- 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;
- }
- }
-
- /*
- // 16.04.21 - 산모간호초기평가 최종월경일 삭제 - AYS
- 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 = 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>
|