12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781 |
- /*
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- 응급뇌질환 등록정보 ( SPMMO32700_응급실응급뇌질환등록.xrw - JScript )
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- */
- var sERKCVA_PATH = "/root/main/kcvainfo";
- var vFlag = 1;
- /**
- * @desc : 화면 초기화
- * @
- * @param :
- * @return :
- * @author : 성미연
- * @---------------------------------------------------
- */
- function fInitialize_SPMMO32700(){
-
- window.height = "870";
- window.width = "930";
-
- //콤보 초기값
- fCmbInit();
-
- //응급뇌질환 대상 환자인지 체크
- freqGetERKcvaInfo();
- }
- /**
- * @desc : 콤보 초기값 셋팅
- * @
- * @param :
- * @return :
- * @author : 성미연
- * @---------------------------------------------------
- */
- function fCmbInit() {
- // 진료과
- var instcd = getUserInfo("dutplceinstcd");
- //var standard_yn = "orduseyn";
- // var standard_yn = "rcptuseyn";
- // var ord_deptflag = 'D';
- // var rslt_ref = "/root/init/dept";
- // var sort_method = "depthngnm";
- //zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
- // sort_field = "depthngnm";
- // zsdfGetInOutOrdDeptList(instcd, rslt_ref, sort_field, sort_method);
- // 공통코드 목록 가져오기
- zbcfGetCodeList(
- new Array("M0120",
- "M0121",
- "M0122",
- "M0573",
- "M0125",
- "M0118",
- "M0535",
- "M0576",
- "M0119",
- "M0571",
- "M0574",
- "M0584",
- "M0572",
- "M0577",
- "M0578",
- "M0579",
- "M0580",
- "M0117",
- "M0583",
- "M0535",
- "M0581",
- "M0582" ) ,
- new Array("/root/init/M0120list",
- "/root/init/M0121list",
- "/root/init/M0122list",
- "/root/init/M0573list",
- "/root/init/M0125list",
- "/root/init/M0118list",
- "/root/init/M0535list",
- "/root/init/M0576list",
- "/root/init/M0119list",
- "/root/init/M0571list",
- "/root/init/M0574list",
- "/root/init/M0584list",
- "/root/init/M0572list",
- "/root/init/M0577list",
- "/root/init/M0578list",
- "/root/init/M0579list",
- "/root/init/M0580list",
- "/root/init/M0117list",
- "/root/init/M0583list",
- "/root/init/M0535list",
- "/root/init/M0581list",
- "/root/init/M0582list" ));
- model.refresh();
- }
- /**
- * @desc : DATA 조회
- * @
- * @param :
- * @return :
- * @author : 성미연
- * @---------------------------------------------------
- */
- function freqGetERKcvaInfo() {
-
- var pid = opener.javascript.getParameter("SPMMO32700_pid");
- var orddd = opener.javascript.getParameter("SPMMO32700_orddd");
- var cretno = opener.javascript.getParameter("SPMMO32700_cretno");
- model.setValue("/root/main/patinfo/pid", pid);
- model.setValue("/root/main/patinfo/orddd", orddd);
- model.setValue("/root/main/patinfo/cretno",cretno);
- model.copyNode("/root/send/reqdata", "/root/main/patinfo");
-
- model.removeNodeset("/root/main/kcvainfo");
- model.removeNodeset("/root/main/strmdiag");
- model.removeNodeset("/root/main/strmtrcd");
- model.removeNodeset("/root/main/strmopcd");
- model.removeNodeset("/root/main/strmdcdiag");
-
- submit("TRMMO32701");
- var node = instance1.selectSingleNode(sERKCVA_PATH);
- if(node == null){
- model.alert("환자 정보를 찾을 수 없습니다.\n\n응급환자정보를 다시 확인하시기 바랍니다.");
- return;
- }
- else {
- model.setValue( "/root/main/kcvainfo/gwtransyn" , "N");
- if ( model.getValue("/root/main/kcvainfo/status") == "i") {
- model.setValue( "/root/main/kcvainfo/stat" , "C");
- }
- else if ( model.getValue("/root/main/kcvainfo/status") == "u"){
- var vStat = model.getValue("/root/main/kcvainfo/stat"); //T는 U와 값은 의미(등록 후 전송전에 미리 값이 T로 바뀌는 오류 잡기 위해 적용)
- if (vStat == "C") model.setValue( "/root/main/kcvainfo/stat" , "C");
- else if (vStat == "T" || vStat == "U") model.setValue( "/root/main/kcvainfo/stat" , "U");
- else if (vStat == "E") model.setValue( "/root/main/kcvainfo/stat" , "C");
- }
- }
-
- fSetDisabled();
- model.refresh();
- }
- /**
- * @desc : 활성화 여부 CHECK
- * @
- * @param :
- * @return :
- * @author : 성미연
- * @---------------------------------------------------
- */
- function fSetDisabled() {
- // 내원경로(inrt)
- var vInrt = model.getValue("/root/main/kcvainfo/inrt");
- if( vInrt == "2" ) { //외부에서 전원
- ipt_fhcd.disabled = false;
- btn_fhcdinfo.disabled = false;
- rdo_fhrs.disabled = false;
- }
- else {
- ipt_fhcd.disabled = true;
- btn_fhcdinfo.disabled = true;
- rdo_fhrs.disabled = true;
- model.setValue("/root/main/kcvainfo/fhcd", "-"); //전원보낸 의료기관코드
- model.setValue("/root/main/kcvainfo/fhcdnm", "-"); //전원보낸 의료기관명
- model.setValue("/root/main/kcvainfo/fhnm", "-"); //전원보낸 의료기관명(기타)
- model.setValue("/root/main/kcvainfo/intp", "-"); //의료기관종류
- model.setValue("/root/main/kcvainfo/fhrs", "-"); //전원 보낸 사유
- }
- //의료기관 종류(intp)
- var vIntp = model.getValue("/root/main/kcvainfo/intp");
- if (vIntp == "9") {
- caption28.visible = true;
- ipt_fhnm.visible = true;
- }
- else {
- caption28.visible = false;
- ipt_fhnm.visible = false;
- model.setValue("/root/main/kcvainfo/fhnm", "-"); //전원보낸 의료기관명(기타)
- }
-
- //응급진료 결과(emrt) - 기타
- var vEmrt = model.getValue("/root/main/kcvainfo/emrt");
- if ( vEmrt == "18" || vEmrt == "28" || vEmrt == "38" || vEmrt == "48" || vEmrt == "88" ) {
- caption45.visible = true;
- ipt_ettx.visible = true;
- }
- else {
- caption45.visible = false;
- ipt_ettx.visible = false;
- }
-
- var vDcrt = model.getValue("/root/main/kcvainfo/dcrt");
- //응급진료 결과(emrt) : 전원 / 입원후 결과(dcrt) : 전원 -> 사.그룹
- if (vEmrt.substr(0,1) == "2" || vDcrt == "3" ) {
- grp_info6.disabled = false;
- //cmb_dctp.disabled = true; //20110421_SMY주석처리
- }
- else {
- grp_info6.disabled = true;
- model.setValue("/root/main/kcvainfo/thcd", "-"); //전원보낼 의료기관코드
- model.setValue("/root/main/kcvainfo/thcdnm", "-"); //전원보낼 의료기관명
- model.setValue("/root/main/kcvainfo/thnm", "-"); //전원보낼 의료기관명(기타)
- model.setValue("/root/main/kcvainfo/dctp", "-"); //전원보낼 의료기관종류 //20110421_SMY추가
- model.setValue("/root/main/kcvainfo/thtm", "-"); //전원시 이송수단
- model.setValue("/root/main/kcvainfo/thp1", "-"); //전원시 동승인력
- model.setValue("/root/main/kcvainfo/thp2", "-"); //전원시 동승인력
- model.setValue("/root/main/kcvainfo/thp3", "-"); //전원시 동승인력
- model.setValue("/root/main/kcvainfo/thp4", "-"); //전원시 동승인력
- model.setValue("/root/main/kcvainfo/thdp", "-"); //전원병원 선정방법
- }
- //전원보낼 의료기관 종류(dctp)
- vDctp = model.getValue("/root/main/kcvainfo/dctp");
- if ( vDctp == "9" ) {
- caption32.visible = true;
- ipt_thnm.visible = true;
- }
- else {
- caption32.visible = false;
- ipt_thnm.visible = false;
- model.setValue("/root/main/kcvainfo/thnm", "-"); //전원보낼 의료기관명(기타)
- }
-
- //과거력 및 위험요인 Checkbox 값 선택
- if(model.getValue("/root/main/kcvainfo/hs09") == "Y"){
- fChkHS("/root/main/kcvainfo/hs09", "chk_hs09", "sel");
- }
- if(model.getValue("/root/main/kcvainfo/hs10") == "Y"){
- fChkHS("/root/main/kcvainfo/hs10", "chk_hs10", "sel");
- }
- //최초 두부영상검사실시 여부
- if(model.getValue("/root/main/kcvainfo/his3") == "Y"){
- fChkHis("/root/main/kcvainfo/his3", "chk_his3", "sel");
- }
- if(model.getValue("/root/main/kcvainfo/his4") == "Y"){
- fChkHis("/root/main/kcvainfo/his4", "chk_his4", "sel");
- }
- if(model.getValue("/root/main/kcvainfo/his5") == "Y"){
- fChkHis("/root/main/kcvainfo/his5", "chk_his5", "sel");
- }
- //응급뇌질환의 치료방법
- if(model.getValue("/root/main/kcvainfo/htm1") == "Y"){
- fChkHtm("/root/main/kcvainfo/htm1", "chk_htm1", "sel");
- }
- if(model.getValue("/root/main/kcvainfo/htm2") == "Y"){
- fChkHtm("/root/main/kcvainfo/htm2", "chk_htm2", "sel");
- }
- if(model.getValue("/root/main/kcvainfo/htm3") == "Y"){
- fChkHtm("/root/main/kcvainfo/htm3", "chk_htm3", "sel");
- }
- if(model.getValue("/root/main/kcvainfo/htm4") == "Y"){
- fChkHtm("/root/main/kcvainfo/htm4", "chk_htm4", "sel");
- }
- if(model.getValue("/root/main/kcvainfo/htm5") == "Y"){
- fChkHtm("/root/main/kcvainfo/htm5", "chk_htm5", "sel");
- }
- if(model.getValue("/root/main/kcvainfo/htm6") == "Y"){
- fChkHtm("/root/main/kcvainfo/htm6", "chk_htm6", "sel");
- }
- if(model.getValue("/root/main/kcvainfo/htm7") == "Y"){
- fChkHtm("/root/main/kcvainfo/htm7", "chk_htm7", "sel");
- }
- if(model.getValue("/root/main/kcvainfo/htm8") == "Y"){
- fChkHtm("/root/main/kcvainfo/htm8", "chk_htm8", "sel");
- }
- if(model.getValue("/root/main/kcvainfo/htm9") == "Y"){
- fChkHtm("/root/main/kcvainfo/htm9", "chk_htm9", "sel");
- }
- if(model.getValue("/root/main/kcvainfo/htma") == "Y"){
- fChkHtm("/root/main/kcvainfo/htma", "chk_htma", "sel");
- }
- if(model.getValue("/root/main/kcvainfo/htmb") == "Y"){
- fChkHtm("/root/main/kcvainfo/htmb", "chk_htmb", "sel");
- }
- if(model.getValue("/root/main/kcvainfo/htmc") == "Y"){
- fChkHtm("/root/main/kcvainfo/htmc", "chk_htmc", "sel");
- }
- if(model.getValue("/root/main/kcvainfo/htmd") == "Y"){
- fChkHtm("/root/main/kcvainfo/htmd", "chk_htmd", "sel");
- }
-
- //측정불가 및 미상항목 CHECK
- fsetEtc();
-
- //혈전용해술 미실시 사유 활성화체크
- fChkGrpTlu();
- }
- /**
- * @desc : 측정불가 및 미상항목 CHECK
- * @
- * @param :
- * @return :
- * @author : 성미연
- * @---------------------------------------------------
- */
- function fsetEtc() {
- //키
- if(model.getValue("/root/main/kcvainfo/hght") == "-1"){
- model.setValue("/root/main/kcvainfo/hghtetc", "-1");
- ipt_hght.disabled = true;
- }
- //몸무게
- if(model.getValue("/root/main/kcvainfo/wght") == "-1"){
- model.setValue("/root/main/kcvainfo/wghtetc", "-1");
- ipt_wght.disabled = true;
- }
- //증상발생일시
- if(model.getValue("/root/main/kcvainfo/akdt") == "11111111"){
- model.setValue("/root/main/kcvainfo/aketc", "Y");
- ipt_akdt.disabled = true;
- ipt_aktm.disabled = true;
- }
- //마지막정상일시
- if(model.getValue("/root/main/kcvainfo/lndt") == "99999999"){
- model.setValue("/root/main/kcvainfo/lnetc", "Y");
- ipt_lndt.disabled = true;
- ipt_lntm.disabled = true;
- }
- //수축기 혈압
- if(model.getValue("/root/main/kcvainfo/hibp") == "-1"){
- model.setValue("/root/main/kcvainfo/hibpetc", "-1");
- ipt_hibp.disabled = true;
- }
- //맥박
- if(model.getValue("/root/main/kcvainfo/puls") == "-1"){
- model.setValue("/root/main/kcvainfo/pulsetc", "-1");
- ipt_puls.disabled = true;
- }
- //호흡
- if(model.getValue("/root/main/kcvainfo/brth") == "-1"){
- model.setValue("/root/main/kcvainfo/brthetc", "-1");
- ipt_brth.disabled = true;
- }
- //체온
- if(model.getValue("/root/main/kcvainfo/bdht") == "-1"){
- model.setValue("/root/main/kcvainfo/bdhtetc", "-1");
- ipt_bdht.disabled = true;
- }
- //두부영상(CT) 최초 촬영일자
- if(model.getValue("/root/main/kcvainfo/hid1") == "99999999"){
- model.setValue("/root/main/kcvainfo/hi1etc", "Y");
- ipt_hid1.disabled = true;
- ipt_hit1.disabled = true;
- }
- //두부영상(MRI) 최초 촬영일자
- if(model.getValue("/root/main/kcvainfo/hid2") == "99999999"){
- model.setValue("/root/main/kcvainfo/hi2etc", "Y");
- ipt_hid2.disabled = true;
- ipt_hit2.disabled = true;
- }
- //경정맥혈전용해술
- if(model.getValue("/root/main/kcvainfo/htd1") == "99999999"){
- model.setValue("/root/main/kcvainfo/ht1etc", "Y");
- ipt_htd1.disabled = true;
- ipt_htt1.disabled = true;
- }
- //경동맥혈전용해술
- if(model.getValue("/root/main/kcvainfo/htd2") == "99999999"){
- model.setValue("/root/main/kcvainfo/ht2etc", "Y");
- ipt_htd2.disabled = true;
- ipt_htt2.disabled = true;
- }
- //항혈소판제
- if(model.getValue("/root/main/kcvainfo/htd3") == "99999999"){
- model.setValue("/root/main/kcvainfo/ht3etc", "Y");
- ipt_htd3.disabled = true;
- ipt_htt3.disabled = true;
- }
- //항응고제
- if(model.getValue("/root/main/kcvainfo/htd4") == "99999999"){
- model.setValue("/root/main/kcvainfo/ht4etc", "Y");
- ipt_htd4.disabled = true;
- ipt_htt4.disabled = true;
- }
- //개두술
- if(model.getValue("/root/main/kcvainfo/htd5") == "99999999"){
- model.setValue("/root/main/kcvainfo/ht5etc", "Y");
- ipt_htd5.disabled = true;
- ipt_htt5.disabled = true;
- }
- //정위적 흡인술
- if(model.getValue("/root/main/kcvainfo/htd6") == "99999999"){
- model.setValue("/root/main/kcvainfo/ht6etc", "Y");
- ipt_htd6.disabled = true;
- ipt_htt6.disabled = true;
- }
- //감압성 두개절제술
- if(model.getValue("/root/main/kcvainfo/htd7") == "99999999"){
- model.setValue("/root/main/kcvainfo/ht7etc", "Y");
- ipt_htd7.disabled = true;
- ipt_htt7.disabled = true;
- }
- //뇌실외 배액술
- if(model.getValue("/root/main/kcvainfo/htd8") == "99999999"){
- model.setValue("/root/main/kcvainfo/ht8etc", "Y");
- ipt_htd8.disabled = true;
- ipt_htt8.disabled = true;
- }
- //뇌압감시
- if(model.getValue("/root/main/kcvainfo/htd9") == "99999999"){
- model.setValue("/root/main/kcvainfo/ht9etc", "Y");
- ipt_htd9.disabled = true;
- ipt_htt9.disabled = true;
- }
- //혈관중재시술
- if(model.getValue("/root/main/kcvainfo/htda") == "99999999"){
- model.setValue("/root/main/kcvainfo/htaetc", "Y");
- ipt_htda.disabled = true;
- ipt_htta.disabled = true;
- }
- //재활 치료경험
- if(model.getValue("/root/main/kcvainfo/rhdt") == "99999999"){
- model.setValue("/root/main/kcvainfo/rhetc", "Y");
- ipt_rhdt.disabled = true;
- }
- model.refresh();
- }
- /**
- * @desc : 과거력 및 위험요인 Checkbox 값 선택
- * @
- * @param :
- * @return :
- * @author : 성미연
- * @---------------------------------------------------
- */
- function fChkHS(vChkValue, vChkID, vChkFlag) {
- if(vChkFlag == "sel"){
- model.setValue(vChkValue, "Y");
- //‘해당 없음’, ‘확인불가’ 선택 시 나머지 항목 Disabled
- if (vChkID == "chk_hs09" || vChkID == "chk_hs10") {
- model.setValue("/root/main/kcvainfo/hs01", "N");
- model.setValue("/root/main/kcvainfo/hs02", "N");
- model.setValue("/root/main/kcvainfo/hs03", "N");
- model.setValue("/root/main/kcvainfo/hs04", "N");
- model.setValue("/root/main/kcvainfo/hs05", "N");
- model.setValue("/root/main/kcvainfo/hs06", "N");
- model.setValue("/root/main/kcvainfo/hs07", "N");
- model.setValue("/root/main/kcvainfo/hs08", "N");
- chk_hs01.disabled = true;
- chk_hs02.disabled = true;
- chk_hs03.disabled = true;
- chk_hs04.disabled = true;
- chk_hs05.disabled = true;
- chk_hs06.disabled = true;
- chk_hs07.disabled = true;
- chk_hs08.disabled = true;
-
- if (vChkID == "chk_hs09"){
- model.setValue("/root/main/kcvainfo/hs10", "N");
- chk_hs10.disabled = true;
- } else if (vChkID == "chk_hs10") {
- model.setValue("/root/main/kcvainfo/hs09", "N");
- chk_hs09.disabled = true;
- }
- }
- //그 외 선택
- else {
- model.setValue("/root/main/kcvainfo/hs09", "N");
- model.setValue("/root/main/kcvainfo/hs10", "N");
- }
- }else{
- model.setValue(vChkValue, "N");
- chk_hs01.disabled = false;
- chk_hs02.disabled = false;
- chk_hs03.disabled = false;
- chk_hs04.disabled = false;
- chk_hs05.disabled = false;
- chk_hs06.disabled = false;
- chk_hs07.disabled = false;
- chk_hs08.disabled = false;
- chk_hs09.disabled = false;
- chk_hs10.disabled = false;
- }
- model.refresh();
- }
- /**
- * @desc : 내원 시 증상 Checkbox 값 선택
- * @
- * @param :
- * @return :
- * @author : 성미연
- * @---------------------------------------------------
- */
- function fChkIns(vChkValue, vChkID, vChkFlag) {
- if(vChkFlag == "sel"){
- model.setValue(vChkValue, "Y");
- }else{
- model.setValue(vChkValue, "N");
- }
- model.refresh();
- }
- /**
- * @desc : 최초 두부영상검사 실시여부 Checkbox 값 선택
- * @
- * @param :
- * @return :
- * @author : 성미연
- * @---------------------------------------------------
- */
- function fChkHis(vChkValue, vChkID, vChkFlag) {
- if(vChkFlag == "sel"){
- model.setValue(vChkValue, "Y");
- //‘촬영안함’ ,’ 입원 전 타원에서 시행’ , ‘기록없음’ 선택 시 나머지 항목 Disabled
- if (vChkID == "chk_his3" || vChkID == "chk_his4" || vChkID == "chk_his5") {
- model.setValue("/root/main/kcvainfo/his1", "N");
- model.setValue("/root/main/kcvainfo/hid1", "");
- model.setValue("/root/main/kcvainfo/hit1", "");
- model.setValue("/root/main/kcvainfo/hi1etc", "");
- chk_his1.disabled = true;
- ipt_hid1.disabled = true; //두부영상(CT) 최초 촬영일시
- ipt_hit1.disabled = true; //두부영상(CT) 최초 촬영일시
- chk_hi1etc.disabled = true; //두부영상(CT) 최초 촬영일시
- model.setValue("/root/main/kcvainfo/his2", "N");
- model.setValue("/root/main/kcvainfo/hid2", "");
- model.setValue("/root/main/kcvainfo/hit2", "");
- model.setValue("/root/main/kcvainfo/hi2etc", "");
- chk_his2.disabled = true;
- ipt_hid2.disabled = true; //두부영상(MRI) 최초 촬영일시
- ipt_hit2.disabled = true; //두부영상(MRI) 최초 촬영일시
- chk_hi2etc.disabled = true; //두부영상(MRI) 최초 촬영일시
-
- if (vChkID == "chk_his3"){
- model.setValue("/root/main/kcvainfo/his4", "N");
- model.setValue("/root/main/kcvainfo/his5", "N");
- model.setValue("/root/main/kcvainfo/hirt", "");
- chk_his4.disabled = true;
- chk_his5.disabled = true;
- rdo_hirt.disabled = true; //두부영상(CT/MRI) 판정결과
- } else if (vChkID == "chk_his4") {
- model.setValue("/root/main/kcvainfo/his3", "N");
- model.setValue("/root/main/kcvainfo/his5", "N");
- chk_his3.disabled = true;
- chk_his5.disabled = true;
- rdo_hirt.disabled = false; //두부영상(CT/MRI) 판정결과
- } else if (vChkID == "chk_his5") {
- model.setValue("/root/main/kcvainfo/his3", "N");
- model.setValue("/root/main/kcvainfo/his4", "N");
- model.setValue("/root/main/kcvainfo/hirt", "");
- chk_his3.disabled = true;
- chk_his4.disabled = true;
- rdo_hirt.disabled = true; //두부영상(CT/MRI) 판정결과
- }
- }
- //그 외 선택
- else {
- model.setValue("/root/main/kcvainfo/his3", "N");
- model.setValue("/root/main/kcvainfo/his4", "N");
- model.setValue("/root/main/kcvainfo/his5", "N");
- //CT
- if (vChkID == "chk_his1"){
- ipt_hid1.disabled = false; //두부영상(CT) 최초 촬영일시
- ipt_hit1.disabled = false; //두부영상(CT) 최초 촬영일시
- chk_hi1etc.disabled = false; //두부영상(CT) 최초 촬영일시
- rdo_hirt.disabled = false; //두부영상(CT/MRI) 판정결과
- }
- //MRI
- if (vChkID == "chk_his2"){
- ipt_hid2.disabled = false; //두부영상(MRI) 최초 촬영일시
- ipt_hit2.disabled = false; //두부영상(MRI) 최초 촬영일시
- chk_hi2etc.disabled = false; //두부영상(MRI) 최초 촬영일시
- rdo_hirt.disabled = false; //두부영상(CT/MRI) 판정결과
- }
- }
- }else{
- model.setValue(vChkValue, "N");
- chk_his1.disabled = false;
- chk_his2.disabled = false;
- chk_his3.disabled = false;
- chk_his4.disabled = false;
- chk_his5.disabled = false;
- //CT
- if (vChkID == "chk_his1"){
- model.setValue("/root/main/kcvainfo/hid1", "");
- model.setValue("/root/main/kcvainfo/hit1", "");
- model.setValue("/root/main/kcvainfo/hi1etc", "");
- ipt_hid1.disabled = true; //두부영상(CT) 최초 촬영일시
- ipt_hit1.disabled = true; //두부영상(CT) 최초 촬영일시
- chk_hi1etc.disabled = true; //두부영상(CT) 최초 촬영일시
- }
- //MRI
- if (vChkID == "chk_his2"){
- model.setValue("/root/main/kcvainfo/hid2", "");
- model.setValue("/root/main/kcvainfo/hit2", "");
- model.setValue("/root/main/kcvainfo/hi2etc", "");
- ipt_hid2.disabled = true; //두부영상(MRI) 최초 촬영일시
- ipt_hit2.disabled = true; //두부영상(MRI) 최초 촬영일시
- chk_hi2etc.disabled = true; //두부영상(MRI) 최초 촬영일시
- }
- //CT OR MRI OR 입원 전 타원에서 시행
- if ((model.getValue("/root/main/kcvainfo/his1") == "" || model.getValue("/root/main/kcvainfo/his1") == "-" || model.getValue("/root/main/kcvainfo/his1") == "N")
- && (model.getValue("/root/main/kcvainfo/his2") == "" || model.getValue("/root/main/kcvainfo/his2") == "-" || model.getValue("/root/main/kcvainfo/his2") == "N")
- && (model.getValue("/root/main/kcvainfo/his4") == "" || model.getValue("/root/main/kcvainfo/his4") == "-" || model.getValue("/root/main/kcvainfo/his4") == "N")){
- model.setValue("/root/main/kcvainfo/hirt", "");
- rdo_hirt.disabled = true; //두부영상(CT/MRI) 판정결과
- }
- }
- model.refresh();
- }
- /**
- * @desc : 응급뇌질환의 치료 방법 Checkbox 값 선택
- * @
- * @param :
- * @return :
- * @author : 성미연
- * @---------------------------------------------------
- */
- function fChkHtm(vChkValue, vChkID, vChkFlag) {
- if(vChkFlag == "sel"){
- model.setValue(vChkValue, "Y");
- //‘치료포기’ , ‘실시안함’ 선택 시 나머지 항목 Disabled
- if (vChkID == "chk_htmc" || vChkID == "chk_htmd") {
- model.setValue("/root/main/kcvainfo/htm1", "N");
- model.setValue("/root/main/kcvainfo/htd1", "");
- model.setValue("/root/main/kcvainfo/htt1", "");
- model.setValue("/root/main/kcvainfo/ht1etc", "");
- chk_htm1.disabled = true;
- ipt_htd1.disabled = true;
- ipt_htt1.disabled = true;
- chk_ht1etc.disabled = true;
- model.setValue("/root/main/kcvainfo/htm2", "N");
- model.setValue("/root/main/kcvainfo/htd2", "");
- model.setValue("/root/main/kcvainfo/htt2", "");
- model.setValue("/root/main/kcvainfo/ht2etc", "");
- chk_htm2.disabled = true;
- ipt_htd2.disabled = true;
- ipt_htt2.disabled = true;
- chk_ht2etc.disabled = true;
- model.setValue("/root/main/kcvainfo/htm3", "N");
- model.setValue("/root/main/kcvainfo/htd3", "");
- model.setValue("/root/main/kcvainfo/htt3", "");
- model.setValue("/root/main/kcvainfo/ht3etc", "");
- chk_htm3.disabled = true;
- ipt_htd3.disabled = true;
- ipt_htt3.disabled = true;
- chk_ht3etc.disabled = true;
- model.setValue("/root/main/kcvainfo/htm4", "N");
- model.setValue("/root/main/kcvainfo/htd4", "");
- model.setValue("/root/main/kcvainfo/htt4", "");
- model.setValue("/root/main/kcvainfo/ht4etc", "");
- chk_htm4.disabled = true;
- ipt_htd4.disabled = true;
- ipt_htt4.disabled = true;
- chk_ht4etc.disabled = true;
- model.setValue("/root/main/kcvainfo/htm5", "N");
- model.setValue("/root/main/kcvainfo/htd5", "");
- model.setValue("/root/main/kcvainfo/htt5", "");
- model.setValue("/root/main/kcvainfo/ht5etc", "");
- chk_htm5.disabled = true;
- ipt_htd5.disabled = true;
- ipt_htt5.disabled = true;
- chk_ht5etc.disabled = true;
- model.setValue("/root/main/kcvainfo/htm6", "N");
- model.setValue("/root/main/kcvainfo/htd6", "");
- model.setValue("/root/main/kcvainfo/htt6", "");
- model.setValue("/root/main/kcvainfo/ht6etc", "");
- chk_htm6.disabled = true;
- ipt_htd6.disabled = true;
- ipt_htt6.disabled = true;
- chk_ht6etc.disabled = true;
- model.setValue("/root/main/kcvainfo/htm7", "N");
- model.setValue("/root/main/kcvainfo/htd7", "");
- model.setValue("/root/main/kcvainfo/htt7", "");
- model.setValue("/root/main/kcvainfo/ht7etc", "");
- chk_htm7.disabled = true;
- ipt_htd7.disabled = true;
- ipt_htt7.disabled = true;
- chk_ht7etc.disabled = true;
- model.setValue("/root/main/kcvainfo/htm8", "N");
- model.setValue("/root/main/kcvainfo/htd8", "");
- model.setValue("/root/main/kcvainfo/htt8", "");
- model.setValue("/root/main/kcvainfo/ht8etc", "");
- chk_htm8.disabled = true;
- ipt_htd8.disabled = true;
- ipt_htt8.disabled = true;
- chk_ht8etc.disabled = true;
- model.setValue("/root/main/kcvainfo/htm9", "N");
- model.setValue("/root/main/kcvainfo/htd9", "");
- model.setValue("/root/main/kcvainfo/htt9", "");
- model.setValue("/root/main/kcvainfo/ht9etc", "");
- chk_htm9.disabled = true;
- ipt_htd9.disabled = true;
- ipt_htt9.disabled = true;
- chk_ht9etc.disabled = true;
- model.setValue("/root/main/kcvainfo/htma", "N");
- model.setValue("/root/main/kcvainfo/htda", "");
- model.setValue("/root/main/kcvainfo/htta", "");
- model.setValue("/root/main/kcvainfo/htaetc", "");
- chk_htma.disabled = true;
- ipt_htda.disabled = true;
- ipt_htta.disabled = true;
- chk_htaetc.disabled = true;
- model.setValue("/root/main/kcvainfo/htmb", "N");
- chk_htmb.disabled = true;
-
- if (vChkID == "chk_htmc"){
- model.setValue("/root/main/kcvainfo/htmd", "N");
- chk_htmd.disabled = true;
- } else if (vChkID == "chk_htmd") {
- model.setValue("/root/main/kcvainfo/htmc", "N");
- chk_htmc.disabled = true;
- }
- }
- //그 외 선택
- else {
- model.setValue("/root/main/kcvainfo/htmc", "N");
- model.setValue("/root/main/kcvainfo/htmd", "N");
- //시술 및 수술 일자
- //경정맥혈전용해술
- if (vChkID == "chk_htm1"){
- ipt_htd1.disabled = false;
- ipt_htt1.disabled = false;
- chk_ht1etc.disabled = false;
- }
- //경동맥혈전용해술
- if (vChkID == "chk_htm2"){
- ipt_htd2.disabled = false;
- ipt_htt2.disabled = false;
- chk_ht2etc.disabled = false;
- }
- //항혈소판제
- if (vChkID == "chk_htm3"){
- ipt_htd3.disabled = false;
- ipt_htt3.disabled = false;
- chk_ht3etc.disabled = false;
- }
- //항응고제
- if (vChkID == "chk_htm4"){
- ipt_htd4.disabled = false;
- ipt_htt4.disabled = false;
- chk_ht4etc.disabled = false;
- }
- //개두술
- if (vChkID == "chk_htm5"){
- ipt_htd5.disabled = false;
- ipt_htt5.disabled = false;
- chk_ht5etc.disabled = false;
- }
- //정위적 흡인술
- if (vChkID == "chk_htm6"){
- ipt_htd6.disabled = false;
- ipt_htt6.disabled = false;
- chk_ht6etc.disabled = false;
- }
- //감압성 두개절제술
- if (vChkID == "chk_htm7"){
- ipt_htd7.disabled = false;
- ipt_htt7.disabled = false;
- chk_ht7etc.disabled = false;
- }
- //뇌실외 배액술
- if (vChkID == "chk_htm8"){
- ipt_htd8.disabled = false;
- ipt_htt8.disabled = false;
- chk_ht8etc.disabled = false;
- }
- //뇌압감시
- if (vChkID == "chk_htm9"){
- ipt_htd9.disabled = false;
- ipt_htt9.disabled = false;
- chk_ht9etc.disabled = false;
- }
- //혈관중재시술
- if (vChkID == "chk_htma"){
- ipt_htda.disabled = false;
- ipt_htta.disabled = false;
- chk_htaetc.disabled = false;
- }
- }
- }else{
- model.setValue(vChkValue, "N");
- chk_htm1.disabled = false;
- chk_htm2.disabled = false;
- chk_htm3.disabled = false;
- chk_htm4.disabled = false;
- chk_htm5.disabled = false;
- chk_htm6.disabled = false;
- chk_htm7.disabled = false;
- chk_htm8.disabled = false;
- chk_htm9.disabled = false;
- chk_htma.disabled = false;
- chk_htmb.disabled = false;
- chk_htmc.disabled = false;
- chk_htmd.disabled = false;
- //시술 및 수술 일자
- //경정맥혈전용해술
- if (vChkID == "chk_htm1"){
- model.setValue("/root/main/kcvainfo/htd1", "");
- model.setValue("/root/main/kcvainfo/htt1", "");
- model.setValue("/root/main/kcvainfo/ht1etc", "");
- ipt_htd1.disabled = true;
- ipt_htt1.disabled = true;
- chk_ht1etc.disabled = true;
- }
- //경동맥혈전용해술
- if (vChkID == "chk_htm2"){
- model.setValue("/root/main/kcvainfo/htd2", "");
- model.setValue("/root/main/kcvainfo/htt2", "");
- model.setValue("/root/main/kcvainfo/ht2etc", "");
- ipt_htd2.disabled = true;
- ipt_htt2.disabled = true;
- chk_ht2etc.disabled = true;
- }
- //항혈소판제
- if (vChkID == "chk_htm3"){
- model.setValue("/root/main/kcvainfo/htd3", "");
- model.setValue("/root/main/kcvainfo/htt3", "");
- model.setValue("/root/main/kcvainfo/ht3etc", "");
- ipt_htd3.disabled = true;
- ipt_htt3.disabled = true;
- chk_ht3etc.disabled = true;
- }
- //항응고제
- if (vChkID == "chk_htm4"){
- model.setValue("/root/main/kcvainfo/htd4", "");
- model.setValue("/root/main/kcvainfo/htt4", "");
- model.setValue("/root/main/kcvainfo/ht4etc", "");
- ipt_htd4.disabled = true;
- ipt_htt4.disabled = true;
- chk_ht4etc.disabled = true;
- }
- //개두술
- if (vChkID == "chk_htm5"){
- model.setValue("/root/main/kcvainfo/htd5", "");
- model.setValue("/root/main/kcvainfo/htt5", "");
- model.setValue("/root/main/kcvainfo/ht5etc", "");
- ipt_htd5.disabled = true;
- ipt_htt5.disabled = true;
- chk_ht5etc.disabled = true;
- }
- //정위적 흡인술
- if (vChkID == "chk_htm6"){
- model.setValue("/root/main/kcvainfo/htd6", "");
- model.setValue("/root/main/kcvainfo/htt6", "");
- model.setValue("/root/main/kcvainfo/ht6etc", "");
- ipt_htd6.disabled = true;
- ipt_htt6.disabled = true;
- chk_ht6etc.disabled = true;
- }
- //감압성 두개절제술
- if (vChkID == "chk_htm7"){
- model.setValue("/root/main/kcvainfo/htd7", "");
- model.setValue("/root/main/kcvainfo/htt7", "");
- model.setValue("/root/main/kcvainfo/ht7etc", "");
- ipt_htd7.disabled = true;
- ipt_htt7.disabled = true;
- chk_ht7etc.disabled = true;
- }
- //뇌실외 배액술
- if (vChkID == "chk_htm8"){
- model.setValue("/root/main/kcvainfo/htd8", "");
- model.setValue("/root/main/kcvainfo/htt8", "");
- model.setValue("/root/main/kcvainfo/ht8etc", "");
- ipt_htd8.disabled = true;
- ipt_htt8.disabled = true;
- chk_ht8etc.disabled = true;
- }
- //뇌압감시
- if (vChkID == "chk_htm9"){
- model.setValue("/root/main/kcvainfo/htd9", "");
- model.setValue("/root/main/kcvainfo/htt9", "");
- model.setValue("/root/main/kcvainfo/ht9etc", "");
- ipt_htd9.disabled = true;
- ipt_htt9.disabled = true;
- chk_ht9etc.disabled = true;
- }
- //혈관중재시술
- if (vChkID == "chk_htma"){
- model.setValue("/root/main/kcvainfo/htda", "");
- model.setValue("/root/main/kcvainfo/htta", "");
- model.setValue("/root/main/kcvainfo/htaetc", "");
- ipt_htda.disabled = true;
- ipt_htta.disabled = true;
- chk_htaetc.disabled = true;
- }
- }
- model.refresh();
-
- //혈전용해술 미실시 사유 활성화체크
- fChkGrpTlu();
- }
- /**
- * @desc : 혈전용해술 미실시 사유 Checkbox 값 선택
- * @
- * @param :
- * @return :
- * @author : 성미연
- * @---------------------------------------------------
- */
- function fChkTlu(vChkValue, vChkID, vChkFlag) {
- if(vChkFlag == "sel"){
- model.setValue(vChkValue, "Y");
- }else{
- model.setValue(vChkValue, "N");
- }
- model.refresh();
- }
- /**
- * @desc : 혈전용해술 미실시 사유 활성화체크
- * @
- * g@param :
- * @return :
- * @author : 성미연
- * @---------------------------------------------------
- */
- function fChkGrpTlu(vChkValue, vChkID, vChkFlag) {
- var hirt = model.getValue("/root/main/kcvainfo/hirt"); //두부영상판정결과
- var htm1 = model.getValue("/root/main/kcvainfo/htm1"); //응급뇌질환치료방법(경정맥혈전용해술)
- var htm2 = model.getValue("/root/main/kcvainfo/htm2"); //응급뇌질환치료방법(경동맥혈전용해술)
- var htm5 = model.getValue("/root/main/kcvainfo/htm5"); //응급뇌질환치료방법(개두술)
- var htm6 = model.getValue("/root/main/kcvainfo/htm6"); //응급뇌질환치료방법(정위적흡인술)
- var htm7 = model.getValue("/root/main/kcvainfo/htm7"); //응급뇌질환치료방법(감압성 두개절제술)
- var htm8 = model.getValue("/root/main/kcvainfo/htm8"); //응급뇌질환치료방법(뇌실외 배액술)
- if(hirt == "21"){ //급성뇌경색
- if((htm1 == "" || htm1 == "-" || htm1 == "N")&&(htm2 == "" || htm2 == "-" || htm2 == "N")
- &&(htm5 == "" || htm5 == "-" || htm5 == "N")&&(htm6 == "" || htm6 == "-" || htm6 == "N")
- &&(htm7 == "" || htm7 == "-" || htm7 == "N")&&(htm8 == "" || htm8 == "-" || htm8 == "N")){
- grp_tlu.disabled = false;
- }else{
- grp_tlu.disabled = true;
- model.setValue("/root/main/kcvainfo/tlu1", "");
- model.setValue("/root/main/kcvainfo/tlu2", "");
- model.setValue("/root/main/kcvainfo/tlu3", "");
- model.setValue("/root/main/kcvainfo/tlu4", "");
- model.setValue("/root/main/kcvainfo/tlu5", "");
- model.setValue("/root/main/kcvainfo/tlu6", "");
- model.setValue("/root/main/kcvainfo/tlu7", "");
- model.setValue("/root/main/kcvainfo/tlu8", "");
- }
- }else{
- grp_tlu.disabled = true;
- model.setValue("/root/main/kcvainfo/tlu1", "");
- model.setValue("/root/main/kcvainfo/tlu2", "");
- model.setValue("/root/main/kcvainfo/tlu3", "");
- model.setValue("/root/main/kcvainfo/tlu4", "");
- model.setValue("/root/main/kcvainfo/tlu5", "");
- model.setValue("/root/main/kcvainfo/tlu6", "");
- model.setValue("/root/main/kcvainfo/tlu7", "");
- model.setValue("/root/main/kcvainfo/tlu8", "");
- }
- model.refresh();
- }
- /**
- * @desc : GCS 총점 계산
- * @
- * @param :
- * @return :
- * @author : 성미연
- * @---------------------------------------------------
- */
- function fTotalGCS(){
- if(model.getValue("/root/main/kcvainfo/gcse") != "" &&
- model.getValue("/root/main/kcvainfo/gcsv") != "" &&
- model.getValue("/root/main/kcvainfo/gcsm") != ""){
-
- if(model.getValue("/root/main/kcvainfo/gcse") == "9" ||
- model.getValue("/root/main/kcvainfo/gcsv") == "9" ||
- model.getValue("/root/main/kcvainfo/gcsm") == "9"){
- model.setValue("/root/main/kcvainfo/gcst", "-1");
-
- }else{
- var vGCSe = model.getValue("/root/main/kcvainfo/gcse");
- var vGCSv = model.getValue("/root/main/kcvainfo/gcsv");
- var vGCSm = model.getValue("/root/main/kcvainfo/gcsm");
- var vGCS = eval(vGCSe) + eval(vGCSv) + eval(vGCSm);
- model.setValue("/root/main/kcvainfo/gcst", vGCS);
- }
- ipt_gcst.refresh();
- }
- }
- /**
- * @desc : 증상발생일시, 마지막 정상일시 계산하여 블로킹
- * @
- * @param :
- * @return :
- * @author : 성미연
- * @---------------------------------------------------
- */
- function fChkAkDTCalculate(pChkNM, pETCPath, pChkDT, pChkTM, pChkDT_ID, pChkTM_ID, pChkFlag){
- //내원일시
- var vIndt = model.getValue("/root/main/kcvainfo/indt");
- var vIntm = model.getValue("/root/main/kcvainfo/intm");
-
- //미상아닌 경우
- if(model.getValue(pETCPath) != "Y"){
- //내원일시 이전으로 체크
- if(vIndt != "" || vIndt != "-"){
- var sTermDate = getDateInterval(pChkDT, vIndt);
- if(sTermDate < 0) {
- model.alert(pChkNM+"가 내원일시 이전이어야 합니다. 확인하여 주십시오!");
- model.setFocus(pChkDT_ID);
- model.refresh();
- return false;
- }else if (sTermDate == 0) {
- var sTermTime = getTimeInterval(pChkTM, vIntm);
- if(sTermTime < 0) {
- model.alert(pChkNM+"가 내원일시 이전이어야 합니다. 확인하여 주십시오!");
- model.setFocus(pChkTM_ID);
- model.refresh();
- return false;
- }
- }
- //증상발생일시 : 내원 24시간 전 증상발생이 되면 응급뇌질환 환자로 등록대상이 아님
- if(pChkFlag == "Ak"){
- if (sTermDate > 1) {
- model.alert("발병 후 24이내 내원한 환자가 아니므로 대상이 아닙니다.\n\n저장 후 종료하시기 바랍니다.");
- return false;
- }
- }
- }
- }
- }
- /**
- * @desc : 검사일시 계산하여 블로킹
- * @
- * @param :
- * @return :
- * @author : 성미연
- * @---------------------------------------------------
- */
- function fChkDTCalculate(pChkNM, pETCPath, pChkDT, pChkTM, pChkDT_ID, pChkTM_ID){
- //내원일시
- var vIndt = model.getValue("/root/main/kcvainfo/indt");
- var vIntm = model.getValue("/root/main/kcvainfo/intm");
- //퇴원일시
- var vDcdt = model.getValue("/root/main/kcvainfo/dcdt");
- var vDctm = model.getValue("/root/main/kcvainfo/dctm");
-
- //미상아닌 경우
- if(model.getValue(pETCPath) != "Y"){
- //내원일시 이후로 체크
- if(vIndt != "" || vIndt != "-"){
- var sTermDate = getDateInterval(vIndt, pChkDT);
- if(sTermDate < 0) {
- model.alert(pChkNM+"가 내원일시 이후이어야 합니다. 확인하여 주십시오!");
- model.setFocus(pChkDT_ID);
- model.refresh();
- return false;
- }else if (sTermDate == 0) {
- var sTermTime = getTimeInterval(vIntm, pChkTM);
- if(sTermTime < 0) {
- model.alert(pChkNM+"가 내원일시 이후이어야 합니다. 확인하여 주십시오!");
- model.setFocus(pChkTM_ID);
- model.refresh();
- return false;
- }
- }
- }
-
- //퇴원일시 이전으로 체크
- if(vDcdt != "" || vDcdt != "-"){
- var sTermDate = getDateInterval(pChkDT, vDcdt);
- if(sTermDate < 0) {
- model.alert(pChkNM+"가 퇴원일시 이전이어야 합니다. 확인하여 주십시오!");
- model.setFocus(pChkDT_ID);
- model.refresh();
- return false;
- }else if (sTermDate == 0) {
- var sTermTime = getTimeInterval(pChkTM, vDctm);
- if(sTermTime < 0) {
- model.alert(pChkNM+"가 퇴원일시 이전이어야 합니다. 확인하여 주십시오!");
- model.setFocus(pChkTM_ID);
- model.refresh();
- return false;
- }
- }
- }
- }
- }
- /**
- * @desc : 필수항목 체크, 저장시 NULL값 -> DEFAULT값 변경
- * @
- * @param :
- * @return :
- * @author : 성미연
- * @---------------------------------------------------
- */
- function fsetDefault() {
- vFlag = 1;
-
- //성별
- if( model.getValue("/root/main/kcvainfo/sex") == "" ) model.setValue("/root/send/savedata/sex", "-");
- //키
- if( model.getValue("/root/main/kcvainfo/hght") == "" ) model.setValue("/root/send/savedata/hght", "999");
- //몸무게
- if( model.getValue("/root/main/kcvainfo/wght") == "" ) model.setValue("/root/send/savedata/wght", "999");
- //흡연
- if(model.getValue("/root/main/kcvainfo/smok")=="" || model.getValue("/root/main/kcvainfo/smok")=="-"){
- messageBox("흡연은 필수입력 항목입니다.", "I");
- model.setFocus("cmb_smok");
- vFlag = 0;
- return;
- }
- //과거력 및 위험요인
- if( model.getValue("/root/main/kcvainfo/hs01") == "" ) model.setValue("/root/send/savedata/hs01", "N");
- if( model.getValue("/root/main/kcvainfo/hs02") == "" ) model.setValue("/root/send/savedata/hs02", "N");
- if( model.getValue("/root/main/kcvainfo/hs03") == "" ) model.setValue("/root/send/savedata/hs03", "N");
- if( model.getValue("/root/main/kcvainfo/hs04") == "" ) model.setValue("/root/send/savedata/hs04", "N");
- if( model.getValue("/root/main/kcvainfo/hs05") == "" ) model.setValue("/root/send/savedata/hs05", "N");
- if( model.getValue("/root/main/kcvainfo/hs06") == "" ) model.setValue("/root/send/savedata/hs06", "N");
- if( model.getValue("/root/main/kcvainfo/hs07") == "" ) model.setValue("/root/send/savedata/hs07", "N");
- if( model.getValue("/root/main/kcvainfo/hs08") == "" ) model.setValue("/root/send/savedata/hs08", "N");
- if( model.getValue("/root/main/kcvainfo/hs09") == "" ) model.setValue("/root/send/savedata/hs09", "N");
- if( model.getValue("/root/main/kcvainfo/hs10") == "" ) model.setValue("/root/send/savedata/hs10", "N");
-
- if(model.getValue("/root/send/savedata/hs01")=="N" && model.getValue("/root/send/savedata/hs02")=="N"
- && model.getValue("/root/send/savedata/hs03")=="N" && model.getValue("/root/send/savedata/hs04")=="N"
- && model.getValue("/root/send/savedata/hs05")=="N" && model.getValue("/root/send/savedata/hs06")=="N"
- && model.getValue("/root/send/savedata/hs07")=="N" && model.getValue("/root/send/savedata/hs08")=="N"
- && model.getValue("/root/send/savedata/hs09")=="N" && model.getValue("/root/send/savedata/hs10")=="N"){
- messageBox("과거력 및 위험요인은 필수입력 항목입니다.", "I");
- model.setFocus("chk_hs09");
- vFlag = 0;
- return;
- }
- //내원일시
- if(model.getValue("/root/main/kcvainfo/indt")=="" || model.getValue("/root/main/kcvainfo/indt")=="-"){
- messageBox("내원일시는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_indt");
- vFlag = 0;
- return;
- }
- if(model.getValue("/root/main/kcvainfo/intm")=="" || model.getValue("/root/main/kcvainfo/intm")=="-"){
- messageBox("내원일시는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_intm");
- vFlag = 0;
- return;
- }
- //전원 보낸 의료기관명
- if( model.getValue("/root/main/kcvainfo/fhcd") == "" ) model.setValue("/root/send/savedata/fhcd", "-");
- if( model.getValue("/root/main/kcvainfo/fhcdnm") == "" ) model.setValue("/root/send/savedata/fhcdnm", "-");
- //전원 보낸 의료기관종류
- if( model.getValue("/root/main/kcvainfo/intp") == "" ) model.setValue("/root/send/savedata/intp", "-");
- //전원 보낸 의료기관명(기타)
- if( model.getValue("/root/main/kcvainfo/fhnm") == "" ) model.setValue("/root/send/savedata/fhnm", "-");
- //전원 보낸 사유
- if( model.getValue("/root/main/kcvainfo/fhrs") == "" ) model.setValue("/root/send/savedata/fhrs", "-");
- //구급활동일지번호
- if( model.getValue("/root/main/kcvainfo/dsid") == "" ) model.setValue("/root/send/savedata/dsid", "-");
- if( model.getValue("/root/main/kcvainfo/reid") == "" ) model.setValue("/root/send/savedata/reid", "-");
- //증상발생일시
- if( model.getValue("/root/main/kcvainfo/akdt") == "" ) model.setValue("/root/send/savedata/dsid", "-");
- if( model.getValue("/root/main/kcvainfo/aktm") == "" ) model.setValue("/root/send/savedata/aktm", "-");
- if(fChkAkDTCalculate("증상발생일시","/root/main/kcvainfo/aketc", model.getValue("/root/main/kcvainfo/akdt"), model.getValue("/root/main/kcvainfo/aktm"),
- "ipt_akdt", "ipt_aktm", "Ak") == false ){
- vFlag = 0;
- return;
- }
- //마지막 정상일시
- if(model.getValue("/root/main/kcvainfo/lndt")=="" || model.getValue("/root/main/kcvainfo/lndt")=="-"){
- messageBox("마지막 정상일시는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_lndt");
- vFlag = 0;
- return;
- }
- if(model.getValue("/root/main/kcvainfo/lntm")=="" || model.getValue("/root/main/kcvainfo/lntm")=="-"){
- messageBox("마지막 정상일시는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_lntm");
- vFlag = 0;
- return;
- }
- if(fChkAkDTCalculate("마지막 정상일시","/root/main/kcvainfo/lnetc", model.getValue("/root/main/kcvainfo/lndt"), model.getValue("/root/main/kcvainfo/lntm"),
- "ipt_lndt", "ipt_lntm", "Ln") == false ){
- vFlag = 0;
- return;
- }
-
- //내원 시 증상
- if( model.getValue("/root/main/kcvainfo/ins1") == "" ) model.setValue("/root/send/savedata/ins1", "N");
- if( model.getValue("/root/main/kcvainfo/ins2") == "" ) model.setValue("/root/send/savedata/ins2", "N");
- if( model.getValue("/root/main/kcvainfo/ins3") == "" ) model.setValue("/root/send/savedata/ins3", "N");
- if( model.getValue("/root/main/kcvainfo/ins4") == "" ) model.setValue("/root/send/savedata/ins4", "N");
- if( model.getValue("/root/main/kcvainfo/ins5") == "" ) model.setValue("/root/send/savedata/ins5", "N");
- if( model.getValue("/root/main/kcvainfo/ins6") == "" ) model.setValue("/root/send/savedata/ins6", "N");
- if( model.getValue("/root/main/kcvainfo/ins7") == "" ) model.setValue("/root/send/savedata/ins7", "N");
- if( model.getValue("/root/main/kcvainfo/ins8") == "" ) model.setValue("/root/send/savedata/ins8", "N");
- if( model.getValue("/root/main/kcvainfo/ins9") == "" ) model.setValue("/root/send/savedata/ins9", "N");
-
- if(model.getValue("/root/send/savedata/ins1")=="N" && model.getValue("/root/send/savedata/ins2")=="N"
- && model.getValue("/root/send/savedata/ins3")=="N" && model.getValue("/root/send/savedata/ins4")=="N"
- && model.getValue("/root/send/savedata/ins5")=="N" && model.getValue("/root/send/savedata/ins6")=="N"
- && model.getValue("/root/send/savedata/ins7")=="N" && model.getValue("/root/send/savedata/ins8")=="N"
- && model.getValue("/root/send/savedata/ins9")=="N"){
- messageBox("내원 시 증상은 필수입력 항목입니다.", "I");
- model.setFocus("chk_ins1");
- vFlag = 0;
- return;
- }
- //의식수준
- if(model.getValue("/root/main/kcvainfo/resp")=="" || model.getValue("/root/main/kcvainfo/resp")=="-"){
- messageBox("의식수준은 필수입력 항목입니다.", "I");
- model.setFocus("cmb_resp");
- vFlag = 0;
- return;
- }
- //GCS 측정(눈)
- if(model.getValue("/root/main/kcvainfo/gcse")==""){
- messageBox("GCS 측정(눈)은 필수입력 항목입니다.", "I");
- model.setFocus("cmb_gcse");
- vFlag = 0;
- return;
- }
- //GCS 측정(언어)
- if(model.getValue("/root/main/kcvainfo/gcsv")==""){
- messageBox("GCS 측정(언어)은 필수입력 항목입니다.", "I");
- model.setFocus("cmb_gcsv");
- vFlag = 0;
- return;
- }
- //GCS 측정(운동)
- if(model.getValue("/root/main/kcvainfo/gcsm")==""){
- messageBox("GCS 측정(운동)은 필수입력 항목입니다.", "I");
- model.setFocus("cmb_gcsm");
- vFlag = 0;
- return;
- }
- //수축기 혈압
- if( model.getValue("/root/main/kcvainfo/hibp") == "" ) model.setValue("/root/send/savedata/hibp", "999");
- //맥박
- if( model.getValue("/root/main/kcvainfo/puls") == "" ) model.setValue("/root/send/savedata/puls", "999");
- //호흡
- if( model.getValue("/root/main/kcvainfo/brth") == "" ) model.setValue("/root/send/savedata/brth", "999");
- //체온
- if( model.getValue("/root/main/kcvainfo/bdht") == "" ) model.setValue("/root/send/savedata/bdht", "99.9");
- //응급실 퇴실일시
- if( model.getValue("/root/main/kcvainfo/otdt") == "" ) model.setValue("/root/send/savedata/otdt", "-");
- if( model.getValue("/root/main/kcvainfo/ottm") == "" ) model.setValue("/root/send/savedata/ottm", "-");
- //퇴원일시
- if( model.getValue("/root/main/kcvainfo/dcdt") == "" ) model.setValue("/root/send/savedata/dcdt", "-");
- if( model.getValue("/root/main/kcvainfo/dctm") == "" ) model.setValue("/root/send/savedata/dctm", "-");
- //입원 후 결과
- if( model.getValue("/root/main/kcvainfo/dcrt") == "" ) model.setValue("/root/send/savedata/dcdt", "-");
- //최초 두부영상검사 실시여부
- if( model.getValue("/root/main/kcvainfo/his1") == "" ) model.setValue("/root/send/savedata/his1", "N");
- if( model.getValue("/root/main/kcvainfo/his2") == "" ) model.setValue("/root/send/savedata/his2", "N");
- if( model.getValue("/root/main/kcvainfo/his3") == "" ) model.setValue("/root/send/savedata/his3", "N");
- if( model.getValue("/root/main/kcvainfo/his4") == "" ) model.setValue("/root/send/savedata/his4", "N");
- if( model.getValue("/root/main/kcvainfo/his5") == "" ) model.setValue("/root/send/savedata/his5", "N");
-
- if(model.getValue("/root/send/savedata/his1")=="N" && model.getValue("/root/send/savedata/his2")=="N"
- && model.getValue("/root/send/savedata/his3")=="N" && model.getValue("/root/send/savedata/his4")=="N"
- && model.getValue("/root/send/savedata/his5")=="N"){
- messageBox("최초 두부영상검사 실시여부는 필수입력 항목입니다.", "I");
- model.setFocus("chk_his5");
- vFlag = 0;
- return;
- }
- //두부영상(CT) 최초 촬영일자
- if( model.getValue("/root/main/kcvainfo/his1") == "Y" ){
- if(model.getValue("/root/main/kcvainfo/hid1")=="" || model.getValue("/root/main/kcvainfo/hid1")=="-"){
- messageBox("두부영상(CT) 최초 촬영일시는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_hid1");
- vFlag = 0;
- return;
- }
- if(model.getValue("/root/main/kcvainfo/hit1")=="" || model.getValue("/root/main/kcvainfo/hit1")=="-"){
- messageBox("두부영상(CT) 최초 촬영일시는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_hit1");
- vFlag = 0;
- return;
- }
- if(fChkDTCalculate("두부영상(CT) 최초 촬영일시","/root/main/kcvainfo/hi1etc", model.getValue("/root/main/kcvainfo/hid1"), model.getValue("/root/main/kcvainfo/hit1"),
- "ipt_hid1", "ipt_hit1") == false ){
- vFlag = 0;
- return;
- }
- }else{
- if( model.getValue("/root/main/kcvainfo/hid1") == "" ) model.setValue("/root/send/savedata/hid1", "-");
- if( model.getValue("/root/main/kcvainfo/hit1") == "" ) model.setValue("/root/send/savedata/hit1", "-");
- }
- //두부영상(MRI) 최초 촬영일자
- if( model.getValue("/root/main/kcvainfo/his2") == "Y" ){
- if(model.getValue("/root/main/kcvainfo/hid2")=="" || model.getValue("/root/main/kcvainfo/hid2")=="-"){
- messageBox("두부영상(MRI) 최초 촬영일시는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_hid2");
- vFlag = 0;
- return;
- }
- if(model.getValue("/root/main/kcvainfo/hit2")=="" || model.getValue("/root/main/kcvainfo/hit2")=="-"){
- messageBox("두부영상(MRI) 최초 촬영일시는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_hit2");
- vFlag = 0;
- return;
- }
- if(fChkDTCalculate("두부영상(MRI) 최초 촬영일시","/root/main/kcvainfo/hi2etc", model.getValue("/root/main/kcvainfo/hid2"), model.getValue("/root/main/kcvainfo/hit2"),
- "ipt_hid2", "ipt_hit2") == false ){
- vFlag = 0;
- return;
- }
- }else{
- if( model.getValue("/root/main/kcvainfo/hid2") == "" ) model.setValue("/root/send/savedata/hid2", "-");
- if( model.getValue("/root/main/kcvainfo/hit2") == "" ) model.setValue("/root/send/savedata/hit2", "-");
- }
- //두부영상(CT/MRI) 판정결과
- if(rdo_hirt.disabled == false){
- if(model.getValue("/root/main/kcvainfo/hirt") == "" || model.getValue("/root/main/kcvainfo/hirt") == "-"){
- messageBox("두부영상(CT/MRI) 판정결과는 필수입력 항목입니다.", "I");
- model.setFocus("rdo_hirt");
- vFlag = 0;
- return;
- }
- }else{
- model.setValue("/root/send/savedata/hirt", "-");
- }
- //응급뇌질환의 치료 방법
- if( model.getValue("/root/main/kcvainfo/htm1") == "" ) model.setValue("/root/send/savedata/htm1", "N");
- if( model.getValue("/root/main/kcvainfo/htm2") == "" ) model.setValue("/root/send/savedata/htm2", "N");
- if( model.getValue("/root/main/kcvainfo/htm3") == "" ) model.setValue("/root/send/savedata/htm3", "N");
- if( model.getValue("/root/main/kcvainfo/htm4") == "" ) model.setValue("/root/send/savedata/htm4", "N");
- if( model.getValue("/root/main/kcvainfo/htm5") == "" ) model.setValue("/root/send/savedata/htm5", "N");
- if( model.getValue("/root/main/kcvainfo/htm6") == "" ) model.setValue("/root/send/savedata/htm6", "N");
- if( model.getValue("/root/main/kcvainfo/htm7") == "" ) model.setValue("/root/send/savedata/htm7", "N");
- if( model.getValue("/root/main/kcvainfo/htm8") == "" ) model.setValue("/root/send/savedata/htm8", "N");
- if( model.getValue("/root/main/kcvainfo/htm9") == "" ) model.setValue("/root/send/savedata/htm9", "N");
- if( model.getValue("/root/main/kcvainfo/htma") == "" ) model.setValue("/root/send/savedata/htma", "N");
- if( model.getValue("/root/main/kcvainfo/htmb") == "" ) model.setValue("/root/send/savedata/htmb", "N");
- if( model.getValue("/root/main/kcvainfo/htmc") == "" ) model.setValue("/root/send/savedata/htmc", "N");
- if( model.getValue("/root/main/kcvainfo/htmd") == "" ) model.setValue("/root/send/savedata/htmd", "N");
-
- if(model.getValue("/root/send/savedata/htm1")=="N" && model.getValue("/root/send/savedata/htm2")=="N"
- && model.getValue("/root/send/savedata/htm3")=="N" && model.getValue("/root/send/savedata/htm4")=="N"
- && model.getValue("/root/send/savedata/htm5")=="N" && model.getValue("/root/send/savedata/htm6")=="N"
- && model.getValue("/root/send/savedata/htm7")=="N" && model.getValue("/root/send/savedata/htm8")=="N"
- && model.getValue("/root/send/savedata/htm9")=="N" && model.getValue("/root/send/savedata/htma")=="N"
- && model.getValue("/root/send/savedata/htmb")=="N" && model.getValue("/root/send/savedata/htmc")=="N"
- && model.getValue("/root/send/savedata/htmd")=="N"){
- messageBox("응급뇌질환의 치료 방법은 필수입력 항목입니다.", "I");
- model.setFocus("chk_htmd");
- vFlag = 0;
- return;
- }
- //시술 및 수술 일자(경정맥혈전용해술)
- if( model.getValue("/root/main/kcvainfo/htm1") == "Y" ){
- if(model.getValue("/root/main/kcvainfo/htd1")=="" || model.getValue("/root/main/kcvainfo/htd1")=="-"){
- messageBox("시술 및 수술 일자(경정맥혈전용해술)는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_htd1");
- vFlag = 0;
- return;
- }
- if(model.getValue("/root/main/kcvainfo/htt1")=="" || model.getValue("/root/main/kcvainfo/htt1")=="-"){
- messageBox("시술 및 수술 일자(경정맥혈전용해술)는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_htt1");
- vFlag = 0;
- return;
- }
- if(fChkDTCalculate("시술 및 수술 일자(경정맥혈전용해술)","/root/main/kcvainfo/ht1etc", model.getValue("/root/main/kcvainfo/htd1"), model.getValue("/root/main/kcvainfo/htt1"),
- "ipt_htd1", "ipt_htt1") == false ){
- vFlag = 0;
- return;
- }
- }else{
- if( model.getValue("/root/main/kcvainfo/htd1") == "" ) model.setValue("/root/send/savedata/htd1", "-");
- if( model.getValue("/root/main/kcvainfo/htt1") == "" ) model.setValue("/root/send/savedata/htt1", "-");
- }
- //시술 및 수술 일자(경동맥혈전용해술)
- if( model.getValue("/root/main/kcvainfo/htm2") == "Y" ){
- if(model.getValue("/root/main/kcvainfo/htd2")=="" || model.getValue("/root/main/kcvainfo/htd2")=="-"){
- messageBox("시술 및 수술 일자(경동맥혈전용해술)는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_htd2");
- vFlag = 0;
- return;
- }
- if(model.getValue("/root/main/kcvainfo/htt2")=="" || model.getValue("/root/main/kcvainfo/htt2")=="-"){
- messageBox("시술 및 수술 일자(경동맥혈전용해술)는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_htt2");
- vFlag = 0;
- return;
- }
- if(fChkDTCalculate("시술 및 수술 일자(경동맥혈전용해술)","/root/main/kcvainfo/ht2etc", model.getValue("/root/main/kcvainfo/htd2"), model.getValue("/root/main/kcvainfo/htt2"),
- "ipt_htd2", "ipt_htt2") == false ){
- vFlag = 0;
- return;
- }
- }else{
- if( model.getValue("/root/main/kcvainfo/htd2") == "" ) model.setValue("/root/send/savedata/htd2", "-");
- if( model.getValue("/root/main/kcvainfo/htt2") == "" ) model.setValue("/root/send/savedata/htt2", "-");
- }
- //시술 및 수술 일자(항혈소판제)
- if( model.getValue("/root/main/kcvainfo/htm3") == "Y" ){
- if(model.getValue("/root/main/kcvainfo/htd3")=="" || model.getValue("/root/main/kcvainfo/htd3")=="-"){
- messageBox("시술 및 수술 일자(항혈소판제)는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_htd3");
- vFlag = 0;
- return;
- }
- if(model.getValue("/root/main/kcvainfo/htt3")=="" || model.getValue("/root/main/kcvainfo/htt3")=="-"){
- messageBox("시술 및 수술 일자(항혈소판제)는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_htt3");
- vFlag = 0;
- return;
- }
- if(fChkDTCalculate("시술 및 수술 일자(항혈소판제)","/root/main/kcvainfo/ht3etc", model.getValue("/root/main/kcvainfo/htd3"), model.getValue("/root/main/kcvainfo/htt3"),
- "ipt_htd3", "ipt_htt3") == false ){
- vFlag = 0;
- return;
- }
- }else{
- if( model.getValue("/root/main/kcvainfo/htd3") == "" ) model.setValue("/root/send/savedata/htd3", "-");
- if( model.getValue("/root/main/kcvainfo/htt3") == "" ) model.setValue("/root/send/savedata/htt3", "-");
- }
- //시술 및 수술 일자(항응고제)
- if( model.getValue("/root/main/kcvainfo/htm4") == "Y" ){
- if(model.getValue("/root/main/kcvainfo/htd4")=="" || model.getValue("/root/main/kcvainfo/htd4")=="-"){
- messageBox("시술 및 수술 일자(항응고제)는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_htd4");
- vFlag = 0;
- return;
- }
- if(model.getValue("/root/main/kcvainfo/htt4")=="" || model.getValue("/root/main/kcvainfo/htt4")=="-"){
- messageBox("시술 및 수술 일자(항응고제)는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_htt4");
- vFlag = 0;
- return;
- }
- if(fChkDTCalculate("시술 및 수술 일자(항응고제)","/root/main/kcvainfo/ht4etc", model.getValue("/root/main/kcvainfo/htd4"), model.getValue("/root/main/kcvainfo/htt4"),
- "ipt_htd4", "ipt_htt4") == false ){
- vFlag = 0;
- return;
- }
- }else{
- if( model.getValue("/root/main/kcvainfo/htd4") == "" ) model.setValue("/root/send/savedata/htd4", "-");
- if( model.getValue("/root/main/kcvainfo/htt4") == "" ) model.setValue("/root/send/savedata/htt4", "-");
- }
- //시술 및 수술 일자(개두술)
- if( model.getValue("/root/main/kcvainfo/htm5") == "Y" ){
- if(model.getValue("/root/main/kcvainfo/htd5")=="" || model.getValue("/root/main/kcvainfo/htd5")=="-"){
- messageBox("시술 및 수술 일자(개두술)는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_htd5");
- vFlag = 0;
- return;
- }
- if(model.getValue("/root/main/kcvainfo/htt5")=="" || model.getValue("/root/main/kcvainfo/htt5")=="-"){
- messageBox("시술 및 수술 일자(개두술)는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_htt5");
- vFlag = 0;
- return;
- }
- if(fChkDTCalculate("시술 및 수술 일자(개두술)","/root/main/kcvainfo/ht5etc", model.getValue("/root/main/kcvainfo/htd5"), model.getValue("/root/main/kcvainfo/htt5"),
- "ipt_htd5", "ipt_htt5") == false ){
- vFlag = 0;
- return;
- }
- }else{
- if( model.getValue("/root/main/kcvainfo/htd5") == "" ) model.setValue("/root/send/savedata/htd5", "-");
- if( model.getValue("/root/main/kcvainfo/htt5") == "" ) model.setValue("/root/send/savedata/htt5", "-");
- }
- //시술 및 수술 일자(정위적 흡인술)
- if( model.getValue("/root/main/kcvainfo/htm6") == "Y" ){
- if(model.getValue("/root/main/kcvainfo/htd6")=="" || model.getValue("/root/main/kcvainfo/htd6")=="-"){
- messageBox("시술 및 수술 일자(정위적 흡인술)는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_htd6");
- vFlag = 0;
- return;
- }
- if(model.getValue("/root/main/kcvainfo/htt6")=="" || model.getValue("/root/main/kcvainfo/htt6")=="-"){
- messageBox("시술 및 수술 일자(정위적 흡인술)는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_htt6");
- vFlag = 0;
- return;
- }
- if(fChkDTCalculate("시술 및 수술 일자(정위적 흡인술)","/root/main/kcvainfo/ht6etc", model.getValue("/root/main/kcvainfo/htd6"), model.getValue("/root/main/kcvainfo/htt6"),
- "ipt_htd6", "ipt_htt6") == false ){
- vFlag = 0;
- return;
- }
- }else{
- if( model.getValue("/root/main/kcvainfo/htd6") == "" ) model.setValue("/root/send/savedata/htd6", "-");
- if( model.getValue("/root/main/kcvainfo/htt6") == "" ) model.setValue("/root/send/savedata/htt6", "-");
- }
- //시술 및 수술 일자(감압성 두개절제술)
- if( model.getValue("/root/main/kcvainfo/htm7") == "Y" ){
- if(model.getValue("/root/main/kcvainfo/htd7")=="" || model.getValue("/root/main/kcvainfo/htd7")=="-"){
- messageBox("시술 및 수술 일자(감압성 두개절제술)는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_htd7");
- vFlag = 0;
- return;
- }
- if(model.getValue("/root/main/kcvainfo/htt7")=="" || model.getValue("/root/main/kcvainfo/htt7")=="-"){
- messageBox("시술 및 수술 일자(감압성 두개절제술)는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_htt7");
- vFlag = 0;
- return;
- }
- if(fChkDTCalculate("시술 및 수술 일자(감압성 두개절제술)","/root/main/kcvainfo/ht7etc", model.getValue("/root/main/kcvainfo/htd7"), model.getValue("/root/main/kcvainfo/htt7"),
- "ipt_htd7", "ipt_htt7") == false ){
- vFlag = 0;
- return;
- }
- }else{
- if( model.getValue("/root/main/kcvainfo/htd7") == "" ) model.setValue("/root/send/savedata/htd7", "-");
- if( model.getValue("/root/main/kcvainfo/htt7") == "" ) model.setValue("/root/send/savedata/htt7", "-");
- }
- //시술 및 수술 일자(뇌실외 배액술)
- if( model.getValue("/root/main/kcvainfo/htm8") == "Y" ){
- if(model.getValue("/root/main/kcvainfo/htd8")=="" || model.getValue("/root/main/kcvainfo/htd8")=="-"){
- messageBox("시술 및 수술 일자(뇌실외 배액술)는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_htd8");
- vFlag = 0;
- return;
- }
- if(model.getValue("/root/main/kcvainfo/htt8")=="" || model.getValue("/root/main/kcvainfo/htt8")=="-"){
- messageBox("시술 및 수술 일자(뇌실외 배액술)는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_htt8");
- vFlag = 0;
- return;
- }
- if(fChkDTCalculate("시술 및 수술 일자(뇌실외 배액술)","/root/main/kcvainfo/ht8etc", model.getValue("/root/main/kcvainfo/htd8"), model.getValue("/root/main/kcvainfo/htt8"),
- "ipt_htd8", "ipt_htt8") == false ){
- vFlag = 0;
- return;
- }
- }else{
- if( model.getValue("/root/main/kcvainfo/htd8") == "" ) model.setValue("/root/send/savedata/htd8", "-");
- if( model.getValue("/root/main/kcvainfo/htt8") == "" ) model.setValue("/root/send/savedata/htt8", "-");
- }
- //시술 및 수술 일자(뇌압감시)
- if( model.getValue("/root/main/kcvainfo/htm9") == "Y" ){
- if(model.getValue("/root/main/kcvainfo/htd9")=="" || model.getValue("/root/main/kcvainfo/htd9")=="-"){
- messageBox("시술 및 수술 일자(뇌압감시)는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_htd9");
- vFlag = 0;
- return;
- }
- if(model.getValue("/root/main/kcvainfo/htt9")=="" || model.getValue("/root/main/kcvainfo/htt9")=="-"){
- messageBox("시술 및 수술 일자(뇌압감시)는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_htt9");
- vFlag = 0;
- return;
- }
- if(fChkDTCalculate("시술 및 수술 일자(뇌압감시)","/root/main/kcvainfo/ht9etc", model.getValue("/root/main/kcvainfo/htd9"), model.getValue("/root/main/kcvainfo/htt9"),
- "ipt_htd9", "ipt_htt9") == false ){
- vFlag = 0;
- return;
- }
- }else{
- if( model.getValue("/root/main/kcvainfo/htd9") == "" ) model.setValue("/root/send/savedata/htd9", "-");
- if( model.getValue("/root/main/kcvainfo/htt9") == "" ) model.setValue("/root/send/savedata/htt9", "-");
- }
- //시술 및 수술 일자(혈관중재시술)
- if( model.getValue("/root/main/kcvainfo/htma") == "Y" ){
- if(model.getValue("/root/main/kcvainfo/htda")=="" || model.getValue("/root/main/kcvainfo/htda")=="-"){
- messageBox("시술 및 수술 일자(혈관중재시술)는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_htda");
- vFlag = 0;
- return;
- }
- if(model.getValue("/root/main/kcvainfo/htta")=="" || model.getValue("/root/main/kcvainfo/htta")=="-"){
- messageBox("시술 및 수술 일자(혈관중재시술)는 필수입력 항목입니다.", "I");
- model.setFocus("ipt_htta");
- vFlag = 0;
- return;
- }
- if(fChkDTCalculate("시술 및 수술 일자(혈관중재시술)","/root/main/kcvainfo/htaetc", model.getValue("/root/main/kcvainfo/htda"), model.getValue("/root/main/kcvainfo/htta"),
- "ipt_htda", "ipt_htta") == false ){
- vFlag = 0;
- return;
- }
- }else{
- if( model.getValue("/root/main/kcvainfo/htda") == "" ) model.setValue("/root/send/savedata/htda", "-");
- if( model.getValue("/root/main/kcvainfo/htta") == "" ) model.setValue("/root/send/savedata/htta", "-");
- }
- //혈전용해술 미실시 사유
- if(grp_tlu.disabled == false){
- if( model.getValue("/root/main/kcvainfo/tlu1") == "" ) model.setValue("/root/send/savedata/tlu1", "N");
- if( model.getValue("/root/main/kcvainfo/tlu2") == "" ) model.setValue("/root/send/savedata/tlu2", "N");
- if( model.getValue("/root/main/kcvainfo/tlu3") == "" ) model.setValue("/root/send/savedata/tlu3", "N");
- if( model.getValue("/root/main/kcvainfo/tlu4") == "" ) model.setValue("/root/send/savedata/tlu4", "N");
- if( model.getValue("/root/main/kcvainfo/tlu5") == "" ) model.setValue("/root/send/savedata/tlu5", "N");
- if( model.getValue("/root/main/kcvainfo/tlu6") == "" ) model.setValue("/root/send/savedata/tlu6", "N");
- if( model.getValue("/root/main/kcvainfo/tlu7") == "" ) model.setValue("/root/send/savedata/tlu7", "N");
- if( model.getValue("/root/main/kcvainfo/tlu8") == "" ) model.setValue("/root/send/savedata/tlu8", "N");
-
- if(model.getValue("/root/send/savedata/tlu1")=="N" && model.getValue("/root/send/savedata/tlu2")=="N"
- && model.getValue("/root/send/savedata/tlu3")=="N" && model.getValue("/root/send/savedata/tlu4")=="N"
- && model.getValue("/root/send/savedata/tlu5")=="N" && model.getValue("/root/send/savedata/tlu6")=="N"
- && model.getValue("/root/send/savedata/tlu7")=="N" && model.getValue("/root/send/savedata/tlu8")=="N"){
- messageBox("혈전용해술 미실시 사유는 필수입력 항목입니다.", "I");
- model.setFocus("grp_tlu");
- vFlag = 0;
- return;
- }
- }else{
- if( model.getValue("/root/main/kcvainfo/tlu1") == "" ) model.setValue("/root/send/savedata/tlu1", "-");
- if( model.getValue("/root/main/kcvainfo/tlu2") == "" ) model.setValue("/root/send/savedata/tlu2", "-");
- if( model.getValue("/root/main/kcvainfo/tlu3") == "" ) model.setValue("/root/send/savedata/tlu3", "-");
- if( model.getValue("/root/main/kcvainfo/tlu4") == "" ) model.setValue("/root/send/savedata/tlu4", "-");
- if( model.getValue("/root/main/kcvainfo/tlu5") == "" ) model.setValue("/root/send/savedata/tlu5", "-");
- if( model.getValue("/root/main/kcvainfo/tlu6") == "" ) model.setValue("/root/send/savedata/tlu6", "-");
- if( model.getValue("/root/main/kcvainfo/tlu7") == "" ) model.setValue("/root/send/savedata/tlu7", "-");
- if( model.getValue("/root/main/kcvainfo/tlu8") == "" ) model.setValue("/root/send/savedata/tlu8", "-");
- }
- //응급진료결과 또는 입원 후 결과가 ‘전원’ 인 경우
- if(model.getValue("/root/main/kcvainfo/emrt").substr(0,1) == "2" || model.getValue("/root/main/kcvainfo/dcrt") == "3"){ //전원
-
- //20110502_KNUH_Start 의료기관종류가 기타이거나 모름일 경우 전원보낼 의료기관값 '-'가 되도록 변경.
- if(model.getValue("/root/main/kcvainfo/dctp") == "8" || model.getValue("/root/main/kcvainfo/dctp") == "9") {
- model.setValue("/root/main/kcvainfo/thcd", "-");
- model.setValue("/root/main/kcvainfo/thcdnm", "-");
-
- } else {
-
- //전원 보낼 의료기관명
- if(model.getValue("/root/main/kcvainfo/thcd")=="" || model.getValue("/root/main/kcvainfo/thcd")=="-"){
- messageBox("전원 보낼 의료기관명은 필수입력 항목입니다.", "I");
- model.setFocus("btn_thcdinfo");
- vFlag = 0;
- return;
- }
- //전원 보낼 의료기관종류
- if(model.getValue("/root/main/kcvainfo/dctp")=="" || model.getValue("/root/main/kcvainfo/dctp")=="-"){
- messageBox("전원 보낼 의료기관종류는 필수입력 항목입니다.", "I");
- model.setFocus("cmb_dctp");
- vFlag = 0;
- return;
- }
- }
-
- //20110502_KNUH_End
-
- //전원 시 이송 수단
- if(model.getValue("/root/main/kcvainfo/thtm")=="" || model.getValue("/root/main/kcvainfo/thtm")=="-"){
- messageBox("전원 시 이송 수단은 필수입력 항목입니다.", "I");
- model.setFocus("rdo_thtm");
- vFlag = 0;
- return;
- }
- //전원 시 동승인력
- if( model.getValue("/root/main/kcvainfo/thp1") == "" ) model.setValue("/root/send/savedata/thp1", "N");
- if( model.getValue("/root/main/kcvainfo/thp2") == "" ) model.setValue("/root/send/savedata/thp2", "N");
- if( model.getValue("/root/main/kcvainfo/thp3") == "" ) model.setValue("/root/send/savedata/thp3", "N");
- if( model.getValue("/root/main/kcvainfo/thp4") == "" ) model.setValue("/root/send/savedata/thp4", "N");
- if(model.getValue("/root/main/kcvainfo/thp1")=="N" && model.getValue("/root/main/kcvainfo/thp2")=="N"
- && model.getValue("/root/main/kcvainfo/thp3")=="N" && model.getValue("/root/main/kcvainfo/thp4")=="N"){
- messageBox("전원 시 동승인력은 필수입력 항목입니다.", "I");
- model.setFocus("chk_thp1");
- vFlag = 0;
- return;
- }
- //전원병원 선정 방법
- if(model.getValue("/root/main/kcvainfo/thdp")=="" || model.getValue("/root/main/kcvainfo/thdp")=="-"){
- messageBox("전원병원 선정 방법은 필수입력 항목입니다.", "I");
- model.setFocus("rdo_thdp");
- vFlag = 0;
- return;
- }
- }else{
- //전원 보낼 의료기관명
- if( model.getValue("/root/main/kcvainfo/thcd") == "" ) model.setValue("/root/send/savedata/thcd", "-");
- //전원 보낼 의료기관명(기타)
- if( model.getValue("/root/main/kcvainfo/thnm") == "" ) model.setValue("/root/send/savedata/thnm", "-");
- //전원 보낼 의료기관종류
- if( model.getValue("/root/main/kcvainfo/dctp") == "" ) model.setValue("/root/send/savedata/dctp", "-");
- //전원 시 이송 수단
- if( model.getValue("/root/main/kcvainfo/thtm") == "" ) model.setValue("/root/send/savedata/thtm", "-");
- //전원 시 동승인력
- if( model.getValue("/root/main/kcvainfo/thp1") == "" ) model.setValue("/root/send/savedata/thp1", "-");
- if( model.getValue("/root/main/kcvainfo/thp2") == "" ) model.setValue("/root/send/savedata/thp2", "-");
- if( model.getValue("/root/main/kcvainfo/thp3") == "" ) model.setValue("/root/send/savedata/thp3", "-");
- if( model.getValue("/root/main/kcvainfo/thp4") == "" ) model.setValue("/root/send/savedata/thp4", "-");
- //전원병원 선정 방법
- if( model.getValue("/root/main/kcvainfo/thdp") == "" ) model.setValue("/root/send/savedata/thdp", "-");
- }
- //재활 치료경험
- if(model.getValue("/root/main/kcvainfo/rhyn")==""){
- messageBox("재활 치료경험은 필수입력 항목입니다.", "I");
- model.setFocus("rdo_rhyn");
- vFlag = 0;
- return;
- }
- //협의진료의뢰일
- if(ipt_rhdt.disabled == false){
- if(model.getValue("/root/main/kcvainfo/rhdt")==""|| model.getValue("/root/main/kcvainfo/rhdt")=="-"){
- messageBox("협의진료의뢰일은 필수입력 항목입니다.", "I");
- model.setFocus("ipt_rhdt");
- vFlag = 0;
- return;
- }
- }else{
- if( model.getValue("/root/main/kcvainfo/rhdt") == "" ) model.setValue("/root/send/savedata/rhdt", "-");
- }
- //응급뇌질환의 마비정보(발병전일)
- if(model.getValue("/root/main/kcvainfo/pr01")==""){
- messageBox("응급뇌질환의 마비정보(발병전일)는 필수입력 항목입니다.", "I");
- model.setFocus("rdo_pr01");
- vFlag = 0;
- return;
- }
- //응급진료 결과(emrt) - 입원
- if (model.getValue("/root/main/kamiinfo/emrt").substr(0,1) == "3") {
- //응급뇌질환의 마비정보(퇴원시)
- if(model.getValue("/root/main/kcvainfo/pr07")==""){
- messageBox("응급뇌질환의 마비정보(퇴원시)는 필수입력 항목입니다.", "I");
- model.setFocus("rdo_pr07");
- vFlag = 0;
- return;
- }
- }
- //환자연락처
- if( model.getValue("/root/main/kcvainfo/tele") == "" ) model.setValue("/root/send/savedata/tele", "-");
- }
- /**
- * @desc : 임시저장버튼 클릭
- * @
- * @param :
- * @return :
- * @author : 성미연
- * @---------------------------------------------------
- */
- function fTmpSaveData() {
- if (model.getValue("/root/main/kcvainfo/status") != "") {
- model.copyNode("/root/send/savedata", "/root/main/kcvainfo");
- model.makeValue("/root/send/savedata/histcd", "T");
-
- if (submit("TXMMO32701", false) == true)
- {
- messageBox("임시저장이", "I002");
- freqGetERKcvaInfo();
- }
- } else {
- model.alert("저장할 내용을 확인하시기 바랍니다.");
- }
- }
- /**
- * @desc : 저장버튼 클릭
- * @
- * @param :
- * @return :
- * @author : 성미연
- * @---------------------------------------------------
- */
- function fSaveData() {
- model.copyNode("/root/send/savedata", "/root/main/kcvainfo");
- fsetDefault();
-
- if(vFlag =="1") {
- model.makeValue("/root/send/savedata/histcd", "O");
-
- if (submit("TXMMO32701", false) == true)
- {
- messageBox("저장이", "I002");
- freqGetERKcvaInfo();
- }
- }
- }
- /**
- * @desc : 닫기버튼 클릭
- * @
- * @param :
- * @return :
- * @author : 성미연
- * @---------------------------------------------------
- */
- function fClose() {
- opener.javascript.Search_Brain();
- model.close();
-
- }
|