1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597 |
- <?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/>
- <bodyases>
- <mfmdstatinfo/>
- <shpaininfo/>
- <resorgninfo/>
- <digorgninfo/>
- <nvesysinfo/>
- <skinsectinfo/>
- </bodyases>
- <rsltinfo/>
- </hidden>
- <codeinfo/>
- <signinfo>
- <signno/>
- </signinfo>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fGetCmbList();
- fInit();
- fGetInitRecInfo();
- fGetIndtInfo(); //현재수진이력의 입원시간을 가져온다
- fInitEvent();
-
- model.refresh();
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var status = "select";
- 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 fInitEvent() {
- fInitEventOutNBabyInfo();
- fInitEventBodyAses();
- }
-
- function fGetCmbList() {
- model.removeNodeset("/root/init/mlist");
- model.makeNode("/root/init/mlist");
- //성가병원 기관코드 조회_20090626_SMY
- fGetNursHardCdInfo("'077','172'", getCurrentDate()); //CareCom.js
-
- zbcfGetCodeList( new Array ( "M0068" //직업
- ,"M0069" //교육정도
- ,"M0070" //종교
- ,"M0071" //결혼상태
- ,"M0072" //관계
- ,"M0073" //부위
- ,"M0376" //혈액형
- ,"M0075" //의식상태
- ,"M0088" //생존여부
- ,"M0090" //알러지
- ,"M0098" //동반자
- ,"M0100" //지남력
- ,"M0102" //요흔
- ,"M0103" //부착기구
- ,"M0104" //소변색깔
- ,"M0105" //소변증상
- ,"M0106" //대변색깔
- ,"M0107" //대변종류
- ,"M0109" //동공빛반사여부
- ,"M0110" //동공수치
- ,"M0086"
- ,"M0418" //입원경로
- ,"M0375" //체온부위
- ,"M0210" //입원방법
- )
- , 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" //입원방법
- )
- );
-
- model.refresh();
- }
-
- function fSetStatus() {
- var rtn = "";
-
- if(status == "select") {
- rtn = "6";
- } else {
- rtn = messageBox("데이터를 ", "Q001");
- }
- return rtn;
- }
-
- //화면 로딩시
- function fInit(){
- model.copyNode("/root/hidden/histinfo", "/root/main/histinfo");
-
- model.makeValue("/root/hidden/histinfo/pasthistinfo/pasthist/pasthistinclyn", "1");
- model.makeValue("/root/hidden/histinfo/famyhistinfo/famyhist/famyhistinclyn", "1");
- model.makeValue("/root/hidden/histinfo/inhistinfo/inhist/inhistinclyn", "1");
- model.makeValue("/root/hidden/histinfo/ophistinfo/ophist/ophistinclyn", "1");
- model.makeValue("/root/hidden/histinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn", "1");
- model.makeValue("/root/hidden/histinfo/allghistinfo/allghist/allghistinclyn", "1");
- model.makeValue("/root/hidden/histinfo/vacnhistinfo/vacnhist/vacnhistinfoinclyn", "1");
- model.makeValue("/root/hidden/histinfo/gustofoodinfo/gustofood/gustofoodinclyn", "1");
- model.makeNode("/root/temp/cond/list");
- getPatientInfoDetails("/root/temp/cond/list");
-
- var pid;
- var room;
- var patnm;
- var sex;
- var age;
- var instcd;
- var orddeptcd;
- var indd;
-
- room = model.getValue("/root/temp/cond/list/roomcd");
- patnm = model.getValue("/root/temp/cond/list/hngnm");
- sex = model.getValue("/root/temp/cond/list/sex");
- age = model.getValue("/root/temp/cond/list/age");
- pid = model.getValue("/root/temp/cond/list/pid");
- indd = model.getValue("/root/temp/cond/list/indd");
- instcd = model.getValue("/root/temp/cond/list/instcd");
- orddeptcd = model.getValue("/root/temp/cond/list/orddeptcd");
- 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/age", age);
- model.makeValue("/root/main/wardrecinfo/pid", pid);
- model.makeValue("/root/main/wardrecinfo/nbabynm", patnm);
- model.makeValue("/root/main/wardrecinfo/sex", sex);
-
- 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 김홍점
-
- //웹용 인자값 셋팅
- 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", "07");
- model.makeValue("/root/send/req/docucode", "0000002434");
- model.makeValue("/root/send/req/deptcd", orddeptcd);
-
- if(pid == "") {
- messageBox("환자를 선택하지 ", "E007");
- window.close();
-
- } else {
- if(instUseYN == "Y"){
- btn_edurec.visible = true;
- grp_patinfo.attribute("style")="left:310px; top:50px; width:640px; height:20px;" ;
-
- setParameter("SPMRJ00300_pid", pid);
- setParameter("SPMRJ00300_orddd", indd);
- setParameter("SPMRJ00300_cretno", cretno);
- ivw_edurec.src = "../../../emr/jcimngtweb/xrw/SPMRJ00300_교육요구도사정.xrw.xrw";
-
- }else{
- grp_patinfo.attribute("style")="left:210px; top:50px; width:640px; height:20px;" ;
- btn_edurec.visible = false;
- }
- submit("TRMNN02001", "false");//저장후 삭제(K), 신규(I), 수정(U)
-
- var exeflag = model.getValue("/root/hidden/paminfo/paminfo/exeflag");
-
- if(exeflag == 'U') {
- submit("TRMNN02002", false);
-
- //인증번호set_20090722_SMY
- model.setValue("/root/signinfo/signno", model.getValue("/root/main/wardrecinfo/signno"));
-
- var existfamyinfo = model.getValue("/root/main/wardrecinfo/existfamyinfo");
- setParameter("SPMMR04711_shape", fGetXmlToStr("/root/main/wardrecinfo/genogrmnm/XMD"));
-
- //마지막 기록일시 셋팅
-
- model.makeValue("/root/main/wardrecinfo/bfrecddtm", model.getValue("/root/hidden/paminfo/recinfo[recflag = '07' and indd = '" + indd + "']/recpkspec"));
- model.makeValue("/root/main/wardrecinfo/bfrecuser", model.getValue("/root/hidden/paminfo/recinfo[recflag = '07' and indd = '" + indd + "']/bfrecuser"));
-
- //입원일자 셋팅(응급실 경유 환자인 경우 입실체크가 되는 시점(즉 응급실 퇴실시점)의 일자가 병동 입원일자로 조회됨)_20090303_SMY
- model.makeValue("/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("TRMNN02004", "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"));
-
- //병력 연동부분
- 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/histinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn", "");
- model.setValue("/root/main/histinfo/allghistinfo/allghist/allghistinclyn", "");
- model.setValue("/root/main/histinfo/vacnhistinfo/vacnhist/vacnhistinfoinclyn", "");
- model.setValue("/root/main/histinfo/gustofoodinfo/gustofood/gustofoodinclyn", "");
-
- } else {
- model.copyNode("/root/main/histinfo", "/root/hidden/cominfo/histinfo");
- }
-
- //입원일자 셋팅(응급실 경유 환자인 경우 입실체크가 되는 시점(즉 응급실 퇴실시점)의 일자가 병동 입원일자로 조회됨)_20090303_SMY
- model.setValue("/root/main/wardrecinfo/indd", model.getValue("/root/temp/cond/list/careinrmdd"));
- //기록일시 정보를 쿼리에서 가져옴
- 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();
- }
- }
- //최초기록자
- var recpkspec = (model.getValue("/root/main/wardrecinfo/bfrecddtm")).split("|"); //이전기록일시
- var indd2 = recpkspec[1]; //이전기록일시 입원일자
- var fstrgstdt = model.getValue("/root/hidden/paminfo/recinfo[recflag = '07' and indd = '" + indd2 + "']/fstrgstdt");
-
- if(model.getValue("/root/main/wardrecinfo/bfrecuser") !="" || model.getValue("/root/main/wardrecinfo/bfrecddtm") !="") {
- model.makeValue("/root/main/wardrecinfo/fstrgstdt", fstrgstdt.substr(0,4) + "-" + fstrgstdt.substr(4,2)+"-"+fstrgstdt.substr(6,2)+" "+fstrgstdt.substr(8,2)+":"+fstrgstdt.substr(10,2));
- model.makeValue("/root/main/wardrecinfo/fstrgstrnm", model.getValue("/root/hidden/paminfo/recinfo[recflag = '07' and indd = '" + indd2 + "']/fstrgstrnm"));
- }
-
- //가계도 연동부분.
- if(existfamyinfo == "Y") {
- model.setValue("/root/main/wardrecinfo/famytree/existyn", "Y");
- opt_existyn.refresh();
- }
-
- }
- status = "select";
- model.refresh();
- }
-
- function fGetDate() {
-
- }
-
- function fGetXmlToStr(xPath) {
-
- var str = instance1.selectNodesXml(xPath);
-
- return str;
- }
-
-
- function fPatgnrlInfo(certFlag) {
- var userid = getUserId();
- //model.removeNodeset("/root/send/wardinfo");
- //신생아 일반정보
- model.makeValue("/root/send/wardrecinfo/pid", model.getValue("/root/main/wardrecinfo/pid"));
- model.makeValue("/root/send/wardrecinfo/nbabynm", model.getValue("/root/main/wardrecinfo/nbabynm"));
- model.makeValue("/root/send/wardrecinfo/partrtndd", model.getValue("/root/main/wardrecinfo/partrtndd"));
- model.makeValue("/root/send/wardrecinfo/partrtndt", model.getValue("/root/main/wardrecinfo/partrtndt"));
- model.makeValue("/root/send/wardrecinfo/sex", model.getValue("/root/main/wardrecinfo/sex"));
- model.makeValue("/root/send/wardrecinfo/brthbdwt", model.getValue("/root/main/wardrecinfo/brthbdwt"));
- model.makeValue("/root/send/wardrecinfo/brthbdwtunit", model.getValue("/root/main/wardrecinfo/brthbdwtunit"));
- model.makeValue("/root/send/wardrecinfo/inbdwt", model.getValue("/root/main/wardrecinfo/inbdwt"));
- model.makeValue("/root/send/wardrecinfo/inbdwtunit", model.getValue("/root/main/wardrecinfo/inbdwtunit"));
- model.makeValue("/root/send/wardrecinfo/mthernm", model.getValue("/root/main/wardrecinfo/mthernm"));
- model.makeValue("/root/send/wardrecinfo/mtherage", model.getValue("/root/main/wardrecinfo/mtherage"));
- model.makeValue("/root/send/wardrecinfo/mtherbtype", model.getValue("/root/main/wardrecinfo/mtherbtype"));
- model.makeValue("/root/send/wardrecinfo/mtherbrh", model.getValue("/root/main/wardrecinfo/mtherbrh"));
- model.makeValue("/root/send/wardrecinfo/mthertel", model.getValue("/root/main/wardrecinfo/mthertel"));
- model.makeValue("/root/send/wardrecinfo/fthernm", model.getValue("/root/main/wardrecinfo/fthernm"));
- model.makeValue("/root/send/wardrecinfo/ftherage", model.getValue("/root/main/wardrecinfo/ftherage"));
- model.makeValue("/root/send/wardrecinfo/ftherbtype", model.getValue("/root/main/wardrecinfo/ftherbtype"));
- model.makeValue("/root/send/wardrecinfo/ftherbrh", model.getValue("/root/main/wardrecinfo/ftherbrh"));
- model.makeValue("/root/send/wardrecinfo/fthertel", model.getValue("/root/main/wardrecinfo/fthertel"));
- model.makeValue("/root/send/wardrecinfo/indd", model.getValue("/root/main/wardrecinfo/indd"));
- model.makeValue("/root/send/wardrecinfo/indt", model.getValue("/root/main/wardrecinfo/indt"));
- model.makeValue("/root/send/wardrecinfo/inpathcd", model.getValue("/root/main/wardrecinfo/inpathcd"));
- model.makeValue("/root/send/wardrecinfo/inpathnm", model.getValue("/root/main/wardrecinfo/inpathnm"));
- model.makeValue("/root/send/wardrecinfo/inmthdcd", model.getValue("/root/main/wardrecinfo/inmthdcd"));
- model.makeValue("/root/send/wardrecinfo/inmthdnm", model.getValue("/root/main/wardrecinfo/inmthdnm"));
- model.makeValue("/root/send/wardrecinfo/inacompstcd", model.getValue("/root/main/wardrecinfo/inacompstcd"));
- model.makeValue("/root/send/wardrecinfo/inacompstnm", model.getValue("/root/main/wardrecinfo/inacompstnm"));
- model.makeValue("/root/send/wardrecinfo/visitplaccd", model.getValue("/root/main/wardrecinfo/visitplaccd"));
- model.makeValue("/root/send/wardrecinfo/visitplacnm", model.getValue("/root/main/wardrecinfo/visitplacnm"));
- model.makeValue("/root/send/wardrecinfo/basebdinfoinclyn", model.getValue("/root/main/wardrecinfo/basebdinfoinclyn"));
- /*
- model.makeValue("/root/send/wardrecinfo/lowbp", model.getValue("/root/main/wardrecinfo/lowbp"));
- model.makeValue("/root/send/wardrecinfo/highbp", model.getValue("/root/main/wardrecinfo/highbp"));
- model.makeValue("/root/send/wardrecinfo/pulse", model.getValue("/root/main/wardrecinfo/pulse"));
- model.makeValue("/root/send/wardrecinfo/breth", model.getValue("/root/main/wardrecinfo/breth"));
- model.makeValue("/root/send/wardrecinfo/bdtp", model.getValue("/root/main/wardrecinfo/bdtp"));
- model.makeValue("/root/send/wardrecinfo/bdtppartcd", model.getValue("/root/main/wardrecinfo/bdtppartcd"));
- model.makeValue("/root/send/wardrecinfo/bdht", model.getValue("/root/main/wardrecinfo/bdht"));
- model.makeValue("/root/send/wardrecinfo/bdwt", model.getValue("/root/main/wardrecinfo/bdwt"));
- model.makeValue("/root/send/wardrecinfo/headgirth", model.getValue("/root/main/wardrecinfo/headgirth"));
- model.makeValue("/root/send/wardrecinfo/chestgirth", model.getValue("/root/main/wardrecinfo/chestgirth"));
- */
- //신체정보 측정불가체크시 측정불가코드값 저장로직 추가_20090310_SMY
- //혈압
- if(model.getValue("/root/main/wardrecinfo/bpinspyn") == "Y"){
- model.makeValue("/root/send/wardrecinfo/lowbp", NoneInspCode);
- model.makeValue("/root/send/wardrecinfo/highbp", NoneInspCode);
- }else{
- model.makeValue("/root/send/wardrecinfo/lowbp", model.getValue("/root/main/wardrecinfo/lowbp"));
- model.makeValue("/root/send/wardrecinfo/highbp", model.getValue("/root/main/wardrecinfo/highbp"));
- }
- //맥박
- if(model.getValue("/root/main/wardrecinfo/pulseinspyn") == "Y"){
- model.makeValue("/root/send/wardrecinfo/pulse", NoneInspCode);
- }else{
- model.makeValue("/root/send/wardrecinfo/pulse", model.getValue("/root/main/wardrecinfo/pulse"));
- }
- //호흡
- if(model.getValue("/root/main/wardrecinfo/brethinspyn") == "Y"){
- model.makeValue("/root/send/wardrecinfo/breth", NoneInspCode);
- }else{
- model.makeValue("/root/send/wardrecinfo/breth", model.getValue("/root/main/wardrecinfo/breth"));
- }
- //체온
- if(model.getValue("/root/main/wardrecinfo/bdtpinspyn") == "Y"){
- model.makeValue("/root/send/wardrecinfo/bdtp", NoneInspCode);
- model.makeValue("/root/send/wardrecinfo/bdtppartcd", NoneInspCode);
- }else{
- model.makeValue("/root/send/wardrecinfo/bdtp", model.getValue("/root/main/wardrecinfo/bdtp"));
- model.makeValue("/root/send/wardrecinfo/bdtppartcd", model.getValue("/root/main/wardrecinfo/bdtppartcd"));
- }
- //신장
- if(model.getValue("/root/main/wardrecinfo/bdhtinspyn") == "Y"){
- model.makeValue("/root/send/wardrecinfo/bdht", NoneInspCode);
- }else{
- model.makeValue("/root/send/wardrecinfo/bdht", model.getValue("/root/main/wardrecinfo/bdht"));
- }
- //체중
- if(model.getValue("/root/main/wardrecinfo/bdwtinspyn") == "Y"){
- model.makeValue("/root/send/wardrecinfo/bdwt", NoneInspCode);
- }else{
- model.makeValue("/root/send/wardrecinfo/bdwt", model.getValue("/root/main/wardrecinfo/bdwt"));
- }
- //머리둘레
- if(model.getValue("/root/main/wardrecinfo/headgirthinspyn") == "Y"){
- model.makeValue("/root/send/wardrecinfo/headgirth", NoneInspCode);
- }else{
- model.makeValue("/root/send/wardrecinfo/headgirth", model.getValue("/root/main/wardrecinfo/headgirth"));
- }
- //가슴둘레
- if(model.getValue("/root/main/wardrecinfo/chestgirthinspyn") == "Y"){
- model.makeValue("/root/send/wardrecinfo/chestgirth", NoneInspCode);
- }else{
- model.makeValue("/root/send/wardrecinfo/chestgirth", model.getValue("/root/main/wardrecinfo/chestgirth"));
- }
-
- model.makeValue("/root/send/wardrecinfo/gesage", model.getValue("/root/main/wardrecinfo/gesage"));
- model.makeValue("/root/send/wardrecinfo/partrtntype", model.getValue("/root/main/wardrecinfo/partrtntype"));
- model.makeValue("/root/send/wardrecinfo/partrtnplce", model.getValue("/root/main/wardrecinfo/partrtnplce"));
- model.makeValue("/root/send/wardrecinfo/apgarscore1", model.getValue("/root/main/wardrecinfo/apgarscore1"));
- model.makeValue("/root/send/wardrecinfo/apgarscore5", model.getValue("/root/main/wardrecinfo/apgarscore5"));
-
- //일반정보 XML
- model.makeValue("/root/send/wardrecinfo/nbabybrthinfoinclyn", model.getValue("/root/main/wardrecinfo/nbabybrthinfoinclyn"));
- model.makeValue("/root/send/wardrecinfo/famytree", fGetXmlToStr("/root/main/wardrecinfo/famytree/existyn"));
- model.makeValue("/root/send/wardrecinfo/inmotiveinfo", fGetXmlToStr("/root/main/wardrecinfo/inmotiveinfo/inmotive"));
- model.makeValue("/root/send/wardrecinfo/maternalinfo", fGetXmlToStr("/root/main/wardrecinfo/maternalinfo/maternal"));
- model.makeValue("/root/send/wardrecinfo/spcffact", fGetXmlToStr("/root/main/wardrecinfo/spcffact/spcf"));
- model.makeValue("/root/send/wardrecinfo/etcbrthinfo", fGetXmlToStr("/root/main/wardrecinfo/etcbrthinfo/etcbrth"));
- model.makeValue("/root/send/wardrecinfo/feedinginfo", fGetXmlToStr("/root/main/wardrecinfo/feedinginfo/feeding"));
- //신체사정
- model.makeValue("/root/send/wardrecinfo/actcryinfo", fGetXmlToStr("/root/main/wardrecinfo/actcryinfo/actcry"));
- model.makeValue("/root/send/wardrecinfo/resorgninfo", fGetXmlToStr("/root/main/wardrecinfo/resorgninfo/resorgn"));
- model.makeValue("/root/send/wardrecinfo/cirorgninfo", fGetXmlToStr("/root/main/wardrecinfo/cirorgninfo/cirorgn"));
- model.makeValue("/root/send/wardrecinfo/skinsectinfo", fGetXmlToStr("/root/main/wardrecinfo/skinsectinfo/skinsect"));
- model.makeValue("/root/send/wardrecinfo/faceinfo", fGetXmlToStr("/root/main/wardrecinfo/faceinfo/face"));
- model.makeValue("/root/send/wardrecinfo/eyeinfo", fGetXmlToStr("/root/main/wardrecinfo/eyeinfo/eye"));
- model.makeValue("/root/send/wardrecinfo/urintorgninfo", fGetXmlToStr("/root/main/wardrecinfo/urintorgninfo/urintorgn"));
- model.makeValue("/root/send/wardrecinfo/dembztinfo", fGetXmlToStr("/root/main/wardrecinfo/dembztinfo/dembzt"));
- model.makeValue("/root/send/wardrecinfo/extrminfo", fGetXmlToStr("/root/main/wardrecinfo/extrminfo/extrm"));
- model.makeValue("/root/send/wardrecinfo/headinfo", fGetXmlToStr("/root/main/wardrecinfo/headinfo/head"));
- model.makeValue("/root/send/wardrecinfo/rflxinfo", fGetXmlToStr("/root/main/wardrecinfo/rflxinfo/rflx"));
- model.makeValue("/root/send/wardrecinfo/tensioninfo", fGetXmlToStr("/root/main/wardrecinfo/tensioninfo/tension"));
- model.makeValue("/root/send/wardrecinfo/emotstatinfo", fGetXmlToStr("/root/main/wardrecinfo/emotstatinfo/emotstat"));
- model.makeValue("/root/send/wardrecinfo/etcmfmdtrma", fGetXmlToStr("/root/main/wardrecinfo/etcmfmdtrma/etcmfmdtrma"));
-
- //병력정보
- model.makeValue("/root/send/wardrecinfo/pasthistinfo", fGetXmlToStr("/root/main/histinfo/pasthistinfo/pasthist"));
- model.makeValue("/root/send/wardrecinfo/famyhistinfo", fGetXmlToStr("/root/main/histinfo/famyhistinfo/famyhist"));
- model.makeValue("/root/send/wardrecinfo/inhistinfo", fGetXmlToStr("/root/main/histinfo/inhistinfo/inhist"));
- model.makeValue("/root/send/wardrecinfo/ophistinfo", fGetXmlToStr("/root/main/histinfo/ophistinfo/ophist"));
- model.makeValue("/root/send/wardrecinfo/rectmedistatinfo", fGetXmlToStr("/root/main/histinfo/rectmedistatinfo/rectmedistat"));
- model.makeValue("/root/send/wardrecinfo/allghistinfo", fGetXmlToStr("/root/main/histinfo/allghistinfo/allghist"));
- 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"));
-
- // 현재 로컬 웹상에서 사용할 경우
- model.makeValue("/root/send/wardrecinfo/pid", model.getValue("/root/temp/cond/list/pid"));
- model.makeValue("/root/send/wardrecinfo/indd", model.getValue("/root/temp/cond/list/indd"));
- model.makeValue("/root/send/wardrecinfo/instcd", model.getValue("/root/temp/cond/list/instcd"));
- model.makeValue("/root/send/wardrecinfo/deptcd", model.getValue("/root/temp/cond/list/orddeptcd"));
- model.makeValue("/root/send/wardrecinfo/recflag", "07");
- model.makeValue("/root/send/wardrecinfo/docucode", "0000002434");
-
-
- model.makeValue("/root/send/wardrecinfo/userid", userid);
- model.makeValue("/root/send/wardrecinfo/infooffer", model.getValue("/root/main/wardrecinfo/infooffer"));
-
- //수행구분(I, U에 따른 입력, 수정을위한 구분)
- model.makeValue("/root/send/wardrecinfo/exeflag", model.getValue("/root/hidden/paminfo/paminfo/exeflag"));
-
- 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"));
- }
-
- 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"));
- //수행구분(I, U에 따른 입력, 수정을위한 구분)
- // model.makeValue("/root/send/wardrecinfo/exeflag", model.getValue("/root/hidden/paminfo/paminfo/exeflag"));
-
- }
-
- function fSetSignData() {
-
- var xWardRecPath = Sign.XPATH_SIGNINFO + "/wardrecinfo";
- var xHistPath = Sign.XPATH_SIGNINFO + "/histinfo";
- var str;
- var arr = new Array();
-
- /****************************** 신생아기본정보 **************************************/
- //성별
- var sex = model.getValue(xWardRecPath +"/sex");
- if(sex != "") {
- model.setValue(xWardRecPath +"/sex", cmb_sex.label);
- }
- //출생시체중단위
- var brthbdwtunit = model.getValue(xWardRecPath +"/brthbdwtunit");
- if(brthbdwtunit != "") {
- model.setValue(xWardRecPath +"/brthbdwtunit", cmb_brthbdwtunit.label);
- }
- //입원시체중단위
- var inbdwtunit = model.getValue(xWardRecPath +"/inbdwtunit");
- if(inbdwtunit != "") {
- model.setValue(xWardRecPath +"/inbdwtunit", cmb_inbdwtunit.label);
- }
-
- /****************************** 가족사항 **************************************/
- //엄마혈액형
- var mtherbtype = model.getValue(xWardRecPath +"/mtherbtype");
- if(mtherbtype != "") {
- model.setValue(xWardRecPath +"/mtherbtype", cmb_mtherbtype.label);
- }
- //아빠혈액형
- var ftherbtype = model.getValue(xWardRecPath +"/ftherbtype");
- if(ftherbtype != "") {
- model.setValue(xWardRecPath +"/ftherbtype", cmb_ftherbtype.label);
- }
-
- /****************************** 입원정보 **************************************/
- //입원경로
- 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);
- }
- }
-
- //머물렀던 곳
- var visitplaccd = model.getValue(xWardRecPath + "/visitplaccd");
- if(visitplaccd != "") {
- if(inacompst == "04") {
- if(model.getValue(xWardRecPath + "/visitplacnm") != "") {
- model.setValue(xWardRecPath + "/visitplaccd", model.getValue(xWardRecPath + "/visitplacnm"));
- } else {
- model.setValue(xWardRecPath + "/visitplaccd", cmb_visitplaccd.label);
- }
- } else {
- model.setValue(xWardRecPath + "/visitplaccd", cmb_visitplaccd.label);
- }
- }
-
- /****************************** 입원동기와 병에대한 인식 **************************************/
- //입원동기
- var inmotive1 = model.getValue(xWardRecPath + "/inmotiveinfo/inmotive/inmotive1");
- if( inmotive1 != "") {
- if(inmotive1 = "Y") {
- model.setValue(xWardRecPath + "/inmotiveinfo/inmotive/inmotive1", "자의");
- } else{
- model.setValue(xWardRecPath + "/inmotiveinfo/inmotive/inmotive1", "타의");
- }
-
- }
-
- /****************************** 기본 신체정보 **************************************/
- //체온
- var bdtppart = model.getValue(xWardRecPath + "/bdtppartcd");
- if(bdtppart != "") {
- model.setValue(xWardRecPath + "/bdtppartcd", cmb_bdtp.label);
- }
-
- /****************************** Maternal /Anternatal History **************************************/
- //Maternal /Anternatal History
- var maternalkind = model.getValue(xWardRecPath + "/maternalinfo/maternal/maternalkind");
- var etc = model.getValue(xWardRecPath + "/maternalinfo/maternal/etc");
- var promdd = model.getValue(xWardRecPath + "/maternalinfo/maternal/promdd");
- var promdt = model.getValue(xWardRecPath + "/maternalinfo/maternal/promdt");
- var arr = "";
- var infcsicknm=new Array();
- if(maternalkind != ""){
- for(var i = 1; i<= chk_maternalkind.length; i++){
- //var infcsicknm = isSearchString(maternalkind, chk_maternalkind.item(i-1).value);
- infcsicknm = maternalkind.split(" ");
- for ( var idx = 0 ; idx < infcsicknm.length ; idx++ ){
- if(infcsicknm[idx] == chk_maternalkind.item(i-1).value ) {
- if(arr == ""){
- arr += chk_maternalkind.item(i-1).label;
- }else{
- arr += ", " + chk_maternalkind.item(i-1).label;
- }
-
- if( chk_maternalkind.item(i-1).value == "8"){
- if(etc != ""){
- arr += "(" + etc + ")";
- }
- }else if( chk_maternalkind.item(i-1).value== "15"){
- if(promdd != "" && promdt != "") {
- arr += "(" + promdd.substr(0,4) + "-" + promdd.substr(4,2) + "-" + promdd.substr(6,2) + " " + promdt.substr(0,2) + ":" + promdt.substr(2, 2) + ")";
- } else if( promdd != "" && promdt == "") {
- arr += "(" + promdd.substr(0,4) + "-" + promdd.substr(4,2) + "-" + promdd.substr(6,2) + ")";
- } else if( promdd == "" && promdt != "") {
- arr += "(" + promdt.substr(0,2) + ":" + promdt.substr(2, 2) + ")"
- }
- }
- }
-
- }
- }
- }
- model.setValue(xWardRecPath + "/maternalinfo/maternal/maternalkind", arr);
-
- /****************************** 예방접종이력 **************************************/
- //DPT
- var dpttims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/dpttims");
- if(dpttims != "") {
- arr = chk_dpt.label.split(" ");
- model.setValue(xHistPath + "/vacnhistinfo/vacnhist/dpttims", arr);
- }
-
- //소아마비
- var infparaltims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/infparaltims");
- if(infparaltims != "") {
- arr = chk_infparal.label.split(" ");
- model.setValue(xHistPath + "/vacnhistinfo/vacnhist/infparaltims", arr);
- }
-
- //A형간염
- var ahptstims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/ahptstims");
- if(ahptstims != "") {
- arr = chk_ahpts.label.split(" ");
- model.setValue(xHistPath + "/vacnhistinfo/vacnhist/ahptstims", arr);
- }
-
- //B형간염
- var bhptstims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/bhptstims");
- var bhptsdrugnm = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/bhptsdrugnm");
- str = chk_bhpts.label;
-
- if(bhptstims != "") {
- /* var bhpts = isSearchString(bhptstims, "4");
- if(bhpts == true) {
- if(bhptsdrugnm != "") {
- str += "(약이름: " + bhptsdrugnm + ")";
- }
- }
- */
- if(bhptsdrugnm != "") {
- str += "(약이름: " + bhptsdrugnm + ")";
- }
- model.setValue(xHistPath + "/vacnhistinfo/vacnhist/bhptstims", str);
- }
-
- //B형간염 면역글로블린
- var bhptsyn = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/bhptsyn");
- if (bhptsyn != ""){
- model.setValue(xHistPath + "/vacnhistinfo/vacnhist/bhptsyn", rdo_bhpts.label);
- }
-
- //BCG
- var bcgyn = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/bcgyn");
- if(bcgyn != "") {
- arr = rdo_bcgyn.label.split(" ");
- model.setValue(xHistPath + "/vacnhistinfo/vacnhist/bcgyn", arr);
- }
-
- //MMR
- var mmrtims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/mmrtims");
- if(mmrtims != "") {
- arr = chk_mmr.label.split(" ");
- model.setValue(xHistPath + "/vacnhistinfo/vacnhist/mmrtims", arr);
- }
-
- //생백신
- var alivvacntims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/alivvacntims");
- if(alivvacntims != "") {
- arr = chk_alivvacn.label.split(" ");
- model.setValue(xHistPath + "/vacnhistinfo/vacnhist/alivvacntims", arr);
- }
-
- //사백신
- var deadvaccntims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/deadvaccntims");
- if(deadvaccntims != "") {
- arr = chk_deadvacn.label.split(" ");
- model.setValue(xHistPath + "/vacnhistinfo/vacnhist/deadvaccntims", arr);
- }
-
- //뇌수막염
- var brnmeningitistims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/brnmeningitistims");
- if(brnmeningitistims != "") {
- arr = chk_brnmeningitis.label.split(" ");
- model.setValue(xHistPath + "/vacnhistinfo/vacnhist/brnmeningitistims", arr);
- }
-
- //폐구균
- var lungcoccustims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/lungcoccustims");
- if(lungcoccustims != "") {
- arr = chk_lungcoccus.label.split(" ");
- model.setValue(xHistPath + "/vacnhistinfo/vacnhist/lungcoccustims", arr);
- }
-
- //수두
- var chickenpoxtims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/chickenpoxtims");
- if(chickenpoxtims != "") {
- arr = chk_chickenpox.label.split(" ");
- model.setValue(xHistPath + "/vacnhistinfo/vacnhist/chickenpoxtims", arr);
- }
-
-
- /****************************** Feeding History **************************************/
- //Feeding History
- var feedinghistkind = model.getValue(xWardRecPath + "/feedinginfo/feeding/feedinghistkind"); //구분
- var feedingkind = model.getValue(xWardRecPath + "/feedinginfo/feeding/feedingkind"); //모유
- var powderedmilk = model.getValue(xWardRecPath + "/feedinginfo/feeding/powderedmilk"); //분유
- var feedingtim = model.getValue(xWardRecPath + "/feedinginfo/feeding/feedingtim");
- var feedingtimtoday = model.getValue(xWardRecPath + "/feedinginfo/feeding/feedingtimtoday");
- var feedinghistdetl = model.getValue(xWardRecPath + "/feedinginfo/feeding/feedinghistdetl"); //기타
- arr = "";
-
- if(feedinghistkind != ""){
- for(var i = 1; i<= chk_feedinghistkind.length; i++){
- var feedingnm = isSearchString(feedinghistkind, i);
- if(feedingnm == true) {
- if(arr == ""){
- arr += chk_feedinghistkind.item(i-1).label;
- }else{
- arr += ", " + chk_feedinghistkind.item(i-1).label;
- }
-
- if( i == "2"){
- if(feedingkind != ""){
- arr += "(" + cmb_feedingkind.label + ")";
- }
- }else if( i == "3"){
- if(powderedmilk != "" || feedingtim != "" || feedingtimtoday != ""){
- arr += "(" ;
- if(powderedmilk != ""){
- arr += cmb_powerdmilk.label + " ";
- }
- if(feedingtim != ""){
- arr += feedingtim + "cc/회 ";
- }
- if(feedingtimtoday != ""){
- arr += feedingtimtoday + "회/일 ";
- }
- arr += ")";
- }
-
- }else if( i == "4"){
- if(feedinghistdetl != "") {
- arr += "(" + feedinghistdetl + ")";
- }
- }
-
- }
- }
- model.setValue(xWardRecPath + "/feedinginfo/feeding/feedinghistkind", arr);
- }
-
- /****************************** 신생아출생정보 **************************************/
- //임신주수
- var gesage = model.getValue(xWardRecPath +"/gesage");
- if(gesage != ""){
- model.setValue(xWardRecPath + "/gesage", gesage + "(주+일)");
- }
-
- //분만형태
- var partrtntype = model.getValue(xWardRecPath +"/partrtntype");
- if(partrtntype != ""){
- model.setValue(xWardRecPath + "/partrtntype", cmb_partrtntype.label);
- }
-
- //분만장소
- var partrtnplce = model.getValue(xWardRecPath +"/partrtnplce");
- if(partrtnplce != ""){
- model.setValue(xWardRecPath + "/partrtnplce", cmb_partrtnplce.label);
- }
-
- //산소흡입
- var oxysuctyn = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/oxysuctyn");
- var oxysuctcnts = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/oxysuctcnts");
- str = rdo_oxysuctyn.label;
-
- if(oxysuctyn != "") {
- if(oxysuctyn == "Y") {
- if(oxysuctcnts != "") {
- str += "(" + oxysuctcnts + ")";
- }
- }
- model.setValue(xWardRecPath +"/etcbrthinfo/etcbrth/oxysuctyn", str);
- }
-
- //심폐소생술
- var cpryn = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/cpryn");
- var cprcnts = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/cprcnts");
- str = rdo_cpryn.label;
-
- if(cpryn != "") {
- if(cpryn == "Y") {
- if(cprcnts != "") {
- str += "(" + cprcnts + ")";
- }
- }
- model.setValue(xWardRecPath +"/etcbrthinfo/etcbrth/cpryn", str);
- }
-
- //vitamin K1
- var vitaminyn = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/vitaminyn");
- var vitamincnts = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/vitamincnts");
- str = rdo_vitaminyn.label;
-
- if(vitaminyn != "") {
- if(vitaminyn == "2") {
- if(vitamincnts != "") {
- str += "(" + vitamincnts + ")";
- }
- }
- model.setValue(xWardRecPath +"/etcbrthinfo/etcbrth/vitaminyn", str);
- }
-
- //선천성 대사이상검사
- var inbornerrmetayn = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/inbornerrmetayn");
- var inbornerrmetacnts = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/inbornerrmetacnts");
- str = rdo_inbornerrmetayn.label;
-
- if(inbornerrmetayn != "") {
- if(inbornerrmetayn == "2") {
- if(inbornerrmetacnts != "") {
- str += "(" + inbornerrmetacnts + ")";
- }
- }
- model.setValue(xWardRecPath +"/etcbrthinfo/etcbrth/inbornerrmetayn", str);
- }
-
- //청력 선별검사
- var hearasrttestyn = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/hearasrttestyn");
- var hearasrttestcnts = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/hearasrttestcnts");
- str = rdo_hearasrttestyn.label;
-
- if(hearasrttestyn != "") {
- if(hearasrttestyn == "2") {
- if(hearasrttestcnts != "") {
- str += "(" + hearasrttestcnts + ")";
- }
- }
- model.setValue(xWardRecPath +"/etcbrthinfo/etcbrth/hearasrttestyn", str);
- }
-
- /****************************** 신체사정 **************************************/
- //활동 및 울음정보
- var actcrykind = model.getValue(xWardRecPath +"/actcryinfo/actcry/actcrykind");
- if(actcrykind != "") {
- arr = chk_actcrykind.label.split(" ");
- model.setValue(xWardRecPath +"/actcryinfo/actcry/actcrykind", arr);
- }
-
- //호흡기계
- var resorgnkind = model.getValue(xWardRecPath +"/resorgninfo/resorgn/resorgnkind");
- var resorgnkindetc = model.getValue(xWardRecPath +"/resorgninfo/resorgn/resorgnkindetc");
- var arr = chk_resorgnkind.label.split(" ");
-
- if(resorgnkind != "") {
- var resorgn = isSearchString(resorgnkind, "11");
-
- if(resorgn == true) {
- if(resorgnkindetc != "") {
- arr += "(" + resorgnkindetc + ")";
- }
- }
- model.setValue(xWardRecPath +"/resorgninfo/resorgn/resorgnkind", arr);
- }
-
- //순환기계
- var cirorgnkind = model.getValue(xWardRecPath +"/cirorgninfo/cirorgn/cirorgnkind");
- var cirorgnkindetc = model.getValue(xWardRecPath +"/cirorgninfo/cirorgn/cirorgnkindetc");
- var arr = chk_cirorgnkind.label.split(" ");
-
- if(cirorgnkind != "") {
- var cirorgn = isSearchString(cirorgnkind, "6");
-
- if(cirorgn == true) {
- if(cirorgnkindetc != "") {
- arr += "(" + cirorgnkindetc + ")";
- }
- }
- model.setValue(xWardRecPath +"/cirorgninfo/cirorgn/cirorgnkind", arr);
- }
-
- //피부
- var skinsectkind = model.getValue(xWardRecPath +"/skinsectinfo/skinsect/skinsectkind");
- var skinsectkindetc = model.getValue(xWardRecPath +"/skinsectinfo/skinsect/skinsectkindetc");
- var arr = chk_skinsectkind.label.split(" ");
-
- if(skinsectkind != "") {
- var skinsect = isSearchString(cirorgnkind, "13");
-
- if(skinsect == true) {
- if(skinsectkindetc != "") {
- arr += "(" + skinsectkindetc + ")";
- }
- }
- model.setValue(xWardRecPath +"/skinsectinfo/skinsect/skinsectkind", arr);
- }
-
- //얼굴
- var facekind = model.getValue(xWardRecPath +"/faceinfo/face/facekind");
- var facekindetc = model.getValue(xWardRecPath +"/faceinfo/face/facekindetc");
- var arr = chk_facekind.label.split(" ");
- if(facekind != "") {
- var cirorgn = isSearchString(facekind, "6");
- if(cirorgn == true) {
- if(facekindetc != "") {
- arr += "(" + facekindetc + ")";
- }
- }
- model.setValue(xWardRecPath +"/faceinfo/face/facekind", arr);
- }
- //눈
- var eyekind = model.getValue(xWardRecPath +"/eyeinfo/eye/eyekind");
- var eyekindetc = model.getValue(xWardRecPath +"/eyeinfo/eye/eyekindetc");
- var eyekindnm = model.getValue(xWardRecPath +"/eyeinfo/eye/eyekindnm");
- str = rdo_eyekind.label;
-
- if(eyekind != "") {
- if(eyekind == "Y") {
- if(eyekindetc != "") {
- if(eyekindetc == "04") {
- if(eyekindnm != "") {
- str += "(" + cmb_eyekindetc.label + "(" + eyekindnm + "))";
- } else {
- str += "(" + cmb_eyekindetc.label + ")";
- }
- }else{
- str += "(" + cmb_eyekindetc.label + ")";
- }
- }
- }
- model.setValue(xWardRecPath +"/eyeinfo/eye/eyekind", str);
- }
-
- //비뇨생식기
- var idx = 0;
- var urintorgnkind = model.getValue(xWardRecPath +"/urintorgninfo/urintorgn/urintorgnkind");
- var urintorgnkindetc = model.getValue(xWardRecPath +"/urintorgninfo/urintorgn/urintorgnkindetc");
- var fststoolyn = model.getValue(xWardRecPath +"/urintorgninfo/urintorgn/fststoolyn");
- var fststoolafttm = model.getValue(xWardRecPath +"/urintorgninfo/urintorgn/fststoolafttm");
- var fsturineyn = model.getValue(xWardRecPath +"/urintorgninfo/urintorgn/fsturineyn");
- var fsturineafttm = model.getValue(xWardRecPath +"/urintorgninfo/urintorgn/fsturineafttm");
-
- if(urintorgnkind != "") {
- var urintorgnkindVal = chk_urintorgnkind.value;
- var urintorgnkindLab = chk_urintorgnkind.label;
-
- var arrVal = urintorgnkindVal.split(" "); //선택된 Value값을 가져온.다
- var arrLab = urintorgnkindLab.split(" "); //선택된 Label값을 가져온다.
-
- //전체 아이템 갯수 만큼 반복.(item값을 비교하기를 위한 반복문)
- for(var i = 1; i <= chk_urintorgnkind.length; i++) {
-
- //선택된 아이템의 갯수만큼 반복.
- for(var j = 0; j < arrVal.length; j++) {
- //i를 가지고 비교를 함으로써 아이템 항목 순서대로 값을 가져감.
- if(i == arrVal[j]) {
- if( i == "7"){
- if(fststoolyn != ""){
- if(fststoolafttm != ""){
- arrLab[idx] += "(" + rdo_fststoolyn.label + "(생후 " + fststoolafttm + "시간))"
- }else{
- arrLab[idx] += "(" + rdo_fststoolyn.label + ")"
- }
- }
- }else if( i == "8"){
- if(fsturineyn != ""){
- if(fsturineafttm != ""){
- arrLab[idx] += "(" + rdo_fsturineyn.label + "(생후 " + fsturineafttm + "시간))"
- }else{
- arrLab[idx] += "(" + rdo_fsturineyn.label + ")"
- }
- }
- }else if( i == "9"){
- if(urintorgnkindetc != ""){
- arrLab[idx] += "(" + urintorgnkindetc + ")";
- }
- }
-
- idx++; //선택된 항목만큼. 값이 담겨져있는지 비료를 위한 인덱스.
-
- //선택된 항목만큼값을 담았다면 종료.
- if(idx == arrVal.length) {
- break;
- }
- }
- }
- }
- str = arrLab; //저장한 값을 변수에 담음.
-
- model.setValue(xWardRecPath + "/urintorgninfo/urintorgn/urintorgnkind", str );
- }
-
- /*
- //비뇨생식기
- var urintorgnkind = model.getValue(xWardRecPath +"/urintorgninfo/urintorgn/urintorgnkind");
- var urintorgnkindetc = model.getValue(xWardRecPath +"/urintorgninfo/urintorgn/urintorgnkindetc");
- var fststooldt = model.getValue(xWardRecPath + "/urintorgninfo/urintorgn/fststooldt");
- var fststooltm = model.getValue(xWardRecPath + "/urintorgninfo/urintorgn/fststooltm");
- var fsturinedt = model.getValue(xWardRecPath + "/urintorgninfo/urintorgn/fsturinedt");
- var fsturinetm = model.getValue(xWardRecPath + "/urintorgninfo/urintorgn/fsturinetm");
- arr = "";
-
- if(urintorgnkind != ""){
- for(var i = 1; i<= chk_urintorgnkind.length; i++){
- var urintorgninfo = isSearchString(urintorgnkind, i);
-
- if(urintorgninfo == true) {
- if(arr == ""){
- arr += chk_urintorgnkind.item(i-1).label;
- }else{
- arr += ", " + chk_urintorgnkind.item(i-1).label;
- }
-
- if( i == "7"){
- if(fststooldt != "" && fststooltm != "") {
- arr += "(" + fststooldt.substr(0,4) + "-" + fststooldt.substr(4,2) + "-" + fststooldt.substr(6,2) + " " + fststooltm.substr(0,2) + ":" + fststooltm.substr(2, 2) + ")";
- } else if( fststooldt != "" && fststooltm == "") {
- arr += "(" + fststooldt.substr(0,4) + "-" + fststooldt.substr(4,2) + "-" + fststooldt.substr(6,2) + ")";
- } else if( fststooldt == "" && fststooltm != "") {
- arr += "(" + fststooltm.substr(0,2) + ":" + fststooltm.substr(2, 2) + ")"
- }
- }else if( i == "8"){
- if(fsturinedt != "" && fsturinetm != "") {
- arr += "(" + fsturinedt.substr(0,4) + "-" + fsturinedt.substr(4,2) + "-" + fsturinedt.substr(6,2) + " " + fsturinetm.substr(0,2) + ":" + fsturinetm.substr(2, 2) + ")";
- } else if( fsturinedt != "" && fsturinetm == "") {
- arr += "(" + fsturinedt.substr(0,4) + "-" + fsturinedt.substr(4,2) + "-" + fsturinedt.substr(6,2) + ")";
- } else if( fsturinedt == "" && fsturinetm != "") {
- arr += "(" + fsturinetm.substr(0,2) + ":" + fsturinetm.substr(2, 2) + ")"
- }
- }else if( i == "9"){
- if(urintorgnkindetc != ""){
- arr += "(" + urintorgnkindetc + ")";
- }
- }
- }
- }
- model.setValue(xWardRecPath + "/urintorgninfo/urintorgn/urintorgnkind", arr);
- }
-
- */
- //출혈
- var bledyn = model.getValue(xWardRecPath +"/dembztinfo/dembzt/bledyn");
-
- if(bledyn != "") {
- model.setValue(xWardRecPath +"/dembztinfo/dembzt/bledyn", rdo_bledyn.label);
- }
- //태변착색
- var mecstainyn = model.getValue(xWardRecPath +"/dembztinfo/dembzt/mecstainyn");
-
- if(mecstainyn != "") {
- model.setValue(xWardRecPath +"/dembztinfo/dembzt/mecstainyn", rdo_mecstainyn.label);
- }
- //다지증
- var polydactylyyn = model.getValue(xWardRecPath +"/extrminfo/extrm/polydactylyyn");
-
- if(polydactylyyn != "") {
- model.setValue(xWardRecPath +"/extrminfo/extrm/polydactylyyn", rdo_polydactylyyn.label);
- }
- //합지증
- var syndactylyyn = model.getValue(xWardRecPath +"/extrminfo/extrm/syndactylyyn");
-
- if(syndactylyyn != "") {
- model.setValue(xWardRecPath +"/extrminfo/extrm/syndactylyyn", rdo_syndactylyyn.label);
- }
- //쇄골골절
- var clavfractyn = model.getValue(xWardRecPath +"/extrminfo/extrm/clavfractyn");
-
- if(clavfractyn != "") {
- model.setValue(xWardRecPath +"/extrminfo/extrm/clavfractyn", rdo_clavfractyn.label);
- }
- //고관절탈골
- var disclochipjointyn = model.getValue(xWardRecPath +"/extrminfo/extrm/disclochipjointyn");
-
- if(disclochipjointyn != "") {
- model.setValue(xWardRecPath +"/extrminfo/extrm/disclochipjointyn", rdo_disclochipjointyn.label);
- }
- //만곡독
- var clubfootyn = model.getValue(xWardRecPath +"/extrminfo/extrm/clubfootyn");
-
- if(clubfootyn != "") {
- model.setValue(xWardRecPath +"/extrminfo/extrm/clubfootyn", rdo_clubfootyn.label);
- }
- //척추
- var vertebrayn = model.getValue(xWardRecPath +"/extrminfo/extrm/vertebrayn");
-
- if(vertebrayn != "") {
- model.setValue(xWardRecPath +"/extrminfo/extrm/vertebrayn", rdo_vertebrayn.label);
- }
- //내반
- var entropion = model.getValue(xWardRecPath +"/extrminfo/extrm/entropion");
-
- if(entropion != "") {
- model.setValue(xWardRecPath +"/extrminfo/extrm/entropion", rdo_entropion.label);
- }
- //외반
- var hallux = model.getValue(xWardRecPath +"/extrminfo/extrm/hallux");
-
- if(hallux != "") {
- model.setValue(xWardRecPath +"/extrminfo/extrm/hallux", rdo_hallux.label);
- }
- //simian line
- var simianlineyn = model.getValue(xWardRecPath +"/extrminfo/extrm/simianlineyn");
-
- if(simianlineyn != "") {
- model.setValue(xWardRecPath +"/extrminfo/extrm/simianlineyn", rdo_simianlineyn.label);
- }
- //대천문
- var antfontanellstat = model.getValue(xWardRecPath +"/headinfo/head/antfontanellstat");
-
- if(antfontanellstat != "") {
- arr = chk_antfontanellstat.label.split(" ");
- model.setValue(xWardRecPath +"/headinfo/head/antfontanellstat", arr);
- }
- //두혈종
- var cephallhematomayn = model.getValue(xWardRecPath +"/headinfo/head/cephallhematomayn");
- var cephallhematomacnts = model.getValue(xWardRecPath +"/headinfo/head/cephallhematomacnts");
- str = rdo_cephallhematomayn.label;
-
- if(cephallhematomayn != "") {
- if(cephallhematomayn == "Y") {
- if(cephallhematomacnts != "") {
- str += "(" + cephallhematomacnts + ")";
- }
- }
-
- model.setValue(xWardRecPath +"/headinfo/head/cephallhematomayn", str);
- }
-
- //산류
- var caputsuccedyn = model.getValue(xWardRecPath +"/headinfo/head/caputsuccedyn");
- var caputsuccedcnts = model.getValue(xWardRecPath +"/headinfo/head/caputsuccedcnts");
- str = rdo_caputsuccedyn.label;
-
- if(caputsuccedyn != "") {
- if(caputsuccedyn == "Y") {
- if(caputsuccedcnts != "") {
- str += "(" + caputsuccedcnts + ")";
- }
- }
- model.setValue(xWardRecPath +"/headinfo/head/caputsuccedyn", str);
- }
-
- //아두변형
- var babyheadchngyn = model.getValue(xWardRecPath +"/headinfo/head/babyheadchngyn");
- var babyheadchngcnts = model.getValue(xWardRecPath +"/headinfo/head/babyheadchngcnts");
- str = rdo_babyheadchngyn.label;
-
- if(babyheadchngyn != "") {
- if(babyheadchngyn == "Y") {
- if(babyheadchngcnts != "") {
- str += "(" + babyheadchngcnts + ")";
- }
- }
- model.setValue(xWardRecPath +"/headinfo/head/babyheadchngyn", str);
- }
- //모로반사
- var mororflxkind = model.getValue(xWardRecPath +"/rflxinfo/rflx/mororflxkind");
- var mororflxsymmetryyn = model.getValue(xWardRecPath +"/rflxinfo/rflx/mororflxsymmetryyn");
- var mororflxpos = model.getValue(xWardRecPath +"/rflxinfo/rflx/mororflxpos");
- arr = chk_mororflxkind.label.split(" ");
-
- if(mororflxkind != ""){
- model.setValue(xWardRecPath +"/rflxinfo/rflx/mororflxkind", arr);
- }
- if(mororflxsymmetryyn != ""){
- if(mororflxpos != ""){
- model.setValue(xWardRecPath +"/rflxinfo/rflx/mororflxsymmetryyn", chk_mororflxsymmetryyn.label + "," + rdo_mororflxpos.label);
- }else{
- model.setValue(xWardRecPath +"/rflxinfo/rflx/mororflxsymmetryyn", chk_mororflxsymmetryyn.label);
- }
- }else if (mororflxpos != ""){
- model.setValue(xWardRecPath +"/rflxinfo/rflx/mororflxsymmetryyn", rdo_mororflxpos.label);
- }
-
- //쥐기반사
- var grasprflxkind = model.getValue(xWardRecPath +"/rflxinfo/rflx/grasprflxkind");
- var grasprflxsummetryyn = model.getValue(xWardRecPath +"/rflxinfo/rflx/grasprflxsummetryyn");
- var grasprflxpos = model.getValue(xWardRecPath +"/rflxinfo/rflx/grasprflxpos");
- arr = chk_grasprflxkind.label.split(" ");
-
- if(grasprflxkind != ""){
- model.setValue(xWardRecPath +"/rflxinfo/rflx/grasprflxkind", arr);
- }
- if(grasprflxsummetryyn != ""){
- if(grasprflxpos != ""){
- model.setValue(xWardRecPath +"/rflxinfo/rflx/grasprflxsummetryyn", chk_grasprflxsummetryyn.label + "," + rdo_grasprflxpos.label);
- }else{
- model.setValue(xWardRecPath +"/rflxinfo/rflx/grasprflxsummetryyn", chk_grasprflxsummetryyn.label);
- }
- }else if (grasprflxpos != ""){
- model.setValue(xWardRecPath +"/rflxinfo/rflx/grasprflxsummetryyn", rdo_grasprflxpos.label);
- }
-
- //빨기반사
- var suckingrflxkind = model.getValue(xWardRecPath +"/rflxinfo/rflx/suckingrflxkind");
- if(suckingrflxkind != "") {
- arr = chk_suckingrflxkind.label.split(" ");
- model.setValue(xWardRecPath +"/rflxinfo/rflx/suckingrflxkind", arr);
- }
-
- //포유반사
- var rootingrflxkind = model.getValue(xWardRecPath +"/rflxinfo/rflx/rootingrflxkind");
- if(rootingrflxkind != "") {
- arr = chk_rootingrflxkind.label.split(" ");
- model.setValue(xWardRecPath +"/rflxinfo/rflx/rootingrflxkind", arr);
- }
-
- //근긴장도
- var tensionkind = model.getValue(xWardRecPath +"/tensioninfo/tension/tensionkind");
- if(tensionkind != "") {
- arr = chk_tensionkind.label.split(" ");
- model.setValue(xWardRecPath +"/tensioninfo/tension/tensionkind", arr);
- }
- //정서상태
- var emotstatkind = model.getValue(xWardRecPath +"/emotstatinfo/emotstat/emotstatkind");
- if(emotstatkind != "") {
- arr = chk_emotstatkind.label.split(" ");
- model.setValue(xWardRecPath +"/emotstatinfo/emotstat/emotstatkind", arr);
- }
- }
-
- function fMake_SignData() {
- //JCI 교육요구도 추가 (20100113 김홍점)
- var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
- if ( instUseYN =="Y" ){
- Sign.addnode("/root/temp/signdata/edurecinfo");
- }
- Sign.addnode("/root/main/wardrecinfo");
- Sign.addnode("/root/main/histinfo");
- fSetSignData();
- }
-
- //이전기록일시 변경
- function fChgRecHistInfo(){
- var recpkspec = (model.getValue("/root/main/wardrecinfo/bfrecddtm")).split("|");
- var bfrecpid = recpkspec[0];
- var bfrecindd = recpkspec[1];
- var bfreccretno = recpkspec[2];
- var bfrecflag = recpkspec[3];
- var bfrecinstcd = recpkspec[4];
-
- model.removeNodeset("/root/send/req");
- model.makeNode("/root/send/req");
-
- model.makeValue("/root/send/req/pid", bfrecpid);
- model.makeValue("/root/send/req/indd", bfrecindd);
- model.makeValue("/root/send/req/cretno", bfreccretno);
- model.makeValue("/root/send/req/instcd", bfrecinstcd);
- model.makeValue("/root/send/req/recflag", bfrecflag);
- //model.makeValue("/root/send/req/docucode", "0000002434");
- //model.makeValue("/root/send/req/deptcd", orddeptcd);
-
- //외부신생아 간호정보조사지
- submit("TRMNN02002", false);
- setParameter("SPMMR04711_shape", fGetXmlToStr("/root/main/wardrecinfo/genogrmnm/XMD"));
-
- //입원일자 셋팅(응급실 경유 환자인 경우 입실체크가 되는 시점(즉 응급실 퇴실시점)의 일자가 병동 입원일자로 조회됨)_20090303_SMY
- model.setValue("/root/main/wardrecinfo/indd", model.getValue("/root/temp/cond/list/careinrmdd"));
- model.refresh();
- }
- ]]>
- </script>
- <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/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/codeinfo/codelist"/>
- <submission id="TRMNN02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/paminfo"/>
- <submission id="TRMNN02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main"/>
- <submission id="TRMNN02003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/init/newpat"/>
- <submission id="TRMNN02004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/cominfo"/>
- <submission id="TXMNN02001" 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>
- <input id="ipt_bfrecdd" ref="/root/main/wardrecinfo/bfrecdd" class="input_default" disabled="true" visibility="hidden" inputtype="date" style="left:83px; top:45px; width:100px; height:19px; "/>
- <output id="opt_bfrectm" ref="/root/main/wardrecinfo/bfrectm" class="output_fix" visibility="hidden" format="hh:nn" style="left:186px; top:45px; width:50px; height:19px; "/>
- <button id="btn_gnrlinfo" class="btn_sw" group="tab" selected="true" style="left:0px; top:49px; width:100px; height:22px; ">
- <caption>일반정보</caption>
- <toggle case="case1" ev:event="onclick"/>
- </button>
- <button id="btn_bodyasses" class="btn_sw" group="tab" style="left:100px; top:49px; width:100px; height:22px; ">
- <caption>신체사정</caption>
- <toggle case="case2" ev:event="onclick"/>
- </button>
- <button id="btn_edurec" class="btn_sw" visibility="hidden" group="tab" style="left:200px; top:49px; width:100px; height:22px; ">
- <caption>교육요구도</caption>
- <toggle case="case_edurec" ev:event="onclick"/>
- </button>
- <switch id="switch1" style="left:0px; top:70px; width:1194px; height:670px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case1" selected="true" style="left:0px; top:0px; width:1194px; height:674px; ">
- <import id="import1" instancetype="merge" src="..\..\..\emr\wardcareweb\xrw\SMMNW08300_신생아정보외부.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\SMMNW08600_신체사정신생아.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" visibility="hidden" style="left:1062px; top:49px; width:64px; height:19px; ">
- <caption>임시저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPatgnrlInfo("T");
-
- if(submit("TXMNN02001") ==true) {
- messageBox("저장이 ", "I001");
- } else {
- messageBox("저장을 실패하였습니다", "E");
- }
-
- ]]>
- </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[
- //20090626_SMY추가
- var msgstr = "";
- var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
-
- //필수입력사항 blocking
- if(model.getValue("/root/main/wardrecinfo/infooffer") == ""){
- var msg9 = "[정보제공자]";
- if(msgstr == ""){
- msgstr += msg9;
- }else{
- msgstr += ", " + msg9;
- }
- }
- if(model.getValue("/root/main/wardrecinfo/inmotiveinfo/inmotive/inmotive2") == ""){
- var msg10 = "[입원동기]";
- if(msgstr == ""){
- msgstr += msg10;
- }else{
- msgstr += ", " + msg10;
- }
- }
- if(model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid = '077' and supcdid = '02' and cdid = '"+ getUserInfo("dutplceinstcd") +"']/cdid") || model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid = '077' and supcdid = '03' and cdid = '"+ getUserInfo("dutplceinstcd") +"']/cdid")){ //supcdid='02' : 의정부성모, 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/bdwt") == "" && model.getValue("/root/main/wardrecinfo/bdwtinspyn") != "Y"){
- var msg7 = "[체중]";
- if(msgstr == ""){
- msgstr += msg7;
- }else{
- msgstr += ", " + msg7;
- }
- }
- }
-
- if(msgstr != "" ){
- messageBox(msgstr + " 은(는) 필수 입력사항입니다.", "I");
- 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)
- }
-
- //최초기록자
- var fstrgstdt = getCurrentDateTime();
- if(isNull(model.getValue("/root/main/wardrecinfo/fstrgstrnm"))) {
- model.makeValue("/root/main/wardrecinfo/fstrgstdt", fstrgstdt.substr(0,4) + "-" + fstrgstdt.substr(4,2)+"-"+fstrgstdt.substr(6,2)+" "+fstrgstdt.substr(9,2)+":"+fstrgstdt.substr(11,2));
- model.makeValue("/root/main/wardrecinfo/fstrgstrnm", model.getValue("/root/main/wardrecinfo/recuser"));
- }
-
- 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/signinfo/signno")); //20090722_SMY변경
- model.makeValue("/root/send/wardrecinfo/cretno", model.getValue("/root/temp/cond/list/cretno"));
- model.makeValue("/root/send/wardrecinfo/recdd", model.getValue("/root/main/wardrecinfo/recdd"));
- model.makeValue("/root/send/wardrecinfo/rectm", model.getValue("/root/main/wardrecinfo/rectm"));
- model.makeValue("/root/send/wardrecinfo/recsaveflag", "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", "0000002434");
- 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]);
-
- if(submit("TXMNN02001") ==true) {
- model.setValue("/root/send/wardrecinfo", "");
- messageBox("저장이 ", "I001");
- model.makeValue("/root/hidden/paminfo/paminfo/exeflag", "U");
- fGetInitRecInfo(); //재조회
- fInitEvent();
-
- } else {
- messageBox("저장을 실패하였습니다", "E");
- }
- }
- ]]>
- </script>
- </button>
- <input id="ipt_signno" ref="/root/main/wardrecinfo/signno" visibility="hidden" style="left:915px; top:45px; width:100px; height:19px; "/>
- <button id="button1" class="btn2_letter6" style="left:1040px; top:49px; width:86px; height:19px; ">
- <caption>전체기록삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setCareInfoDel("TXMNN02001"); //CareCom.js
- fGetIndtInfo(); //현재수진이력의 입원시간을 가져온다
- ]]>
- </script>
- </button>
- <caption id="cap_bfrecdt" class="cell_1" style="left:0px; top:18px; width:80px; height:23px; vertical-align:middle; ">이전기록일시</caption>
- <caption id="cap_sinfodnor" class="cell_1" style="left:677px; top:18px; width:68px; height:23px; vertical-align:middle; ">정보제공자</caption>
- <caption id="cap_recdt" class="cell_1" style="left:351px; top:18px; width:56px; 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; "/>
- <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>
- <input id="ipt_recdd" ref="/root/main/wardrecinfo/recdd" class="input_default" inputtype="date" style="left:409px; top:20px; width:90px; height:19px; "/>
- <caption id="caption12" class="cell_1" style="left:845px; top:18px; width:80px; height:23px; vertical-align:middle; ">최초기록일시</caption>
- <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();
- ]]>
- </script>
- </select1>
- <caption id="cap_recuser" class="cell_1" style="left:553px; top:18px; width:47px; height:23px; vertical-align:middle; ">기록자</caption>
- <caption id="cap_bfrecuser" class="cell_1" style="left:205px; top:18px; width:67px; height:23px; vertical-align:middle; ">이전기록자</caption>
- <output id="opt_bfrecuser" ref="/root/main/wardrecinfo/bfrecuser" class="output_fix" style="left:274px; top:20px; width:75px; height:19px; "/>
- <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; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|