SPMMO32700.js 69 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781
  1. /*
  2. - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
  3. 응급뇌질환 등록정보 ( SPMMO32700_응급실응급뇌질환등록.xrw - JScript )
  4. - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
  5. */
  6. var sERKCVA_PATH = "/root/main/kcvainfo";
  7. var vFlag = 1;
  8. /**
  9. * @desc : 화면 초기화
  10. * @
  11. * @param :
  12. * @return :
  13. * @author : 성미연
  14. * @---------------------------------------------------
  15. */
  16. function fInitialize_SPMMO32700(){
  17. window.height = "870";
  18. window.width = "930";
  19. //콤보 초기값
  20. fCmbInit();
  21. //응급뇌질환 대상 환자인지 체크
  22. freqGetERKcvaInfo();
  23. }
  24. /**
  25. * @desc : 콤보 초기값 셋팅
  26. * @
  27. * @param :
  28. * @return :
  29. * @author : 성미연
  30. * @---------------------------------------------------
  31. */
  32. function fCmbInit() {
  33. // 진료과
  34. var instcd = getUserInfo("dutplceinstcd");
  35. //var standard_yn = "orduseyn";
  36. // var standard_yn = "rcptuseyn";
  37. // var ord_deptflag = 'D';
  38. // var rslt_ref = "/root/init/dept";
  39. // var sort_method = "depthngnm";
  40. //zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
  41. // sort_field = "depthngnm";
  42. // zsdfGetInOutOrdDeptList(instcd, rslt_ref, sort_field, sort_method);
  43. // 공통코드 목록 가져오기
  44. zbcfGetCodeList(
  45. new Array("M0120",
  46. "M0121",
  47. "M0122",
  48. "M0573",
  49. "M0125",
  50. "M0118",
  51. "M0535",
  52. "M0576",
  53. "M0119",
  54. "M0571",
  55. "M0574",
  56. "M0584",
  57. "M0572",
  58. "M0577",
  59. "M0578",
  60. "M0579",
  61. "M0580",
  62. "M0117",
  63. "M0583",
  64. "M0535",
  65. "M0581",
  66. "M0582" ) ,
  67. new Array("/root/init/M0120list",
  68. "/root/init/M0121list",
  69. "/root/init/M0122list",
  70. "/root/init/M0573list",
  71. "/root/init/M0125list",
  72. "/root/init/M0118list",
  73. "/root/init/M0535list",
  74. "/root/init/M0576list",
  75. "/root/init/M0119list",
  76. "/root/init/M0571list",
  77. "/root/init/M0574list",
  78. "/root/init/M0584list",
  79. "/root/init/M0572list",
  80. "/root/init/M0577list",
  81. "/root/init/M0578list",
  82. "/root/init/M0579list",
  83. "/root/init/M0580list",
  84. "/root/init/M0117list",
  85. "/root/init/M0583list",
  86. "/root/init/M0535list",
  87. "/root/init/M0581list",
  88. "/root/init/M0582list" ));
  89. model.refresh();
  90. }
  91. /**
  92. * @desc : DATA 조회
  93. * @
  94. * @param :
  95. * @return :
  96. * @author : 성미연
  97. * @---------------------------------------------------
  98. */
  99. function freqGetERKcvaInfo() {
  100. var pid = opener.javascript.getParameter("SPMMO32700_pid");
  101. var orddd = opener.javascript.getParameter("SPMMO32700_orddd");
  102. var cretno = opener.javascript.getParameter("SPMMO32700_cretno");
  103. model.setValue("/root/main/patinfo/pid", pid);
  104. model.setValue("/root/main/patinfo/orddd", orddd);
  105. model.setValue("/root/main/patinfo/cretno",cretno);
  106. model.copyNode("/root/send/reqdata", "/root/main/patinfo");
  107. model.removeNodeset("/root/main/kcvainfo");
  108. model.removeNodeset("/root/main/strmdiag");
  109. model.removeNodeset("/root/main/strmtrcd");
  110. model.removeNodeset("/root/main/strmopcd");
  111. model.removeNodeset("/root/main/strmdcdiag");
  112. submit("TRMMO32701");
  113. var node = instance1.selectSingleNode(sERKCVA_PATH);
  114. if(node == null){
  115. model.alert("환자 정보를 찾을 수 없습니다.\n\n응급환자정보를 다시 확인하시기 바랍니다.");
  116. return;
  117. }
  118. else {
  119. model.setValue( "/root/main/kcvainfo/gwtransyn" , "N");
  120. if ( model.getValue("/root/main/kcvainfo/status") == "i") {
  121. model.setValue( "/root/main/kcvainfo/stat" , "C");
  122. }
  123. else if ( model.getValue("/root/main/kcvainfo/status") == "u"){
  124. var vStat = model.getValue("/root/main/kcvainfo/stat"); //T는 U와 값은 의미(등록 후 전송전에 미리 값이 T로 바뀌는 오류 잡기 위해 적용)
  125. if (vStat == "C") model.setValue( "/root/main/kcvainfo/stat" , "C");
  126. else if (vStat == "T" || vStat == "U") model.setValue( "/root/main/kcvainfo/stat" , "U");
  127. else if (vStat == "E") model.setValue( "/root/main/kcvainfo/stat" , "C");
  128. }
  129. }
  130. fSetDisabled();
  131. model.refresh();
  132. }
  133. /**
  134. * @desc : 활성화 여부 CHECK
  135. * @
  136. * @param :
  137. * @return :
  138. * @author : 성미연
  139. * @---------------------------------------------------
  140. */
  141. function fSetDisabled() {
  142. // 내원경로(inrt)
  143. var vInrt = model.getValue("/root/main/kcvainfo/inrt");
  144. if( vInrt == "2" ) { //외부에서 전원
  145. ipt_fhcd.disabled = false;
  146. btn_fhcdinfo.disabled = false;
  147. rdo_fhrs.disabled = false;
  148. }
  149. else {
  150. ipt_fhcd.disabled = true;
  151. btn_fhcdinfo.disabled = true;
  152. rdo_fhrs.disabled = true;
  153. model.setValue("/root/main/kcvainfo/fhcd", "-"); //전원보낸 의료기관코드
  154. model.setValue("/root/main/kcvainfo/fhcdnm", "-"); //전원보낸 의료기관명
  155. model.setValue("/root/main/kcvainfo/fhnm", "-"); //전원보낸 의료기관명(기타)
  156. model.setValue("/root/main/kcvainfo/intp", "-"); //의료기관종류
  157. model.setValue("/root/main/kcvainfo/fhrs", "-"); //전원 보낸 사유
  158. }
  159. //의료기관 종류(intp)
  160. var vIntp = model.getValue("/root/main/kcvainfo/intp");
  161. if (vIntp == "9") {
  162. caption28.visible = true;
  163. ipt_fhnm.visible = true;
  164. }
  165. else {
  166. caption28.visible = false;
  167. ipt_fhnm.visible = false;
  168. model.setValue("/root/main/kcvainfo/fhnm", "-"); //전원보낸 의료기관명(기타)
  169. }
  170. //응급진료 결과(emrt) - 기타
  171. var vEmrt = model.getValue("/root/main/kcvainfo/emrt");
  172. if ( vEmrt == "18" || vEmrt == "28" || vEmrt == "38" || vEmrt == "48" || vEmrt == "88" ) {
  173. caption45.visible = true;
  174. ipt_ettx.visible = true;
  175. }
  176. else {
  177. caption45.visible = false;
  178. ipt_ettx.visible = false;
  179. }
  180. var vDcrt = model.getValue("/root/main/kcvainfo/dcrt");
  181. //응급진료 결과(emrt) : 전원 / 입원후 결과(dcrt) : 전원 -> 사.그룹
  182. if (vEmrt.substr(0,1) == "2" || vDcrt == "3" ) {
  183. grp_info6.disabled = false;
  184. //cmb_dctp.disabled = true; //20110421_SMY주석처리
  185. }
  186. else {
  187. grp_info6.disabled = true;
  188. model.setValue("/root/main/kcvainfo/thcd", "-"); //전원보낼 의료기관코드
  189. model.setValue("/root/main/kcvainfo/thcdnm", "-"); //전원보낼 의료기관명
  190. model.setValue("/root/main/kcvainfo/thnm", "-"); //전원보낼 의료기관명(기타)
  191. model.setValue("/root/main/kcvainfo/dctp", "-"); //전원보낼 의료기관종류 //20110421_SMY추가
  192. model.setValue("/root/main/kcvainfo/thtm", "-"); //전원시 이송수단
  193. model.setValue("/root/main/kcvainfo/thp1", "-"); //전원시 동승인력
  194. model.setValue("/root/main/kcvainfo/thp2", "-"); //전원시 동승인력
  195. model.setValue("/root/main/kcvainfo/thp3", "-"); //전원시 동승인력
  196. model.setValue("/root/main/kcvainfo/thp4", "-"); //전원시 동승인력
  197. model.setValue("/root/main/kcvainfo/thdp", "-"); //전원병원 선정방법
  198. }
  199. //전원보낼 의료기관 종류(dctp)
  200. vDctp = model.getValue("/root/main/kcvainfo/dctp");
  201. if ( vDctp == "9" ) {
  202. caption32.visible = true;
  203. ipt_thnm.visible = true;
  204. }
  205. else {
  206. caption32.visible = false;
  207. ipt_thnm.visible = false;
  208. model.setValue("/root/main/kcvainfo/thnm", "-"); //전원보낼 의료기관명(기타)
  209. }
  210. //과거력 및 위험요인 Checkbox 값 선택
  211. if(model.getValue("/root/main/kcvainfo/hs09") == "Y"){
  212. fChkHS("/root/main/kcvainfo/hs09", "chk_hs09", "sel");
  213. }
  214. if(model.getValue("/root/main/kcvainfo/hs10") == "Y"){
  215. fChkHS("/root/main/kcvainfo/hs10", "chk_hs10", "sel");
  216. }
  217. //최초 두부영상검사실시 여부
  218. if(model.getValue("/root/main/kcvainfo/his3") == "Y"){
  219. fChkHis("/root/main/kcvainfo/his3", "chk_his3", "sel");
  220. }
  221. if(model.getValue("/root/main/kcvainfo/his4") == "Y"){
  222. fChkHis("/root/main/kcvainfo/his4", "chk_his4", "sel");
  223. }
  224. if(model.getValue("/root/main/kcvainfo/his5") == "Y"){
  225. fChkHis("/root/main/kcvainfo/his5", "chk_his5", "sel");
  226. }
  227. //응급뇌질환의 치료방법
  228. if(model.getValue("/root/main/kcvainfo/htm1") == "Y"){
  229. fChkHtm("/root/main/kcvainfo/htm1", "chk_htm1", "sel");
  230. }
  231. if(model.getValue("/root/main/kcvainfo/htm2") == "Y"){
  232. fChkHtm("/root/main/kcvainfo/htm2", "chk_htm2", "sel");
  233. }
  234. if(model.getValue("/root/main/kcvainfo/htm3") == "Y"){
  235. fChkHtm("/root/main/kcvainfo/htm3", "chk_htm3", "sel");
  236. }
  237. if(model.getValue("/root/main/kcvainfo/htm4") == "Y"){
  238. fChkHtm("/root/main/kcvainfo/htm4", "chk_htm4", "sel");
  239. }
  240. if(model.getValue("/root/main/kcvainfo/htm5") == "Y"){
  241. fChkHtm("/root/main/kcvainfo/htm5", "chk_htm5", "sel");
  242. }
  243. if(model.getValue("/root/main/kcvainfo/htm6") == "Y"){
  244. fChkHtm("/root/main/kcvainfo/htm6", "chk_htm6", "sel");
  245. }
  246. if(model.getValue("/root/main/kcvainfo/htm7") == "Y"){
  247. fChkHtm("/root/main/kcvainfo/htm7", "chk_htm7", "sel");
  248. }
  249. if(model.getValue("/root/main/kcvainfo/htm8") == "Y"){
  250. fChkHtm("/root/main/kcvainfo/htm8", "chk_htm8", "sel");
  251. }
  252. if(model.getValue("/root/main/kcvainfo/htm9") == "Y"){
  253. fChkHtm("/root/main/kcvainfo/htm9", "chk_htm9", "sel");
  254. }
  255. if(model.getValue("/root/main/kcvainfo/htma") == "Y"){
  256. fChkHtm("/root/main/kcvainfo/htma", "chk_htma", "sel");
  257. }
  258. if(model.getValue("/root/main/kcvainfo/htmb") == "Y"){
  259. fChkHtm("/root/main/kcvainfo/htmb", "chk_htmb", "sel");
  260. }
  261. if(model.getValue("/root/main/kcvainfo/htmc") == "Y"){
  262. fChkHtm("/root/main/kcvainfo/htmc", "chk_htmc", "sel");
  263. }
  264. if(model.getValue("/root/main/kcvainfo/htmd") == "Y"){
  265. fChkHtm("/root/main/kcvainfo/htmd", "chk_htmd", "sel");
  266. }
  267. //측정불가 및 미상항목 CHECK
  268. fsetEtc();
  269. //혈전용해술 미실시 사유 활성화체크
  270. fChkGrpTlu();
  271. }
  272. /**
  273. * @desc : 측정불가 및 미상항목 CHECK
  274. * @
  275. * @param :
  276. * @return :
  277. * @author : 성미연
  278. * @---------------------------------------------------
  279. */
  280. function fsetEtc() {
  281. //키
  282. if(model.getValue("/root/main/kcvainfo/hght") == "-1"){
  283. model.setValue("/root/main/kcvainfo/hghtetc", "-1");
  284. ipt_hght.disabled = true;
  285. }
  286. //몸무게
  287. if(model.getValue("/root/main/kcvainfo/wght") == "-1"){
  288. model.setValue("/root/main/kcvainfo/wghtetc", "-1");
  289. ipt_wght.disabled = true;
  290. }
  291. //증상발생일시
  292. if(model.getValue("/root/main/kcvainfo/akdt") == "11111111"){
  293. model.setValue("/root/main/kcvainfo/aketc", "Y");
  294. ipt_akdt.disabled = true;
  295. ipt_aktm.disabled = true;
  296. }
  297. //마지막정상일시
  298. if(model.getValue("/root/main/kcvainfo/lndt") == "99999999"){
  299. model.setValue("/root/main/kcvainfo/lnetc", "Y");
  300. ipt_lndt.disabled = true;
  301. ipt_lntm.disabled = true;
  302. }
  303. //수축기 혈압
  304. if(model.getValue("/root/main/kcvainfo/hibp") == "-1"){
  305. model.setValue("/root/main/kcvainfo/hibpetc", "-1");
  306. ipt_hibp.disabled = true;
  307. }
  308. //맥박
  309. if(model.getValue("/root/main/kcvainfo/puls") == "-1"){
  310. model.setValue("/root/main/kcvainfo/pulsetc", "-1");
  311. ipt_puls.disabled = true;
  312. }
  313. //호흡
  314. if(model.getValue("/root/main/kcvainfo/brth") == "-1"){
  315. model.setValue("/root/main/kcvainfo/brthetc", "-1");
  316. ipt_brth.disabled = true;
  317. }
  318. //체온
  319. if(model.getValue("/root/main/kcvainfo/bdht") == "-1"){
  320. model.setValue("/root/main/kcvainfo/bdhtetc", "-1");
  321. ipt_bdht.disabled = true;
  322. }
  323. //두부영상(CT) 최초 촬영일자
  324. if(model.getValue("/root/main/kcvainfo/hid1") == "99999999"){
  325. model.setValue("/root/main/kcvainfo/hi1etc", "Y");
  326. ipt_hid1.disabled = true;
  327. ipt_hit1.disabled = true;
  328. }
  329. //두부영상(MRI) 최초 촬영일자
  330. if(model.getValue("/root/main/kcvainfo/hid2") == "99999999"){
  331. model.setValue("/root/main/kcvainfo/hi2etc", "Y");
  332. ipt_hid2.disabled = true;
  333. ipt_hit2.disabled = true;
  334. }
  335. //경정맥혈전용해술
  336. if(model.getValue("/root/main/kcvainfo/htd1") == "99999999"){
  337. model.setValue("/root/main/kcvainfo/ht1etc", "Y");
  338. ipt_htd1.disabled = true;
  339. ipt_htt1.disabled = true;
  340. }
  341. //경동맥혈전용해술
  342. if(model.getValue("/root/main/kcvainfo/htd2") == "99999999"){
  343. model.setValue("/root/main/kcvainfo/ht2etc", "Y");
  344. ipt_htd2.disabled = true;
  345. ipt_htt2.disabled = true;
  346. }
  347. //항혈소판제
  348. if(model.getValue("/root/main/kcvainfo/htd3") == "99999999"){
  349. model.setValue("/root/main/kcvainfo/ht3etc", "Y");
  350. ipt_htd3.disabled = true;
  351. ipt_htt3.disabled = true;
  352. }
  353. //항응고제
  354. if(model.getValue("/root/main/kcvainfo/htd4") == "99999999"){
  355. model.setValue("/root/main/kcvainfo/ht4etc", "Y");
  356. ipt_htd4.disabled = true;
  357. ipt_htt4.disabled = true;
  358. }
  359. //개두술
  360. if(model.getValue("/root/main/kcvainfo/htd5") == "99999999"){
  361. model.setValue("/root/main/kcvainfo/ht5etc", "Y");
  362. ipt_htd5.disabled = true;
  363. ipt_htt5.disabled = true;
  364. }
  365. //정위적 흡인술
  366. if(model.getValue("/root/main/kcvainfo/htd6") == "99999999"){
  367. model.setValue("/root/main/kcvainfo/ht6etc", "Y");
  368. ipt_htd6.disabled = true;
  369. ipt_htt6.disabled = true;
  370. }
  371. //감압성 두개절제술
  372. if(model.getValue("/root/main/kcvainfo/htd7") == "99999999"){
  373. model.setValue("/root/main/kcvainfo/ht7etc", "Y");
  374. ipt_htd7.disabled = true;
  375. ipt_htt7.disabled = true;
  376. }
  377. //뇌실외 배액술
  378. if(model.getValue("/root/main/kcvainfo/htd8") == "99999999"){
  379. model.setValue("/root/main/kcvainfo/ht8etc", "Y");
  380. ipt_htd8.disabled = true;
  381. ipt_htt8.disabled = true;
  382. }
  383. //뇌압감시
  384. if(model.getValue("/root/main/kcvainfo/htd9") == "99999999"){
  385. model.setValue("/root/main/kcvainfo/ht9etc", "Y");
  386. ipt_htd9.disabled = true;
  387. ipt_htt9.disabled = true;
  388. }
  389. //혈관중재시술
  390. if(model.getValue("/root/main/kcvainfo/htda") == "99999999"){
  391. model.setValue("/root/main/kcvainfo/htaetc", "Y");
  392. ipt_htda.disabled = true;
  393. ipt_htta.disabled = true;
  394. }
  395. //재활 치료경험
  396. if(model.getValue("/root/main/kcvainfo/rhdt") == "99999999"){
  397. model.setValue("/root/main/kcvainfo/rhetc", "Y");
  398. ipt_rhdt.disabled = true;
  399. }
  400. model.refresh();
  401. }
  402. /**
  403. * @desc : 과거력 및 위험요인 Checkbox 값 선택
  404. * @
  405. * @param :
  406. * @return :
  407. * @author : 성미연
  408. * @---------------------------------------------------
  409. */
  410. function fChkHS(vChkValue, vChkID, vChkFlag) {
  411. if(vChkFlag == "sel"){
  412. model.setValue(vChkValue, "Y");
  413. //‘해당 없음’, ‘확인불가’ 선택 시 나머지 항목 Disabled
  414. if (vChkID == "chk_hs09" || vChkID == "chk_hs10") {
  415. model.setValue("/root/main/kcvainfo/hs01", "N");
  416. model.setValue("/root/main/kcvainfo/hs02", "N");
  417. model.setValue("/root/main/kcvainfo/hs03", "N");
  418. model.setValue("/root/main/kcvainfo/hs04", "N");
  419. model.setValue("/root/main/kcvainfo/hs05", "N");
  420. model.setValue("/root/main/kcvainfo/hs06", "N");
  421. model.setValue("/root/main/kcvainfo/hs07", "N");
  422. model.setValue("/root/main/kcvainfo/hs08", "N");
  423. chk_hs01.disabled = true;
  424. chk_hs02.disabled = true;
  425. chk_hs03.disabled = true;
  426. chk_hs04.disabled = true;
  427. chk_hs05.disabled = true;
  428. chk_hs06.disabled = true;
  429. chk_hs07.disabled = true;
  430. chk_hs08.disabled = true;
  431. if (vChkID == "chk_hs09"){
  432. model.setValue("/root/main/kcvainfo/hs10", "N");
  433. chk_hs10.disabled = true;
  434. } else if (vChkID == "chk_hs10") {
  435. model.setValue("/root/main/kcvainfo/hs09", "N");
  436. chk_hs09.disabled = true;
  437. }
  438. }
  439. //그 외 선택
  440. else {
  441. model.setValue("/root/main/kcvainfo/hs09", "N");
  442. model.setValue("/root/main/kcvainfo/hs10", "N");
  443. }
  444. }else{
  445. model.setValue(vChkValue, "N");
  446. chk_hs01.disabled = false;
  447. chk_hs02.disabled = false;
  448. chk_hs03.disabled = false;
  449. chk_hs04.disabled = false;
  450. chk_hs05.disabled = false;
  451. chk_hs06.disabled = false;
  452. chk_hs07.disabled = false;
  453. chk_hs08.disabled = false;
  454. chk_hs09.disabled = false;
  455. chk_hs10.disabled = false;
  456. }
  457. model.refresh();
  458. }
  459. /**
  460. * @desc : 내원 시 증상 Checkbox 값 선택
  461. * @
  462. * @param :
  463. * @return :
  464. * @author : 성미연
  465. * @---------------------------------------------------
  466. */
  467. function fChkIns(vChkValue, vChkID, vChkFlag) {
  468. if(vChkFlag == "sel"){
  469. model.setValue(vChkValue, "Y");
  470. }else{
  471. model.setValue(vChkValue, "N");
  472. }
  473. model.refresh();
  474. }
  475. /**
  476. * @desc : 최초 두부영상검사 실시여부 Checkbox 값 선택
  477. * @
  478. * @param :
  479. * @return :
  480. * @author : 성미연
  481. * @---------------------------------------------------
  482. */
  483. function fChkHis(vChkValue, vChkID, vChkFlag) {
  484. if(vChkFlag == "sel"){
  485. model.setValue(vChkValue, "Y");
  486. //‘촬영안함’ ,’ 입원 전 타원에서 시행’ , ‘기록없음’ 선택 시 나머지 항목 Disabled
  487. if (vChkID == "chk_his3" || vChkID == "chk_his4" || vChkID == "chk_his5") {
  488. model.setValue("/root/main/kcvainfo/his1", "N");
  489. model.setValue("/root/main/kcvainfo/hid1", "");
  490. model.setValue("/root/main/kcvainfo/hit1", "");
  491. model.setValue("/root/main/kcvainfo/hi1etc", "");
  492. chk_his1.disabled = true;
  493. ipt_hid1.disabled = true; //두부영상(CT) 최초 촬영일시
  494. ipt_hit1.disabled = true; //두부영상(CT) 최초 촬영일시
  495. chk_hi1etc.disabled = true; //두부영상(CT) 최초 촬영일시
  496. model.setValue("/root/main/kcvainfo/his2", "N");
  497. model.setValue("/root/main/kcvainfo/hid2", "");
  498. model.setValue("/root/main/kcvainfo/hit2", "");
  499. model.setValue("/root/main/kcvainfo/hi2etc", "");
  500. chk_his2.disabled = true;
  501. ipt_hid2.disabled = true; //두부영상(MRI) 최초 촬영일시
  502. ipt_hit2.disabled = true; //두부영상(MRI) 최초 촬영일시
  503. chk_hi2etc.disabled = true; //두부영상(MRI) 최초 촬영일시
  504. if (vChkID == "chk_his3"){
  505. model.setValue("/root/main/kcvainfo/his4", "N");
  506. model.setValue("/root/main/kcvainfo/his5", "N");
  507. model.setValue("/root/main/kcvainfo/hirt", "");
  508. chk_his4.disabled = true;
  509. chk_his5.disabled = true;
  510. rdo_hirt.disabled = true; //두부영상(CT/MRI) 판정결과
  511. } else if (vChkID == "chk_his4") {
  512. model.setValue("/root/main/kcvainfo/his3", "N");
  513. model.setValue("/root/main/kcvainfo/his5", "N");
  514. chk_his3.disabled = true;
  515. chk_his5.disabled = true;
  516. rdo_hirt.disabled = false; //두부영상(CT/MRI) 판정결과
  517. } else if (vChkID == "chk_his5") {
  518. model.setValue("/root/main/kcvainfo/his3", "N");
  519. model.setValue("/root/main/kcvainfo/his4", "N");
  520. model.setValue("/root/main/kcvainfo/hirt", "");
  521. chk_his3.disabled = true;
  522. chk_his4.disabled = true;
  523. rdo_hirt.disabled = true; //두부영상(CT/MRI) 판정결과
  524. }
  525. }
  526. //그 외 선택
  527. else {
  528. model.setValue("/root/main/kcvainfo/his3", "N");
  529. model.setValue("/root/main/kcvainfo/his4", "N");
  530. model.setValue("/root/main/kcvainfo/his5", "N");
  531. //CT
  532. if (vChkID == "chk_his1"){
  533. ipt_hid1.disabled = false; //두부영상(CT) 최초 촬영일시
  534. ipt_hit1.disabled = false; //두부영상(CT) 최초 촬영일시
  535. chk_hi1etc.disabled = false; //두부영상(CT) 최초 촬영일시
  536. rdo_hirt.disabled = false; //두부영상(CT/MRI) 판정결과
  537. }
  538. //MRI
  539. if (vChkID == "chk_his2"){
  540. ipt_hid2.disabled = false; //두부영상(MRI) 최초 촬영일시
  541. ipt_hit2.disabled = false; //두부영상(MRI) 최초 촬영일시
  542. chk_hi2etc.disabled = false; //두부영상(MRI) 최초 촬영일시
  543. rdo_hirt.disabled = false; //두부영상(CT/MRI) 판정결과
  544. }
  545. }
  546. }else{
  547. model.setValue(vChkValue, "N");
  548. chk_his1.disabled = false;
  549. chk_his2.disabled = false;
  550. chk_his3.disabled = false;
  551. chk_his4.disabled = false;
  552. chk_his5.disabled = false;
  553. //CT
  554. if (vChkID == "chk_his1"){
  555. model.setValue("/root/main/kcvainfo/hid1", "");
  556. model.setValue("/root/main/kcvainfo/hit1", "");
  557. model.setValue("/root/main/kcvainfo/hi1etc", "");
  558. ipt_hid1.disabled = true; //두부영상(CT) 최초 촬영일시
  559. ipt_hit1.disabled = true; //두부영상(CT) 최초 촬영일시
  560. chk_hi1etc.disabled = true; //두부영상(CT) 최초 촬영일시
  561. }
  562. //MRI
  563. if (vChkID == "chk_his2"){
  564. model.setValue("/root/main/kcvainfo/hid2", "");
  565. model.setValue("/root/main/kcvainfo/hit2", "");
  566. model.setValue("/root/main/kcvainfo/hi2etc", "");
  567. ipt_hid2.disabled = true; //두부영상(MRI) 최초 촬영일시
  568. ipt_hit2.disabled = true; //두부영상(MRI) 최초 촬영일시
  569. chk_hi2etc.disabled = true; //두부영상(MRI) 최초 촬영일시
  570. }
  571. //CT OR MRI OR 입원 전 타원에서 시행
  572. if ((model.getValue("/root/main/kcvainfo/his1") == "" || model.getValue("/root/main/kcvainfo/his1") == "-" || model.getValue("/root/main/kcvainfo/his1") == "N")
  573. && (model.getValue("/root/main/kcvainfo/his2") == "" || model.getValue("/root/main/kcvainfo/his2") == "-" || model.getValue("/root/main/kcvainfo/his2") == "N")
  574. && (model.getValue("/root/main/kcvainfo/his4") == "" || model.getValue("/root/main/kcvainfo/his4") == "-" || model.getValue("/root/main/kcvainfo/his4") == "N")){
  575. model.setValue("/root/main/kcvainfo/hirt", "");
  576. rdo_hirt.disabled = true; //두부영상(CT/MRI) 판정결과
  577. }
  578. }
  579. model.refresh();
  580. }
  581. /**
  582. * @desc : 응급뇌질환의 치료 방법 Checkbox 값 선택
  583. * @
  584. * @param :
  585. * @return :
  586. * @author : 성미연
  587. * @---------------------------------------------------
  588. */
  589. function fChkHtm(vChkValue, vChkID, vChkFlag) {
  590. if(vChkFlag == "sel"){
  591. model.setValue(vChkValue, "Y");
  592. //‘치료포기’ , ‘실시안함’ 선택 시 나머지 항목 Disabled
  593. if (vChkID == "chk_htmc" || vChkID == "chk_htmd") {
  594. model.setValue("/root/main/kcvainfo/htm1", "N");
  595. model.setValue("/root/main/kcvainfo/htd1", "");
  596. model.setValue("/root/main/kcvainfo/htt1", "");
  597. model.setValue("/root/main/kcvainfo/ht1etc", "");
  598. chk_htm1.disabled = true;
  599. ipt_htd1.disabled = true;
  600. ipt_htt1.disabled = true;
  601. chk_ht1etc.disabled = true;
  602. model.setValue("/root/main/kcvainfo/htm2", "N");
  603. model.setValue("/root/main/kcvainfo/htd2", "");
  604. model.setValue("/root/main/kcvainfo/htt2", "");
  605. model.setValue("/root/main/kcvainfo/ht2etc", "");
  606. chk_htm2.disabled = true;
  607. ipt_htd2.disabled = true;
  608. ipt_htt2.disabled = true;
  609. chk_ht2etc.disabled = true;
  610. model.setValue("/root/main/kcvainfo/htm3", "N");
  611. model.setValue("/root/main/kcvainfo/htd3", "");
  612. model.setValue("/root/main/kcvainfo/htt3", "");
  613. model.setValue("/root/main/kcvainfo/ht3etc", "");
  614. chk_htm3.disabled = true;
  615. ipt_htd3.disabled = true;
  616. ipt_htt3.disabled = true;
  617. chk_ht3etc.disabled = true;
  618. model.setValue("/root/main/kcvainfo/htm4", "N");
  619. model.setValue("/root/main/kcvainfo/htd4", "");
  620. model.setValue("/root/main/kcvainfo/htt4", "");
  621. model.setValue("/root/main/kcvainfo/ht4etc", "");
  622. chk_htm4.disabled = true;
  623. ipt_htd4.disabled = true;
  624. ipt_htt4.disabled = true;
  625. chk_ht4etc.disabled = true;
  626. model.setValue("/root/main/kcvainfo/htm5", "N");
  627. model.setValue("/root/main/kcvainfo/htd5", "");
  628. model.setValue("/root/main/kcvainfo/htt5", "");
  629. model.setValue("/root/main/kcvainfo/ht5etc", "");
  630. chk_htm5.disabled = true;
  631. ipt_htd5.disabled = true;
  632. ipt_htt5.disabled = true;
  633. chk_ht5etc.disabled = true;
  634. model.setValue("/root/main/kcvainfo/htm6", "N");
  635. model.setValue("/root/main/kcvainfo/htd6", "");
  636. model.setValue("/root/main/kcvainfo/htt6", "");
  637. model.setValue("/root/main/kcvainfo/ht6etc", "");
  638. chk_htm6.disabled = true;
  639. ipt_htd6.disabled = true;
  640. ipt_htt6.disabled = true;
  641. chk_ht6etc.disabled = true;
  642. model.setValue("/root/main/kcvainfo/htm7", "N");
  643. model.setValue("/root/main/kcvainfo/htd7", "");
  644. model.setValue("/root/main/kcvainfo/htt7", "");
  645. model.setValue("/root/main/kcvainfo/ht7etc", "");
  646. chk_htm7.disabled = true;
  647. ipt_htd7.disabled = true;
  648. ipt_htt7.disabled = true;
  649. chk_ht7etc.disabled = true;
  650. model.setValue("/root/main/kcvainfo/htm8", "N");
  651. model.setValue("/root/main/kcvainfo/htd8", "");
  652. model.setValue("/root/main/kcvainfo/htt8", "");
  653. model.setValue("/root/main/kcvainfo/ht8etc", "");
  654. chk_htm8.disabled = true;
  655. ipt_htd8.disabled = true;
  656. ipt_htt8.disabled = true;
  657. chk_ht8etc.disabled = true;
  658. model.setValue("/root/main/kcvainfo/htm9", "N");
  659. model.setValue("/root/main/kcvainfo/htd9", "");
  660. model.setValue("/root/main/kcvainfo/htt9", "");
  661. model.setValue("/root/main/kcvainfo/ht9etc", "");
  662. chk_htm9.disabled = true;
  663. ipt_htd9.disabled = true;
  664. ipt_htt9.disabled = true;
  665. chk_ht9etc.disabled = true;
  666. model.setValue("/root/main/kcvainfo/htma", "N");
  667. model.setValue("/root/main/kcvainfo/htda", "");
  668. model.setValue("/root/main/kcvainfo/htta", "");
  669. model.setValue("/root/main/kcvainfo/htaetc", "");
  670. chk_htma.disabled = true;
  671. ipt_htda.disabled = true;
  672. ipt_htta.disabled = true;
  673. chk_htaetc.disabled = true;
  674. model.setValue("/root/main/kcvainfo/htmb", "N");
  675. chk_htmb.disabled = true;
  676. if (vChkID == "chk_htmc"){
  677. model.setValue("/root/main/kcvainfo/htmd", "N");
  678. chk_htmd.disabled = true;
  679. } else if (vChkID == "chk_htmd") {
  680. model.setValue("/root/main/kcvainfo/htmc", "N");
  681. chk_htmc.disabled = true;
  682. }
  683. }
  684. //그 외 선택
  685. else {
  686. model.setValue("/root/main/kcvainfo/htmc", "N");
  687. model.setValue("/root/main/kcvainfo/htmd", "N");
  688. //시술 및 수술 일자
  689. //경정맥혈전용해술
  690. if (vChkID == "chk_htm1"){
  691. ipt_htd1.disabled = false;
  692. ipt_htt1.disabled = false;
  693. chk_ht1etc.disabled = false;
  694. }
  695. //경동맥혈전용해술
  696. if (vChkID == "chk_htm2"){
  697. ipt_htd2.disabled = false;
  698. ipt_htt2.disabled = false;
  699. chk_ht2etc.disabled = false;
  700. }
  701. //항혈소판제
  702. if (vChkID == "chk_htm3"){
  703. ipt_htd3.disabled = false;
  704. ipt_htt3.disabled = false;
  705. chk_ht3etc.disabled = false;
  706. }
  707. //항응고제
  708. if (vChkID == "chk_htm4"){
  709. ipt_htd4.disabled = false;
  710. ipt_htt4.disabled = false;
  711. chk_ht4etc.disabled = false;
  712. }
  713. //개두술
  714. if (vChkID == "chk_htm5"){
  715. ipt_htd5.disabled = false;
  716. ipt_htt5.disabled = false;
  717. chk_ht5etc.disabled = false;
  718. }
  719. //정위적 흡인술
  720. if (vChkID == "chk_htm6"){
  721. ipt_htd6.disabled = false;
  722. ipt_htt6.disabled = false;
  723. chk_ht6etc.disabled = false;
  724. }
  725. //감압성 두개절제술
  726. if (vChkID == "chk_htm7"){
  727. ipt_htd7.disabled = false;
  728. ipt_htt7.disabled = false;
  729. chk_ht7etc.disabled = false;
  730. }
  731. //뇌실외 배액술
  732. if (vChkID == "chk_htm8"){
  733. ipt_htd8.disabled = false;
  734. ipt_htt8.disabled = false;
  735. chk_ht8etc.disabled = false;
  736. }
  737. //뇌압감시
  738. if (vChkID == "chk_htm9"){
  739. ipt_htd9.disabled = false;
  740. ipt_htt9.disabled = false;
  741. chk_ht9etc.disabled = false;
  742. }
  743. //혈관중재시술
  744. if (vChkID == "chk_htma"){
  745. ipt_htda.disabled = false;
  746. ipt_htta.disabled = false;
  747. chk_htaetc.disabled = false;
  748. }
  749. }
  750. }else{
  751. model.setValue(vChkValue, "N");
  752. chk_htm1.disabled = false;
  753. chk_htm2.disabled = false;
  754. chk_htm3.disabled = false;
  755. chk_htm4.disabled = false;
  756. chk_htm5.disabled = false;
  757. chk_htm6.disabled = false;
  758. chk_htm7.disabled = false;
  759. chk_htm8.disabled = false;
  760. chk_htm9.disabled = false;
  761. chk_htma.disabled = false;
  762. chk_htmb.disabled = false;
  763. chk_htmc.disabled = false;
  764. chk_htmd.disabled = false;
  765. //시술 및 수술 일자
  766. //경정맥혈전용해술
  767. if (vChkID == "chk_htm1"){
  768. model.setValue("/root/main/kcvainfo/htd1", "");
  769. model.setValue("/root/main/kcvainfo/htt1", "");
  770. model.setValue("/root/main/kcvainfo/ht1etc", "");
  771. ipt_htd1.disabled = true;
  772. ipt_htt1.disabled = true;
  773. chk_ht1etc.disabled = true;
  774. }
  775. //경동맥혈전용해술
  776. if (vChkID == "chk_htm2"){
  777. model.setValue("/root/main/kcvainfo/htd2", "");
  778. model.setValue("/root/main/kcvainfo/htt2", "");
  779. model.setValue("/root/main/kcvainfo/ht2etc", "");
  780. ipt_htd2.disabled = true;
  781. ipt_htt2.disabled = true;
  782. chk_ht2etc.disabled = true;
  783. }
  784. //항혈소판제
  785. if (vChkID == "chk_htm3"){
  786. model.setValue("/root/main/kcvainfo/htd3", "");
  787. model.setValue("/root/main/kcvainfo/htt3", "");
  788. model.setValue("/root/main/kcvainfo/ht3etc", "");
  789. ipt_htd3.disabled = true;
  790. ipt_htt3.disabled = true;
  791. chk_ht3etc.disabled = true;
  792. }
  793. //항응고제
  794. if (vChkID == "chk_htm4"){
  795. model.setValue("/root/main/kcvainfo/htd4", "");
  796. model.setValue("/root/main/kcvainfo/htt4", "");
  797. model.setValue("/root/main/kcvainfo/ht4etc", "");
  798. ipt_htd4.disabled = true;
  799. ipt_htt4.disabled = true;
  800. chk_ht4etc.disabled = true;
  801. }
  802. //개두술
  803. if (vChkID == "chk_htm5"){
  804. model.setValue("/root/main/kcvainfo/htd5", "");
  805. model.setValue("/root/main/kcvainfo/htt5", "");
  806. model.setValue("/root/main/kcvainfo/ht5etc", "");
  807. ipt_htd5.disabled = true;
  808. ipt_htt5.disabled = true;
  809. chk_ht5etc.disabled = true;
  810. }
  811. //정위적 흡인술
  812. if (vChkID == "chk_htm6"){
  813. model.setValue("/root/main/kcvainfo/htd6", "");
  814. model.setValue("/root/main/kcvainfo/htt6", "");
  815. model.setValue("/root/main/kcvainfo/ht6etc", "");
  816. ipt_htd6.disabled = true;
  817. ipt_htt6.disabled = true;
  818. chk_ht6etc.disabled = true;
  819. }
  820. //감압성 두개절제술
  821. if (vChkID == "chk_htm7"){
  822. model.setValue("/root/main/kcvainfo/htd7", "");
  823. model.setValue("/root/main/kcvainfo/htt7", "");
  824. model.setValue("/root/main/kcvainfo/ht7etc", "");
  825. ipt_htd7.disabled = true;
  826. ipt_htt7.disabled = true;
  827. chk_ht7etc.disabled = true;
  828. }
  829. //뇌실외 배액술
  830. if (vChkID == "chk_htm8"){
  831. model.setValue("/root/main/kcvainfo/htd8", "");
  832. model.setValue("/root/main/kcvainfo/htt8", "");
  833. model.setValue("/root/main/kcvainfo/ht8etc", "");
  834. ipt_htd8.disabled = true;
  835. ipt_htt8.disabled = true;
  836. chk_ht8etc.disabled = true;
  837. }
  838. //뇌압감시
  839. if (vChkID == "chk_htm9"){
  840. model.setValue("/root/main/kcvainfo/htd9", "");
  841. model.setValue("/root/main/kcvainfo/htt9", "");
  842. model.setValue("/root/main/kcvainfo/ht9etc", "");
  843. ipt_htd9.disabled = true;
  844. ipt_htt9.disabled = true;
  845. chk_ht9etc.disabled = true;
  846. }
  847. //혈관중재시술
  848. if (vChkID == "chk_htma"){
  849. model.setValue("/root/main/kcvainfo/htda", "");
  850. model.setValue("/root/main/kcvainfo/htta", "");
  851. model.setValue("/root/main/kcvainfo/htaetc", "");
  852. ipt_htda.disabled = true;
  853. ipt_htta.disabled = true;
  854. chk_htaetc.disabled = true;
  855. }
  856. }
  857. model.refresh();
  858. //혈전용해술 미실시 사유 활성화체크
  859. fChkGrpTlu();
  860. }
  861. /**
  862. * @desc : 혈전용해술 미실시 사유 Checkbox 값 선택
  863. * @
  864. * @param :
  865. * @return :
  866. * @author : 성미연
  867. * @---------------------------------------------------
  868. */
  869. function fChkTlu(vChkValue, vChkID, vChkFlag) {
  870. if(vChkFlag == "sel"){
  871. model.setValue(vChkValue, "Y");
  872. }else{
  873. model.setValue(vChkValue, "N");
  874. }
  875. model.refresh();
  876. }
  877. /**
  878. * @desc : 혈전용해술 미실시 사유 활성화체크
  879. * @
  880. * g@param :
  881. * @return :
  882. * @author : 성미연
  883. * @---------------------------------------------------
  884. */
  885. function fChkGrpTlu(vChkValue, vChkID, vChkFlag) {
  886. var hirt = model.getValue("/root/main/kcvainfo/hirt"); //두부영상판정결과
  887. var htm1 = model.getValue("/root/main/kcvainfo/htm1"); //응급뇌질환치료방법(경정맥혈전용해술)
  888. var htm2 = model.getValue("/root/main/kcvainfo/htm2"); //응급뇌질환치료방법(경동맥혈전용해술)
  889. var htm5 = model.getValue("/root/main/kcvainfo/htm5"); //응급뇌질환치료방법(개두술)
  890. var htm6 = model.getValue("/root/main/kcvainfo/htm6"); //응급뇌질환치료방법(정위적흡인술)
  891. var htm7 = model.getValue("/root/main/kcvainfo/htm7"); //응급뇌질환치료방법(감압성 두개절제술)
  892. var htm8 = model.getValue("/root/main/kcvainfo/htm8"); //응급뇌질환치료방법(뇌실외 배액술)
  893. if(hirt == "21"){ //급성뇌경색
  894. if((htm1 == "" || htm1 == "-" || htm1 == "N")&&(htm2 == "" || htm2 == "-" || htm2 == "N")
  895. &&(htm5 == "" || htm5 == "-" || htm5 == "N")&&(htm6 == "" || htm6 == "-" || htm6 == "N")
  896. &&(htm7 == "" || htm7 == "-" || htm7 == "N")&&(htm8 == "" || htm8 == "-" || htm8 == "N")){
  897. grp_tlu.disabled = false;
  898. }else{
  899. grp_tlu.disabled = true;
  900. model.setValue("/root/main/kcvainfo/tlu1", "");
  901. model.setValue("/root/main/kcvainfo/tlu2", "");
  902. model.setValue("/root/main/kcvainfo/tlu3", "");
  903. model.setValue("/root/main/kcvainfo/tlu4", "");
  904. model.setValue("/root/main/kcvainfo/tlu5", "");
  905. model.setValue("/root/main/kcvainfo/tlu6", "");
  906. model.setValue("/root/main/kcvainfo/tlu7", "");
  907. model.setValue("/root/main/kcvainfo/tlu8", "");
  908. }
  909. }else{
  910. grp_tlu.disabled = true;
  911. model.setValue("/root/main/kcvainfo/tlu1", "");
  912. model.setValue("/root/main/kcvainfo/tlu2", "");
  913. model.setValue("/root/main/kcvainfo/tlu3", "");
  914. model.setValue("/root/main/kcvainfo/tlu4", "");
  915. model.setValue("/root/main/kcvainfo/tlu5", "");
  916. model.setValue("/root/main/kcvainfo/tlu6", "");
  917. model.setValue("/root/main/kcvainfo/tlu7", "");
  918. model.setValue("/root/main/kcvainfo/tlu8", "");
  919. }
  920. model.refresh();
  921. }
  922. /**
  923. * @desc : GCS 총점 계산
  924. * @
  925. * @param :
  926. * @return :
  927. * @author : 성미연
  928. * @---------------------------------------------------
  929. */
  930. function fTotalGCS(){
  931. if(model.getValue("/root/main/kcvainfo/gcse") != "" &&
  932. model.getValue("/root/main/kcvainfo/gcsv") != "" &&
  933. model.getValue("/root/main/kcvainfo/gcsm") != ""){
  934. if(model.getValue("/root/main/kcvainfo/gcse") == "9" ||
  935. model.getValue("/root/main/kcvainfo/gcsv") == "9" ||
  936. model.getValue("/root/main/kcvainfo/gcsm") == "9"){
  937. model.setValue("/root/main/kcvainfo/gcst", "-1");
  938. }else{
  939. var vGCSe = model.getValue("/root/main/kcvainfo/gcse");
  940. var vGCSv = model.getValue("/root/main/kcvainfo/gcsv");
  941. var vGCSm = model.getValue("/root/main/kcvainfo/gcsm");
  942. var vGCS = eval(vGCSe) + eval(vGCSv) + eval(vGCSm);
  943. model.setValue("/root/main/kcvainfo/gcst", vGCS);
  944. }
  945. ipt_gcst.refresh();
  946. }
  947. }
  948. /**
  949. * @desc : 증상발생일시, 마지막 정상일시 계산하여 블로킹
  950. * @
  951. * @param :
  952. * @return :
  953. * @author : 성미연
  954. * @---------------------------------------------------
  955. */
  956. function fChkAkDTCalculate(pChkNM, pETCPath, pChkDT, pChkTM, pChkDT_ID, pChkTM_ID, pChkFlag){
  957. //내원일시
  958. var vIndt = model.getValue("/root/main/kcvainfo/indt");
  959. var vIntm = model.getValue("/root/main/kcvainfo/intm");
  960. //미상아닌 경우
  961. if(model.getValue(pETCPath) != "Y"){
  962. //내원일시 이전으로 체크
  963. if(vIndt != "" || vIndt != "-"){
  964. var sTermDate = getDateInterval(pChkDT, vIndt);
  965. if(sTermDate < 0) {
  966. model.alert(pChkNM+"가 내원일시 이전이어야 합니다. 확인하여 주십시오!");
  967. model.setFocus(pChkDT_ID);
  968. model.refresh();
  969. return false;
  970. }else if (sTermDate == 0) {
  971. var sTermTime = getTimeInterval(pChkTM, vIntm);
  972. if(sTermTime < 0) {
  973. model.alert(pChkNM+"가 내원일시 이전이어야 합니다. 확인하여 주십시오!");
  974. model.setFocus(pChkTM_ID);
  975. model.refresh();
  976. return false;
  977. }
  978. }
  979. //증상발생일시 : 내원 24시간 전 증상발생이 되면 응급뇌질환 환자로 등록대상이 아님
  980. if(pChkFlag == "Ak"){
  981. if (sTermDate > 1) {
  982. model.alert("발병 후 24이내 내원한 환자가 아니므로 대상이 아닙니다.\n\n저장 후 종료하시기 바랍니다.");
  983. return false;
  984. }
  985. }
  986. }
  987. }
  988. }
  989. /**
  990. * @desc : 검사일시 계산하여 블로킹
  991. * @
  992. * @param :
  993. * @return :
  994. * @author : 성미연
  995. * @---------------------------------------------------
  996. */
  997. function fChkDTCalculate(pChkNM, pETCPath, pChkDT, pChkTM, pChkDT_ID, pChkTM_ID){
  998. //내원일시
  999. var vIndt = model.getValue("/root/main/kcvainfo/indt");
  1000. var vIntm = model.getValue("/root/main/kcvainfo/intm");
  1001. //퇴원일시
  1002. var vDcdt = model.getValue("/root/main/kcvainfo/dcdt");
  1003. var vDctm = model.getValue("/root/main/kcvainfo/dctm");
  1004. //미상아닌 경우
  1005. if(model.getValue(pETCPath) != "Y"){
  1006. //내원일시 이후로 체크
  1007. if(vIndt != "" || vIndt != "-"){
  1008. var sTermDate = getDateInterval(vIndt, pChkDT);
  1009. if(sTermDate < 0) {
  1010. model.alert(pChkNM+"가 내원일시 이후이어야 합니다. 확인하여 주십시오!");
  1011. model.setFocus(pChkDT_ID);
  1012. model.refresh();
  1013. return false;
  1014. }else if (sTermDate == 0) {
  1015. var sTermTime = getTimeInterval(vIntm, pChkTM);
  1016. if(sTermTime < 0) {
  1017. model.alert(pChkNM+"가 내원일시 이후이어야 합니다. 확인하여 주십시오!");
  1018. model.setFocus(pChkTM_ID);
  1019. model.refresh();
  1020. return false;
  1021. }
  1022. }
  1023. }
  1024. //퇴원일시 이전으로 체크
  1025. if(vDcdt != "" || vDcdt != "-"){
  1026. var sTermDate = getDateInterval(pChkDT, vDcdt);
  1027. if(sTermDate < 0) {
  1028. model.alert(pChkNM+"가 퇴원일시 이전이어야 합니다. 확인하여 주십시오!");
  1029. model.setFocus(pChkDT_ID);
  1030. model.refresh();
  1031. return false;
  1032. }else if (sTermDate == 0) {
  1033. var sTermTime = getTimeInterval(pChkTM, vDctm);
  1034. if(sTermTime < 0) {
  1035. model.alert(pChkNM+"가 퇴원일시 이전이어야 합니다. 확인하여 주십시오!");
  1036. model.setFocus(pChkTM_ID);
  1037. model.refresh();
  1038. return false;
  1039. }
  1040. }
  1041. }
  1042. }
  1043. }
  1044. /**
  1045. * @desc : 필수항목 체크, 저장시 NULL값 -> DEFAULT값 변경
  1046. * @
  1047. * @param :
  1048. * @return :
  1049. * @author : 성미연
  1050. * @---------------------------------------------------
  1051. */
  1052. function fsetDefault() {
  1053. vFlag = 1;
  1054. //성별
  1055. if( model.getValue("/root/main/kcvainfo/sex") == "" ) model.setValue("/root/send/savedata/sex", "-");
  1056. //키
  1057. if( model.getValue("/root/main/kcvainfo/hght") == "" ) model.setValue("/root/send/savedata/hght", "999");
  1058. //몸무게
  1059. if( model.getValue("/root/main/kcvainfo/wght") == "" ) model.setValue("/root/send/savedata/wght", "999");
  1060. //흡연
  1061. if(model.getValue("/root/main/kcvainfo/smok")=="" || model.getValue("/root/main/kcvainfo/smok")=="-"){
  1062. messageBox("흡연은 필수입력 항목입니다.", "I");
  1063. model.setFocus("cmb_smok");
  1064. vFlag = 0;
  1065. return;
  1066. }
  1067. //과거력 및 위험요인
  1068. if( model.getValue("/root/main/kcvainfo/hs01") == "" ) model.setValue("/root/send/savedata/hs01", "N");
  1069. if( model.getValue("/root/main/kcvainfo/hs02") == "" ) model.setValue("/root/send/savedata/hs02", "N");
  1070. if( model.getValue("/root/main/kcvainfo/hs03") == "" ) model.setValue("/root/send/savedata/hs03", "N");
  1071. if( model.getValue("/root/main/kcvainfo/hs04") == "" ) model.setValue("/root/send/savedata/hs04", "N");
  1072. if( model.getValue("/root/main/kcvainfo/hs05") == "" ) model.setValue("/root/send/savedata/hs05", "N");
  1073. if( model.getValue("/root/main/kcvainfo/hs06") == "" ) model.setValue("/root/send/savedata/hs06", "N");
  1074. if( model.getValue("/root/main/kcvainfo/hs07") == "" ) model.setValue("/root/send/savedata/hs07", "N");
  1075. if( model.getValue("/root/main/kcvainfo/hs08") == "" ) model.setValue("/root/send/savedata/hs08", "N");
  1076. if( model.getValue("/root/main/kcvainfo/hs09") == "" ) model.setValue("/root/send/savedata/hs09", "N");
  1077. if( model.getValue("/root/main/kcvainfo/hs10") == "" ) model.setValue("/root/send/savedata/hs10", "N");
  1078. if(model.getValue("/root/send/savedata/hs01")=="N" && model.getValue("/root/send/savedata/hs02")=="N"
  1079. && model.getValue("/root/send/savedata/hs03")=="N" && model.getValue("/root/send/savedata/hs04")=="N"
  1080. && model.getValue("/root/send/savedata/hs05")=="N" && model.getValue("/root/send/savedata/hs06")=="N"
  1081. && model.getValue("/root/send/savedata/hs07")=="N" && model.getValue("/root/send/savedata/hs08")=="N"
  1082. && model.getValue("/root/send/savedata/hs09")=="N" && model.getValue("/root/send/savedata/hs10")=="N"){
  1083. messageBox("과거력 및 위험요인은 필수입력 항목입니다.", "I");
  1084. model.setFocus("chk_hs09");
  1085. vFlag = 0;
  1086. return;
  1087. }
  1088. //내원일시
  1089. if(model.getValue("/root/main/kcvainfo/indt")=="" || model.getValue("/root/main/kcvainfo/indt")=="-"){
  1090. messageBox("내원일시는 필수입력 항목입니다.", "I");
  1091. model.setFocus("ipt_indt");
  1092. vFlag = 0;
  1093. return;
  1094. }
  1095. if(model.getValue("/root/main/kcvainfo/intm")=="" || model.getValue("/root/main/kcvainfo/intm")=="-"){
  1096. messageBox("내원일시는 필수입력 항목입니다.", "I");
  1097. model.setFocus("ipt_intm");
  1098. vFlag = 0;
  1099. return;
  1100. }
  1101. //전원 보낸 의료기관명
  1102. if( model.getValue("/root/main/kcvainfo/fhcd") == "" ) model.setValue("/root/send/savedata/fhcd", "-");
  1103. if( model.getValue("/root/main/kcvainfo/fhcdnm") == "" ) model.setValue("/root/send/savedata/fhcdnm", "-");
  1104. //전원 보낸 의료기관종류
  1105. if( model.getValue("/root/main/kcvainfo/intp") == "" ) model.setValue("/root/send/savedata/intp", "-");
  1106. //전원 보낸 의료기관명(기타)
  1107. if( model.getValue("/root/main/kcvainfo/fhnm") == "" ) model.setValue("/root/send/savedata/fhnm", "-");
  1108. //전원 보낸 사유
  1109. if( model.getValue("/root/main/kcvainfo/fhrs") == "" ) model.setValue("/root/send/savedata/fhrs", "-");
  1110. //구급활동일지번호
  1111. if( model.getValue("/root/main/kcvainfo/dsid") == "" ) model.setValue("/root/send/savedata/dsid", "-");
  1112. if( model.getValue("/root/main/kcvainfo/reid") == "" ) model.setValue("/root/send/savedata/reid", "-");
  1113. //증상발생일시
  1114. if( model.getValue("/root/main/kcvainfo/akdt") == "" ) model.setValue("/root/send/savedata/dsid", "-");
  1115. if( model.getValue("/root/main/kcvainfo/aktm") == "" ) model.setValue("/root/send/savedata/aktm", "-");
  1116. if(fChkAkDTCalculate("증상발생일시","/root/main/kcvainfo/aketc", model.getValue("/root/main/kcvainfo/akdt"), model.getValue("/root/main/kcvainfo/aktm"),
  1117. "ipt_akdt", "ipt_aktm", "Ak") == false ){
  1118. vFlag = 0;
  1119. return;
  1120. }
  1121. //마지막 정상일시
  1122. if(model.getValue("/root/main/kcvainfo/lndt")=="" || model.getValue("/root/main/kcvainfo/lndt")=="-"){
  1123. messageBox("마지막 정상일시는 필수입력 항목입니다.", "I");
  1124. model.setFocus("ipt_lndt");
  1125. vFlag = 0;
  1126. return;
  1127. }
  1128. if(model.getValue("/root/main/kcvainfo/lntm")=="" || model.getValue("/root/main/kcvainfo/lntm")=="-"){
  1129. messageBox("마지막 정상일시는 필수입력 항목입니다.", "I");
  1130. model.setFocus("ipt_lntm");
  1131. vFlag = 0;
  1132. return;
  1133. }
  1134. if(fChkAkDTCalculate("마지막 정상일시","/root/main/kcvainfo/lnetc", model.getValue("/root/main/kcvainfo/lndt"), model.getValue("/root/main/kcvainfo/lntm"),
  1135. "ipt_lndt", "ipt_lntm", "Ln") == false ){
  1136. vFlag = 0;
  1137. return;
  1138. }
  1139. //내원 시 증상
  1140. if( model.getValue("/root/main/kcvainfo/ins1") == "" ) model.setValue("/root/send/savedata/ins1", "N");
  1141. if( model.getValue("/root/main/kcvainfo/ins2") == "" ) model.setValue("/root/send/savedata/ins2", "N");
  1142. if( model.getValue("/root/main/kcvainfo/ins3") == "" ) model.setValue("/root/send/savedata/ins3", "N");
  1143. if( model.getValue("/root/main/kcvainfo/ins4") == "" ) model.setValue("/root/send/savedata/ins4", "N");
  1144. if( model.getValue("/root/main/kcvainfo/ins5") == "" ) model.setValue("/root/send/savedata/ins5", "N");
  1145. if( model.getValue("/root/main/kcvainfo/ins6") == "" ) model.setValue("/root/send/savedata/ins6", "N");
  1146. if( model.getValue("/root/main/kcvainfo/ins7") == "" ) model.setValue("/root/send/savedata/ins7", "N");
  1147. if( model.getValue("/root/main/kcvainfo/ins8") == "" ) model.setValue("/root/send/savedata/ins8", "N");
  1148. if( model.getValue("/root/main/kcvainfo/ins9") == "" ) model.setValue("/root/send/savedata/ins9", "N");
  1149. if(model.getValue("/root/send/savedata/ins1")=="N" && model.getValue("/root/send/savedata/ins2")=="N"
  1150. && model.getValue("/root/send/savedata/ins3")=="N" && model.getValue("/root/send/savedata/ins4")=="N"
  1151. && model.getValue("/root/send/savedata/ins5")=="N" && model.getValue("/root/send/savedata/ins6")=="N"
  1152. && model.getValue("/root/send/savedata/ins7")=="N" && model.getValue("/root/send/savedata/ins8")=="N"
  1153. && model.getValue("/root/send/savedata/ins9")=="N"){
  1154. messageBox("내원 시 증상은 필수입력 항목입니다.", "I");
  1155. model.setFocus("chk_ins1");
  1156. vFlag = 0;
  1157. return;
  1158. }
  1159. //의식수준
  1160. if(model.getValue("/root/main/kcvainfo/resp")=="" || model.getValue("/root/main/kcvainfo/resp")=="-"){
  1161. messageBox("의식수준은 필수입력 항목입니다.", "I");
  1162. model.setFocus("cmb_resp");
  1163. vFlag = 0;
  1164. return;
  1165. }
  1166. //GCS 측정(눈)
  1167. if(model.getValue("/root/main/kcvainfo/gcse")==""){
  1168. messageBox("GCS 측정(눈)은 필수입력 항목입니다.", "I");
  1169. model.setFocus("cmb_gcse");
  1170. vFlag = 0;
  1171. return;
  1172. }
  1173. //GCS 측정(언어)
  1174. if(model.getValue("/root/main/kcvainfo/gcsv")==""){
  1175. messageBox("GCS 측정(언어)은 필수입력 항목입니다.", "I");
  1176. model.setFocus("cmb_gcsv");
  1177. vFlag = 0;
  1178. return;
  1179. }
  1180. //GCS 측정(운동)
  1181. if(model.getValue("/root/main/kcvainfo/gcsm")==""){
  1182. messageBox("GCS 측정(운동)은 필수입력 항목입니다.", "I");
  1183. model.setFocus("cmb_gcsm");
  1184. vFlag = 0;
  1185. return;
  1186. }
  1187. //수축기 혈압
  1188. if( model.getValue("/root/main/kcvainfo/hibp") == "" ) model.setValue("/root/send/savedata/hibp", "999");
  1189. //맥박
  1190. if( model.getValue("/root/main/kcvainfo/puls") == "" ) model.setValue("/root/send/savedata/puls", "999");
  1191. //호흡
  1192. if( model.getValue("/root/main/kcvainfo/brth") == "" ) model.setValue("/root/send/savedata/brth", "999");
  1193. //체온
  1194. if( model.getValue("/root/main/kcvainfo/bdht") == "" ) model.setValue("/root/send/savedata/bdht", "99.9");
  1195. //응급실 퇴실일시
  1196. if( model.getValue("/root/main/kcvainfo/otdt") == "" ) model.setValue("/root/send/savedata/otdt", "-");
  1197. if( model.getValue("/root/main/kcvainfo/ottm") == "" ) model.setValue("/root/send/savedata/ottm", "-");
  1198. //퇴원일시
  1199. if( model.getValue("/root/main/kcvainfo/dcdt") == "" ) model.setValue("/root/send/savedata/dcdt", "-");
  1200. if( model.getValue("/root/main/kcvainfo/dctm") == "" ) model.setValue("/root/send/savedata/dctm", "-");
  1201. //입원 후 결과
  1202. if( model.getValue("/root/main/kcvainfo/dcrt") == "" ) model.setValue("/root/send/savedata/dcdt", "-");
  1203. //최초 두부영상검사 실시여부
  1204. if( model.getValue("/root/main/kcvainfo/his1") == "" ) model.setValue("/root/send/savedata/his1", "N");
  1205. if( model.getValue("/root/main/kcvainfo/his2") == "" ) model.setValue("/root/send/savedata/his2", "N");
  1206. if( model.getValue("/root/main/kcvainfo/his3") == "" ) model.setValue("/root/send/savedata/his3", "N");
  1207. if( model.getValue("/root/main/kcvainfo/his4") == "" ) model.setValue("/root/send/savedata/his4", "N");
  1208. if( model.getValue("/root/main/kcvainfo/his5") == "" ) model.setValue("/root/send/savedata/his5", "N");
  1209. if(model.getValue("/root/send/savedata/his1")=="N" && model.getValue("/root/send/savedata/his2")=="N"
  1210. && model.getValue("/root/send/savedata/his3")=="N" && model.getValue("/root/send/savedata/his4")=="N"
  1211. && model.getValue("/root/send/savedata/his5")=="N"){
  1212. messageBox("최초 두부영상검사 실시여부는 필수입력 항목입니다.", "I");
  1213. model.setFocus("chk_his5");
  1214. vFlag = 0;
  1215. return;
  1216. }
  1217. //두부영상(CT) 최초 촬영일자
  1218. if( model.getValue("/root/main/kcvainfo/his1") == "Y" ){
  1219. if(model.getValue("/root/main/kcvainfo/hid1")=="" || model.getValue("/root/main/kcvainfo/hid1")=="-"){
  1220. messageBox("두부영상(CT) 최초 촬영일시는 필수입력 항목입니다.", "I");
  1221. model.setFocus("ipt_hid1");
  1222. vFlag = 0;
  1223. return;
  1224. }
  1225. if(model.getValue("/root/main/kcvainfo/hit1")=="" || model.getValue("/root/main/kcvainfo/hit1")=="-"){
  1226. messageBox("두부영상(CT) 최초 촬영일시는 필수입력 항목입니다.", "I");
  1227. model.setFocus("ipt_hit1");
  1228. vFlag = 0;
  1229. return;
  1230. }
  1231. if(fChkDTCalculate("두부영상(CT) 최초 촬영일시","/root/main/kcvainfo/hi1etc", model.getValue("/root/main/kcvainfo/hid1"), model.getValue("/root/main/kcvainfo/hit1"),
  1232. "ipt_hid1", "ipt_hit1") == false ){
  1233. vFlag = 0;
  1234. return;
  1235. }
  1236. }else{
  1237. if( model.getValue("/root/main/kcvainfo/hid1") == "" ) model.setValue("/root/send/savedata/hid1", "-");
  1238. if( model.getValue("/root/main/kcvainfo/hit1") == "" ) model.setValue("/root/send/savedata/hit1", "-");
  1239. }
  1240. //두부영상(MRI) 최초 촬영일자
  1241. if( model.getValue("/root/main/kcvainfo/his2") == "Y" ){
  1242. if(model.getValue("/root/main/kcvainfo/hid2")=="" || model.getValue("/root/main/kcvainfo/hid2")=="-"){
  1243. messageBox("두부영상(MRI) 최초 촬영일시는 필수입력 항목입니다.", "I");
  1244. model.setFocus("ipt_hid2");
  1245. vFlag = 0;
  1246. return;
  1247. }
  1248. if(model.getValue("/root/main/kcvainfo/hit2")=="" || model.getValue("/root/main/kcvainfo/hit2")=="-"){
  1249. messageBox("두부영상(MRI) 최초 촬영일시는 필수입력 항목입니다.", "I");
  1250. model.setFocus("ipt_hit2");
  1251. vFlag = 0;
  1252. return;
  1253. }
  1254. if(fChkDTCalculate("두부영상(MRI) 최초 촬영일시","/root/main/kcvainfo/hi2etc", model.getValue("/root/main/kcvainfo/hid2"), model.getValue("/root/main/kcvainfo/hit2"),
  1255. "ipt_hid2", "ipt_hit2") == false ){
  1256. vFlag = 0;
  1257. return;
  1258. }
  1259. }else{
  1260. if( model.getValue("/root/main/kcvainfo/hid2") == "" ) model.setValue("/root/send/savedata/hid2", "-");
  1261. if( model.getValue("/root/main/kcvainfo/hit2") == "" ) model.setValue("/root/send/savedata/hit2", "-");
  1262. }
  1263. //두부영상(CT/MRI) 판정결과
  1264. if(rdo_hirt.disabled == false){
  1265. if(model.getValue("/root/main/kcvainfo/hirt") == "" || model.getValue("/root/main/kcvainfo/hirt") == "-"){
  1266. messageBox("두부영상(CT/MRI) 판정결과는 필수입력 항목입니다.", "I");
  1267. model.setFocus("rdo_hirt");
  1268. vFlag = 0;
  1269. return;
  1270. }
  1271. }else{
  1272. model.setValue("/root/send/savedata/hirt", "-");
  1273. }
  1274. //응급뇌질환의 치료 방법
  1275. if( model.getValue("/root/main/kcvainfo/htm1") == "" ) model.setValue("/root/send/savedata/htm1", "N");
  1276. if( model.getValue("/root/main/kcvainfo/htm2") == "" ) model.setValue("/root/send/savedata/htm2", "N");
  1277. if( model.getValue("/root/main/kcvainfo/htm3") == "" ) model.setValue("/root/send/savedata/htm3", "N");
  1278. if( model.getValue("/root/main/kcvainfo/htm4") == "" ) model.setValue("/root/send/savedata/htm4", "N");
  1279. if( model.getValue("/root/main/kcvainfo/htm5") == "" ) model.setValue("/root/send/savedata/htm5", "N");
  1280. if( model.getValue("/root/main/kcvainfo/htm6") == "" ) model.setValue("/root/send/savedata/htm6", "N");
  1281. if( model.getValue("/root/main/kcvainfo/htm7") == "" ) model.setValue("/root/send/savedata/htm7", "N");
  1282. if( model.getValue("/root/main/kcvainfo/htm8") == "" ) model.setValue("/root/send/savedata/htm8", "N");
  1283. if( model.getValue("/root/main/kcvainfo/htm9") == "" ) model.setValue("/root/send/savedata/htm9", "N");
  1284. if( model.getValue("/root/main/kcvainfo/htma") == "" ) model.setValue("/root/send/savedata/htma", "N");
  1285. if( model.getValue("/root/main/kcvainfo/htmb") == "" ) model.setValue("/root/send/savedata/htmb", "N");
  1286. if( model.getValue("/root/main/kcvainfo/htmc") == "" ) model.setValue("/root/send/savedata/htmc", "N");
  1287. if( model.getValue("/root/main/kcvainfo/htmd") == "" ) model.setValue("/root/send/savedata/htmd", "N");
  1288. if(model.getValue("/root/send/savedata/htm1")=="N" && model.getValue("/root/send/savedata/htm2")=="N"
  1289. && model.getValue("/root/send/savedata/htm3")=="N" && model.getValue("/root/send/savedata/htm4")=="N"
  1290. && model.getValue("/root/send/savedata/htm5")=="N" && model.getValue("/root/send/savedata/htm6")=="N"
  1291. && model.getValue("/root/send/savedata/htm7")=="N" && model.getValue("/root/send/savedata/htm8")=="N"
  1292. && model.getValue("/root/send/savedata/htm9")=="N" && model.getValue("/root/send/savedata/htma")=="N"
  1293. && model.getValue("/root/send/savedata/htmb")=="N" && model.getValue("/root/send/savedata/htmc")=="N"
  1294. && model.getValue("/root/send/savedata/htmd")=="N"){
  1295. messageBox("응급뇌질환의 치료 방법은 필수입력 항목입니다.", "I");
  1296. model.setFocus("chk_htmd");
  1297. vFlag = 0;
  1298. return;
  1299. }
  1300. //시술 및 수술 일자(경정맥혈전용해술)
  1301. if( model.getValue("/root/main/kcvainfo/htm1") == "Y" ){
  1302. if(model.getValue("/root/main/kcvainfo/htd1")=="" || model.getValue("/root/main/kcvainfo/htd1")=="-"){
  1303. messageBox("시술 및 수술 일자(경정맥혈전용해술)는 필수입력 항목입니다.", "I");
  1304. model.setFocus("ipt_htd1");
  1305. vFlag = 0;
  1306. return;
  1307. }
  1308. if(model.getValue("/root/main/kcvainfo/htt1")=="" || model.getValue("/root/main/kcvainfo/htt1")=="-"){
  1309. messageBox("시술 및 수술 일자(경정맥혈전용해술)는 필수입력 항목입니다.", "I");
  1310. model.setFocus("ipt_htt1");
  1311. vFlag = 0;
  1312. return;
  1313. }
  1314. if(fChkDTCalculate("시술 및 수술 일자(경정맥혈전용해술)","/root/main/kcvainfo/ht1etc", model.getValue("/root/main/kcvainfo/htd1"), model.getValue("/root/main/kcvainfo/htt1"),
  1315. "ipt_htd1", "ipt_htt1") == false ){
  1316. vFlag = 0;
  1317. return;
  1318. }
  1319. }else{
  1320. if( model.getValue("/root/main/kcvainfo/htd1") == "" ) model.setValue("/root/send/savedata/htd1", "-");
  1321. if( model.getValue("/root/main/kcvainfo/htt1") == "" ) model.setValue("/root/send/savedata/htt1", "-");
  1322. }
  1323. //시술 및 수술 일자(경동맥혈전용해술)
  1324. if( model.getValue("/root/main/kcvainfo/htm2") == "Y" ){
  1325. if(model.getValue("/root/main/kcvainfo/htd2")=="" || model.getValue("/root/main/kcvainfo/htd2")=="-"){
  1326. messageBox("시술 및 수술 일자(경동맥혈전용해술)는 필수입력 항목입니다.", "I");
  1327. model.setFocus("ipt_htd2");
  1328. vFlag = 0;
  1329. return;
  1330. }
  1331. if(model.getValue("/root/main/kcvainfo/htt2")=="" || model.getValue("/root/main/kcvainfo/htt2")=="-"){
  1332. messageBox("시술 및 수술 일자(경동맥혈전용해술)는 필수입력 항목입니다.", "I");
  1333. model.setFocus("ipt_htt2");
  1334. vFlag = 0;
  1335. return;
  1336. }
  1337. if(fChkDTCalculate("시술 및 수술 일자(경동맥혈전용해술)","/root/main/kcvainfo/ht2etc", model.getValue("/root/main/kcvainfo/htd2"), model.getValue("/root/main/kcvainfo/htt2"),
  1338. "ipt_htd2", "ipt_htt2") == false ){
  1339. vFlag = 0;
  1340. return;
  1341. }
  1342. }else{
  1343. if( model.getValue("/root/main/kcvainfo/htd2") == "" ) model.setValue("/root/send/savedata/htd2", "-");
  1344. if( model.getValue("/root/main/kcvainfo/htt2") == "" ) model.setValue("/root/send/savedata/htt2", "-");
  1345. }
  1346. //시술 및 수술 일자(항혈소판제)
  1347. if( model.getValue("/root/main/kcvainfo/htm3") == "Y" ){
  1348. if(model.getValue("/root/main/kcvainfo/htd3")=="" || model.getValue("/root/main/kcvainfo/htd3")=="-"){
  1349. messageBox("시술 및 수술 일자(항혈소판제)는 필수입력 항목입니다.", "I");
  1350. model.setFocus("ipt_htd3");
  1351. vFlag = 0;
  1352. return;
  1353. }
  1354. if(model.getValue("/root/main/kcvainfo/htt3")=="" || model.getValue("/root/main/kcvainfo/htt3")=="-"){
  1355. messageBox("시술 및 수술 일자(항혈소판제)는 필수입력 항목입니다.", "I");
  1356. model.setFocus("ipt_htt3");
  1357. vFlag = 0;
  1358. return;
  1359. }
  1360. if(fChkDTCalculate("시술 및 수술 일자(항혈소판제)","/root/main/kcvainfo/ht3etc", model.getValue("/root/main/kcvainfo/htd3"), model.getValue("/root/main/kcvainfo/htt3"),
  1361. "ipt_htd3", "ipt_htt3") == false ){
  1362. vFlag = 0;
  1363. return;
  1364. }
  1365. }else{
  1366. if( model.getValue("/root/main/kcvainfo/htd3") == "" ) model.setValue("/root/send/savedata/htd3", "-");
  1367. if( model.getValue("/root/main/kcvainfo/htt3") == "" ) model.setValue("/root/send/savedata/htt3", "-");
  1368. }
  1369. //시술 및 수술 일자(항응고제)
  1370. if( model.getValue("/root/main/kcvainfo/htm4") == "Y" ){
  1371. if(model.getValue("/root/main/kcvainfo/htd4")=="" || model.getValue("/root/main/kcvainfo/htd4")=="-"){
  1372. messageBox("시술 및 수술 일자(항응고제)는 필수입력 항목입니다.", "I");
  1373. model.setFocus("ipt_htd4");
  1374. vFlag = 0;
  1375. return;
  1376. }
  1377. if(model.getValue("/root/main/kcvainfo/htt4")=="" || model.getValue("/root/main/kcvainfo/htt4")=="-"){
  1378. messageBox("시술 및 수술 일자(항응고제)는 필수입력 항목입니다.", "I");
  1379. model.setFocus("ipt_htt4");
  1380. vFlag = 0;
  1381. return;
  1382. }
  1383. if(fChkDTCalculate("시술 및 수술 일자(항응고제)","/root/main/kcvainfo/ht4etc", model.getValue("/root/main/kcvainfo/htd4"), model.getValue("/root/main/kcvainfo/htt4"),
  1384. "ipt_htd4", "ipt_htt4") == false ){
  1385. vFlag = 0;
  1386. return;
  1387. }
  1388. }else{
  1389. if( model.getValue("/root/main/kcvainfo/htd4") == "" ) model.setValue("/root/send/savedata/htd4", "-");
  1390. if( model.getValue("/root/main/kcvainfo/htt4") == "" ) model.setValue("/root/send/savedata/htt4", "-");
  1391. }
  1392. //시술 및 수술 일자(개두술)
  1393. if( model.getValue("/root/main/kcvainfo/htm5") == "Y" ){
  1394. if(model.getValue("/root/main/kcvainfo/htd5")=="" || model.getValue("/root/main/kcvainfo/htd5")=="-"){
  1395. messageBox("시술 및 수술 일자(개두술)는 필수입력 항목입니다.", "I");
  1396. model.setFocus("ipt_htd5");
  1397. vFlag = 0;
  1398. return;
  1399. }
  1400. if(model.getValue("/root/main/kcvainfo/htt5")=="" || model.getValue("/root/main/kcvainfo/htt5")=="-"){
  1401. messageBox("시술 및 수술 일자(개두술)는 필수입력 항목입니다.", "I");
  1402. model.setFocus("ipt_htt5");
  1403. vFlag = 0;
  1404. return;
  1405. }
  1406. if(fChkDTCalculate("시술 및 수술 일자(개두술)","/root/main/kcvainfo/ht5etc", model.getValue("/root/main/kcvainfo/htd5"), model.getValue("/root/main/kcvainfo/htt5"),
  1407. "ipt_htd5", "ipt_htt5") == false ){
  1408. vFlag = 0;
  1409. return;
  1410. }
  1411. }else{
  1412. if( model.getValue("/root/main/kcvainfo/htd5") == "" ) model.setValue("/root/send/savedata/htd5", "-");
  1413. if( model.getValue("/root/main/kcvainfo/htt5") == "" ) model.setValue("/root/send/savedata/htt5", "-");
  1414. }
  1415. //시술 및 수술 일자(정위적 흡인술)
  1416. if( model.getValue("/root/main/kcvainfo/htm6") == "Y" ){
  1417. if(model.getValue("/root/main/kcvainfo/htd6")=="" || model.getValue("/root/main/kcvainfo/htd6")=="-"){
  1418. messageBox("시술 및 수술 일자(정위적 흡인술)는 필수입력 항목입니다.", "I");
  1419. model.setFocus("ipt_htd6");
  1420. vFlag = 0;
  1421. return;
  1422. }
  1423. if(model.getValue("/root/main/kcvainfo/htt6")=="" || model.getValue("/root/main/kcvainfo/htt6")=="-"){
  1424. messageBox("시술 및 수술 일자(정위적 흡인술)는 필수입력 항목입니다.", "I");
  1425. model.setFocus("ipt_htt6");
  1426. vFlag = 0;
  1427. return;
  1428. }
  1429. if(fChkDTCalculate("시술 및 수술 일자(정위적 흡인술)","/root/main/kcvainfo/ht6etc", model.getValue("/root/main/kcvainfo/htd6"), model.getValue("/root/main/kcvainfo/htt6"),
  1430. "ipt_htd6", "ipt_htt6") == false ){
  1431. vFlag = 0;
  1432. return;
  1433. }
  1434. }else{
  1435. if( model.getValue("/root/main/kcvainfo/htd6") == "" ) model.setValue("/root/send/savedata/htd6", "-");
  1436. if( model.getValue("/root/main/kcvainfo/htt6") == "" ) model.setValue("/root/send/savedata/htt6", "-");
  1437. }
  1438. //시술 및 수술 일자(감압성 두개절제술)
  1439. if( model.getValue("/root/main/kcvainfo/htm7") == "Y" ){
  1440. if(model.getValue("/root/main/kcvainfo/htd7")=="" || model.getValue("/root/main/kcvainfo/htd7")=="-"){
  1441. messageBox("시술 및 수술 일자(감압성 두개절제술)는 필수입력 항목입니다.", "I");
  1442. model.setFocus("ipt_htd7");
  1443. vFlag = 0;
  1444. return;
  1445. }
  1446. if(model.getValue("/root/main/kcvainfo/htt7")=="" || model.getValue("/root/main/kcvainfo/htt7")=="-"){
  1447. messageBox("시술 및 수술 일자(감압성 두개절제술)는 필수입력 항목입니다.", "I");
  1448. model.setFocus("ipt_htt7");
  1449. vFlag = 0;
  1450. return;
  1451. }
  1452. if(fChkDTCalculate("시술 및 수술 일자(감압성 두개절제술)","/root/main/kcvainfo/ht7etc", model.getValue("/root/main/kcvainfo/htd7"), model.getValue("/root/main/kcvainfo/htt7"),
  1453. "ipt_htd7", "ipt_htt7") == false ){
  1454. vFlag = 0;
  1455. return;
  1456. }
  1457. }else{
  1458. if( model.getValue("/root/main/kcvainfo/htd7") == "" ) model.setValue("/root/send/savedata/htd7", "-");
  1459. if( model.getValue("/root/main/kcvainfo/htt7") == "" ) model.setValue("/root/send/savedata/htt7", "-");
  1460. }
  1461. //시술 및 수술 일자(뇌실외 배액술)
  1462. if( model.getValue("/root/main/kcvainfo/htm8") == "Y" ){
  1463. if(model.getValue("/root/main/kcvainfo/htd8")=="" || model.getValue("/root/main/kcvainfo/htd8")=="-"){
  1464. messageBox("시술 및 수술 일자(뇌실외 배액술)는 필수입력 항목입니다.", "I");
  1465. model.setFocus("ipt_htd8");
  1466. vFlag = 0;
  1467. return;
  1468. }
  1469. if(model.getValue("/root/main/kcvainfo/htt8")=="" || model.getValue("/root/main/kcvainfo/htt8")=="-"){
  1470. messageBox("시술 및 수술 일자(뇌실외 배액술)는 필수입력 항목입니다.", "I");
  1471. model.setFocus("ipt_htt8");
  1472. vFlag = 0;
  1473. return;
  1474. }
  1475. if(fChkDTCalculate("시술 및 수술 일자(뇌실외 배액술)","/root/main/kcvainfo/ht8etc", model.getValue("/root/main/kcvainfo/htd8"), model.getValue("/root/main/kcvainfo/htt8"),
  1476. "ipt_htd8", "ipt_htt8") == false ){
  1477. vFlag = 0;
  1478. return;
  1479. }
  1480. }else{
  1481. if( model.getValue("/root/main/kcvainfo/htd8") == "" ) model.setValue("/root/send/savedata/htd8", "-");
  1482. if( model.getValue("/root/main/kcvainfo/htt8") == "" ) model.setValue("/root/send/savedata/htt8", "-");
  1483. }
  1484. //시술 및 수술 일자(뇌압감시)
  1485. if( model.getValue("/root/main/kcvainfo/htm9") == "Y" ){
  1486. if(model.getValue("/root/main/kcvainfo/htd9")=="" || model.getValue("/root/main/kcvainfo/htd9")=="-"){
  1487. messageBox("시술 및 수술 일자(뇌압감시)는 필수입력 항목입니다.", "I");
  1488. model.setFocus("ipt_htd9");
  1489. vFlag = 0;
  1490. return;
  1491. }
  1492. if(model.getValue("/root/main/kcvainfo/htt9")=="" || model.getValue("/root/main/kcvainfo/htt9")=="-"){
  1493. messageBox("시술 및 수술 일자(뇌압감시)는 필수입력 항목입니다.", "I");
  1494. model.setFocus("ipt_htt9");
  1495. vFlag = 0;
  1496. return;
  1497. }
  1498. if(fChkDTCalculate("시술 및 수술 일자(뇌압감시)","/root/main/kcvainfo/ht9etc", model.getValue("/root/main/kcvainfo/htd9"), model.getValue("/root/main/kcvainfo/htt9"),
  1499. "ipt_htd9", "ipt_htt9") == false ){
  1500. vFlag = 0;
  1501. return;
  1502. }
  1503. }else{
  1504. if( model.getValue("/root/main/kcvainfo/htd9") == "" ) model.setValue("/root/send/savedata/htd9", "-");
  1505. if( model.getValue("/root/main/kcvainfo/htt9") == "" ) model.setValue("/root/send/savedata/htt9", "-");
  1506. }
  1507. //시술 및 수술 일자(혈관중재시술)
  1508. if( model.getValue("/root/main/kcvainfo/htma") == "Y" ){
  1509. if(model.getValue("/root/main/kcvainfo/htda")=="" || model.getValue("/root/main/kcvainfo/htda")=="-"){
  1510. messageBox("시술 및 수술 일자(혈관중재시술)는 필수입력 항목입니다.", "I");
  1511. model.setFocus("ipt_htda");
  1512. vFlag = 0;
  1513. return;
  1514. }
  1515. if(model.getValue("/root/main/kcvainfo/htta")=="" || model.getValue("/root/main/kcvainfo/htta")=="-"){
  1516. messageBox("시술 및 수술 일자(혈관중재시술)는 필수입력 항목입니다.", "I");
  1517. model.setFocus("ipt_htta");
  1518. vFlag = 0;
  1519. return;
  1520. }
  1521. if(fChkDTCalculate("시술 및 수술 일자(혈관중재시술)","/root/main/kcvainfo/htaetc", model.getValue("/root/main/kcvainfo/htda"), model.getValue("/root/main/kcvainfo/htta"),
  1522. "ipt_htda", "ipt_htta") == false ){
  1523. vFlag = 0;
  1524. return;
  1525. }
  1526. }else{
  1527. if( model.getValue("/root/main/kcvainfo/htda") == "" ) model.setValue("/root/send/savedata/htda", "-");
  1528. if( model.getValue("/root/main/kcvainfo/htta") == "" ) model.setValue("/root/send/savedata/htta", "-");
  1529. }
  1530. //혈전용해술 미실시 사유
  1531. if(grp_tlu.disabled == false){
  1532. if( model.getValue("/root/main/kcvainfo/tlu1") == "" ) model.setValue("/root/send/savedata/tlu1", "N");
  1533. if( model.getValue("/root/main/kcvainfo/tlu2") == "" ) model.setValue("/root/send/savedata/tlu2", "N");
  1534. if( model.getValue("/root/main/kcvainfo/tlu3") == "" ) model.setValue("/root/send/savedata/tlu3", "N");
  1535. if( model.getValue("/root/main/kcvainfo/tlu4") == "" ) model.setValue("/root/send/savedata/tlu4", "N");
  1536. if( model.getValue("/root/main/kcvainfo/tlu5") == "" ) model.setValue("/root/send/savedata/tlu5", "N");
  1537. if( model.getValue("/root/main/kcvainfo/tlu6") == "" ) model.setValue("/root/send/savedata/tlu6", "N");
  1538. if( model.getValue("/root/main/kcvainfo/tlu7") == "" ) model.setValue("/root/send/savedata/tlu7", "N");
  1539. if( model.getValue("/root/main/kcvainfo/tlu8") == "" ) model.setValue("/root/send/savedata/tlu8", "N");
  1540. if(model.getValue("/root/send/savedata/tlu1")=="N" && model.getValue("/root/send/savedata/tlu2")=="N"
  1541. && model.getValue("/root/send/savedata/tlu3")=="N" && model.getValue("/root/send/savedata/tlu4")=="N"
  1542. && model.getValue("/root/send/savedata/tlu5")=="N" && model.getValue("/root/send/savedata/tlu6")=="N"
  1543. && model.getValue("/root/send/savedata/tlu7")=="N" && model.getValue("/root/send/savedata/tlu8")=="N"){
  1544. messageBox("혈전용해술 미실시 사유는 필수입력 항목입니다.", "I");
  1545. model.setFocus("grp_tlu");
  1546. vFlag = 0;
  1547. return;
  1548. }
  1549. }else{
  1550. if( model.getValue("/root/main/kcvainfo/tlu1") == "" ) model.setValue("/root/send/savedata/tlu1", "-");
  1551. if( model.getValue("/root/main/kcvainfo/tlu2") == "" ) model.setValue("/root/send/savedata/tlu2", "-");
  1552. if( model.getValue("/root/main/kcvainfo/tlu3") == "" ) model.setValue("/root/send/savedata/tlu3", "-");
  1553. if( model.getValue("/root/main/kcvainfo/tlu4") == "" ) model.setValue("/root/send/savedata/tlu4", "-");
  1554. if( model.getValue("/root/main/kcvainfo/tlu5") == "" ) model.setValue("/root/send/savedata/tlu5", "-");
  1555. if( model.getValue("/root/main/kcvainfo/tlu6") == "" ) model.setValue("/root/send/savedata/tlu6", "-");
  1556. if( model.getValue("/root/main/kcvainfo/tlu7") == "" ) model.setValue("/root/send/savedata/tlu7", "-");
  1557. if( model.getValue("/root/main/kcvainfo/tlu8") == "" ) model.setValue("/root/send/savedata/tlu8", "-");
  1558. }
  1559. //응급진료결과 또는 입원 후 결과가 ‘전원’ 인 경우
  1560. if(model.getValue("/root/main/kcvainfo/emrt").substr(0,1) == "2" || model.getValue("/root/main/kcvainfo/dcrt") == "3"){ //전원
  1561. //20110502_KNUH_Start 의료기관종류가 기타이거나 모름일 경우 전원보낼 의료기관값 '-'가 되도록 변경.
  1562. if(model.getValue("/root/main/kcvainfo/dctp") == "8" || model.getValue("/root/main/kcvainfo/dctp") == "9") {
  1563. model.setValue("/root/main/kcvainfo/thcd", "-");
  1564. model.setValue("/root/main/kcvainfo/thcdnm", "-");
  1565. } else {
  1566. //전원 보낼 의료기관명
  1567. if(model.getValue("/root/main/kcvainfo/thcd")=="" || model.getValue("/root/main/kcvainfo/thcd")=="-"){
  1568. messageBox("전원 보낼 의료기관명은 필수입력 항목입니다.", "I");
  1569. model.setFocus("btn_thcdinfo");
  1570. vFlag = 0;
  1571. return;
  1572. }
  1573. //전원 보낼 의료기관종류
  1574. if(model.getValue("/root/main/kcvainfo/dctp")=="" || model.getValue("/root/main/kcvainfo/dctp")=="-"){
  1575. messageBox("전원 보낼 의료기관종류는 필수입력 항목입니다.", "I");
  1576. model.setFocus("cmb_dctp");
  1577. vFlag = 0;
  1578. return;
  1579. }
  1580. }
  1581. //20110502_KNUH_End
  1582. //전원 시 이송 수단
  1583. if(model.getValue("/root/main/kcvainfo/thtm")=="" || model.getValue("/root/main/kcvainfo/thtm")=="-"){
  1584. messageBox("전원 시 이송 수단은 필수입력 항목입니다.", "I");
  1585. model.setFocus("rdo_thtm");
  1586. vFlag = 0;
  1587. return;
  1588. }
  1589. //전원 시 동승인력
  1590. if( model.getValue("/root/main/kcvainfo/thp1") == "" ) model.setValue("/root/send/savedata/thp1", "N");
  1591. if( model.getValue("/root/main/kcvainfo/thp2") == "" ) model.setValue("/root/send/savedata/thp2", "N");
  1592. if( model.getValue("/root/main/kcvainfo/thp3") == "" ) model.setValue("/root/send/savedata/thp3", "N");
  1593. if( model.getValue("/root/main/kcvainfo/thp4") == "" ) model.setValue("/root/send/savedata/thp4", "N");
  1594. if(model.getValue("/root/main/kcvainfo/thp1")=="N" && model.getValue("/root/main/kcvainfo/thp2")=="N"
  1595. && model.getValue("/root/main/kcvainfo/thp3")=="N" && model.getValue("/root/main/kcvainfo/thp4")=="N"){
  1596. messageBox("전원 시 동승인력은 필수입력 항목입니다.", "I");
  1597. model.setFocus("chk_thp1");
  1598. vFlag = 0;
  1599. return;
  1600. }
  1601. //전원병원 선정 방법
  1602. if(model.getValue("/root/main/kcvainfo/thdp")=="" || model.getValue("/root/main/kcvainfo/thdp")=="-"){
  1603. messageBox("전원병원 선정 방법은 필수입력 항목입니다.", "I");
  1604. model.setFocus("rdo_thdp");
  1605. vFlag = 0;
  1606. return;
  1607. }
  1608. }else{
  1609. //전원 보낼 의료기관명
  1610. if( model.getValue("/root/main/kcvainfo/thcd") == "" ) model.setValue("/root/send/savedata/thcd", "-");
  1611. //전원 보낼 의료기관명(기타)
  1612. if( model.getValue("/root/main/kcvainfo/thnm") == "" ) model.setValue("/root/send/savedata/thnm", "-");
  1613. //전원 보낼 의료기관종류
  1614. if( model.getValue("/root/main/kcvainfo/dctp") == "" ) model.setValue("/root/send/savedata/dctp", "-");
  1615. //전원 시 이송 수단
  1616. if( model.getValue("/root/main/kcvainfo/thtm") == "" ) model.setValue("/root/send/savedata/thtm", "-");
  1617. //전원 시 동승인력
  1618. if( model.getValue("/root/main/kcvainfo/thp1") == "" ) model.setValue("/root/send/savedata/thp1", "-");
  1619. if( model.getValue("/root/main/kcvainfo/thp2") == "" ) model.setValue("/root/send/savedata/thp2", "-");
  1620. if( model.getValue("/root/main/kcvainfo/thp3") == "" ) model.setValue("/root/send/savedata/thp3", "-");
  1621. if( model.getValue("/root/main/kcvainfo/thp4") == "" ) model.setValue("/root/send/savedata/thp4", "-");
  1622. //전원병원 선정 방법
  1623. if( model.getValue("/root/main/kcvainfo/thdp") == "" ) model.setValue("/root/send/savedata/thdp", "-");
  1624. }
  1625. //재활 치료경험
  1626. if(model.getValue("/root/main/kcvainfo/rhyn")==""){
  1627. messageBox("재활 치료경험은 필수입력 항목입니다.", "I");
  1628. model.setFocus("rdo_rhyn");
  1629. vFlag = 0;
  1630. return;
  1631. }
  1632. //협의진료의뢰일
  1633. if(ipt_rhdt.disabled == false){
  1634. if(model.getValue("/root/main/kcvainfo/rhdt")==""|| model.getValue("/root/main/kcvainfo/rhdt")=="-"){
  1635. messageBox("협의진료의뢰일은 필수입력 항목입니다.", "I");
  1636. model.setFocus("ipt_rhdt");
  1637. vFlag = 0;
  1638. return;
  1639. }
  1640. }else{
  1641. if( model.getValue("/root/main/kcvainfo/rhdt") == "" ) model.setValue("/root/send/savedata/rhdt", "-");
  1642. }
  1643. //응급뇌질환의 마비정보(발병전일)
  1644. if(model.getValue("/root/main/kcvainfo/pr01")==""){
  1645. messageBox("응급뇌질환의 마비정보(발병전일)는 필수입력 항목입니다.", "I");
  1646. model.setFocus("rdo_pr01");
  1647. vFlag = 0;
  1648. return;
  1649. }
  1650. //응급진료 결과(emrt) - 입원
  1651. if (model.getValue("/root/main/kamiinfo/emrt").substr(0,1) == "3") {
  1652. //응급뇌질환의 마비정보(퇴원시)
  1653. if(model.getValue("/root/main/kcvainfo/pr07")==""){
  1654. messageBox("응급뇌질환의 마비정보(퇴원시)는 필수입력 항목입니다.", "I");
  1655. model.setFocus("rdo_pr07");
  1656. vFlag = 0;
  1657. return;
  1658. }
  1659. }
  1660. //환자연락처
  1661. if( model.getValue("/root/main/kcvainfo/tele") == "" ) model.setValue("/root/send/savedata/tele", "-");
  1662. }
  1663. /**
  1664. * @desc : 임시저장버튼 클릭
  1665. * @
  1666. * @param :
  1667. * @return :
  1668. * @author : 성미연
  1669. * @---------------------------------------------------
  1670. */
  1671. function fTmpSaveData() {
  1672. if (model.getValue("/root/main/kcvainfo/status") != "") {
  1673. model.copyNode("/root/send/savedata", "/root/main/kcvainfo");
  1674. model.makeValue("/root/send/savedata/histcd", "T");
  1675. if (submit("TXMMO32701", false) == true)
  1676. {
  1677. messageBox("임시저장이", "I002");
  1678. freqGetERKcvaInfo();
  1679. }
  1680. } else {
  1681. model.alert("저장할 내용을 확인하시기 바랍니다.");
  1682. }
  1683. }
  1684. /**
  1685. * @desc : 저장버튼 클릭
  1686. * @
  1687. * @param :
  1688. * @return :
  1689. * @author : 성미연
  1690. * @---------------------------------------------------
  1691. */
  1692. function fSaveData() {
  1693. model.copyNode("/root/send/savedata", "/root/main/kcvainfo");
  1694. fsetDefault();
  1695. if(vFlag =="1") {
  1696. model.makeValue("/root/send/savedata/histcd", "O");
  1697. if (submit("TXMMO32701", false) == true)
  1698. {
  1699. messageBox("저장이", "I002");
  1700. freqGetERKcvaInfo();
  1701. }
  1702. }
  1703. }
  1704. /**
  1705. * @desc : 닫기버튼 클릭
  1706. * @
  1707. * @param :
  1708. * @return :
  1709. * @author : 성미연
  1710. * @---------------------------------------------------
  1711. */
  1712. function fClose() {
  1713. opener.javascript.Search_Brain();
  1714. model.close();
  1715. }