12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652 |
- <?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>
- <hidden>
- <paminfo/>
- <histinfo/>
- <bodyases>
- <mfmdstatinfo/>
- <shpaininfo/>
- <resorgninfo/>
- <digorgninfo/>
- <nvesysinfo/>
- <skinsectinfo/>
- </bodyases>
- <rsltinfo/>
- </hidden>
- <init>
- <mlist>
- <M0130>
- <cdid/>
- <cdnm/>
- </M0130>
- <M00188>
- <cdid/>
- <cdnm/>
- </M00188>
- <M0086>
- <cdid/>
- <cdnm/>
- </M0086>
- </mlist>
- </init>
- <codeinfo/>
- <signinfo>
- <signno/>
- </signinfo>
- <hidden1>
- <wardrecinfo>
- <apgarscoreinfo/>
- </wardrecinfo>
- </hidden1>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fGetCmbList();
- fInit();
- fGetInitRecInfo();
- fInitEvent();
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var status = "select";
- var NoneInspCode = "-1"; //측정불가코드값
-
- function fGetCmbList() {
- model.removeNodeset("/root/init/mlist");
- model.makeNode("/root/init/mlist");
- //성가병원 기관코드 조회_20090626_SMY
- fGetNursHardCdInfo("'077','172'", getCurrentDate()); //CareCom.js
-
- zbcfGetCodeList( new Array ( "M0130" //분만장소코드x
- ,"M0086" //분만구분
- ,"M0188" //분만형태구분
- ,"M0376" //혈액형
- ,"M0375" //체온부위
-
- )
- , new Array ( "/root/init/mlist" //분만장소코드
- ,"/root/init/mlist" //분만구분
- ,"/root/init/mlist" //분만형태구분
- ,"/root/init/mlist" //혈액형
- ,"/root/init/mlist" //체온부위
- )
- );
-
- model.refresh();
- }
-
- function fInitEvent() {
- fInitEventInNBabyInfo();
- fInitEventBodyAses();
- }
-
- function fSetStatus() {
- var rtn = "";
-
- if(status == "select") {
-
- rtn = "6";
- } else {
- rtn = messageBox("데이터를 ", "Q001");
- }
- return rtn;
- }
-
- //화면 로딩시
- function fInit(){
- model.makeNode("/root/temp/cond/list");
- getPatientInfoDetails("/root/temp/cond/list");
-
- //각 화면 상단에 선택된 환자 정보 display 필요함. (병실-성명-S/A-등록번호)
- var pid;
- var room;
- var patnm;
- var sex;
- var age;
- var instcd;
- var orddeptcd;
- var indd;
- var cretno;
-
- 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/sex", sex);
- model.makeValue("/root/main/wardrecinfo/age", age);
- model.makeValue("/root/main/wardrecinfo/pid", pid);
-
- var scrnid =getScreenID();
- var param = "pid▦orddd▦cretno▦ordtype▦scrnid"
- +"▩" + pid+"▦" +indd+"▦"+cretno+"▦"+ioflag+"▦"+scrnid+"▩";
- fEnrCareComRecInfo_SPMNZ002(param, "/root/main/enrcarecomrecinfo"); //타 간호정보조사지기록 유무확인 model.refresh();
- 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", "06");
- model.makeValue("/root/send/req/docucode", "0000002503");
- model.makeValue("/root/send/req/deptcd", orddeptcd);
- model.makeValue("/root/send/req/cretno", cretno);
-
- 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("TRMNN00401", "false"); //저장후 삭제(K), 신규(I), 수정(U)
- //이전 기록이 있을 경우 가장 최근의 정보 자동 셋팅
- if(model.getValue("/root/hidden/paminfo/recinfo/recpkspec") != ""){
- model.makeValue("/root/main/wardrecinfo/bfrecddtm", model.getValue("/root/hidden/paminfo/recinfo/recpkspec"));
- fChgRecHistInfo();
-
- var exeflag = model.getValue("/root/hidden/paminfo/paminfo/exeflag");
- if(exeflag == 'U') {
- //인증번호set_20090722_SMY
- model.makeValue("/root/signinfo/signno", model.getValue("/root/hidden/womminfo/nbabyinfo/signno"));
- }
-
- }else{
- submit("TRMNN00405");
- fSetRecInfo();
-
- var exeflag = model.getValue("/root/hidden/paminfo/paminfo/exeflag");
- if(exeflag == 'U') {
- //인증번호set_20090722_SMY
- model.makeValue("/root/signinfo/signno", model.getValue("/root/hidden/womminfo/nbabyinfo/signno"));
-
- //마지막 기록일시 셋팅
-
- model.makeValue("/root/main/wardrecinfo/bfrecddtm", model.getValue("/root/hidden/womminfo/nbabyinfo[indd = '" + indd + "']/recpkspec"));
- model.makeValue("/root/main/wardrecinfo/bfrecuser", model.getValue("/root/hidden/womminfo/nbabyinfo[indd = '" + indd + "']/bfrecuser"));
-
- model.makeValue("/root/main/wardrecinfo/recdd", model.getValue("/root/hidden/womminfo/nbabyinfo/recdd"));
- model.makeValue("/root/main/wardrecinfo/rectm", model.getValue("/root/hidden/womminfo/nbabyinfo/rectm"));
- model.makeValue("/root/main/wardrecinfo/recuser", model.getValue("/root/hidden/womminfo/nbabyinfo/recuser"));
- } else {
- //기록일시 정보를 쿼리에서 가져옴
- model.makeValue("/root/main/wardrecinfo/recdd", model.getValue("/root/hidden/paminfo/paminfo/recdd"));
- model.makeValue("/root/main/wardrecinfo/rectm", model.getValue("/root/hidden/paminfo/paminfo/rectm"));
- model.makeValue("/root/main/wardrecinfo/recuser", model.getValue("/root/hidden/paminfo/paminfo/recuser"));
- }
-
- //최초기록자
- var recpkspec = (model.getValue("/root/main/wardrecinfo/bfrecddtm")).split("|"); //이전기록일시
- var indd2 = recpkspec[1]; //이전기록일시 입원일자
- var fstrgstdt = model.getValue("/root/hidden/paminfo/recinfo[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 = '01' and indd = '" + indd2 + "']/fstrgstrnm"));
- }
-
- //최초기록자
- var fstrgstdt = model.getValue("/root/hidden/paminfo/recinfo/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/fstrgstrnm"));
- }
- }
- }
-
-
- status = "select";
- model.refresh();
- }
-
- //신생아 간호정보조사지 조회 후 인스턴스 셋팅
- function fSetRecInfo(){
- var mainPath = "/root/main/wardrecinfo";
- var wommPath = "/root/hidden/womminfo/womminfo";
- var parentPath = "/root/hidden/womminfo/parentinfo";
- var etcbrthPath = "/root/main/wardrecinfo/etcbrthinfo/etcbrth";
- var nbabyPath = "/root/hidden/womminfo/nbabyinfo";
-
- //출생아기정보(분만간호기록 연동)
- model.makeValue(mainPath + "/pid", model.getValue(wommPath + "/babyno"));
- model.makeValue(mainPath + "/nbabynm", model.getValue(wommPath + "/babynm"));
- model.makeValue(mainPath + "/sex", model.getValue(wommPath + "/gndr"));
- model.makeValue(mainPath + "/weig", model.getValue(wommPath + "/weig"));
- model.makeValue(mainPath + "/weigunit", model.getValue(wommPath + "/weigunit"));
- model.makeValue(mainPath + "/partrtndd", model.getValue(wommPath + "/bthdt").substr(0, 8));
- model.makeValue(mainPath + "/partrtndt", model.getValue(wommPath + "/bthdt").substr(8, 4));
- model.makeValue(mainPath + "/infcsickyn", model.getValue(wommPath + "/infcsickyn"));
- model.makeValue(mainPath + "/infcsicknm", model.getValue(wommPath + "/infcsicknm"));
- model.makeValue(mainPath + "/infcsickspec", model.getValue(wommPath + "/infcsickspec"));
- model.makeValue(mainPath + "/prgweekcnt", model.getValue(wommPath + "/prgweekcnt").substr(0,2));
-
- model.makeValue(mainPath + "/prgdaycnt", model.getValue(wommPath + "/prgweekcnt").substr(2,1));
- model.makeValue(mainPath + "/dlivkindcd", model.getValue(wommPath + "/dlivkindcd"));
- model.makeValue(mainPath + "/dlivflag", model.getValue(wommPath + "/dlivflag"));
- model.makeValue(mainPath + "/dlivplcecd", model.getValue(wommPath + "/dlivplcecd"));
- model.makeValue(mainPath + "/dlivplceetcspec", model.getValue(wommPath + "/dlivplceetcspec"));
- model.makeValue(mainPath + "/apgarscore1", model.getValue(wommPath + "/apgarscore1"));
- model.makeValue(mainPath + "/apgarscore5", model.getValue(wommPath + "/apgarscore5"));
- model.makeValue(mainPath + "/apgarscoreinfo/scorelist[6]/minute1", model.getValue(wommPath + "/apgarscore1")+"점");
- model.makeValue(mainPath + "/apgarscoreinfo/scorelist[6]/minute5", model.getValue(wommPath + "/apgarscore5")+"점");
-
- if(model.getValue("/root/hidden1/wardrecinfo/apgarscoreinfo/scorelist/scoreitem") != "") {
- model.copyNode(mainPath + "/apgarscoreinfo", "/root/hidden1/wardrecinfo/apgarscoreinfo");
- }
-
- for(var i=1; i <= getNodesetCount(wommPath + "/apgarscorespec/main/scorelists/scorelist"); i++) {
- var minute1 = model.getValue(wommPath + "/apgarscorespec/main/scorelists/scorelist[" + i + "]/minute1");
- var minute5 = model.getValue(wommPath + "/apgarscorespec/main/scorelists/scorelist[" + i + "]/minute5");
- var scoreitem = model.getValue(wommPath + "/apgarscorespec/main/scorelists/scorelist[" + i + "]/scoreitem");
-
- if(minute1 == "true"){
- model.setValue(mainPath + "/apgarscoreinfo/scorelist[scoreitem='" + scoreitem + "']/minute1", model.getValue(wommPath + "/apgarscorespec/main/scorelists/scorelist[" + i + "]/score"));
- }
- if(minute5 == "true"){
- model.setValue(mainPath + "/apgarscoreinfo/scorelist[scoreitem='" + scoreitem + "']/minute5", model.getValue(wommPath + "/apgarscorespec/main/scorelists/scorelist[" + i + "]/score"));
- }
- }
-
- model.makeValue(etcbrthPath + "/promyn", model.getValue(wommPath + "/promyn"));
- model.makeValue(etcbrthPath + "/promdd", model.getValue(wommPath + "/promdt").substr(0,8));
- model.makeValue(etcbrthPath + "/promtm", model.getValue(wommPath + "/promdt").substr(8,4));
-
- model.makeValue(etcbrthPath + "/fstlctyn", model.getValue(wommPath + "/fstlctyn"));
- model.makeValue(etcbrthPath + "/lctrejtresnspec", model.getValue(wommPath + "/lctrejtresnspec"));
- model.makeValue(etcbrthPath + "/dlivpredrugspec", model.getValue(wommPath + "/dlivpredrugspec"));
- model.makeValue(etcbrthPath + "/lctdd", model.getValue(wommPath + "/lctdd"));
- model.makeValue(etcbrthPath + "/lcttm", model.getValue(wommPath + "/lcttm"));
-
- model.makeValue(etcbrthPath + "/antibiodrugyn", model.getValue(wommPath + "/antibiodrugyn"));
- model.makeValue(etcbrthPath + "/urinecd", model.getValue(wommPath + "/urinecd"));
- model.makeValue(etcbrthPath + "/urinespec", model.getValue(wommPath + "/urinespec"));
- model.makeValue(etcbrthPath + "/stoolcd", model.getValue(wommPath + "/stoolcd"));
- model.makeValue(etcbrthPath + "/mecnmcolrayn", model.getValue(wommPath + "/mecnmcolrayn"));
- model.makeValue(etcbrthPath + "/mecnmcolracd", model.getValue(wommPath + "/mecnmcolracd"));
- model.makeValue(etcbrthPath + "/nuchalcordcd", model.getValue(wommPath + "/nuchalcordcd"));
- model.makeValue(etcbrthPath + "/nuchalcordpart", model.getValue(wommPath + "/nuchalcordpart"));
- model.makeValue(etcbrthPath + "/nuchalcordspec", model.getValue(wommPath + "/nuchalcordspec"));
- model.makeValue(etcbrthPath + "/nuchalcordtime", model.getValue(wommPath + "/nuchalcordtime"));
- model.makeValue(etcbrthPath + "/trueknotyn", model.getValue(wommPath + "/trueknotyn"));
- model.makeValue(etcbrthPath + "/trueknotspec", model.getValue(wommPath + "/trueknotspec"));
- model.makeValue(etcbrthPath + "/guiddlivyn", model.getValue(wommPath + "/guiddlivyn"));
- model.makeValue(etcbrthPath + "/oxygenabsopcd", model.getValue(wommPath + "/oxygenabsopcd"));
- model.makeValue(etcbrthPath + "/oxygenabsopspec", model.getValue(wommPath + "/oxygenabsopspec"));
- model.makeValue(etcbrthPath + "/cardresusyn", model.getValue(wommPath + "/cardresusyn"));
- model.makeValue(etcbrthPath + "/cardresuscd", model.getValue(wommPath + "/cardresuscd"));
- model.makeValue(etcbrthPath + "/cardresusspec", model.getValue(wommPath + "/cardresusspec"));
- model.makeValue(etcbrthPath + "/remk", model.getValue(wommPath + "/remk"));
-
- //산모정보(산모간호정보조사지 연동)
- model.makeValue(mainPath + "/mthernm", model.getValue(parentPath +"/mthernm"));
- model.makeValue(mainPath + "/mtherage", model.getValue(parentPath +"/mtherage"));
- model.makeValue(mainPath + "/mtherbtype", model.getValue(parentPath +"/mtherbtype"));
- model.makeValue(mainPath + "/mtherbrh", model.getValue(parentPath +"/mtherbrh"));
- model.makeValue(mainPath + "/mthertel", model.getValue(parentPath +"/mthertel"));
- model.makeValue(mainPath + "/mtherpid", model.getValue(parentPath +"/mtherpid"));
- model.makeValue(mainPath + "/mtherindd", model.getValue(parentPath +"/mtherindd"));
- model.makeValue(mainPath + "/fthernm", model.getValue(parentPath +"/fthernm"));
- model.makeValue(mainPath + "/ftherage", model.getValue(parentPath +"/ftherage"));
- model.makeValue(mainPath + "/ftherbtype", model.getValue(parentPath +"/ftherbtype"));
- model.makeValue(mainPath + "/ftherbrh", model.getValue(parentPath +"/ftherbrh"));
- model.makeValue(mainPath + "/fthertel", model.getValue(parentPath +"/fthertel"));
- model.makeValue(mainPath + "/ftherinfcinfoyn", model.getValue(parentPath +"/ftherinfcinfoyn"));
- model.makeValue(mainPath + "/ftherinfcinfo", model.getValue(parentPath +"/ftherinfcinfo"));
- model.makeValue(mainPath + "/ftherinfcinfonm", model.getValue(parentPath +"/ftherinfcinfonm"));
- model.makeValue(mainPath + "/parityg", model.getValue(parentPath +"/parityg"));
- model.makeValue(mainPath + "/parityp", model.getValue(parentPath +"/parityp"));
- model.makeValue(mainPath + "/paritya", model.getValue(parentPath +"/paritya"));
- model.makeValue(mainPath + "/paritysa", model.getValue(parentPath +"/paritysa"));
- model.makeValue(mainPath + "/parityaa", model.getValue(parentPath +"/parityaa"));
- model.makeValue(mainPath + "/parityl", model.getValue(parentPath +"/parityl"));
-
- model.makeValue(mainPath + "/basebdinfoinclyn", model.getValue(nbabyPath +"/basebdinfoinclyn"));
- model.makeValue(mainPath + "/lowbp", model.getValue(nbabyPath +"/lowbp"));
- model.makeValue(mainPath + "/highbp", model.getValue(nbabyPath +"/highbp"));
- model.makeValue(mainPath + "/pulse", model.getValue(nbabyPath +"/pulse"));
- model.makeValue(mainPath + "/breth", model.getValue(nbabyPath +"/breth"));
- model.makeValue(mainPath + "/bdtp", model.getValue(nbabyPath +"/bdtp"));
- model.makeValue(mainPath + "/bdwt", model.getValue(nbabyPath +"/bdwt"));
- model.makeValue(mainPath + "/bdtppartcd", model.getValue(nbabyPath +"/bdtppartcd"));
- model.makeValue(mainPath + "/bdht", model.getValue(nbabyPath +"/bdht"));
- model.makeValue(mainPath + "/headgirth", model.getValue(nbabyPath +"/headgirth"));
- model.makeValue(mainPath + "/chestgirth", model.getValue(nbabyPath +"/chestgirth"));
- model.makeValue(mainPath + "/gesage", model.getValue(nbabyPath +"/gesage"));
-
- model.makeValue(mainPath + "/bfrecuser", model.getValue(nbabyPath +"/bfrecuser"));
- model.makeValue(mainPath + "/bfrecdd", model.getValue(nbabyPath +"/bfrecdd"));
- model.makeValue(mainPath + "/bfrectm", model.getValue(nbabyPath +"/bfrectm"));
-
- model.makeValue(mainPath + "/infooffer", model.getValue(nbabyPath + "/infooffer"));
- model.makeValue(mainPath + "/signno", model.getValue(nbabyPath + "/signno"));
-
- //일반XML
- copyNodeType(mainPath + "/spcffact", nbabyPath + "/spcffact");
- copyNodeType(mainPath + "/initcareinfo", nbabyPath + "/initcareinfo");
- copyNodeType(mainPath + "/inrminfo", nbabyPath + "/inrminfo");
- copyNodeType(mainPath + "/hptsvacninfo", nbabyPath + "/hptsvacninfo");
-
- var exeflag = model.getValue("/root/hidden/womminfo/nbabyinfo/exeflag");
-
- if(exeflag == "U") {
- //신체사정
- model.copyNode(mainPath + "/actcryinfo", nbabyPath + "/actcryinfo");
- model.copyNode(mainPath + "/resorgninfo", nbabyPath + "/resorgninfo");
- model.copyNode(mainPath + "/cirorgninfo", nbabyPath + "/cirorgninfo");
- model.copyNode(mainPath + "/skinsectinfo", nbabyPath + "/skinsectinfo");
- model.copyNode(mainPath + "/faceinfo", nbabyPath + "/faceinfo");
- model.copyNode(mainPath + "/eyeinfo", nbabyPath + "/eyeinfo");
- model.copyNode(mainPath + "/urintorgninfo", nbabyPath + "/urintorgninfo");
- model.copyNode(mainPath + "/dembztinfo", nbabyPath + "/dembztinfo");
- model.copyNode(mainPath + "/extrminfo", nbabyPath + "/extrminfo");
- model.copyNode(mainPath + "/headinfo", nbabyPath + "/headinfo");
- model.copyNode(mainPath + "/rflxinfo", nbabyPath + "/rflxinfo");
- model.copyNode(mainPath + "/tensioninfo", nbabyPath + "/tensioninfo");
- model.copyNode(mainPath + "/emotstatinfo", nbabyPath + "/emotstatinfo");
- model.copyNode(mainPath + "/etcmfmdtrma", nbabyPath + "/etcmfmdtrma");
- }
- //가계도 연동부분.
- var existfamyinfo = model.getValue(nbabyPath + "/existfamyinfo");
- if(existfamyinfo == "Y") {
- model.setValue("/root/main/wardrecinfo/famytree/existyn", "Y");
- opt_existyn.refresh();
- }
-
- setParameter("SPMMR04711_shape", fGetXmlToStr(nbabyPath + "/genogrmnm/XMD"));
- }
-
-
- function fGetXmlToStr(xPath) {
-
- var str = instance1.selectNodesXml(xPath);
-
- return str;
- }
-
-
- function fPatgnrlInfo(certFlag) {
-
- var sendPath = "/root/send/wardrecinfo";
- var mainPath = "/root/main/wardrecinfo";
-
- var userid = getUserId();
- //model.removeNodeset("/root/send/wardinfo");
- //신생아 일반정보
- 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 + "/bdwt", model.getValue(mainPath +"/bdwt"));
- model.makeValue(sendPath + "/headgirth", model.getValue(mainPath +"/headgirth"));
- model.makeValue(sendPath + "/chestgirth", model.getValue(mainPath +"/chestgirth"));
- */
- //신체정보 측정불가체크시 측정불가코드값 저장로직 추가_20090310_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);
- }else{
- model.makeValue(sendPath + "/pulse", model.getValue(mainPath + "/pulse"));
- }
- //호흡
- if(model.getValue("/root/main/wardrecinfo/brethinspyn") == "Y"){
- model.makeValue(sendPath + "/breth", NoneInspCode);
- }else{
- 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 + "/bdwt", NoneInspCode);
- }else{
- model.makeValue(sendPath + "/bdwt", model.getValue(mainPath + "/bdwt"));
- }
- //머리둘레
- if(model.getValue("/root/main/wardrecinfo/headgirthinspyn") == "Y"){
- model.makeValue(sendPath + "/headgirth", NoneInspCode);
- }else{
- model.makeValue(sendPath + "/headgirth", model.getValue(mainPath + "/headgirth"));
- }
- //가슴둘레
- if(model.getValue("/root/main/wardrecinfo/chestgirthinspyn") == "Y"){
- model.makeValue(sendPath + "/chestgirth", NoneInspCode);
- }else{
- model.makeValue(sendPath + "/chestgirth", model.getValue(mainPath + "/chestgirth"));
- }
-
- //일반정보 XML
- model.makeValue(sendPath + "/famytree", fGetXmlToStr(mainPath +"/famytree/existyn"));
- model.makeValue(sendPath + "/inrminfo", fGetXmlToStr(mainPath +"/inrminfo/inrm"));
- model.makeValue(sendPath + "/initcareinfo", fGetXmlToStr(mainPath +"/initcareinfo/initcare"));
- model.makeValue(sendPath + "/hptsvacninfo", fGetXmlToStr(mainPath +"/hptsvacninfo/hptsvacn"));
- model.makeValue(sendPath + "/spcffact", fGetXmlToStr(mainPath +"/spcffact/spcf"));
- //신체사정
- model.makeValue(sendPath + "/actcryinfo", fGetXmlToStr(mainPath +"/actcryinfo/actcry"));
- model.makeValue(sendPath + "/resorgninfo", fGetXmlToStr(mainPath +"/resorgninfo/resorgn"));
- model.makeValue(sendPath + "/cirorgninfo", fGetXmlToStr(mainPath +"/cirorgninfo/cirorgn"));
- model.makeValue(sendPath + "/skinsectinfo", fGetXmlToStr(mainPath +"/skinsectinfo/skinsect"));
- model.makeValue(sendPath + "/faceinfo", fGetXmlToStr(mainPath +"/faceinfo/face"));
- model.makeValue(sendPath + "/eyeinfo", fGetXmlToStr(mainPath +"/eyeinfo/eye"));
- model.makeValue(sendPath + "/urintorgninfo",fGetXmlToStr(mainPath +"/urintorgninfo/urintorgn"));
- model.makeValue(sendPath + "/dembztinfo", fGetXmlToStr(mainPath +"/dembztinfo/dembzt"));
- model.makeValue(sendPath + "/extrminfo", fGetXmlToStr(mainPath +"/extrminfo/extrm"));
- model.makeValue(sendPath + "/headinfo", fGetXmlToStr(mainPath +"/headinfo/head"));
- model.makeValue(sendPath + "/rflxinfo", fGetXmlToStr(mainPath +"/rflxinfo/rflx"));
- model.makeValue(sendPath + "/tensioninfo", fGetXmlToStr(mainPath +"/tensioninfo/tension"));
- model.makeValue(sendPath + "/emotstatinfo", fGetXmlToStr(mainPath +"/emotstatinfo/emotstat"));
- model.makeValue(sendPath + "/etcmfmdtrma", fGetXmlToStr(mainPath +"/etcmfmdtrma/etcmfmdtrma"));
- //인자값
- 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", "0000002503");
- model.makeValue(sendPath + "/recflag", "06");
-
- model.makeValue(sendPath + "/userid", userid);
-
- //수행구분(I, U에 따른 입력, 수정을위한 구분)
- //model.makeValue(sendPath + "/exeflag", model.getValue("/root/hidden/womminfo/nbabyinfo/exeflag"));
- model.makeValue(sendPath + "/exeflag", model.getValue("/root/hidden/paminfo/paminfo/exeflag")); //20090722_SMY수정
-
- 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"));
- }
- 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"));
- }
-
- 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 weigunit = model.getValue(xWardRecPath +"/weigunit");
- if(weigunit != "") {
- model.setValue(xWardRecPath +"/weigunit", cmb_weigunit.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 ftherinfcinfoyn = model.getValue(xWardRecPath +"/ftherinfcinfoyn");
- var ftherinfcinfo = model.getValue(xWardRecPath +"/ftherinfcinfo");
- var ftherinfcinfonm = model.getValue(xWardRecPath +"/ftherinfcinfonm");
- str = rdo_ftherinfcinfoyn.label;
- arr = "";
-
- if(ftherinfcinfoyn != "") {
- if(ftherinfcinfoyn == "2") { //유
- if(ftherinfcinfo != "") {
-
- for(var i = 1; i<= chk_ftherinfcinfo.length; i++){
- var ftherinfo = isSearchString(ftherinfcinfo, i);
- if(ftherinfo == true) {
- if(arr == ""){
- arr += chk_ftherinfcinfo.item(i-1).label;
- }else{
- arr += ", " + chk_ftherinfcinfo.item(i-1).label;
- }
- }
- }
- if(ftherinfcinfonm != "") {
- arr += "(" + ftherinfcinfonm + ")";
- }
- str += "(" + arr + ")";
- }
- }
- model.setValue(xWardRecPath + "/ftherinfcinfoyn", str);
- }
-
- /****************************** 초기간호 **************************************/
- //제대간호
- var dembztcareyn = model.getValue(xWardRecPath +"/initcareinfo/initcare/dembztcareyn");
- var dembztcarecnts = model.getValue(xWardRecPath +"/initcareinfo/initcare/dembztcarecnts");
- str = rdo_dembztcareyn.label;
-
- if(dembztcareyn != "") {
- if(dembztcareyn == "2") {
- if(dembztcarecnts != "") {
- str += "(" + dembztcarecnts +")";
- }
- }
- model.setValue(xWardRecPath +"/initcareinfo/initcare/dembztcareyn", str);
- }
-
- //산소투여
- var oxydrugyn = model.getValue(xWardRecPath +"/initcareinfo/initcare/oxydrugyn");
- var oxydrugcnts = model.getValue(xWardRecPath +"/initcareinfo/initcare/oxydrugcnts");
- str = rdo_oxydrugyn.label;
-
- if(oxydrugyn != "") {
- if(oxydrugyn == "2") {
- if(oxydrugcnts != "") {
- str += "(" + oxydrugcnts +")";
- }
- }
- model.setValue(xWardRecPath +"/initcareinfo/initcare/oxydrugyn", str);
- }
-
- //vitamin k1
- var vitaminyn = model.getValue(xWardRecPath +"/initcareinfo/initcare/vitaminyn");
- var vitamincnts = model.getValue(xWardRecPath +"/initcareinfo/initcare/vitamincnts");
- str = rdo_vitaminyn.label;
-
- if(vitaminyn != "") {
- if(vitaminyn == "2") {
- if(vitamincnts != "") {
- str += "(" + vitamincnts +")";
- }
- }
- model.setValue(xWardRecPath +"/initcareinfo/initcare/vitaminyn", str);
- }
-
- //눈간호
- var eyecareyn = model.getValue(xWardRecPath +"/initcareinfo/initcare/eyecareyn");
- var eyecarecnts = model.getValue(xWardRecPath +"/initcareinfo/initcare/eyecarecnts");
- str = rdo_eyecareyn.label;
-
- if(eyecareyn != "") {
- if(eyecareyn == "2") {
- if(eyecarecnts != "") {
- str += "(" + eyecarecnts +")";
- }
- }
- model.setValue(xWardRecPath +"/initcareinfo/initcare/eyecareyn", str);
- }
-
- //흡인/배액
- var suctdrgeyn = model.getValue(xWardRecPath +"/initcareinfo/initcare/suctdrgeyn");
- if(suctdrgeyn != "") {
- model.setValue(xWardRecPath +"/initcareinfo/initcare/suctdrgeyn", rdo_suctdrgeyn.label);
- }
- //양
- var suctdrgevol = model.getValue(xWardRecPath +"/initcareinfo/initcare/suctdrgevol");
- if(suctdrgevol != "") {
- model.setValue(xWardRecPath +"/initcareinfo/initcare/suctdrgevol", cmb_suctdrgevol.label);
- }
- //양상
- var suctdrgemodal = model.getValue(xWardRecPath +"/initcareinfo/initcare/suctdrgemodal");
- if(suctdrgemodal != "") {
- model.setValue(xWardRecPath +"/initcareinfo/initcare/suctdrgemodal", cmb_suctdrgemodal.label);
- }
- //색
- var suctdrgecolor = model.getValue(xWardRecPath +"/initcareinfo/initcare/suctdrgecolor");
- if(suctdrgecolor != "") {
- model.setValue(xWardRecPath +"/initcareinfo/initcare/suctdrgecolor", cmb_suctdrgecolor.label);
- }
-
-
- /****************************** 입실정보 **************************************/
- //입실형태
- var inrmtype = model.getValue(xWardRecPath +"/inrminfo/inrm/inrmtype");
- var inrmtypenm = model.getValue(xWardRecPath +"/inrminfo/inrm/inrmtypenm");
- str = cmb_inrmtype.label;
-
- if(inrmtype != "") {
- if(inrmtype == "03") {
- if(inrmtypenm != "") {
- str += "(" + inrmtypenm +")";
- }
- }
- model.setValue(xWardRecPath +"/inrminfo/inrm/inrmtype", str);
- }
-
- //동반자
- var inacompst = model.getValue(xWardRecPath +"/inrminfo/inrm/inacompst");
- var inacompstnm = model.getValue(xWardRecPath +"/inrminfo/inrm/inacompstnm");
- str = cmb_inacompst.label;
-
- if(inacompst != "") {
- if(inacompst == "03") {
- if(inacompstnm != "") {
- str += "(" + inacompstnm +")";
- }
- }
- model.setValue(xWardRecPath +"/inrminfo/inrm/inacompst", str);
- }
-
- /****************************** 기본 신체정보 **************************************/
- //체온
- var bdtppartcd = model.getValue(xWardRecPath +"/bdtppartcd");
- if(bdtppartcd != "") {
- model.setValue(xWardRecPath +"/bdtppartcd", cmb_bdtp.label);
- }
-
- /****************************** 간염예방접종 **************************************/
- //간염예방접종여부
- var hptsvacnyn = model.getValue(xWardRecPath +"/hptsvacninfo/hptsvacn/hptsvacnyn");
- if(hptsvacnyn != "") {
- model.setValue(xWardRecPath +"/hptsvacninfo/hptsvacn/hptsvacnyn", rdo_hptsvacnyn.label);
- }
-
- //차수
- var hptsvacntim = model.getValue(xWardRecPath +"/hptsvacninfo/hptsvacn/hptsvacntim");
- if(hptsvacntim != "") {
- model.setValue(xWardRecPath +"/hptsvacninfo/hptsvacn/hptsvacntim", cmb_hptsvacntim.label);
- }
-
- //접종부위
- var hptsvacninocpart = model.getValue(xWardRecPath +"/hptsvacninfo/hptsvacn/hptsvacninocpart");
- if(hptsvacninocpart != "") {
- model.setValue(xWardRecPath +"/hptsvacninfo/hptsvacn/hptsvacninocpart", cmb_hptsvacninocpart.label);
- }
-
- /****************************** 감염성질환 **************************************/
- //감염성질환
- var infcsicknm = model.getValue(xWardRecPath +"/infcsicknm");
- var infcsickspec = model.getValue(xWardRecPath +"/infcsickspec");
- var arr = chk_infcsicknm.label.split(",");
-
- if(infcsicknm != "") {
- if(infcsickspec != "") {
- arr += "(" + infcsicknm +")";
- }
- model.setValue(xWardRecPath +"/infcsicknm", arr);
- }
-
- /****************************** B형간염 면역글로블린 **************************************/
- //간염예방접종여부
- var hptsvacnyn2 = model.getValue(xWardRecPath +"/hptsvacninfo/hptsvacn/hptsvacnyn2");
- if(hptsvacnyn2 != "") {
- model.setValue(xWardRecPath +"/hptsvacninfo/hptsvacn/hptsvacnyn2", rdo_hptsvacnyn2.label);
- }
-
- //접종부위
- var hptsvacninocpart2 = model.getValue(xWardRecPath +"/hptsvacninfo/hptsvacn/hptsvacninocpart2");
- if(hptsvacninocpart2 != "") {
- model.setValue(xWardRecPath +"/hptsvacninfo/hptsvacn/hptsvacninocpart2", cmb_hptsvacninocpart2.label);
- }
-
- /****************************** 신생아출생정보 **************************************/
- //분만형태
- var dlivkindcd = model.getValue(xWardRecPath +"/dlivkindcd");
- var dlivflag = model.getValue(xWardRecPath +"/dlivflag");
- str = cmb_dlivkindcd.label;
-
- if(dlivkindcd != "") {
- if(dlivflag != "") {
- str += "(" + cmb_partrtntype.label + ")";
- }
- model.setValue(xWardRecPath +"/dlivkindcd", str);
- }
-
- //분만장소
- var dlivplcecd = model.getValue(xWardRecPath +"/dlivplcecd");
- var dlivflag = model.getValue(xWardRecPath +"/dlivflag");
- str = cmb_dilvplcecd.label;
-
- if(dlivplcecd != "") {
- if(dlivplcecd == "E") {
- str += "(" + dlivplcecd + ")";
- }
- model.setValue(xWardRecPath +"/dlivplcecd", str);
- }
-
- //첫 모유수유시간
- var fstlctyn = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/fstlctyn");
- var lctrejtresnspec = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/lctrejtresnspec");
- var dlivpredrugspec = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/dlivpredrugspec");
- var lctdd = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/lctdd");
- var lcttm = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/lcttm");
- str = rdo_fstlctyn.label;
-
- if(fstlctyn != "") {
- if(fstlctyn == "N") { //무
- if(lctrejtresnspec != ""){
- if(dlivpredrugspec != ""){
- str += "(" + cmb_lctrejtresnspec.label + "(" + dlivpredrugspec + "))";
- }else{
- str += "(" + cmb_lctrejtresnspec.label + ")";
- }
- }
- }else{ //유
- if(lctdd != ""){
- if(lctdd != "" && lcttm != "") {
- str += "(" + lctdd.substr(0,4) + "-" + lctdd.substr(4,2) + "-" + lctdd.substr(6,2) + " " + lcttm.substr(0,2) + ":" + lcttm.substr(2, 2) + ")";
- } else if( lctdd != "" && lcttm == "") {
- str += "(" + lctdd.substr(0,4) + "-" + lctdd.substr(4,2) + "-" + lctdd.substr(6,2) + ")";
- } else if( lctdd == "" && lcttm != "") {
- str += "(" + lcttm.substr(0,2) + ":" + lcttm.substr(2, 2) + ")"
- }
- }
- }
- model.setValue(xWardRecPath +"/etcbrthinfo/etcbrth/fstlctyn", str);
- }
-
- //PROM
- var promyn = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/promyn");
- var promdd = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/promdd");
- var promtm = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/promtm");
- str = rdo_promyn.label;
-
- if(promyn != "") {
- if(promyn == "Y") {
- if(promdd != "" && promtm != "") {
- str += "(" + promdd.substr(0,4) + "-" + promdd.substr(4,2) + "-" + promdd.substr(6,2) + " " + promtm.substr(0,2) + ":" + promtm.substr(2, 2) + ")";
- } else if( promdd != "" && promtm == "") {
- str += "(" + promdd.substr(0,4) + "-" + promdd.substr(4,2) + "-" + promdd.substr(6,2) + ")";
- } else if( promdd == "" && promtm != "") {
- str += "(" + promtm.substr(0,2) + ":" + promtm.substr(2, 2) + ")"
- }
- }
- model.setValue(xWardRecPath +"/etcbrthinfo/etcbrth/promyn", str);
- }
-
- //항생제투여여부
- var antibiodrugyn = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/antibiodrugyn");
- if(antibiodrugyn != "") {
- model.setValue(xWardRecPath +"/etcbrthinfo/etcbrth/antibiodrugyn", rdo_antibiodrugyn.label);
- }
-
- //urine
- var urinecd = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/urinecd");
- var urinespec = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/urinespec");
- str = rdo_urinecd.label;
-
- if(urinecd != "") {
- if(urinecd == "Y") {
- if(urinespec != "") {
- str += "(" + urinespec + ")";
- }
- }
- model.setValue(xWardRecPath +"/etcbrthinfo/etcbrth/urinecd", str);
- }
-
- //Stool
- var stoolcd = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/stoolcd");
- var stool = model.getValue(xWardRecPath +"etcbrthinfo/etcbrth/stool");
- str = rdo_stoolyn.label;
-
- if(stoolcd != "") {
- if(stoolcd == "Y") {
- if(stool != "") {
- str += "(" + stool + ")";
- }
- }
- model.setValue(xWardRecPath +"/etcbrthinfo/etcbrth/stoolcd", str);
- }
-
- //태변착색
- var mecnmcolrayn = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/mecnmcolrayn");
- var mecnmcolracd = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/mecnmcolracd");
- str = rdo_mecstainyn.label;
-
- if(mecnmcolrayn != "") {
- if(mecnmcolrayn == "Y") {
- if(mecnmcolracd != "") {
- str += "(" + cmb_mecstain.label + ")";
- }
- }
- model.setValue(xWardRecPath +"/etcbrthinfo/etcbrth/mecnmcolrayn", str);
- }
-
- //nuchal cord
- var nuchalcordyn = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/nuchalcordcd");
- var nuchalcordpart = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/nuchalcordpart");
- var nuchalcordtime = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/nuchalcordtime");
- var nuchalcordspec = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/nuchalcordspec");
- str = rdo_nuchalcordyn.label;
-
- if(nuchalcordyn != "") {
- if(nuchalcordyn == "Y") {
- if(nuchalcordpart != "" && nuchalcordtime != "") {
- if(nuchalcordpart == "5") {
- if(nuchalcordspec != "") {
- str += "( 부위: " + cmb_nuchalcordpart.label + "(" + nuchalcordspec + "), " + "횟수: " + cmb_nuchalcordtime.label + ")";
- } else {
- str += "( 부위: " + cmb_nuchalcordpart.label + ", " + "횟수: " + cmb_nuchalcordtime.label + ")";
- }
- }
- } else if(nuchalcordpart != "" && nuchalcordtime == "") {
- if(nuchalcordpart == "5") {
- if(nuchalcordspec != "") {
- str += "( 부위: " + cmb_nuchalcordpart.label + "(" + nuchalcordspec + "))";
- } else {
- str += "( 부위: " + cmb_nuchalcordpart.label + ")";
- }
- }
- } else if(nuchalcordpart == "" && nuchalcordtime != "") {
- str += "( 횟수: " + cmb_nuchalcordtime.label + ")";
- }
- }
- model.setValue(xWardRecPath +"/etcbrthinfo/etcbrth/nuchalcordcd", str);
- }
-
- //true knot
- var trueknotyn = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/trueknotyn");
- var trueknotspec = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/trueknotspec");
- str = rdo_trueknotyn.label;
-
- if(trueknotyn != "") {
- if(trueknotyn == "Y") {
- if(trueknotspec != "") {
- str += "(" + cmb_trueknotspec.label + ")";
- }
- }
- model.setValue(xWardRecPath +"/etcbrthinfo/etcbrth/trueknotyn", str);
- }
-
- //유도분만
- var guiddlivyn = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/guiddlivyn");
- var guiddlivspec = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/guiddlivspec");
- str = rdo_guiddlivyn.label;
-
- if(guiddlivyn != "") {
- if(guiddlivyn == "Y") {
- if(guiddlivspec != "") {
- str += "(" + guiddlivspec + ")";
- }
- }
- model.setValue(xWardRecPath +"/etcbrthinfo/etcbrth/guiddlivyn", str);
- }
-
- //산소흡입
- var oxygenabsopcd = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/oxygenabsopcd");
- var oxygenabsopspec = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/oxygenabsopspec");
- str = rdo_oxygenabsopcd.label;
-
- if(oxygenabsopcd != "") {
- if(oxygenabsopcd == "Y") {
- if(oxygenabsopspec != "") {
- str += "(" + oxygenabsopspec + "(I/분))";
- }
- }
- model.setValue(xWardRecPath +"/etcbrthinfo/etcbrth/oxygenabsopcd", str);
- }
- //심폐소생술
- var cardresusyn = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/cardresusyn");
- var cardresuscd = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/cardresuscd");
- var cardresusspec = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/cardresusspec");
- str = rdo_cardresusyn.label;
-
- if(cardresusyn != "") {
- if(cardresusyn == "Y") {
- if(cardresuscd != "") {
- arr = chk_cardresuscd.label.split(",");
- str += "(" + arr + " " + cardresusspec + ")";
- }
- }
- model.setValue(xWardRecPath +"/etcbrthinfo/etcbrth/cardresusyn", 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 == "10"){
- 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 == "13"){
- 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", "0000002503");
- //model.makeValue("/root/send/req/deptcd", orddeptcd);
-
- //본원신생아 간호정보조사지
- submit("TRMNN00405");
-
- fSetRecInfo();
-
- model.setValue("/root/main/wardrecinfo/recdd", model.getValue("/root/hidden/womminfo/nbabyinfo/recdd"));
- model.setValue("/root/main/wardrecinfo/rectm", model.getValue("/root/hidden/womminfo/nbabyinfo/rectm"));
- model.setValue("/root/main/wardrecinfo/recuser", model.getValue("/root/hidden/womminfo/nbabyinfo/recuser"));
- model.setValue("/root/main/wardrecinfo/fstrgstrnm", model.getValue("/root/hidden/womminfo/nbabyinfo/fstrgstrnm"));
-
- var fstrgstdt = model.getValue("/root/hidden/womminfo/nbabyinfo/fstrgstdt");
- model.setValue("/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.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="../../../com/basiccodeweb/js/ZBC002.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.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="TRMNN00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/paminfo"/>
- <submission id="TRMNN00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main"/>
- <submission id="TRMNN00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/init/newpat"/>
- <submission id="TRMNN00404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/cominfo"/>
- <submission id="TRMNN00405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/womminfo"/>
- <submission id="TXMNN00401" 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="TRZBC00102" 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; ">
- <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\SMMNW08200_신생아정보본원.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("TXMNN00401") == true) {
- messageBox("저장이 ", "I001");
- model.makeValue("/root/hidden/paminfo/paminfo/exeflag", "U");
- } 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/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", "0000002503");
- 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("TXMNN00401") == 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; "/>
- <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>
- <button id="button1" class="btn2_letter6" style="left:1040px; top:49px; width:86px; height:21px; ">
- <caption>전체기록삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.copyNode("/root/hidden1/wardrecinfo/apgarscoreinfo", "/root/main/wardrecinfo/apgarscoreinfo");
- model.refresh();
- setCareInfoDel("TXMNN00401"); //CareCom.js
-
- //model.resetInstanceNode("/root/hidden1/wardrecinfo/apgarscoreinfo");
- ]]>
- </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();
- ]]>
- </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; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|