SMMNW07600_일반정보.xrw 105 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <wardrecinfo>
  11. <!--(20101218) 경북대 -->
  12. <nrs1cd/>
  13. <nrs1nm/>
  14. <nrs21cd/>
  15. <nrs21nm/>
  16. <nrs22cd/>
  17. <nrs22nm/>
  18. <nrs23cd/>
  19. <nrs23nm/>
  20. <nrsscore/>
  21. <!--(20101218) 경북대 -->
  22. <famytree>
  23. <existyn/>
  24. </famytree>
  25. <inmotiveinfo>
  26. <inmotive>
  27. <attackdd/>
  28. <attackdt/>
  29. <inmotive1>Y</inmotive1>
  30. <inmotive2/>
  31. <illnessflag>Y</illnessflag>
  32. </inmotive>
  33. </inmotiveinfo>
  34. <gustoinfo>
  35. <gusto>
  36. <smokinfo>
  37. <smokinfoyn/>
  38. <bfsmokinfoyn/>
  39. <smokinfocnt/>
  40. <nosmokcnstyn/>
  41. <nosmokcnst/>
  42. <nosmokcnstnm/>
  43. </smokinfo>
  44. <drunkinfo>
  45. <drunkinfoyn>1</drunkinfoyn>
  46. <drunkinfokind/>
  47. <drunkinfoterm/>
  48. </drunkinfo>
  49. <gustofoodinfo>
  50. <gustofoodyn>1</gustofoodyn>
  51. <gustofooddetl/>
  52. </gustofoodinfo>
  53. <tnsseffcinfo>
  54. <tnsseffcyn>1</tnsseffcyn>
  55. <tnsseffcdetl/>
  56. </tnsseffcinfo>
  57. </gusto>
  58. </gustoinfo>
  59. <femaleinfo>
  60. <female>
  61. <femaleinfoyn/>
  62. <female>
  63. <endmensyn>1</endmensyn>
  64. <endmensdd/>
  65. <lastmensdd/>
  66. <prgbthhisg/>
  67. <prgbthhisp/>
  68. <prgbthhisa/>
  69. <prgbthhissa/>
  70. <prgbthhisaa/>
  71. <prgbthhisl/>
  72. </female>
  73. <femaleaddinfoyn/>
  74. </female>
  75. </femaleinfo>
  76. <spcffact>
  77. <spcf>
  78. <spcffactinclyn/>
  79. <spcffactdetl/>
  80. </spcf>
  81. </spcffact>
  82. <rectmedistatinfo>
  83. <rectmedistat>
  84. <rectmedistatinfoinclyn/>
  85. <antibiodrugyn/>
  86. <rectmedistat>
  87. <drugnm/>
  88. <direc/>
  89. <orddept/>
  90. </rectmedistat>
  91. </rectmedistat>
  92. </rectmedistatinfo>
  93. <basebdinfoinclyn/>
  94. <lowbp/>
  95. <highbp/>
  96. <pulse/>
  97. <breth/>
  98. <bdtp/>
  99. <bdtppartcd/>
  100. <bdht/>
  101. <bdwt/>
  102. <bdbtype/>
  103. <bdbtyperh/>
  104. <privacy/>
  105. <jobcd/>
  106. <jobnm/>
  107. <educgrdecd/>
  108. <educgrdenm/>
  109. <religncd/>
  110. <relignnm/>
  111. <marystatcd/>
  112. <marystatnm/>
  113. <baptnm/>
  114. <indd/>
  115. <indt/>
  116. <inpathcd/>
  117. <inpathnm/>
  118. <inmthdcd/>
  119. <inmthdnm/>
  120. <inacompstcd/>
  121. <inacompstnm/>
  122. <spo2/>
  123. <relignreq/>
  124. <telflag/>
  125. <tel/>
  126. <mphone/>
  127. <etctelflag/>
  128. <etcphone1/>
  129. <etcphone2/>
  130. <bpinspyn/>
  131. <pulseinspyn/>
  132. <brethinspyn/>
  133. <bdtpinspyn/>
  134. <bdhtinspyn/>
  135. <bdwtinspyn/>
  136. <spo2inspyn/>
  137. </wardrecinfo>
  138. <init/>
  139. <famyfact>
  140. <stat/>
  141. <rela/>
  142. <hngnm/>
  143. <addr/>
  144. <detladdr/>
  145. <tel/>
  146. <mpphone/>
  147. <remfact/>
  148. <fmlyseq/>
  149. </famyfact>
  150. <histinfo>
  151. <pasthistinfo>
  152. <pasthist>
  153. <pasthistinclyn/>
  154. <pasthist>
  155. <genrdd/>
  156. <histspec/>
  157. <remfact/>
  158. </pasthist>
  159. </pasthist>
  160. </pasthistinfo>
  161. <famyhistinfo>
  162. <famyhist>
  163. <famyhistinclyn>X</famyhistinclyn>
  164. <famyhist>
  165. <famyrel/>
  166. <existyn/>
  167. <histspec/>
  168. <remfact/>
  169. </famyhist>
  170. </famyhist>
  171. </famyhistinfo>
  172. <inhistinfo>
  173. <inhist>
  174. <inhistinclyn/>
  175. <inhist>
  176. <indd/>
  177. <dschdd/>
  178. <illnm/>
  179. <orddept/>
  180. <inhistpk/>
  181. </inhist>
  182. </inhist>
  183. </inhistinfo>
  184. <ophistinfo>
  185. <ophist>
  186. <ophistinclyn/>
  187. <ophist>
  188. <opdd/>
  189. <opnm/>
  190. <orddept/>
  191. <ophistpk/>
  192. </ophist>
  193. </ophist>
  194. </ophistinfo>
  195. <allghistinfo>
  196. <allghist>
  197. <allghistinclyn/>
  198. <allghist>
  199. <genrdd/>
  200. <flag/>
  201. <allergespec/>
  202. <hosoutyn/>
  203. <comclscd/>
  204. <drugcd/>
  205. <drugnm/>
  206. <symp/>
  207. <rgstdt/>
  208. <rgster/>
  209. <cretno/>
  210. </allghist>
  211. </allghist>
  212. </allghistinfo>
  213. <vacnhistinfo>
  214. <vacnhist>
  215. <vacnhistinfoinclyn/>
  216. <dpttims/>
  217. <infparaltims/>
  218. <ahptstims/>
  219. <bhptstims/>
  220. <bhptsdrugnm/>
  221. <bcgyn/>
  222. <mmrtims/>
  223. <alivvacntims/>
  224. <deadvaccntims/>
  225. <brnmeningitistims/>
  226. <lungcoccustims/>
  227. <chickenpoxtims/>
  228. </vacnhist>
  229. </vacnhistinfo>
  230. <smokinfo>
  231. <smok>
  232. <smokinclyn/>
  233. <smok>
  234. <dosetoday/>
  235. <term/>
  236. </smok>
  237. </smok>
  238. </smokinfo>
  239. <drunkinfo>
  240. <drunk>
  241. <drunkinclyn/>
  242. <drunkinfo>
  243. <kind/>
  244. <dose/>
  245. <tims/>
  246. <term/>
  247. </drunkinfo>
  248. </drunk>
  249. </drunkinfo>
  250. <gustofoodinfo>
  251. <gustofood>
  252. <gustofoodinclyn/>
  253. <gustofood>
  254. <kind/>
  255. <dose/>
  256. <tims/>
  257. <term/>
  258. </gustofood>
  259. </gustofood>
  260. </gustofoodinfo>
  261. <tnsseffcinfo>
  262. <tnsseffc>
  263. <tnsseffcinclyn/>
  264. <tnsseffc>
  265. <tnsyn/>
  266. <tnsdetl/>
  267. </tnsseffc>
  268. </tnsseffc>
  269. </tnsseffcinfo>
  270. </histinfo>
  271. <inbfinfo>
  272. <inbfinfolist>
  273. <inbfyn/>
  274. </inbfinfolist>
  275. </inbfinfo>
  276. <allgtemp>
  277. <antitype>3</antitype>
  278. <antidesc/>
  279. <row/>
  280. <col/>
  281. </allgtemp>
  282. </main>
  283. </root>
  284. </instance>
  285. <script type="javascript">
  286. <![CDATA[
  287. function fInitEventGnrlInfo() {
  288. if(ipt_indt.value == "") {
  289. ipt_indt.value = model.getValue("/root/temp/cond/list/careinrmtm"); //입원시간
  290. }
  291. submit("TRMNW07601"); //입원전 검사실에서 기록한 기록이 있을 경우 [입원전 검사실]버튼이 생성
  292. if(model.getValue("/root/main/inbfinfo/inbfinfolist/inbfyn") == "Y"){
  293. bnt_testroom.visible =true;
  294. } else {
  295. bnt_testroom.visible =false;
  296. }
  297. if(model.getValue("/root/temp/cond/list/sex") == "M") {
  298. model.setValue("/root/main/wardrecinfo/femaleinfo/female/femaleinfoyn", "1");
  299. }
  300. // cmb_job.dispatch("xforms-value-changed");
  301. // cmb_relign.dispatch("xforms-value-changed");
  302. // cmb_educgrde.dispatch("xforms-value-changed");
  303. // cmb_marystat.dispatch("xforms-value-changed");
  304. var privacychk = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='W25']/cdid");
  305. if(privacychk == "N"){
  306. model.setValue("/root/main/wardrecinfo/privacy", "");
  307. chk_privacy.visible = false;
  308. cap_educgrde.visible = true;
  309. cmb_educgrde.visible = true;
  310. ipt_educgrde.visible = true;
  311. }else{
  312. chk_privacy.visible = true;
  313. cap_educgrde.visible = false;
  314. cmb_educgrde.visible = false;
  315. ipt_educgrde.visible = false;
  316. }
  317. if(model.getValue("/root/main/wardrecinfo/privacy") == "Y"){
  318. cmb_job.disabled = true;
  319. ipt_job.disabled = true;
  320. cmb_relign.disabled = true;
  321. ipt_relignnm.disabled = true;
  322. cmb_marystat.disabled = true;
  323. ipt_marystatnm.disabled = true;
  324. cap_baptnm.visible = false;
  325. ipt_baptnm.visible = false;
  326. }else{
  327. cmb_job.disabled = false;
  328. cmb_relign.disabled = false;
  329. cmb_marystat.disabled = false;
  330. cmb_job.dispatch("xforms-value-changed");
  331. cmb_relign.dispatch("xforms-value-changed");
  332. cmb_educgrde.dispatch("xforms-value-changed");
  333. cmb_marystat.dispatch("xforms-value-changed");
  334. }
  335. if(model.getValue("/root/main/wardrecinfo/basebdinfoinclyn") == "1") {
  336. chk_basebdinfoinclyn.dispatch("xforms-value-changed");
  337. }
  338. cmb_inpath.dispatch("xforms-value-changed");
  339. cmb_inmthd.dispatch("xforms-value-changed");
  340. cmb_inacompst.dispatch("xforms-value-changed");
  341. rdo_nosmokcnstyn.dispatch("xforms-value-changed");
  342. rdo_drunkinfo.dispatch("xforms-value-changed");
  343. rdo_gustofoodyn.dispatch("xforms-value-changed");
  344. rdo_tnsseffcyn.dispatch("xforms-value-changed");
  345. // 15.06.23 - 추가
  346. chk_femaleinfoinclyn.dispatch("xforms-value-changed");
  347. //if(model.getValue("/root/main/wardrecinfo/femaleinfo/female/femaleinfoyn") == "1") {
  348. // chk_femaleinfoinclyn.dispatch("xforms-value-changed");
  349. //} else {
  350. // 15.06.18 - 주석처리
  351. //rdo_endmensyn.dispatch("xforms-value-changed");
  352. //}
  353. if(model.getValue("/root/main/histinfo/pasthistinfo/pasthist/pasthistinclyn") == "1") {
  354. chk_pasthistyn.dispatch("xforms-value-changed");
  355. }
  356. if(model.getValue("/root/main/histinfo/famyhistinfo/famyhist/famyhistinclyn") == "1") {
  357. chk_famyhistyn.dispatch("xforms-value-changed");
  358. }
  359. if(model.getValue("/root/main/histinfo/inhistinfo/inhist/inhistinclyn") == "1") {
  360. chk_inhistyn.dispatch("xforms-value-changed");
  361. }
  362. if(model.getValue("/root/main/histinfo/ophistinfo/ophist/ophistinclyn") == "1") {
  363. chk_ophistinclyn.dispatch("xforms-value-changed");
  364. }
  365. if(model.getValue("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn") == "1") {
  366. chk_rectmedistatinclyn.dispatch("xforms-value-changed");
  367. }
  368. if(model.getValue("/root/main/histinfo/allghistinfo/allghist/allghistinclyn") == "1") {
  369. rdo_allgyn.dispatch("xforms-value-changed");
  370. }
  371. //신체정보 측정불가시 측정불가 체크표시 추가_20090306_SMY
  372. chk_bpinspyn.dispatch("xforms-value-changed");
  373. chk_pulseinspyn.dispatch("xforms-value-changed");
  374. chk_brethinspyn.dispatch("xforms-value-changed");
  375. chk_bdtpinspyn.dispatch("xforms-value-changed");
  376. chk_bdhtinspyn.dispatch("xforms-value-changed");
  377. chk_bdwtinspyn.dispatch("xforms-value-changed");
  378. chk_spo2inspyn.dispatch("xforms-value-changed");
  379. }
  380. //측정불가 코드값입력 blocking_20090310_SMY
  381. function fChkNoneInspCode(IptPath, IptID){
  382. if(model.getValue(IptPath) == NoneInspCode){
  383. messageBox(NoneInspCode + "은 입력할 수 없는 값입니다.", "I");
  384. model.resetInstanceNode(IptPath);
  385. model.setFocus(IptID);
  386. model.refresh();
  387. return;
  388. }
  389. }
  390. // ---------(20101217)
  391. function fnNRScalc() {
  392. var snrs1 = model.getValue("/root/main/wardrecinfo/nrs1cd");
  393. var snrs21 = model.getValue("/root/main/wardrecinfo/nrs21cd");
  394. var snrs22 = model.getValue("/root/main/wardrecinfo/nrs22cd");
  395. var snrs23 = model.getValue("/root/main/wardrecinfo/nrs23cd");
  396. var totalnrs= 0;
  397. var snm = "";
  398. if (snrs1 =="") {
  399. snrs21 = 0;
  400. model.setValue("/root/main/wardrecinfo/nrs1nm","");
  401. } else {
  402. snm = comnrs1.label;
  403. model.setValue("/root/main/wardrecinfo/nrs1nm",snm);
  404. }
  405. if (snrs21 =="" || snrs21=="1") {
  406. snrs21 = 0;
  407. model.setValue("/root/main/wardrecinfo/nrs21nm","");
  408. } else {
  409. snrs21 = 1;
  410. snm = capnrs21.value;
  411. model.setValue("/root/main/wardrecinfo/nrs21nm",snm);
  412. }
  413. if (snrs22 =="" || snrs22=="1") {
  414. snrs22 = 0;
  415. model.setValue("/root/main/wardrecinfo/nrs22nm","");
  416. } else {
  417. snrs22 = 2;
  418. snm = capnrs22.value;
  419. model.setValue("/root/main/wardrecinfo/nrs22nm",snm);
  420. }
  421. if (snrs23 =="" || snrs23=="1") {
  422. snrs23 = 0;
  423. model.setValue("/root/main/wardrecinfo/nrs23nm","");
  424. } else {
  425. snrs23 = 3;
  426. snm = capnrs23.value;
  427. model.setValue("/root/main/wardrecinfo/nrs23nm",snm);
  428. }
  429. //----------(20110108) 경북대
  430. if (snrs1 =="") snrs1 = 0;
  431. if (snrs21 =="") snrs21 = 0;
  432. if (snrs22 =="") snrs22 = 0;
  433. if (snrs23 =="") snrs23 = 0;
  434. //----------(20110108) 경북대
  435. totalnrs = parseInt(snrs1) +parseInt(snrs21) + parseInt(snrs22) + parseInt(snrs23);
  436. model.setValue("/root/main/wardrecinfo/nrsscore",totalnrs);
  437. model.refresh();
  438. }
  439. // ---------(20101217)
  440. ]]>
  441. </script>
  442. <script type="javascript" ev:event="xforms-ready">
  443. <![CDATA[
  444. // iviewer1.window.javascript.fGetOCRInfo("0000001778", "20694", "20070824", "1", "I", "3", "Y");
  445. // iviewer1.window.javascript.fPrint("A");
  446. //----------(20101029) 경북대
  447. // 간호정보조사지에서 호출함
  448. // 간호정보조사지 일반정보- 필수항목
  449. if (fEssentialBackColor != "") {
  450. ipt_bdht.attribute("background-color") = fEssentialBackColor;
  451. ipt_bdwt.attribute("background-color") = fEssentialBackColor;
  452. ipt_spo2.attribute("background-color") = fEssentialBackColor;
  453. rdo_smokinfo.attribute("background-color") = fEssentialBackColor;
  454. rdo_nosmokcnstyn.attribute("background-color") = fEssentialBackColor;
  455. cmb_antibiodrugyn.attribute("background-color") = fEssentialBackColor;
  456. tar_inmotv.attribute("background-color") = fEssentialBackColor;
  457. //-------------(20110121) 경북대
  458. comnrs1.attribute("background-color") = fEssentialBackColor;
  459. radnrs21.attribute("background-color") = fEssentialBackColor;
  460. radnrs22.attribute("background-color") = fEssentialBackColor;
  461. radnrs23.attribute("background-color") = fEssentialBackColor;
  462. //-------------(20110121) 경북대
  463. // 16.04.19 - 발병일자, 발병시간 필수지정
  464. ipt_attackdd.attribute("background-color") = fEssentialBackColor;
  465. ipt_attackdt.attribute("background-color") = fEssentialBackColor;
  466. // 16.04.19 - 발병일자, 발병시간 필수지정
  467. }
  468. //----------(20101029) 경북대
  469. ]]>
  470. </script>
  471. <submission id="TRMNW07601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/inbfinfo"/>
  472. </model>
  473. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  474. <script type="javascript" src="../../../emr/formmngtweb/js/MRF03800.js"/>
  475. </xhtml:head>
  476. <xhtml:body pagewidth="1194" pageheight="673" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  477. <group id="grp_basebdinfo" style="left:400px; top:30px; width:391px; height:50px; ">
  478. <line id="line20" class="line_2" style="x1:0px; y1:46px; x2:391px; y2:46px; "/>
  479. <caption id="caption30" class="output_fix" visibility="hidden" style="left:335px; top:5px; width:53px; height:19px; text-align:center; ">회/분</caption>
  480. <input id="ipt_highbp" ref="/root/main/wardrecinfo/highbp" navindex="23" visibility="hidden" maxlength="3" format="9#.#" style="left:63px; top:1px; width:50px; height:19px; text-align:center; ">
  481. <script type="javascript" ev:event="xforms-value-changed">
  482. <![CDATA[
  483. fChkNoneInspCode("/root/main/wardrecinfo/highbp", "ipt_highbp");
  484. ]]>
  485. </script>
  486. </input>
  487. <input id="ipt_lowbp" ref="/root/main/wardrecinfo/lowbp" navindex="24" visibility="hidden" maxlength="3" format="9#.#" style="left:116px; top:1px; width:50px; height:19px; text-align:center; ">
  488. <script type="javascript" ev:event="xforms-value-changed">
  489. <![CDATA[
  490. fChkNoneInspCode("/root/main/wardrecinfo/lowbp", "ipt_lowbp");
  491. ]]>
  492. </script>
  493. </input>
  494. <input id="ipt_pulse" ref="/root/main/wardrecinfo/pulse" navindex="25" visibility="hidden" maxlength="3" format="999" style="left:63px; top:25px; width:103px; height:19px; text-align:center; ">
  495. <script type="javascript" ev:event="xforms-value-changed">
  496. <![CDATA[
  497. fChkNoneInspCode("/root/main/wardrecinfo/pulse", "ipt_pulse");
  498. ]]>
  499. </script>
  500. </input>
  501. <input id="ipt_breth" ref="/root/main/wardrecinfo/breth" navindex="26" visibility="hidden" maxlength="2" format="99" style="left:228px; top:5px; width:103px; height:19px; text-align:center; ">
  502. <script type="javascript" ev:event="xforms-value-changed">
  503. <![CDATA[
  504. fChkNoneInspCode("/root/main/wardrecinfo/breth", "ipt_breth");
  505. ]]>
  506. </script>
  507. </input>
  508. <input id="ipt_bdtp" ref="/root/main/wardrecinfo/bdtp" navindex="27" visibility="hidden" maxlength="5" format="9#.#" style="left:228px; top:25px; width:50px; height:19px; text-align:center; ">
  509. <script type="javascript" ev:event="xforms-value-changed">
  510. <![CDATA[
  511. fChkNoneInspCode("/root/main/wardrecinfo/bdtp", "ipt_bdtp");
  512. ]]>
  513. </script>
  514. </input>
  515. <select1 id="cmb_bdtp" ref="/root/main/wardrecinfo/bdtppartcd" class="combo_default" navindex="28" visibility="hidden" appearance="minimal" style="left:281px; top:25px; width:50px; height:19px; ">
  516. <choices>
  517. <itemset nodeset="/root/init/mlist/M0375">
  518. <label ref="cdnm"/>
  519. <value ref="cdid"/>
  520. </itemset>
  521. </choices>
  522. </select1>
  523. <line id="line15" class="line_2" style="x1:0px; y1:22px; x2:391px; y2:22px; "/>
  524. <caption id="caption26" class="output_fix" visibility="hidden" style="left:170px; top:0px; width:53px; height:19px; text-align:center; ">mmHg</caption>
  525. <caption id="caption38" class="output_fix" visibility="hidden" style="left:335px; top:25px; width:53px; height:19px; text-align:center; ">℃</caption>
  526. <caption id="caption28" class="output_fix" visibility="hidden" style="left:170px; top:25px; width:53px; height:19px; text-align:center; ">회/분</caption>
  527. <caption id="caption17" class="cell_1" visibility="hidden" style="left:0px; top:0px; width:60px; height:23px; ">.... 혈압</caption>
  528. <caption id="caption18" class="cell_1" visibility="hidden" style="left:0px; top:24px; width:60px; height:23px; ">.... 맥박</caption>
  529. <caption id="caption19" class="cell_1" visibility="hidden" style="left:165px; top:5px; width:60px; height:23px; ">.... 호흡</caption>
  530. <caption id="caption20" class="cell_1" visibility="hidden" style="left:165px; top:24px; width:60px; height:23px; ">.... 체온</caption>
  531. <line id="line29" class="line_3" style="x1:0px; y1:47px; x2:391px; y2:47px; "/>
  532. <select id="chk_bpinspyn" ref="/root/main/wardrecinfo/bpinspyn" navindex="59" visibility="hidden" overflow="visible" appearance="full" style="left:5px; top:4px; width:15px; height:15px; border-style:none; ">
  533. <choices>
  534. <item>
  535. <label/>
  536. <value>Y</value>
  537. </item>
  538. </choices>
  539. <script type="javascript" ev:event="xforms-value-changed">
  540. <![CDATA[
  541. if(model.getValue("/root/main/wardrecinfo/bpinspyn") == "Y"){
  542. ipt_highbp.disabled = true;
  543. ipt_lowbp.disabled = true;
  544. model.resetInstanceNode("/root/main/wardrecinfo/highbp");
  545. model.resetInstanceNode("/root/main/wardrecinfo/lowbp");
  546. }else{
  547. ipt_highbp.disabled = false;
  548. ipt_lowbp.disabled = false;
  549. }
  550. ipt_highbp.refresh();
  551. ipt_lowbp.refresh();
  552. ]]>
  553. </script>
  554. </select>
  555. <select id="chk_pulseinspyn" ref="/root/main/wardrecinfo/pulseinspyn" navindex="59" visibility="hidden" overflow="visible" appearance="full" style="left:5px; top:28px; width:15px; height:15px; border-style:none; ">
  556. <choices>
  557. <item>
  558. <label/>
  559. <value>Y</value>
  560. </item>
  561. </choices>
  562. <script type="javascript" ev:event="xforms-value-changed">
  563. <![CDATA[
  564. if(model.getValue("/root/main/wardrecinfo/pulseinspyn") == "Y"){
  565. ipt_pulse.disabled = true;
  566. model.resetInstanceNode("/root/main/wardrecinfo/pulse");
  567. }else{
  568. ipt_pulse.disabled = false;
  569. }
  570. ipt_pulse.refresh();
  571. ]]>
  572. </script>
  573. </select>
  574. <select id="chk_brethinspyn" ref="/root/main/wardrecinfo/brethinspyn" navindex="59" visibility="hidden" overflow="visible" appearance="full" style="left:170px; top:5px; width:15px; height:15px; border-style:none; ">
  575. <choices>
  576. <item>
  577. <label/>
  578. <value>Y</value>
  579. </item>
  580. </choices>
  581. <script type="javascript" ev:event="xforms-value-changed">
  582. <![CDATA[
  583. if(model.getValue("/root/main/wardrecinfo/brethinspyn") == "Y"){
  584. ipt_breth.disabled = true;
  585. model.resetInstanceNode("/root/main/wardrecinfo/breth");
  586. }else{
  587. ipt_breth.disabled = false;
  588. }
  589. ipt_breth.refresh();
  590. ]]>
  591. </script>
  592. </select>
  593. <select id="chk_bdtpinspyn" ref="/root/main/wardrecinfo/bdtpinspyn" navindex="59" visibility="hidden" overflow="visible" appearance="full" style="left:170px; top:28px; width:15px; height:15px; border-style:none; ">
  594. <choices>
  595. <item>
  596. <label/>
  597. <value>Y</value>
  598. </item>
  599. </choices>
  600. <script type="javascript" ev:event="xforms-value-changed">
  601. <![CDATA[
  602. if(model.getValue("/root/main/wardrecinfo/bdtpinspyn") == "Y"){
  603. ipt_bdtp.disabled = true;
  604. cmb_bdtp.disabled = true;
  605. model.resetInstanceNode("/root/main/wardrecinfo/bdtp");
  606. model.resetInstanceNode("/root/main/wardrecinfo/bdtppartcd");
  607. }else{
  608. ipt_bdtp.disabled = false;
  609. cmb_bdtp.disabled = false;
  610. }
  611. ipt_bdtp.refresh();
  612. cmb_bdtp.refresh();
  613. ]]>
  614. </script>
  615. </select>
  616. <caption id="cap_bdht" class="cell_1" style="left:0px; top:0px; width:60px; height:23px; ">.... 신장</caption>
  617. <caption id="cap_bdwt" class="cell_1" style="left:0px; top:24px; width:60px; height:23px; ">.... 체중</caption>
  618. <caption id="caption2" class="cell_1" style="left:196px; top:0px; width:60px; height:23px; ">... SpO2</caption>
  619. <select id="chk_bdhtinspyn" ref="/root/main/wardrecinfo/bdhtinspyn" navindex="59" overflow="visible" appearance="full" style="left:5px; top:4px; width:15px; height:15px; border-style:none; ">
  620. <choices>
  621. <item>
  622. <label/>
  623. <value>Y</value>
  624. </item>
  625. </choices>
  626. <script type="javascript" ev:event="xforms-value-changed">
  627. <![CDATA[
  628. if(model.getValue("/root/main/wardrecinfo/bdhtinspyn") == "Y"){
  629. ipt_bdht.disabled = true;
  630. model.resetInstanceNode("/root/main/wardrecinfo/bdht");
  631. }else{
  632. ipt_bdht.disabled = false;
  633. }
  634. ipt_bdht.refresh();
  635. ]]>
  636. </script>
  637. </select>
  638. <select id="chk_spo2inspyn" ref="/root/main/wardrecinfo/spo2inspyn" navindex="59" overflow="visible" appearance="full" style="left:199px; top:3px; width:15px; height:15px; border-style:none; ">
  639. <choices>
  640. <item>
  641. <label/>
  642. <value>Y</value>
  643. </item>
  644. </choices>
  645. <script type="javascript" ev:event="xforms-value-changed">
  646. <![CDATA[
  647. if(model.getValue("/root/main/wardrecinfo/spo2inspyn") == "Y"){
  648. ipt_spo2.disabled = true;
  649. model.resetInstanceNode("/root/main/wardrecinfo/spo2");
  650. }else{
  651. ipt_spo2.disabled = false;
  652. }
  653. ipt_spo2.refresh();
  654. ]]>
  655. </script>
  656. </select>
  657. <select id="chk_bdwtinspyn" ref="/root/main/wardrecinfo/bdwtinspyn" navindex="59" overflow="visible" appearance="full" style="left:5px; top:28px; width:15px; height:15px; border-style:none; ">
  658. <choices>
  659. <item>
  660. <label/>
  661. <value>Y</value>
  662. </item>
  663. </choices>
  664. <script type="javascript" ev:event="xforms-value-changed">
  665. <![CDATA[
  666. if(model.getValue("/root/main/wardrecinfo/bdwtinspyn") == "Y"){
  667. ipt_bdwt.disabled = true;
  668. model.resetInstanceNode("/root/main/wardrecinfo/bdwt");
  669. }else{
  670. ipt_bdwt.disabled = false;
  671. }
  672. ipt_bdwt.refresh();
  673. ]]>
  674. </script>
  675. </select>
  676. <caption id="cap_btype" class="cell_1" style="left:196px; top:24px; width:60px; height:23px; ">혈액형</caption>
  677. <input id="ipt_spo2" ref="/root/main/wardrecinfo/spo2" navindex="31" maxlength="6" format="9#.#" style="left:259px; top:1px; width:97px; height:19px; text-align:center; ">
  678. <script type="javascript" ev:event="xforms-value-changed">
  679. <![CDATA[
  680. fChkNoneInspCode("/root/main/wardrecinfo/spo2", "ipt_spo2");
  681. ]]>
  682. </script>
  683. </input>
  684. <input id="ipt_bdht" ref="/root/main/wardrecinfo/bdht" navindex="29" maxlength="5" format="9#.#" style="left:63px; top:1px; width:97px; height:19px; text-align:center; ">
  685. <script type="javascript" ev:event="xforms-value-changed">
  686. <![CDATA[
  687. fChkNoneInspCode("/root/main/wardrecinfo/bdht", "ipt_bdht");
  688. ]]>
  689. </script>
  690. </input>
  691. <input id="ipt_bdwt" ref="/root/main/wardrecinfo/bdwt" navindex="30" maxlength="5" format="9#.#" style="left:63px; top:25px; width:97px; height:19px; text-align:center; ">
  692. <!--(20101028) 경북대 -->
  693. <script type="javascript" ev:event="xforms-value-changed">
  694. <![CDATA[
  695. fChkNoneInspCode("/root/main/wardrecinfo/bdwt", "ipt_bdwt");
  696. ]]>
  697. </script>
  698. </input>
  699. <select1 id="cmb_bdbtype" ref="/root/main/wardrecinfo/bdbtype" class="combo_default" navindex="32" appearance="minimal" style="left:259px; top:25px; width:130px; height:19px; ">
  700. <choices>
  701. <itemset nodeset="/root/init/mlist/M0376">
  702. <label ref="cdnm"/>
  703. <value ref="cdid"/>
  704. </itemset>
  705. </choices>
  706. </select1>
  707. <caption id="caption31" class="output_fix" style="left:163px; top:1px; width:30px; height:19px; text-align:center; ">Cm</caption>
  708. <caption id="caption36" class="output_fix" style="left:163px; top:25px; width:30px; height:19px; text-align:center; ">Kg</caption>
  709. <caption id="caption3" class="output_fix" style="left:359px; top:1px; width:30px; height:19px; text-align:center; ">%</caption>
  710. </group>
  711. <datagrid id="grd_inhist" nodeset="/root/main/histinfo/inhistinfo/inhist/inhist" scroll="auto" caption="입원일자^퇴원일자^병명^진료기관^inhistpk" colsep="^" colwidth="85, 85, 133, 67, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:797px; top:232px; width:390px; height:71px; ">
  712. <col ref="indd" type="inputdate"/>
  713. <col ref="dschdd" type="inputdate"/>
  714. <col ref="illnm" type="input"/>
  715. <col ref="orddept" type="input"/>
  716. <col ref="inhistpk" visibility="hidden"/>
  717. <script type="javascript" ev:event="onclick">
  718. <![CDATA[
  719. if(grd_inhist.colType(grd_inhist.col) == "input") {
  720. grd_inhist.editCell();
  721. }
  722. ]]>
  723. </script>
  724. <script type="javascript" ev:event="onkeydown">
  725. <![CDATA[
  726. if(event.keyCode == 9) {
  727. grd_inhist.editCell();
  728. }
  729. ]]>
  730. </script>
  731. </datagrid>
  732. <button id="btn_inhistdel" class="btn2_letter3" navindex="64" style="left:1134px; top:207px; width:53px; height:19px; ">
  733. <caption>행삭제</caption>
  734. <script type="javascript" ev:event="DOMActivate">
  735. <![CDATA[
  736. grd_inhist.deleteRow(grd_inhist.row);
  737. ]]>
  738. </script>
  739. </button>
  740. <button id="btn_rectmedistatdel" class="btn2_letter3" navindex="70" style="left:1134px; top:411px; width:53px; height:19px; ">
  741. <caption>행삭제</caption>
  742. <script type="javascript" ev:event="DOMActivate">
  743. <![CDATA[
  744. grd_rectmedistat.deleteRow(grd_rectmedistat.row);
  745. ]]>
  746. </script>
  747. </button>
  748. <caption id="cap_allghist" class="tit_2" style="left:802px; top:552px; width:69px; height:13px; ">Allergy</caption>
  749. <button id="btn_allghistadd" class="btn2_letter3" navindex="72" style="left:1078px; top:547px; width:53px; height:19px; ">
  750. <caption>행추가</caption>
  751. <script type="javascript" ev:event="DOMActivate">
  752. <![CDATA[
  753. grd_allghist.addRow();
  754. ]]>
  755. </script>
  756. </button>
  757. <caption id="cap_pasthist" class="tit_2" style="left:802px; top:10px; width:104px; height:13px; ">과거병력</caption>
  758. <select id="chk_pasthistyn" ref="/root/main/histinfo/pasthistinfo/pasthist/pasthistinclyn" navindex="56" overflow="visible" appearance="full" style="left:902px; top:7px; width:70px; height:15px; border-style:none; ">
  759. <choices>
  760. <item>
  761. <label>해당없음</label>
  762. <value>1</value>
  763. </item>
  764. </choices>
  765. <script type="javascript" ev:event="xforms-value-changed">
  766. <![CDATA[
  767. if(model.getValue("/root/main/histinfo/pasthistinfo/pasthist/pasthistinclyn") == "1") {
  768. var isEmptyYN = "Y";
  769. isEmptyYN = isCheckGridDataYN(grd_pasthist);
  770. var rtn = fSetStatus();
  771. if(rtn == "6") {
  772. model.removeNodeset("/root/main/histinfo/pasthistinfo/pasthist/pasthist");
  773. grd_pasthist.rebuild();
  774. btn_pasthistadd.disabled = true;
  775. btn_pasthistdel.disabled = true;
  776. } else if(rtn == "7") {
  777. model.setValue("/root/main/histinfo/pasthistinfo/pasthist/pasthistinclyn", "");
  778. chk_pasthistyn.refresh();
  779. }
  780. } else {
  781. btn_pasthistadd.disabled = false;
  782. btn_pasthistdel.disabled = false;
  783. grd_pasthist.addRow();
  784. }
  785. ]]>
  786. </script>
  787. <script type="javascript" ev:event="xforms-select">
  788. <![CDATA[
  789. status = "click";
  790. ]]>
  791. </script>
  792. </select>
  793. <line id="line22" class="line_1" style="x1:797px; y1:126px; x2:1187px; y2:126px; "/>
  794. <line id="line23" class="line_1" style="x1:797px; y1:227px; x2:1187px; y2:227px; "/>
  795. <datagrid id="grd_pasthist" nodeset="/root/main/histinfo/pasthistinfo/pasthist/pasthist" scroll="auto" caption="발생일자^병력내역^비고" colsep="^" colwidth="85, 169, 116" mergecellsfixedrows="bycolrec" rowsep="|" style="left:797px; top:30px; width:390px; height:71px; ">
  796. <col ref="genrdd" type="inputdate"/>
  797. <col class="gridcombo" ref="histspec" type="combo">
  798. <choices>
  799. <itemset nodeset="/root/init/mlist/M0532">
  800. <label ref="cdnm"/>
  801. <value ref="cdid"/>
  802. </itemset>
  803. </choices>
  804. </col>
  805. <col ref="remfact" type="input"/>
  806. <script type="javascript" ev:event="onclick">
  807. <![CDATA[
  808. if(grd_pasthist.colType(grd_pasthist.col) == "input") {
  809. grd_pasthist.editCell();
  810. }
  811. ]]>
  812. </script>
  813. <script type="javascript" ev:event="onkeydown">
  814. <![CDATA[
  815. if(event.keyCode == 9) {
  816. grd_pasthist.editCell();
  817. }
  818. ]]>
  819. </script>
  820. </datagrid>
  821. <button id="btn_famyhistadd" class="btn2_letter3" navindex="60" style="left:1078px; top:106px; width:53px; height:19px; ">
  822. <caption>행추가</caption>
  823. <script type="javascript" ev:event="DOMActivate">
  824. <![CDATA[
  825. grd_famyhist.addRow();
  826. ]]>
  827. </script>
  828. </button>
  829. <caption id="cap_famyhist" class="tit_2" style="left:801px; top:111px; width:74px; height:13px; ">가족병력</caption>
  830. <select id="chk_famyhistyn" ref="/root/main/histinfo/famyhistinfo/famyhist/famyhistinclyn" navindex="59" overflow="visible" appearance="full" style="left:902px; top:108px; width:70px; height:15px; border-style:none; ">
  831. <choices>
  832. <item>
  833. <label>해당없음</label>
  834. <value>1</value>
  835. </item>
  836. </choices>
  837. <script type="javascript" ev:event="xforms-value-changed">
  838. <![CDATA[
  839. if(model.getValue("/root/main/histinfo/famyhistinfo/famyhist/famyhistinclyn") == "1") {
  840. var isEmptyYN = "Y";
  841. isEmptyYN = isCheckGridDataYN(grd_famyhist);
  842. var rtn = fSetStatus();
  843. if(rtn == "6") {
  844. model.removeNodeset("/root/main/histinfo/famyhistinfo/famyhist/famyhist");
  845. grd_famyhist.rebuild();
  846. btn_famyhistadd.disabled = true;
  847. btn_famyhistdel.disabled = true;
  848. } else if(rtn == "7") {
  849. model.setValue("/root/main/histinfo/famyhistinfo/famyhist/famyhistinclyn", "");
  850. chk_famyhistyn.refresh();
  851. }
  852. } else {
  853. btn_famyhistadd.disabled = false;
  854. btn_famyhistdel.disabled = false;
  855. grd_famyhist.addRow();
  856. }
  857. ]]>
  858. </script>
  859. <script type="javascript" ev:event="xforms-select">
  860. <![CDATA[
  861. status = "click";
  862. ]]>
  863. </script>
  864. </select>
  865. <line id="line24" class="line_1" style="x1:797px; y1:328px; x2:1187px; y2:328px; "/>
  866. <datagrid id="grd_famyhist" nodeset="/root/main/histinfo/famyhistinfo/famyhist/famyhist" scroll="auto" caption="관계^생존^병력내역^비고" colsep="^" colwidth="60, 40, 169, 102" mergecellsfixedrows="bycolrec" rowsep="|" style="left:797px; top:131px; width:390px; height:71px; ">
  867. <col class="gridcombo" ref="famyrel" type="combo">
  868. <choices>
  869. <itemset nodeset="/root/init/mlist/M0072">
  870. <label ref="cdnm"/>
  871. <value ref="cdid"/>
  872. </itemset>
  873. </choices>
  874. </col>
  875. <col class="gridcombo" ref="existyn" type="combo">
  876. <choices>
  877. <itemset nodeset="/root/init/mlist/M0088">
  878. <label ref="cdnm"/>
  879. <value ref="cdid"/>
  880. </itemset>
  881. </choices>
  882. </col>
  883. <col class="gridcombo" ref="histspec" type="combo">
  884. <choices>
  885. <itemset nodeset="/root/init/mlist/M0368">
  886. <label ref="cdnm"/>
  887. <value ref="cdid"/>
  888. </itemset>
  889. </choices>
  890. </col>
  891. <col ref="remfact" type="input"/>
  892. <script type="javascript" ev:event="onclick">
  893. <![CDATA[
  894. grd_famyhist.editCell();
  895. ]]>
  896. </script>
  897. <script type="javascript" ev:event="onkeydown">
  898. <![CDATA[
  899. if(event.keyCode == 9) {
  900. grd_famyhist.editCell();
  901. }
  902. ]]>
  903. </script>
  904. </datagrid>
  905. <line id="line25" class="line_1" style="x1:797px; y1:431px; x2:1187px; y2:431px; "/>
  906. <datagrid id="grd_ophist" nodeset="/root/main/histinfo/ophistinfo/ophist/ophist" scroll="auto" caption="수술일자^수술명^진료기관^ophistpk" colsep="^" colwidth="85, 185, 101, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:797px; top:333px; width:390px; height:71px; ">
  907. <col ref="opdd" type="inputdate"/>
  908. <col ref="opnm" type="input"/>
  909. <col ref="orddept" type="input"/>
  910. <col ref="ophistpk" visibility="hidden"/>
  911. <script type="javascript" ev:event="onclick">
  912. <![CDATA[
  913. if(grd_ophist.colType(grd_ophist.col) == "input") {
  914. grd_ophist.editCell();
  915. }
  916. ]]>
  917. </script>
  918. <script type="javascript" ev:event="onkeydown">
  919. <![CDATA[
  920. if(event.keyCode == 9) {
  921. grd_ophist.editCell();
  922. }
  923. ]]>
  924. </script>
  925. </datagrid>
  926. <line id="line26" class="line_1" style="x1:797px; y1:431px; x2:1187px; y2:431px; "/>
  927. <caption id="cap_ophist" class="tit_2" style="left:802px; top:313px; width:104px; height:13px; ">수술이력</caption>
  928. <select id="chk_ophistinclyn" ref="/root/main/histinfo/ophistinfo/ophist/ophistinclyn" navindex="65" overflow="visible" appearance="full" style="left:902px; top:310px; width:70px; height:15px; border-style:none; ">
  929. <choices>
  930. <item>
  931. <label>해당없음</label>
  932. <value>1</value>
  933. </item>
  934. </choices>
  935. <script type="javascript" ev:event="xforms-value-changed">
  936. <![CDATA[
  937. if(model.getValue("/root/main/histinfo/ophistinfo/ophist/ophistinclyn") == "1") {
  938. var isEmptyYN = "Y";
  939. isEmptyYN = isCheckGridDataYN(grd_ophist);
  940. var rtn = fSetStatus();
  941. if(rtn == "6") {
  942. model.removeNodeset("/root/main/histinfo/ophistinfo/ophist/ophist");
  943. grd_ophist.rebuild();
  944. btn_ophistadd.disabled = true;
  945. btn_ophistdel.disabled = true;
  946. btn_ophistpop.disabled = true;
  947. } else if(rtn == "7") {
  948. model.setValue("/root/main/histinfo/ophistinfo/ophist/ophistinclyn", "");
  949. chk_ophistinclyn.refresh();
  950. }
  951. } else {
  952. btn_ophistadd.disabled = false;
  953. btn_ophistdel.disabled = false;
  954. btn_ophistpop.disabled = false;
  955. grd_ophist.addRow();
  956. }
  957. ]]>
  958. </script>
  959. </select>
  960. <button id="btn_inhistadd" class="btn2_letter3" navindex="63" style="left:1078px; top:207px; width:53px; height:19px; ">
  961. <caption>행추가</caption>
  962. <script type="javascript" ev:event="DOMActivate">
  963. <![CDATA[
  964. grd_inhist.addRow();
  965. ]]>
  966. </script>
  967. </button>
  968. <button id="btn_rectmedistatadd" class="btn2_letter3" navindex="69" style="left:1078px; top:411px; width:53px; height:19px; ">
  969. <caption>행추가</caption>
  970. <script type="javascript" ev:event="DOMActivate">
  971. <![CDATA[
  972. grd_rectmedistat.addRow();
  973. ]]>
  974. </script>
  975. </button>
  976. <line id="line27" class="line_1" style="x1:797px; y1:567px; x2:1187px; y2:567px; "/>
  977. <button id="btn_ophistdel" class="btn2_letter3" navindex="67" style="left:1134px; top:308px; width:53px; height:19px; ">
  978. <caption>행삭제</caption>
  979. <script type="javascript" ev:event="DOMActivate">
  980. <![CDATA[
  981. grd_ophist.deleteRow(grd_ophist.row);
  982. ]]>
  983. </script>
  984. </button>
  985. <line id="line28" class="line_1" style="x1:797px; y1:567px; x2:1187px; y2:567px; "/>
  986. <caption id="cap_rectmedistat" class="tit_2" style="left:801px; top:416px; width:104px; height:13px; ">최근투약상태</caption>
  987. <select id="chk_rectmedistatinclyn" ref="/root/main/wardrecinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn" navindex="68" visibility="hidden" overflow="visible" appearance="full" style="left:902px; top:413px; width:70px; height:15px; border-style:none; ">
  988. <choices>
  989. <item>
  990. <label>해당없음</label>
  991. <value>1</value>
  992. </item>
  993. </choices>
  994. <script type="javascript" ev:event="xforms-value-changed">
  995. <![CDATA[
  996. if(model.getValue("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn") == "1") {
  997. var isEmptyYN = "Y";
  998. isEmptyYN = isCheckGridDataYN(grd_rectmedistat);
  999. var rtn = fSetStatus();
  1000. if(rtn == "6") {
  1001. model.removeNodeset("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat/rectmedistat");
  1002. grd_rectmedistat.rebuild();
  1003. btn_rectmedistatadd.disabled = true;
  1004. btn_rectmedistatdel.disabled = true;
  1005. } else if(rtn == "7") {
  1006. model.setValue("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn", "");
  1007. chk_rectmedistatinclyn.refresh();
  1008. }
  1009. } else {
  1010. btn_rectmedistatadd.disabled = false;
  1011. btn_rectmedistatdel.disabled = false;
  1012. grd_rectmedistat.addRow();
  1013. }
  1014. ]]>
  1015. </script>
  1016. <script type="javascript" ev:event="xforms-select">
  1017. <![CDATA[
  1018. status = "click";
  1019. ]]>
  1020. </script>
  1021. </select>
  1022. <button id="btn_allghistdel" class="btn2_letter3" navindex="73" style="left:1134px; top:547px; width:53px; height:19px; ">
  1023. <caption>행삭제</caption>
  1024. <script type="javascript" ev:event="DOMActivate">
  1025. <![CDATA[
  1026. grd_allghist.deleteRow(grd_allghist.row);
  1027. ]]>
  1028. </script>
  1029. </button>
  1030. <line id="line19" class="line_1" style="x1:797px; y1:25px; x2:1188px; y2:25px; "/>
  1031. <button id="btn_pasthistadd" class="btn2_letter3" navindex="57" style="left:1078px; top:5px; width:53px; height:19px; ">
  1032. <caption>행추가</caption>
  1033. <script type="javascript" ev:event="DOMActivate">
  1034. <![CDATA[
  1035. grd_pasthist.addRow();
  1036. ]]>
  1037. </script>
  1038. </button>
  1039. <button id="btn_pasthistdel" class="btn2_letter3" navindex="58" style="left:1134px; top:5px; width:53px; height:19px; ">
  1040. <caption>행삭제</caption>
  1041. <script type="javascript" ev:event="DOMActivate">
  1042. <![CDATA[
  1043. grd_pasthist.deleteRow(grd_pasthist.row);
  1044. ]]>
  1045. </script>
  1046. </button>
  1047. <caption id="cap_inhist" class="tit_2" style="left:801px; top:212px; width:104px; height:13px; ">입원이력</caption>
  1048. <select id="chk_inhistyn" ref="/root/main/histinfo/inhistinfo/inhist/inhistinclyn" navindex="62" overflow="visible" appearance="full" style="left:902px; top:209px; width:70px; height:15px; border-style:none; ">
  1049. <choices>
  1050. <item>
  1051. <label>해당없음</label>
  1052. <value>1</value>
  1053. </item>
  1054. </choices>
  1055. <script type="javascript" ev:event="xforms-value-changed">
  1056. <![CDATA[
  1057. if(model.getValue("/root/main/histinfo/inhistinfo/inhist/inhistinclyn") == "1") {
  1058. var isEmptyYN = "Y";
  1059. isEmptyYN = isCheckGridDataYN(grd_inhist);
  1060. var rtn = fSetStatus();
  1061. if(rtn == "6") {
  1062. model.removeNodeset("/root/main/histinfo/inhistinfo/inhist/inhist");
  1063. grd_inhist.rebuild();
  1064. btn_inhistadd.disabled = true;
  1065. btn_inhistdel.disabled = true;
  1066. btn_inhistpop.disabled = true;
  1067. } else if(rtn == "7") {
  1068. model.setValue("/root/main/histinfo/inhistinfo/inhist/inhistinclyn", "");
  1069. chk_inhistyn.refresh();
  1070. }
  1071. } else {
  1072. btn_inhistadd.disabled = false;
  1073. btn_inhistdel.disabled = false;
  1074. btn_inhistpop.disabled = false;
  1075. grd_inhist.addRow();
  1076. }
  1077. ]]>
  1078. </script>
  1079. <script type="javascript" ev:event="xforms-select">
  1080. <![CDATA[
  1081. status = "click";
  1082. ]]>
  1083. </script>
  1084. </select>
  1085. <datagrid id="grd_rectmedistat" nodeset="/root/main/wardrecinfo/rectmedistatinfo/rectmedistat/rectmedistat" scroll="auto" caption="약명^복용법(용도/용량/용법)^진료기관" colsep="^" colwidth="70, 200, 101" mergecellsfixedrows="bycolrec" rowsep="|" style="left:797px; top:460px; width:390px; height:71px; ">
  1086. <col ref="drugnm" type="input"/>
  1087. <col ref="direc" type="input"/>
  1088. <col ref="orddept" type="input"/>
  1089. <script type="javascript" ev:event="onclick">
  1090. <![CDATA[
  1091. grd_rectmedistat.editCell();
  1092. ]]>
  1093. </script>
  1094. <script type="javascript" ev:event="onkeydown">
  1095. <![CDATA[
  1096. if(event.keyCode == 9) {
  1097. grd_rectmedistat.editCell();
  1098. }
  1099. ]]>
  1100. </script>
  1101. </datagrid>
  1102. <button id="btn_famyhistdel" class="btn2_letter3" navindex="61" style="left:1134px; top:106px; width:53px; height:19px; ">
  1103. <caption>행삭제</caption>
  1104. <script type="javascript" ev:event="DOMActivate">
  1105. <![CDATA[
  1106. grd_famyhist.deleteRow(grd_famyhist.row);
  1107. ]]>
  1108. </script>
  1109. </button>
  1110. <datagrid id="grd_allghist" nodeset="/root/main/histinfo/allghistinfo/allghist/allghist" scroll="auto" caption="발생일자^분류^Allergy 내역 및 증상" colsep="^" colwidth="85, 70, 199, 0, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:797px; top:572px; width:390px; height:71px; ">
  1111. <col ref="genrdd" type="inputdate"/>
  1112. <col class="gridcombo" ref="flag" type="combo">
  1113. <choices>
  1114. <itemset nodeset="/root/init/mlist/M0090">
  1115. <label ref="cdnm"/>
  1116. <value ref="cdid"/>
  1117. </itemset>
  1118. </choices>
  1119. </col>
  1120. <col ref="allergespec" type="input"/>
  1121. <col ref="hosoutyn" visibility="hidden"/>
  1122. <col ref="comclscd" visibility="hidden"/>
  1123. <col ref="drugcd" visibility="hidden"/>
  1124. <col ref="drugnm" visibility="hidden"/>
  1125. <col ref="rgstdt" type="inputdate" visibility="hidden"/>
  1126. <col ref="rgster" visibility="hidden">
  1127. <![CDATA[/>]]>
  1128. </col>
  1129. <col ref="cretno" visibility="hidden">
  1130. <![CDATA[/>]]>
  1131. </col>
  1132. <script type="javascript" ev:event="onclick">
  1133. <![CDATA[
  1134. if(grd_allghist.colType(grd_allghist.col) == "input") {
  1135. grd_allghist.editCell();
  1136. }
  1137. if (grd_allghist.col == 2) {
  1138. if (grd_allghist.valuematrix(grd_allghist.row, grd_allghist.col) == "07") {
  1139. // 분류값이 항생제로 선택이 되면..
  1140. model.makeNode("/root/main/allgtemp/antitype");
  1141. model.makeNode("/root/main/allgtemp/antidesc");
  1142. model.makeValue("/root/main/allgtemp/row", grd_allghist.row);
  1143. model.makeValue("/root/main/allgtemp/col", grd_allghist.col);
  1144. grp_anti.visible = true;
  1145. rdo_anti.visible = true;
  1146. txt_anti.visible = true;
  1147. btn_anti1.visible = true;
  1148. btn_anti2.visible = true;
  1149. } else if (grd_allghist.valuematrix(grd_allghist.row, grd_allghist.col) == "06") {
  1150. // 조영제로 선택이 되면
  1151. messageBox("조영제에 대한 ADR 입력 화면으로 연결됩니다.", "I999");
  1152. modal("SPMMD03300", 1,10, 10);
  1153. } else {
  1154. grp_anti.visible = false;
  1155. rdo_anti.visible = false;
  1156. txt_anti.visible = false;
  1157. btn_anti1.visible = false;
  1158. btn_anti2.visible = false;
  1159. }
  1160. }
  1161. ]]>
  1162. </script>
  1163. <script type="javascript" ev:event="onkeydown">
  1164. <![CDATA[
  1165. if(event.keyCode == 9) {
  1166. grd_allghist.editCell();
  1167. }
  1168. ]]>
  1169. </script>
  1170. <script type="javascript" ev:event="xforms-value-changed">
  1171. <![CDATA[
  1172. // 분류값이 항생제로 선택이 되면..
  1173. if (grd_allghist.col == 2) {
  1174. if (grd_allghist.valuematrix(grd_allghist.row, grd_allghist.col) == "07") {
  1175. model.makeNode("/root/main/allgtemp/antitype");
  1176. model.makeNode("/root/main/allgtemp/antidesc");
  1177. model.makeValue("/root/main/allgtemp/row", grd_allghist.row);
  1178. model.makeValue("/root/main/allgtemp/col", grd_allghist.col);
  1179. grp_anti.visible = true;
  1180. rdo_anti.visible = true;
  1181. txt_anti.visible = true;
  1182. btn_anti1.visible = true;
  1183. btn_anti2.visible = true;
  1184. } else if (grd_allghist.valuematrix(grd_allghist.row, grd_allghist.col) == "06") {
  1185. // 조영제로 선택이 되면
  1186. messageBox("조영제에 대한 ADR 입력 화면으로 연결됩니다.", "I999");
  1187. modal("SPMMD03300", 1,10, 10);
  1188. } else {
  1189. grp_anti.visible = false;
  1190. rdo_anti.visible = false;
  1191. txt_anti.visible = false;
  1192. btn_anti1.visible = false;
  1193. btn_anti2.visible = false;
  1194. }
  1195. }
  1196. ]]>
  1197. </script>
  1198. </datagrid>
  1199. <button id="btn_ophistadd" class="btn2_letter3" navindex="66" style="left:1078px; top:308px; width:53px; height:19px; ">
  1200. <caption>행추가</caption>
  1201. <script type="javascript" ev:event="DOMActivate">
  1202. <![CDATA[
  1203. grd_ophist.addRow();
  1204. ]]>
  1205. </script>
  1206. </button>
  1207. <caption id="caption10" class="tit_2" style="left:10px; top:10px; width:104px; height:13px; ">입원정보</caption>
  1208. <line id="line9" class="line_1" style="x1:5px; y1:25px; x2:396px; y2:25px; "/>
  1209. <line id="line10" class="line_2" style="x1:5px; y1:52px; x2:396px; y2:52px; "/>
  1210. <line id="line11" class="line_2" style="x1:5px; y1:76px; x2:396px; y2:76px; "/>
  1211. <line id="line12" class="line_2" style="x1:5px; y1:100px; x2:396px; y2:100px; "/>
  1212. <line id="line14" class="line_1" style="x1:5px; y1:150px; x2:396px; y2:150px; "/>
  1213. <caption id="caption16" class="tit_2" style="left:10px; top:135px; width:175px; height:13px; ">입원동기와 병에 대한 인식</caption>
  1214. <select1 id="rdo_inmotv" ref="/root/main/wardrecinfo/inmotiveinfo/inmotive/inmotive1" navindex="20" appearance="full" cellspacing="40" cols="2" overflow="visible" style="left:169px; top:184px; width:131px; height:13px; border-style:none; ">
  1215. <choices>
  1216. <item>
  1217. <label>자의</label>
  1218. <value>Y</value>
  1219. </item>
  1220. <item>
  1221. <label>타의</label>
  1222. <value>N</value>
  1223. </item>
  1224. </choices>
  1225. </select1>
  1226. <line id="line16" class="line_2" style="x1:5px; y1:177px; x2:396px; y2:177px; "/>
  1227. <textarea id="tar_inmotv" ref="/root/main/wardrecinfo/inmotiveinfo/inmotive/inmotive2" navindex="21" scroll="autovscroll" style="left:88px; top:206px; width:308px; height:85px; "/>
  1228. <line id="line17" class="line_2" style="x1:86px; y1:203px; x2:396px; y2:203px; "/>
  1229. <line id="line18" class="line_2" style="x1:5px; y1:293px; x2:396px; y2:293px; "/>
  1230. <select1 id="rdo_illnessflag" ref="/root/main/wardrecinfo/inmotiveinfo/inmotive/illnessflag" navindex="22" appearance="full" cellspacing="40" cols="2" overflow="visible" style="left:169px; top:298px; width:131px; height:13px; border-style:none; ">
  1231. <choices>
  1232. <item>
  1233. <label>무</label>
  1234. <value>N</value>
  1235. </item>
  1236. <item>
  1237. <label>유</label>
  1238. <value>Y</value>
  1239. </item>
  1240. </choices>
  1241. </select1>
  1242. <line id="line30" class="line_3" style="x1:5px; y1:318px; x2:396px; y2:318px; "/>
  1243. <input id="ipt_attackdt" ref="/root/main/wardrecinfo/inmotiveinfo/inmotive/attackdt" class="input_default" navindex="19" maxlength="100" format="hh:nn" style="left:295px; top:156px; width:100px; height:19px; "/>
  1244. <caption id="caption29" class="cell_1" style="left:5px; top:295px; width:80px; height:23px; vertical-align:middle; ">병에대한인식</caption>
  1245. <input id="ipt_attackdd" ref="/root/main/wardrecinfo/inmotiveinfo/inmotive/attackdd" class="input_default" navindex="18" autonext="true" inputtype="date" style="left:88px; top:156px; width:119px; height:19px; "/>
  1246. <caption id="caption27" class="cell_1" style="left:5px; top:179px; width:80px; height:115px; vertical-align:middle; ">입원동기</caption>
  1247. <caption id="cap_attackdd" class="cell_1" style="left:5px; top:155px; width:80px; height:23px; vertical-align:middle; ">발병일자</caption>
  1248. <line id="line31" class="line_2" style="x1:401px; y1:219px; x2:792px; y2:219px; "/>
  1249. <line id="line32" class="line_2" style="x1:401px; y1:243px; x2:792px; y2:243px; "/>
  1250. <line id="line33" class="line_1" style="x1:401px; y1:103px; x2:792px; y2:103px; "/>
  1251. <caption id="caption42" class="tit_2" style="left:406px; top:88px; width:104px; height:13px; ">기호정보</caption>
  1252. <line id="line38" class="line_1" style="x1:401px; y1:293px; x2:792px; y2:293px; "/>
  1253. <caption id="caption50" class="tit_2" style="left:406px; top:278px; width:104px; height:13px; ">여성정보</caption>
  1254. <line id="line39" class="line_2" style="x1:401px; y1:320px; x2:792px; y2:320px; "/>
  1255. <line id="line40" class="line_2" style="x1:401px; y1:344px; x2:792px; y2:344px; "/>
  1256. <input id="ipt_prgbthhisa" ref="/root/main/wardrecinfo/femaleinfo/female/female/prgbthhisa" class="input_default" disabled="true" navindex="49" imemode="alpha" maxlength="3" style="left:591px; top:347px; width:26px; height:19px; "/>
  1257. <caption id="caption125" style="left:675px; top:345px; width:18px; height:25px; vertical-align:middle; ">AA</caption>
  1258. <caption id="caption127" style="left:725px; top:345px; width:18px; height:25px; vertical-align:middle; ">) L</caption>
  1259. <input id="ipt_prgbthhisg" ref="/root/main/wardrecinfo/femaleinfo/female/female/prgbthhisg" class="input_default" disabled="true" navindex="47" imemode="alpha" maxlength="3" style="left:502px; top:347px; width:26px; height:19px; "/>
  1260. <input id="ipt_prgbthhisl" ref="/root/main/wardrecinfo/femaleinfo/female/female/prgbthhisl" class="input_default" disabled="true" navindex="52" imemode="alpha" maxlength="3" style="left:751px; top:347px; width:26px; height:19px; "/>
  1261. <caption id="caption120" style="left:484px; top:345px; width:15px; height:25px; vertical-align:middle; ">G</caption>
  1262. <input id="ipt_prgbthhissa" ref="/root/main/wardrecinfo/femaleinfo/female/female/prgbthhissa" class="input_default" disabled="true" navindex="50" imemode="alpha" maxlength="3" style="left:646px; top:347px; width:26px; height:19px; "/>
  1263. <caption id="caption121" style="left:531px; top:344px; width:15px; height:25px; vertical-align:middle; ">P</caption>
  1264. <input id="ipt_prgbthhisaa" ref="/root/main/wardrecinfo/femaleinfo/female/female/prgbthhisaa" class="input_default" disabled="true" navindex="51" imemode="alpha" maxlength="3" style="left:696px; top:347px; width:26px; height:19px; "/>
  1265. <input id="ipt_prgbthhisp" ref="/root/main/wardrecinfo/femaleinfo/female/female/prgbthhisp" class="input_default" disabled="true" navindex="48" imemode="alpha" maxlength="3" style="left:549px; top:347px; width:26px; height:19px; "/>
  1266. <caption id="caption122" style="left:578px; top:344px; width:15px; height:25px; vertical-align:middle; ">A</caption>
  1267. <caption id="caption123" style="left:620px; top:344px; width:23px; height:25px; vertical-align:middle; ">(SA</caption>
  1268. <line id="line41" class="line_1" style="x1:401px; y1:394px; x2:791px; y2:394px; "/>
  1269. <caption id="caption53" class="tit_2" style="left:406px; top:379px; width:74px; height:13px; ">특이사항</caption>
  1270. <input id="ipt_indd" ref="/root/main/wardrecinfo/indd" class="input_default" disabled="true" navindex="10" inputtype="date" style="left:108px; top:31px; width:100px; height:19px; "/>
  1271. <caption id="cap_indd" class="cell_1" style="left:5px; top:30px; width:100px; height:23px; ">입원일자</caption>
  1272. <caption id="cap_indt" class="cell_1" style="left:211px; top:30px; width:82px; height:23px; ">입원시간</caption>
  1273. <input id="ipt_indt" ref="/root/main/wardrecinfo/indt" navindex="11" imemode="alpha" maxlength="4" format="hh:nn" style="left:295px; top:31px; width:100px; height:19px; text-align:center; "/>
  1274. <caption id="cap_inpath" class="cell_1" style="left:5px; top:54px; width:100px; height:23px; ">입원경로</caption>
  1275. <select1 id="cmb_inpath" ref="/root/main/wardrecinfo/inpathcd" class="combo_default" navindex="12" appearance="minimal" style="left:108px; top:55px; width:100px; height:19px; ">
  1276. <choices>
  1277. <itemset nodeset="/root/init/mlist/M0418">
  1278. <label ref="cdnm"/>
  1279. <value ref="cdid"/>
  1280. </itemset>
  1281. </choices>
  1282. <script type="javascript" ev:event="xforms-value-changed">
  1283. <![CDATA[
  1284. if(model.getValue("/root/main/wardrecinfo/inpathcd") == "08") {
  1285. ipt_inpathnm.visible = true;
  1286. } else {
  1287. ipt_inpathnm.visible = false;
  1288. model.resetInstanceNode("/root/main/wardrecinfo/inpathnm");
  1289. }
  1290. ]]>
  1291. </script>
  1292. </select1>
  1293. <caption id="cap_inmthd" class="cell_1" style="left:5px; top:78px; width:100px; height:23px; ">입원방법</caption>
  1294. <select1 id="cmb_inmthd" ref="/root/main/wardrecinfo/inmthdcd" class="combo_default" navindex="14" appearance="minimal" style="left:108px; top:79px; width:100px; height:19px; ">
  1295. <choices>
  1296. <itemset nodeset="/root/init/mlist/M0210">
  1297. <label ref="cdnm"/>
  1298. <value ref="cdid"/>
  1299. </itemset>
  1300. </choices>
  1301. <script type="javascript" ev:event="xforms-value-changed">
  1302. <![CDATA[
  1303. if(model.getValue("/root/main/wardrecinfo/inmthdcd") == "08") {
  1304. ipt_inmthdnm.visible = true;
  1305. } else {
  1306. ipt_inmthdnm.visible = false;
  1307. model.resetInstanceNode("/root/main/wardrecinfo/inmthdnm");
  1308. ipt_inmthdnm.refresh();
  1309. }
  1310. ]]>
  1311. </script>
  1312. </select1>
  1313. <caption id="cap_inptner" class="cell_1" style="left:5px; top:102px; width:100px; height:23px; ">입원시동반자</caption>
  1314. <select1 id="cmb_inacompst" ref="/root/main/wardrecinfo/inacompstcd" class="combo_default" navindex="16" appearance="minimal" style="left:108px; top:103px; width:100px; height:19px; ">
  1315. <choices>
  1316. <itemset nodeset="/root/init/mlist/M0098">
  1317. <label ref="cdnm"/>
  1318. <value ref="cdid"/>
  1319. </itemset>
  1320. </choices>
  1321. <script type="javascript" ev:event="xforms-value-changed">
  1322. <![CDATA[
  1323. if(model.getValue("/root/main/wardrecinfo/inacompstcd") == "04") {
  1324. ipt_inacompstnm.visible = true;
  1325. } else {
  1326. ipt_inacompstnm.visible = false;
  1327. model.resetInstanceNode("/root/main/wardrecinfo/inacompstnm");
  1328. ipt_inacompstnm.refresh();
  1329. }
  1330. ]]>
  1331. </script>
  1332. </select1>
  1333. <textarea id="tar_spcffact" ref="/root/main/wardrecinfo/spcffact/spcf/spcffactdetl" navindex="53" scroll="autovscroll" style="left:401px; top:400px; width:390px; height:85px; "/>
  1334. <select1 id="rdo_smokinfo" ref="/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/smokinfoyn" navindex="33" appearance="full" cellspacing="9" cols="2" rows="2" vcellspacing="2" overflow="visible" style="left:494px; top:108px; width:145px; height:38px; border-style:none; ">
  1335. <choices>
  1336. <item>
  1337. <label>현재흡연</label>
  1338. <value>4</value>
  1339. </item>
  1340. <item>
  1341. <label>과거흡연</label>
  1342. <value>2</value>
  1343. </item>
  1344. <item>
  1345. <label>비흡연</label>
  1346. <value>1</value>
  1347. </item>
  1348. <item>
  1349. <label>확인불능</label>
  1350. <value>3</value>
  1351. </item>
  1352. </choices>
  1353. <script type="javascript" ev:event="xforms-value-changed">
  1354. <![CDATA[
  1355. /*
  1356. if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/smokinfoyn") == "2") {
  1357. ipt_smokinfocnt.disabled = false;
  1358. ipt_smokinfocnt.refresh();
  1359. } else {
  1360. ipt_smokinfocnt.disabled = true;
  1361. model.resetInstanceNode("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/smokinfocnt");
  1362. ipt_smokinfocnt.refresh();
  1363. }
  1364. */
  1365. //입원전1개월이내흡연 체크
  1366. if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/smokinfoyn") == "2") {
  1367. rdo_bfsmokinfo.disabled = false;
  1368. } else {
  1369. rdo_bfsmokinfo.disabled = true;
  1370. model.resetInstanceNode("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/bfsmokinfoyn");
  1371. }
  1372. rdo_bfsmokinfo.refresh();
  1373. //금연상담여부컨트롤
  1374. /*
  1375. if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/smokinfoyn") == "4") {
  1376. model.setValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/nosmokcnstyn", "2");
  1377. }else if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/smokinfoyn") == "2") {
  1378. if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/bfsmokinfoyn") == "Y") {
  1379. model.setValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/nosmokcnstyn", "2");
  1380. } else{
  1381. model.setValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/nosmokcnstyn", "1");
  1382. }
  1383. }else{
  1384. model.setValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/nosmokcnstyn", "1");
  1385. }
  1386. */
  1387. rdo_nosmokcnstyn.dispatch("xforms-value-changed");
  1388. rdo_nosmokcnstyn.refresh();
  1389. ]]>
  1390. </script>
  1391. </select1>
  1392. <caption id="cap_drunkinfo" class="cell_1" style="left:401px; top:197px; width:90px; height:23px; ">음주정보</caption>
  1393. <select1 id="rdo_drunkinfo" ref="/root/main/wardrecinfo/gustoinfo/gusto/drunkinfo/drunkinfoyn" navindex="37" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:494px; top:201px; width:75px; height:13px; border-style:none; ">
  1394. <choices>
  1395. <item>
  1396. <label>무</label>
  1397. <value>1</value>
  1398. </item>
  1399. <item>
  1400. <label>유</label>
  1401. <value>2</value>
  1402. </item>
  1403. </choices>
  1404. <script type="javascript" ev:event="xforms-value-changed">
  1405. <![CDATA[
  1406. if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/drunkinfo/drunkinfoyn") == "2") {
  1407. ipt_drunkinfokind.disabled = false;
  1408. ipt_drunkinfoterm.disabled = false;
  1409. } else {
  1410. model.resetInstanceNode("/root/main/wardrecinfo/gustoinfo/gusto/drunkinfo/drunkinfokind");
  1411. model.resetInstanceNode("/root/main/wardrecinfo/gustoinfo/gusto/drunkinfo/drunkinfoterm");
  1412. ipt_drunkinfokind.disabled = true;
  1413. ipt_drunkinfoterm.disabled = true;
  1414. ipt_drunkinfokind.refresh();
  1415. ipt_drunkinfoterm.refresh();
  1416. }
  1417. ]]>
  1418. </script>
  1419. </select1>
  1420. <caption id="cap_gustofoodyn" class="cell_1" style="left:401px; top:221px; width:90px; height:23px; ">기호식품</caption>
  1421. <select1 id="rdo_gustofoodyn" ref="/root/main/wardrecinfo/gustoinfo/gusto/gustofoodinfo/gustofoodyn" navindex="40" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:494px; top:225px; width:75px; height:13px; border-style:none; ">
  1422. <choices>
  1423. <item>
  1424. <label>무</label>
  1425. <value>1</value>
  1426. </item>
  1427. <item>
  1428. <label>유</label>
  1429. <value>2</value>
  1430. </item>
  1431. </choices>
  1432. <script type="javascript" ev:event="xforms-value-changed">
  1433. <![CDATA[
  1434. if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/gustofoodinfo/gustofoodyn") == "2") {
  1435. ipt_gustofood.disabled = false;
  1436. } else {
  1437. model.resetInstanceNode("/root/main/wardrecinfo/gustoinfo/gusto/gustofoodinfo/gustofooddetl");
  1438. ipt_gustofood.disabled = true;
  1439. ipt_gustofood.refresh();
  1440. }
  1441. ]]>
  1442. </script>
  1443. </select1>
  1444. <caption id="cap_tnsseffcyn" class="cell_1" style="left:401px; top:245px; width:90px; height:23px; ">수혈부작용</caption>
  1445. <line id="line36" class="line_3" style="x1:401px; y1:267px; x2:792px; y2:267px; "/>
  1446. <select1 id="rdo_tnsseffcyn" ref="/root/main/wardrecinfo/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn" navindex="42" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:494px; top:249px; width:75px; height:13px; border-style:none; ">
  1447. <choices>
  1448. <item>
  1449. <label>무</label>
  1450. <value>1</value>
  1451. </item>
  1452. <item>
  1453. <label>유</label>
  1454. <value>2</value>
  1455. </item>
  1456. </choices>
  1457. <script type="javascript" ev:event="xforms-value-changed">
  1458. <![CDATA[
  1459. if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn") == "2") {
  1460. ipt_tnsseffc.disabled = false;
  1461. } else {
  1462. model.resetInstanceNode("/root/main/wardrecinfo/gustoinfo/gusto/tnsseffcinfo/tnsseffcdetl");
  1463. ipt_tnsseffc.disabled = true;
  1464. ipt_tnsseffc.refresh();
  1465. }
  1466. ]]>
  1467. </script>
  1468. </select1>
  1469. <input id="ipt_tnsseffc" ref="/root/main/wardrecinfo/gustoinfo/gusto/tnsseffcinfo/tnsseffcdetl" disabled="true" navindex="43" style="left:572px; top:246px; width:218px; height:19px; "/>
  1470. <input id="ipt_gustofood" ref="/root/main/wardrecinfo/gustoinfo/gusto/gustofoodinfo/gustofooddetl" disabled="true" navindex="41" style="left:572px; top:222px; width:218px; height:19px; "/>
  1471. <select1 id="rdo_endmensyn" ref="/root/main/wardrecinfo/femaleinfo/female/female/endmensyn" navindex="44" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:485px; top:302px; width:75px; height:13px; border-style:none; ">
  1472. <choices>
  1473. <item>
  1474. <label>무</label>
  1475. <value>1</value>
  1476. </item>
  1477. <item>
  1478. <label>유</label>
  1479. <value>2</value>
  1480. </item>
  1481. </choices>
  1482. <script type="javascript" ev:event="xforms-value-changed">
  1483. <![CDATA[
  1484. if(model.getValue("/root/main/wardrecinfo/femaleinfo/female/female/endmensyn") == "2") {
  1485. ipt_endmensyn.disabled = false;
  1486. ipt_closmensage.disabled = false;
  1487. // if ( chk_mensinclyn.value !="1") {
  1488. // rdo_mensyn.value = "2";
  1489. // rdo_mensyn.dispatch("xforms-value-changed");
  1490. // }
  1491. } else {
  1492. ipt_endmensyn.disabled = true;
  1493. ipt_closmensage.disabled = true;
  1494. model.resetInstanceNode("/root/main/wardrecinfo/femaleinfo/female/female/endmensdd");
  1495. model.resetInstanceNode("/root/main/wardrecinfo/mensinfo/mens/closmensage");
  1496. // if ( chk_mensinclyn.value !="1") {
  1497. // rdo_mensyn.value = "1";
  1498. // rdo_mensyn.dispatch("xforms-value-changed");
  1499. // }
  1500. ipt_endmensyn.refresh();
  1501. ipt_closmensage.refresh();
  1502. }
  1503. ]]>
  1504. </script>
  1505. </select1>
  1506. <input id="ipt_closmensage" ref="/root/main/wardrecinfo/mensinfo/mens/closmensage" style="left:683px; top:299px; width:79px; height:19px; "/>
  1507. <caption id="caption15" style="left:766px; top:299px; width:15px; height:19px; text-align:center; ">세</caption>
  1508. <caption id="caption6" class="cell_1" style="left:590px; top:298px; width:88px; height:23px; ">폐경나이</caption>
  1509. <input id="ipt_endmensyn" ref="/root/main/wardrecinfo/femaleinfo/female/female/endmensdd" class="input_default" disabled="true" navindex="45" visibility="hidden" inputtype="date" format="yyyy-mm-dd" style="left:482px; top:271px; width:101px; height:19px; "/>
  1510. <input id="ipt_lastmensdd" ref="/root/main/wardrecinfo/femaleinfo/female/female/lastmensdd" class="input_default" disabled="true" navindex="46" inputtype="date" format="yyyy-mm-dd" style="left:484px; top:323px; width:308px; height:19px; "/>
  1511. <caption id="cap_lastmensdd" class="cell_1" style="left:401px; top:322px; width:80px; height:23px; ">최종월경일</caption>
  1512. <caption id="cap_endmensyn" class="cell_1" style="left:401px; top:298px; width:80px; height:23px; ">폐경여부</caption>
  1513. <caption id="cap_prgbthhis" class="cell_1" style="left:401px; top:346px; width:80px; height:23px; ">임신출산력</caption>
  1514. <line id="line37" class="line_3" style="x1:401px; y1:368px; x2:792px; y2:368px; "/>
  1515. <line id="line13" class="line_3" style="x1:5px; y1:124px; x2:396px; y2:124px; "/>
  1516. <input id="ipt_inpathnm" ref="/root/main/wardrecinfo/inpathnm" navindex="13" visibility="hidden" style="left:210px; top:55px; width:185px; height:19px; "/>
  1517. <input id="ipt_inmthdnm" ref="/root/main/wardrecinfo/inmthdnm" navindex="15" visibility="hidden" style="left:210px; top:79px; width:185px; height:19px; "/>
  1518. <input id="ipt_inacompstnm" ref="/root/main/wardrecinfo/inacompstnm" navindex="17" visibility="hidden" style="left:210px; top:103px; width:185px; height:19px; "/>
  1519. <select id="chk_femaleinfoinclyn" ref="/root/main/wardrecinfo/femaleinfo/female/femaleinfoyn" overflow="visible" appearance="full" style="left:720px; top:276px; width:70px; height:15px; border-style:none; ">
  1520. <choices>
  1521. <item>
  1522. <label>해당없음</label>
  1523. <value>1</value>
  1524. </item>
  1525. </choices>
  1526. <script type="javascript" ev:event="xforms-value-changed">
  1527. <![CDATA[
  1528. if(model.getValue("/root/main/wardrecinfo/femaleinfo/female/femaleinfoyn")=="1") {
  1529. var isEmptyYN = "Y";
  1530. while(1) {
  1531. if(model.getValue("/root/main/wardrecinfo/mensinfo/mens/closmensage") != "") {
  1532. isEmptyYN = "N";
  1533. break;
  1534. }
  1535. if(model.getValue("/root/main/wardrecinfo/femaleinfo/female/female/endmensdd") != "") {
  1536. isEmptyYN = "N";
  1537. break;
  1538. }
  1539. if(model.getValue("/root/main/wardrecinfo/femaleinfo/female/female/lastmensdd") != "") {
  1540. isEmptyYN = "N";
  1541. break;
  1542. }
  1543. if(model.getValue("/root/main/wardrecinfo/femaleinfo/female/female/prgbthhisg") != "") {
  1544. isEmptyYN = "N";
  1545. break;
  1546. }
  1547. if(model.getValue("/root/main/wardrecinfo/femaleinfo/female/female/prgbthhisp") != "") {
  1548. isEmptyYN = "N";
  1549. break;
  1550. }
  1551. if(model.getValue("/root/main/wardrecinfo/femaleinfo/female/female/prgbthhisa") != "") {
  1552. isEmptyYN = "N";
  1553. break;
  1554. }
  1555. if(model.getValue("/root/main/wardrecinfo/femaleinfo/female/female/prgbthhissa") != "") {
  1556. isEmptyYN = "N";
  1557. break;
  1558. }
  1559. if(model.getValue("/root/main/wardrecinfo/femaleinfo/female/female/prgbthhisaa") != "") {
  1560. isEmptyYN = "N";
  1561. break;
  1562. }
  1563. if(model.getValue("/root/main/wardrecinfo/femaleinfo/female/female/prgbthhisl") != "") {
  1564. isEmptyYN = "N";
  1565. break;
  1566. }
  1567. break;
  1568. }
  1569. if(isEmptyYN == "Y") {
  1570. status = "select";
  1571. }
  1572. var rtn = "";
  1573. rtn = fSetStatus();
  1574. if(rtn == "6") {
  1575. rdo_endmensyn.disabled = true;
  1576. ipt_endmensyn.disabled = true;
  1577. ipt_lastmensdd.disabled = true;
  1578. ipt_prgbthhisg.disabled = true;
  1579. ipt_prgbthhisp.disabled = true;
  1580. ipt_prgbthhisa.disabled = true;
  1581. ipt_prgbthhissa.disabled = true;
  1582. ipt_prgbthhisaa.disabled = true;
  1583. ipt_prgbthhisl.disabled = true;
  1584. ipt_closmensage.disabled = true;
  1585. chk_femaleaddinfoyn.disabled = true;
  1586. model.resetInstanceNode("/root/main/wardrecinfo/femaleinfo/female/female/endmensyn");
  1587. model.resetInstanceNode("/root/main/wardrecinfo/femaleinfo/female/female/endmensdd");
  1588. model.resetInstanceNode("/root/main/wardrecinfo/mensinfo/mens/closmensage");
  1589. model.resetInstanceNode("/root/main/wardrecinfo/femaleinfo/female/female/lastmensdd");
  1590. model.resetInstanceNode("/root/main/wardrecinfo/femaleinfo/female/female/prgbthhisg");
  1591. model.resetInstanceNode("/root/main/wardrecinfo/femaleinfo/female/female/prgbthhisp");
  1592. model.resetInstanceNode("/root/main/wardrecinfo/femaleinfo/female/female/prgbthhisa");
  1593. model.resetInstanceNode("/root/main/wardrecinfo/femaleinfo/female/female/prgbthhissa");
  1594. model.resetInstanceNode("/root/main/wardrecinfo/femaleinfo/female/female/prgbthhisaa");
  1595. model.resetInstanceNode("/root/main/wardrecinfo/femaleinfo/female/female/prgbthhisl");
  1596. model.resetInstanceNode("/root/main/wardrecinfo/femaleinfo/female/femaleaddinfoyn"); // 여성정보 추가사정
  1597. rdo_endmensyn.refresh();
  1598. ipt_lastmensdd.refresh();
  1599. ipt_closmensage.refresh();
  1600. ipt_prgbthhisg.refresh();
  1601. ipt_prgbthhisp.refresh();
  1602. ipt_prgbthhisa.refresh();
  1603. ipt_prgbthhissa.refresh();
  1604. ipt_prgbthhisaa.refresh();
  1605. ipt_prgbthhisl.refresh();
  1606. chk_femaleaddinfoyn.refresh();
  1607. model.setValue("/root/main/wardrecinfo/mensinfo/mens/mensinclyn", "1");
  1608. status = "select";
  1609. chk_mensinclyn.refresh();
  1610. chk_mensinclyn.dispatch("xforms-value-changed");
  1611. } else {
  1612. model.setValue("/root/main/wardrecinfo/mensinfo/mens/mensinclyn", "");
  1613. chk_mensinclyn.refresh();
  1614. return;
  1615. }
  1616. } else {
  1617. if(model.getValue("/root/main/wardrecinfo/femaleinfo/female/femaleaddinfoyn") == "1")
  1618. {
  1619. // 추가사정 체크일 때, 모두 활성화, 아닐경우 폐경여부(유/무), 폐경일자, 폐경나이만 활성화.
  1620. rdo_endmensyn.disabled = false;
  1621. ipt_endmensyn.disabled = false;
  1622. ipt_closmensage.disabled = false;
  1623. ipt_lastmensdd.disabled = false;
  1624. ipt_prgbthhisg.disabled = false;
  1625. ipt_prgbthhisp.disabled = false;
  1626. ipt_prgbthhisa.disabled = false;
  1627. ipt_prgbthhissa.disabled = false;
  1628. ipt_prgbthhisaa.disabled = false;
  1629. ipt_prgbthhisl.disabled = false;
  1630. chk_femaleaddinfoyn.disabled = false;
  1631. } else {
  1632. rdo_endmensyn.disabled = false;
  1633. ipt_endmensyn.disabled = false;
  1634. ipt_closmensage.disabled = false;
  1635. ipt_lastmensdd.disabled = true;
  1636. ipt_prgbthhisg.disabled = true;
  1637. ipt_prgbthhisp.disabled = true;
  1638. ipt_prgbthhisa.disabled = true;
  1639. ipt_prgbthhissa.disabled = true;
  1640. ipt_prgbthhisaa.disabled = true;
  1641. ipt_prgbthhisl.disabled = true;
  1642. chk_femaleaddinfoyn.disabled = false;
  1643. }
  1644. rdo_endmensyn.dispatch("xforms-value-changed");
  1645. }
  1646. ipt_endmensyn.refresh();
  1647. ipt_lastmensdd.refresh();
  1648. ipt_closmensage.refresh();
  1649. ipt_prgbthhisg.refresh();
  1650. ipt_prgbthhisp.refresh();
  1651. ipt_prgbthhisa.refresh();
  1652. ipt_prgbthhissa.refresh();
  1653. ipt_prgbthhisaa.refresh();
  1654. ipt_prgbthhisl.refresh();
  1655. chk_femaleaddinfoyn.refresh();
  1656. ]]>
  1657. </script>
  1658. <script type="javascript" ev:event="xforms-select">
  1659. <![CDATA[
  1660. status = "click";
  1661. ]]>
  1662. </script>
  1663. </select>
  1664. <select id="chk_basebdinfoinclyn" ref="/root/main/wardrecinfo/basebdinfoinclyn" visibility="hidden" overflow="visible" appearance="full" style="left:631px; top:9px; width:70px; height:15px; border-style:none; ">
  1665. <choices>
  1666. <item>
  1667. <label>해당없음</label>
  1668. <value>1</value>
  1669. </item>
  1670. </choices>
  1671. <script type="javascript" ev:event="xforms-value-changed">
  1672. <![CDATA[
  1673. if(model.getValue("/root/main/wardrecinfo/basebdinfoinclyn")=="1") {
  1674. var rtn = "";
  1675. var isEmptyYN = "Y";
  1676. while(1) {
  1677. // if(model.getValue("/root/main/wardrecinfo/lowbp") != "") {
  1678. // isEmptyYN = "N";
  1679. // break;
  1680. // }
  1681. // if(model.getValue("/root/main/wardrecinfo/highbp") != "") {
  1682. // isEmptyYN = "N";
  1683. // break;
  1684. // }
  1685. // if(model.getValue("/root/main/wardrecinfo/pulse") !="") {
  1686. // isEmptyYN = "N";
  1687. // break;
  1688. // }
  1689. // if(model.getValue("/root/main/wardrecinfo/breth") !="") {
  1690. // isEmptyYN = "N";
  1691. // break;
  1692. // }
  1693. // if(model.getValue("/root/main/wardrecinfo/bdtp") !="") {
  1694. // isEmptyYN = "N";
  1695. // break;
  1696. // }
  1697. // if(model.getValue("/root/main/wardrecinfo/bdtppartcd") !="") {
  1698. // isEmptyYN = "N";
  1699. // break;
  1700. // }
  1701. if(model.getValue("/root/main/wardrecinfo/bdht") !="") {
  1702. isEmptyYN = "N";
  1703. break;
  1704. }
  1705. if(model.getValue("/root/main/wardrecinfo/bdwt") !="") {
  1706. isEmptyYN = "N";
  1707. break;
  1708. }
  1709. if(model.getValue("/root/main/wardrecinfo/bdbtype") !="") {
  1710. isEmptyYN = "N";
  1711. break;
  1712. }
  1713. if(model.getValue("/root/main/wardrecinfo/bdbtyperh") !="") {
  1714. isEmptyYN = "N";
  1715. break;
  1716. }
  1717. if(model.getValue("/root/main/wardrecinfo/spo2") !="") {
  1718. isEmptyYN = "N";
  1719. break;
  1720. }
  1721. break;
  1722. }
  1723. if(isEmptyYN == "Y") {
  1724. status = "select";
  1725. }
  1726. rtn = fSetStatus();
  1727. if(rtn == "6") {
  1728. // ipt_lowbp.disabled = true;
  1729. // ipt_highbp.disabled = true;
  1730. // ipt_pulse.disabled = true;
  1731. // ipt_breth.disabled = true;
  1732. // ipt_bdtp.disabled = true;
  1733. // cmb_bdtp.disabled = true;
  1734. ipt_bdht.disabled = true;
  1735. ipt_bdwt.disabled = true;
  1736. ipt_spo2.disabled = true;
  1737. cmb_bdbtype.disabled = true;
  1738. // model.resetInstanceNode("/root/main/wardrecinfo/lowbp");
  1739. // model.resetInstanceNode("/root/main/wardrecinfo/highbp");
  1740. // model.resetInstanceNode("/root/main/wardrecinfo/pulse");
  1741. // model.resetInstanceNode("/root/main/wardrecinfo/breth");
  1742. // model.resetInstanceNode("/root/main/wardrecinfo/bdtp");
  1743. // model.resetInstanceNode("/root/main/wardrecinfo/bdtppartcd");
  1744. model.resetInstanceNode("/root/main/wardrecinfo/bdht");
  1745. model.resetInstanceNode("/root/main/wardrecinfo/bdwt");
  1746. model.resetInstanceNode("/root/main/wardrecinfo/bdbtype");
  1747. model.resetInstanceNode("/root/main/wardrecinfo/bdbtyperh");
  1748. model.resetInstanceNode("/root/main/wardrecinfo/spo2");
  1749. } else {
  1750. model.setValue("/root/main/wardrecinfo/basebdinfoinclyn", "");
  1751. chk_basebdinfoinclyn.refresh();
  1752. return;
  1753. }
  1754. } else {
  1755. // ipt_lowbp.disabled = false;
  1756. // ipt_highbp.disabled = false;
  1757. // ipt_pulse.disabled = false;
  1758. // ipt_breth.disabled = false;
  1759. // ipt_bdtp.disabled = false;
  1760. // cmb_bdtp.disabled = false;
  1761. ipt_bdht.disabled = false;
  1762. ipt_bdwt.disabled = false;
  1763. cmb_bdbtype.disabled = false;
  1764. ipt_spo2.disabled = false;
  1765. }
  1766. // ipt_lowbp.refresh();
  1767. // ipt_highbp.refresh();
  1768. // ipt_pulse.refresh();
  1769. // ipt_breth.refresh();
  1770. // ipt_bdtp.refresh();
  1771. // cmb_bdtp.refresh();
  1772. ipt_bdht.refresh();
  1773. ipt_bdwt.refresh();
  1774. cmb_bdbtype.refresh();
  1775. ipt_spo2.refresh();
  1776. ]]>
  1777. </script>
  1778. <script type="javascript" ev:event="xforms-select">
  1779. <![CDATA[
  1780. status = "click";
  1781. ]]>
  1782. </script>
  1783. </select>
  1784. <caption id="caption39" class="tit_2" style="left:405px; top:10px; width:104px; height:13px; ">기본 신체정보</caption>
  1785. <line id="line34" class="line_1" style="x1:400px; y1:25px; x2:791px; y2:25px; "/>
  1786. <line id="line43" class="line_2" style="x1:797px; y1:458px; x2:1188px; y2:458px; "/>
  1787. <caption id="caption4" class="cell_1" style="left:797px; top:436px; width:215px; height:23px; ">병원도착전 24시간내 항생제 투약여부</caption>
  1788. <select1 id="cmb_antibiodrugyn" ref="/root/main/wardrecinfo/rectmedistatinfo/rectmedistat/antibiodrugyn" navindex="16" appearance="minimal" style="left:1015px; top:437px; width:172px; height:19px; text-align:center; ">
  1789. <choices>
  1790. <item>
  1791. <label>Y</label>
  1792. <value>Y</value>
  1793. </item>
  1794. <item>
  1795. <label>N</label>
  1796. <value>N</value>
  1797. </item>
  1798. <item>
  1799. <label>확인불가</label>
  1800. <value>U</value>
  1801. </item>
  1802. </choices>
  1803. </select1>
  1804. <input id="ipt_nosmokcnstnm" ref="/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/nosmokcnstnm" disabled="true" navindex="36" style="left:493px; top:174px; width:297px; height:19px; "/>
  1805. <select1 id="cmb_nosmokcnst" ref="/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/nosmokcnst" class="combo_default" disabled="true" navindex="35" appearance="minimal" style="left:572px; top:149px; width:218px; height:19px; ">
  1806. <choices>
  1807. <item>
  1808. <label/>
  1809. <value>00</value>
  1810. </item>
  1811. <item>
  1812. <label>환자의 신경학적 결함(의식 혼탁 등)으로 인해 금연 상담의 이해가 불가능한 경우</label>
  1813. <value>01</value>
  1814. </item>
  1815. <item>
  1816. <label>환자의 신체적/정신적 상태로 인해 흡연이 불가능한 경우</label>
  1817. <value>02</value>
  1818. </item>
  1819. <item>
  1820. <label>기타</label>
  1821. <value>03</value>
  1822. </item>
  1823. </choices>
  1824. <script type="javascript" ev:event="xforms-value-changed">
  1825. <![CDATA[
  1826. if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/nosmokcnst") == "03") {
  1827. ipt_nosmokcnstnm.disabled = false;
  1828. } else {
  1829. ipt_nosmokcnstnm.disabled = true;
  1830. model.resetInstanceNode("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/nosmokcnstnm");
  1831. ipt_nosmokcnstnm.refresh();
  1832. }
  1833. ]]>
  1834. </script>
  1835. </select1>
  1836. <select1 id="rdo_nosmokcnstyn" ref="/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/nosmokcnstyn" navindex="34" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:494px; top:152px; width:75px; height:13px; border-style:none; ">
  1837. <choices>
  1838. <item>
  1839. <label>무</label>
  1840. <value>1</value>
  1841. </item>
  1842. <item>
  1843. <label>유</label>
  1844. <value>2</value>
  1845. </item>
  1846. </choices>
  1847. <script type="javascript" ev:event="xforms-value-changed">
  1848. <![CDATA[
  1849. if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/nosmokcnstyn") == "1") {
  1850. if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/smokinfoyn") == "4"
  1851. || model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/bfsmokinfoyn") == "Y") {
  1852. cmb_nosmokcnst.disabled = false;
  1853. ipt_nosmokcnstnm.disabled = false;
  1854. }else{
  1855. cmb_nosmokcnst.disabled = true;
  1856. ipt_nosmokcnstnm.disabled = true;
  1857. model.resetInstanceNode("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/nosmokcnst");
  1858. model.resetInstanceNode("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/nosmokcnstnm");
  1859. }
  1860. } else {
  1861. cmb_nosmokcnst.disabled = true;
  1862. ipt_nosmokcnstnm.disabled = true;
  1863. model.resetInstanceNode("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/nosmokcnst");
  1864. model.resetInstanceNode("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/nosmokcnstnm");
  1865. }
  1866. cmb_nosmokcnst.refresh();
  1867. ipt_nosmokcnstnm.refresh();
  1868. ]]>
  1869. </script>
  1870. </select1>
  1871. <line id="line44" class="line_2" style="x1:400px; y1:145px; x2:791px; y2:145px; "/>
  1872. <caption id="cap_smokinfo" class="cell_1" style="left:401px; top:108px; width:90px; height:38px; text-align:left; ">흡연정보</caption>
  1873. <line id="line45" class="line_2" style="x1:400px; y1:171px; x2:791px; y2:171px; "/>
  1874. <line id="line46" class="line_2" style="x1:400px; y1:195px; x2:791px; y2:195px; "/>
  1875. <caption id="caption5" class="cell_1" style="left:401px; top:147px; width:90px; height:49px; ">금연상담여부</caption>
  1876. <input id="ipt_drunkinfoterm" ref="/root/main/wardrecinfo/gustoinfo/gusto/drunkinfo/drunkinfoterm" disabled="true" navindex="39" style="left:689px; top:198px; width:55px; height:19px; text-align:center; "/>
  1877. <caption id="cap_drunkinfoterm" style="left:744px; top:199px; width:53px; height:19px; text-align:center; ">기간(년)</caption>
  1878. <input id="ipt_drunkinfokind" ref="/root/main/wardrecinfo/gustoinfo/gusto/drunkinfo/drunkinfokind" disabled="true" navindex="38" style="left:572px; top:198px; width:114px; height:19px; text-align:center; "/>
  1879. <select1 id="rdo_allgyn" ref="/root/main/histinfo/allghistinfo/allghist/allghistinclyn" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:870px; top:551px; width:140px; height:13px; border-style:none; ">
  1880. <choices>
  1881. <item>
  1882. <label>무</label>
  1883. <value>1</value>
  1884. </item>
  1885. <item>
  1886. <label>유</label>
  1887. <value>2</value>
  1888. </item>
  1889. <item>
  1890. <label>잘모름</label>
  1891. <value>3</value>
  1892. </item>
  1893. </choices>
  1894. <script type="javascript" ev:event="xforms-value-changed">
  1895. <![CDATA[
  1896. if(model.getValue("/root/main/histinfo/allghistinfo/allghist/allghistinclyn") == "1") {
  1897. var isEmptyYN = "Y";
  1898. isEmptyYN = isCheckGridDataYN(grd_allghist);
  1899. var rtn = fSetStatus();
  1900. if(rtn == "6") {
  1901. model.removeNodeset("/root/main/histinfo/allghistinfo/allghist/allghist");
  1902. grd_allghist.rebuild();
  1903. btn_allghistadd.disabled = true;
  1904. btn_allghistdel.disabled = true;
  1905. } else if(rtn == "7") {
  1906. model.setValue("/root/main/histinfo/allghistinfo/allghist/allghistinclyn", "");
  1907. rdo_allgyn.refresh();
  1908. }
  1909. } else {
  1910. btn_allghistadd.disabled = false;
  1911. btn_allghistdel.disabled = false;
  1912. if(grd_allghist.rows == 1) {
  1913. grd_allghist.addRow();
  1914. }
  1915. }
  1916. ]]>
  1917. </script>
  1918. <script type="javascript" ev:event="xforms-select">
  1919. <![CDATA[
  1920. status = "click";
  1921. ]]>
  1922. </script>
  1923. </select1>
  1924. <button id="btn_allg" class="icon_search" style="left:1057px; top:549px; width:16px; height:16px; ">
  1925. <script type="javascript" ev:event="DOMActivate">
  1926. <![CDATA[
  1927. open("SPMMD03300");
  1928. ]]>
  1929. </script>
  1930. <caption/>
  1931. </button>
  1932. <caption id="caption12" class="cell_1" style="left:211px; top:155px; width:82px; height:22px; ">발병시간</caption>
  1933. <input id="ipt_smokinfocnt" ref="/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/smokinfocnt" disabled="true" navindex="41" visibility="hidden" style="left:682px; top:83px; width:110px; height:19px; "/>
  1934. <button id="btn_inhistpop" class="icon_search" style="left:1058px; top:209px; width:16px; height:16px; ">
  1935. <script type="javascript" ev:event="DOMActivate">
  1936. <![CDATA[
  1937. setParameter("histflag", "inhist");
  1938. setParameter("pid", model.getValue("/root/temp/cond/list/pid"));
  1939. setParameter("indd", model.getValue("/root/temp/cond/list/indd"));
  1940. setParameter("instcd", model.getValue("/root/temp/cond/list/instcd"));
  1941. open("SPMNW12800");
  1942. ]]>
  1943. </script>
  1944. <caption/>
  1945. </button>
  1946. <button id="btn_ophistpop" class="icon_search" style="left:1058px; top:310px; width:16px; height:16px; ">
  1947. <script type="javascript" ev:event="DOMActivate">
  1948. <![CDATA[
  1949. setParameter("histflag", "ophist");
  1950. setParameter("pid", model.getValue("/root/temp/cond/list/pid"));
  1951. setParameter("indd", model.getValue("/root/temp/cond/list/indd"));
  1952. setParameter("instcd", model.getValue("/root/temp/cond/list/instcd"));
  1953. open("SPMNW12800");
  1954. ]]>
  1955. </script>
  1956. <caption/>
  1957. </button>
  1958. <caption id="caption13" style="left:634px; top:109px; width:13px; height:19px; text-align:center; ">(</caption>
  1959. <caption id="caption14" style="left:770px; top:128px; width:13px; height:19px; text-align:center; ">)</caption>
  1960. <caption id="cap_insp" style="left:717px; top:6px; width:73px; height:19px; text-align:center; ">측정불가 V</caption>
  1961. <button id="bnt_testroom" class="btn2_letter6" visibility="hidden" style="left:515px; top:5px; width:86px; height:19px; ">
  1962. <caption>입원전검사실</caption>
  1963. <script type="javascript" ev:event="DOMActivate">
  1964. <![CDATA[
  1965. setParameter("pid", model.getValue("/root/temp/cond/list/pid"));
  1966. setParameter("instcd", model.getValue("/root/temp/cond/list/instcd"));
  1967. modal("SPMNW12900", 1,10, 10);
  1968. ]]>
  1969. </script>
  1970. </button>
  1971. <button id="btn_SPMMO14900" class="btn5_letter4" navindex="69" visibility="hidden" style="left:1011px; top:411px; width:68px; height:19px; ">
  1972. <caption>처방조회</caption>
  1973. <script type="javascript" ev:event="DOMActivate">
  1974. <![CDATA[
  1975. open("SPMMO14900");
  1976. ]]>
  1977. </script>
  1978. </button>
  1979. <line id="line51" class="line_3" style="x1:400px; y1:650px; x2:791px; y2:650px; "/>
  1980. <line id="line42" class="line_1" style="x1:400px; y1:510px; x2:790px; y2:510px; "/>
  1981. <caption id="capnrs21" navindex="43" visibility="visible" disabled="true" appearance="caption" style="left:495px; top:570px; width:300px; height:30px; ">고관절 골절 만성환자, 급성합병증이 동반된 상태, 간경화, 만성폐쇄성 호흡기 질환, 만성혈액투석, 당뇨, 종양</caption>
  1982. <caption id="capnrs22" navindex="43" visibility="visible" disabled="true" appearance="caption" style="left:495px; top:605px; width:300px; height:25px; ">주요 복부수술, 뇌줄중, 중증폐렴, 혈액학적 악성종양</caption>
  1983. <caption id="capnrs23" navindex="43" visibility="visible" disabled="true" appearance="caption" style="left:495px; top:630px; width:300px; height:25px; ">두부손상, 골수이식, 중환자 (APACHE 10점 이상)</caption>
  1984. <caption id="caption21" class="tit_2" style="left:405px; top:495px; width:380px; height:13px; ">영양위험(체중의5%:2.075kg,제중의15%:6.225kg,BMI:17.9)</caption>
  1985. <line id="line47" class="line_3" style="x1:400px; y1:540px; x2:791px; y2:540px; "/>
  1986. <select1 id="comnrs1" ref="/root/main/wardrecinfo/nrs1cd" class="combo_default" navindex="3" appearance="minimal" style="left:485px; top:517px; width:305px; height:19px; ">
  1987. <choices>
  1988. <item>
  1989. <label>정상영양상태</label>
  1990. <value>0</value>
  1991. </item>
  1992. <item>
  1993. <label>3개월 동안 5% 이상 체중감소 또는 이전 1주일 동안 정상 영양 요구량의 50~75% 이하의 음식섭취</label>
  1994. <value>1</value>
  1995. </item>
  1996. <item>
  1997. <label>2개월 동안 5% 이상 체중감소 또는 MBI 18.5~20.5 + 전신상태의 악화 또는 이전 1주일 동안 정상 영양 요구량의 25~60% 음식섭취</label>
  1998. <value>2</value>
  1999. </item>
  2000. <item>
  2001. <label>1개월 내에 5% 이상 체중감소 (또는 15%이상/3개월) 또는 MBI 18.5이하 + 전신상태의 악화 또는 이전 1주일 동안의 정상영양 요구량의 0~25% 음식섭취</label>
  2002. <value>3</value>
  2003. </item>
  2004. </choices>
  2005. <script type="javascript" ev:event="xforms-value-changed">
  2006. <![CDATA[
  2007. fnNRScalc();
  2008. ]]>
  2009. </script>
  2010. </select1>
  2011. <caption id="caption22" class="cell_1" style="left:400px; top:515px; width:80px; height:23px; ">임신출산력</caption>
  2012. <line id="line48" class="line_3" style="x1:400px; y1:565px; x2:791px; y2:565px; "/>
  2013. <caption id="caption34" class="cell_1" style="left:598px; top:541px; width:105px; height:23px; ">Total NRS Score</caption>
  2014. <caption id="caption23" class="cell_1" style="left:400px; top:516px; width:80px; height:23px; ">영양상태지표</caption>
  2015. <line id="line49" class="line_3" style="x1:400px; y1:600px; x2:791px; y2:600px; "/>
  2016. <caption id="caption24" class="cell_1" style="left:400px; top:541px; width:80px; height:23px; ">임상상태지표</caption>
  2017. <select1 id="radnrs21" ref="/root/main/wardrecinfo/nrs21cd" navindex="37" appearance="full" cols="2" overflow="visible" style="left:405px; top:570px; width:85px; height:20px; border-style:none; ">
  2018. <choices>
  2019. <item>
  2020. <label>없음</label>
  2021. <value>1</value>
  2022. </item>
  2023. <item>
  2024. <label>있음</label>
  2025. <value>2</value>
  2026. </item>
  2027. </choices>
  2028. <script type="javascript" ev:event="xforms-value-changed">
  2029. <![CDATA[
  2030. fnNRScalc();
  2031. ]]>
  2032. </script>
  2033. </select1>
  2034. <select1 id="radnrs22" ref="/root/main/wardrecinfo/nrs22cd" navindex="37" appearance="full" cols="2" overflow="visible" style="left:405px; top:605px; width:85px; height:20px; border-style:none; ">
  2035. <choices>
  2036. <item>
  2037. <label>없음</label>
  2038. <value>1</value>
  2039. </item>
  2040. <item>
  2041. <label>있음</label>
  2042. <value>2</value>
  2043. </item>
  2044. </choices>
  2045. <script type="javascript" ev:event="xforms-value-changed">
  2046. <![CDATA[
  2047. fnNRScalc();
  2048. ]]>
  2049. </script>
  2050. </select1>
  2051. <select1 id="radnrs23" ref="/root/main/wardrecinfo/nrs23cd" navindex="37" appearance="full" cols="2" overflow="visible" style="left:405px; top:630px; width:85px; height:20px; border-style:none; ">
  2052. <choices>
  2053. <item>
  2054. <label>없음</label>
  2055. <value>1</value>
  2056. </item>
  2057. <item>
  2058. <label>있음</label>
  2059. <value>2</value>
  2060. </item>
  2061. </choices>
  2062. <script type="javascript" ev:event="xforms-value-changed">
  2063. <![CDATA[
  2064. fnNRScalc();
  2065. ]]>
  2066. </script>
  2067. </select1>
  2068. <line id="line50" class="line_3" style="x1:400px; y1:625px; x2:791px; y2:625px; "/>
  2069. <input id="input6" ref="/root/main/wardrecinfo/nrsscore" disabled="true" navindex="43" appearance="input" style="left:705px; top:543px; width:83px; height:19px; "/>
  2070. <line id="line8" class="line_3" visibility="hidden" style="x1:5px; y1:657px; x2:396px; y2:657px; "/>
  2071. <caption id="cap_existyn" class="cell_1" visibility="hidden" style="left:5px; top:635px; width:100px; height:23px; ">존재유무</caption>
  2072. <button id="button40" class="btn2_letter4" visibility="hidden" style="left:211px; top:636px; width:64px; height:19px; ">
  2073. <caption>끌어오기</caption>
  2074. <script type="javascript" ev:event="DOMActivate">
  2075. <![CDATA[
  2076. setParameter("SPMMR04711_shape", model.getValue("root/properties/parameters/SPMMR04711_shape/SPMMR04711_shapevalue"));
  2077. modal("SPMMR04700", 1,10, 10, "SPMMR04700" ,"/root/temp/strmeta", "/root/send");
  2078. if(model.getValue("root/properties/parameters/SPMMR04711_shape/SPMMR04711_shapevalue") != "") {
  2079. model.setValue("/root/main/wardrecinfo/famytree/existyn", "Y");
  2080. opt_existyn.refresh();
  2081. } else {
  2082. model.setValue("/root/main/wardrecinfo/famytree/existyn", "");
  2083. opt_existyn.refresh();
  2084. }
  2085. ]]>
  2086. </script>
  2087. </button>
  2088. <caption id="caption8" class="tit_2" visibility="hidden" style="left:10px; top:615px; width:104px; height:13px; ">가계도</caption>
  2089. <input id="opt_existyn" ref="/root/main/wardrecinfo/famytree/existyn" disabled="true" navindex="9" visibility="hidden" appearance="input" style="left:108px; top:636px; width:100px; height:19px; "/>
  2090. <line id="line7" class="line_1" visibility="hidden" style="x1:5px; y1:630px; x2:396px; y2:630px; "/>
  2091. <group id="grp_anti" visibility="hidden" style="left:745px; top:435px; width:240px; height:140px; background-color:#ccffcc; border-style:solid; ">
  2092. <button id="btn_anti1" class="btn5_letter2" visibility="hidden" style="left:140px; top:105px; width:42px; height:19px; ">
  2093. <caption>선택</caption>
  2094. <script type="javascript" ev:event="onclick">
  2095. <![CDATA[
  2096. //txt_anti.refresh();
  2097. var antitype = model.getValue("/root/main/allgtemp/antitype");
  2098. var antilabel = rdo_anti.label;
  2099. var antidesc = model.getValue("/root/main/allgtemp/antidesc");
  2100. var allgrow = model.getValue("root/main/allgtemp/row");
  2101. var allgcol = eval(model.getValue("root/main/allgtemp/col")) + 1;
  2102. var alldesc = grd_allghist.valueMatrix(allgrow, allgcol);
  2103. if (alldesc != "" && antitype != "") {
  2104. alldesc = alldesc + ",";
  2105. }
  2106. if (antitype == "3") {
  2107. if (antidesc != "") {
  2108. antidesc = ":" + antidesc;
  2109. }
  2110. } else {
  2111. antidesc = "";
  2112. }
  2113. var allgdesc = alldesc + antilabel + antidesc;
  2114. grd_allghist.valueMatrix(allgrow, allgcol) = allgdesc;
  2115. model.removeNodeset("/root/main/allgtemp");
  2116. model.refresh();
  2117. //allergespec
  2118. grp_anti.visible = false;
  2119. rdo_anti.visible = false;
  2120. txt_anti.visible = false;
  2121. btn_anti1.visible = false;
  2122. btn_anti2.visible = false;
  2123. ]]>
  2124. </script>
  2125. </button>
  2126. <button id="btn_anti2" class="btn5_letter2" visibility="hidden" style="left:183px; top:105px; width:42px; height:19px; ">
  2127. <caption>취소</caption>
  2128. <script type="javascript" ev:event="onclick">
  2129. <![CDATA[
  2130. grp_anti.visible = false;
  2131. rdo_anti.visible = false;
  2132. txt_anti.visible = false;
  2133. btn_anti1.visible = false;
  2134. btn_anti2.visible = false;
  2135. model.removeNodeset("/root/main/allgtemp");
  2136. model.refresh();
  2137. ]]>
  2138. </script>
  2139. </button>
  2140. <select1 id="rdo_anti" ref="/root/main/allgtemp/antitype" visibility="hidden" appearance="full" cellspacing="10" cols="2" rows="2" vcellspacing="15" overflow="visible" style="left:19px; top:9px; width:200px; height:65px; background-color:#ccffcc; border-style:none; ">
  2141. <choices>
  2142. <item>
  2143. <label>페니실린계</label>
  2144. <value>1</value>
  2145. </item>
  2146. <item>
  2147. <label>기타 베타락탐계</label>
  2148. <value>2</value>
  2149. </item>
  2150. <item>
  2151. <label>기타</label>
  2152. <value>3</value>
  2153. </item>
  2154. </choices>
  2155. </select1>
  2156. <textarea id="txt_anti" ref="/root/main/allgtemp/antidesc" visibility="hidden" style="left:70px; top:50px; width:155px; height:50px; "/>
  2157. </group>
  2158. <caption id="caption25" style="left:645px; top:108px; width:148px; height:20px; ">입원전1개월이내</caption>
  2159. <select1 id="rdo_bfsmokinfo" ref="/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/bfsmokinfoyn" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:705px; top:128px; width:70px; height:15px; border-style:none; ">
  2160. <choices>
  2161. <item>
  2162. <label>무</label>
  2163. <value>N</value>
  2164. </item>
  2165. <item>
  2166. <label>유</label>
  2167. <value>Y</value>
  2168. </item>
  2169. </choices>
  2170. <script type="javascript" ev:event="xforms-value-changed">
  2171. <![CDATA[
  2172. rdo_smokinfo.dispatch("xforms-value-changed");
  2173. ]]>
  2174. </script>
  2175. </select1>
  2176. <caption id="caption32" style="left:645px; top:128px; width:65px; height:15px; ">흡연여부 :</caption>
  2177. <input id="ipt_relignnm" ref="/root/main/wardrecinfo/relignnm" disabled="true" style="left:150px; top:373px; width:112px; height:19px; "/>
  2178. <select1 id="cmb_relignreq" ref="/root/main/wardrecinfo/relignreq" class="combo_default" navindex="3" visibility="hidden" appearance="minimal" style="left:327px; top:373px; width:69px; height:19px; ">
  2179. <choices>
  2180. <itemset nodeset="/root/init/mlist/M0411">
  2181. <label ref="cdnm"/>
  2182. <value ref="cdid"/>
  2183. </itemset>
  2184. </choices>
  2185. </select1>
  2186. <input id="ipt_marystatnm" ref="/root/main/wardrecinfo/marystatnm" disabled="true" navindex="8" style="left:150px; top:397px; width:50px; height:19px; "/>
  2187. <select1 id="cmb_relign" ref="/root/main/wardrecinfo/religncd" class="combo_default" navindex="5" appearance="minimal" style="left:68px; top:373px; width:78px; height:19px; ">
  2188. <choices>
  2189. <itemset nodeset="/root/init/mlist/M0070">
  2190. <label ref="cdnm"/>
  2191. <value ref="cdid"/>
  2192. </itemset>
  2193. </choices>
  2194. <script type="javascript" ev:event="xforms-value-changed">
  2195. <![CDATA[
  2196. var religncd = model.getValue("/root/main/wardrecinfo/religncd");
  2197. if(religncd == "01") { //천주교일 경우 세례명 입력
  2198. cap_baptnm.visible = true;
  2199. ipt_baptnm.visible = true;
  2200. ipt_baptnm.disabled = false;
  2201. ipt_relignnm.visible = false;
  2202. } else {
  2203. cap_baptnm.visible = false;
  2204. ipt_baptnm.visible = false;
  2205. ipt_relignnm.visible = true;
  2206. model.resetInstanceNode("/root/main/wardrecinfo/baptnm");
  2207. if(religncd == "09") { //기타
  2208. ipt_relignnm.disabled = false;
  2209. } else {
  2210. ipt_relignnm.disabled = true;
  2211. }
  2212. }
  2213. ]]>
  2214. </script>
  2215. </select1>
  2216. <select1 id="cmb_job" ref="/root/main/wardrecinfo/jobcd" class="combo_default" navindex="1" appearance="minimal" style="left:68px; top:349px; width:78px; height:19px; ">
  2217. <choices>
  2218. <itemset nodeset="/root/init/mlist/M0068">
  2219. <label ref="cdnm"/>
  2220. <value ref="cdid"/>
  2221. </itemset>
  2222. </choices>
  2223. <script type="javascript" ev:event="xforms-value-changed">
  2224. <![CDATA[
  2225. var job = model.getValue("/root/main/wardrecinfo/jobcd");
  2226. if(job == "10") { //기타
  2227. ipt_job.disabled = false;
  2228. } else {
  2229. model.resetInstanceNode("/root/main/wardrecinfo/jobnm");
  2230. ipt_job.disabled = true;
  2231. ipt_job.refresh();
  2232. }
  2233. ]]>
  2234. </script>
  2235. </select1>
  2236. <button id="btn_famyfactdel" class="btn2_letter3" style="left:342px; top:475px; width:53px; height:19px; ">
  2237. <caption>행삭제</caption>
  2238. <script type="javascript" ev:event="DOMActivate">
  2239. <![CDATA[
  2240. grd_famyfact.deleteRow(grd_famyfact.row);
  2241. ]]>
  2242. </script>
  2243. </button>
  2244. <caption id="caption1" class="tit_2" style="left:10px; top:328px; width:104px; height:13px; ">환자기본정보</caption>
  2245. <caption id="cap_baptnm" class="cell_1" visibility="hidden" style="left:150px; top:372px; width:50px; height:23px; ">세례명</caption>
  2246. <line id="line35" class="line_3" style="x1:5px; y1:466px; x2:396px; y2:466px; "/>
  2247. <input id="ipt_job" ref="/root/main/wardrecinfo/jobnm" disabled="true" navindex="2" style="left:150px; top:349px; width:50px; height:19px; "/>
  2248. <caption id="caption11" class="cell_1" style="left:5px; top:420px; width:95px; height:23px; ">연락처/휴대폰</caption>
  2249. <input id="ipt_baptnm" ref="/root/main/wardrecinfo/baptnm" disabled="true" navindex="6" visibility="hidden" style="left:203px; top:373px; width:60px; height:19px; "/>
  2250. <select1 id="rdo_etctelflag" ref="/root/main/wardrecinfo/etctelflag" appearance="full" cols="2" overflow="visible" style="left:103px; top:447px; width:100px; height:13px; border-style:none; ">
  2251. <choices>
  2252. <item>
  2253. <label>본인</label>
  2254. <value>1</value>
  2255. </item>
  2256. <item>
  2257. <label>보호자</label>
  2258. <value>2</value>
  2259. </item>
  2260. </choices>
  2261. </select1>
  2262. <select1 id="cmb_marystat" ref="/root/main/wardrecinfo/marystatcd" class="combo_default" navindex="7" appearance="minimal" style="left:68px; top:397px; width:78px; height:19px; ">
  2263. <choices>
  2264. <itemset nodeset="/root/init/mlist/M0151">
  2265. <label ref="cdnm"/>
  2266. <value ref="cdid"/>
  2267. </itemset>
  2268. </choices>
  2269. <script type="javascript" ev:event="xforms-value-changed">
  2270. <![CDATA[
  2271. var marystatcd = model.getValue("/root/main/wardrecinfo/marystatcd");
  2272. if(marystatcd == "09") {
  2273. ipt_marystatnm.disabled = false;
  2274. } else {
  2275. ipt_marystatnm.disabled = true;
  2276. model.resetInstanceNode("/root/main/wardrecinfo/marystatnm");
  2277. ipt_marystatnm.refresh();
  2278. }
  2279. ]]>
  2280. </script>
  2281. </select1>
  2282. <caption id="cap_marystat" class="cell_1" style="left:5px; top:396px; width:60px; height:23px; ">결혼상태</caption>
  2283. <line id="line1" class="line_1" style="x1:5px; y1:343px; x2:396px; y2:343px; "/>
  2284. <select1 id="rdo_telflag" ref="/root/main/wardrecinfo/telflag" appearance="full" cols="2" overflow="visible" style="left:103px; top:423px; width:100px; height:13px; border-style:none; ">
  2285. <choices>
  2286. <item>
  2287. <label>본인</label>
  2288. <value>1</value>
  2289. </item>
  2290. <item>
  2291. <label>보호자</label>
  2292. <value>2</value>
  2293. </item>
  2294. </choices>
  2295. </select1>
  2296. <line id="line2" class="line_2" style="x1:5px; y1:370px; x2:396px; y2:370px; "/>
  2297. <input id="input1" ref="/root/main/wardrecinfo/tel" style="left:206px; top:421px; width:94px; height:19px; "/>
  2298. <select id="chk_privacy" ref="/root/main/wardrecinfo/privacy" visibility="hidden" overflow="visible" appearance="full" style="left:266px; top:327px; width:130px; height:15px; border-style:none; ">
  2299. <choices>
  2300. <item>
  2301. <label>개인정보사정 미동의</label>
  2302. <value>Y</value>
  2303. </item>
  2304. </choices>
  2305. <script type="javascript" ev:event="onclick">
  2306. <![CDATA[
  2307. if(model.getValue("/root/main/wardrecinfo/privacy") == "Y"){
  2308. model.setValue("/root/main/wardrecinfo/jobcd","");
  2309. model.setValue("/root/main/wardrecinfo/jobnm","");
  2310. model.setValue("/root/main/wardrecinfo/religncd","");
  2311. model.setValue("/root/main/wardrecinfo/relignnm","");
  2312. model.setValue("/root/main/wardrecinfo/baptnm","");
  2313. model.setValue("/root/main/wardrecinfo/marystatcd","");
  2314. model.setValue("/root/main/wardrecinfo/marystatnm","");
  2315. cmb_job.disabled = true;
  2316. ipt_job.disabled = true;
  2317. cmb_relign.disabled = true;
  2318. ipt_relignnm.disabled = true;
  2319. cmb_marystat.disabled = true;
  2320. ipt_marystatnm.disabled = true;
  2321. cap_baptnm.visible = false;
  2322. ipt_baptnm.visible = false;
  2323. ipt_relignnm.visible = true;
  2324. }else{
  2325. cmb_job.disabled = false;
  2326. cmb_relign.disabled = false;
  2327. cmb_marystat.disabled = false;
  2328. cmb_job.dispatch("xforms-value-changed");
  2329. cmb_relign.dispatch("xforms-value-changed");
  2330. cmb_marystat.dispatch("xforms-value-changed");
  2331. }
  2332. model.refresh();
  2333. ]]>
  2334. </script>
  2335. </select>
  2336. <line id="line3" class="line_2" style="x1:5px; y1:394px; x2:396px; y2:394px; "/>
  2337. <button id="btn_famyfactadd" class="btn2_letter3" style="left:286px; top:475px; width:53px; height:19px; ">
  2338. <caption>행추가</caption>
  2339. <script type="javascript" ev:event="DOMActivate">
  2340. <![CDATA[
  2341. grd_famyfact.addRow();
  2342. ]]>
  2343. </script>
  2344. </button>
  2345. <input id="input2" ref="/root/main/wardrecinfo/mphone" style="left:302px; top:421px; width:94px; height:19px; "/>
  2346. <caption id="caption7" class="cell_1" visibility="hidden" style="left:265px; top:372px; width:60px; height:23px; ">영적요구</caption>
  2347. <caption id="cap_relign" class="cell_1" style="left:5px; top:372px; width:60px; height:23px; ">종교</caption>
  2348. <line id="line4" class="line_2" style="x1:5px; y1:442px; x2:396px; y2:442px; "/>
  2349. <input id="input3" ref="/root/main/wardrecinfo/etcphone1" style="left:206px; top:445px; width:94px; height:19px; "/>
  2350. <line id="line5" class="line_2" style="x1:5px; y1:418px; x2:396px; y2:418px; "/>
  2351. <caption id="caption9" class="cell_1" style="left:5px; top:444px; width:95px; height:23px; ">기타 전화번호</caption>
  2352. <input id="input4" ref="/root/main/wardrecinfo/etcphone2" style="left:302px; top:445px; width:94px; height:19px; "/>
  2353. <caption id="cap_job" class="cell_1" style="left:5px; top:348px; width:60px; height:23px; ">직업</caption>
  2354. <line id="line6" class="line_1" style="x1:5px; y1:495px; x2:396px; y2:495px; "/>
  2355. <select1 id="cmb_educgrde" ref="/root/main/wardrecinfo/educgrdecd" class="combo_default" navindex="3" visibility="hidden" appearance="minimal" style="left:266px; top:349px; width:77px; height:19px; ">
  2356. <choices>
  2357. <itemset nodeset="/root/init/mlist/M0069">
  2358. <label ref="cdnm"/>
  2359. <value ref="cdid"/>
  2360. </itemset>
  2361. </choices>
  2362. <script type="javascript" ev:event="xforms-value-changed">
  2363. <![CDATA[
  2364. var educgrde = model.getValue("/root/main/wardrecinfo/educgrdecd");
  2365. if(educgrde == "15") { //기타
  2366. ipt_educgrde.disabled = false;
  2367. } else {
  2368. model.resetInstanceNode("/root/main/wardrecinfo/educgrdenm");
  2369. ipt_educgrde.disabled = true;
  2370. ipt_educgrde.refresh();
  2371. }
  2372. ]]>
  2373. </script>
  2374. </select1>
  2375. <caption id="cap_famyfact" class="tit_2" style="left:10px; top:480px; width:104px; height:13px; ">가족사항</caption>
  2376. <input id="ipt_educgrde" ref="/root/main/wardrecinfo/educgrdenm" disabled="true" navindex="4" visibility="hidden" style="left:346px; top:349px; width:50px; height:19px; "/>
  2377. <caption id="cap_educgrde" class="cell_1" visibility="hidden" style="left:203px; top:348px; width:60px; height:23px; ">교육정도</caption>
  2378. <datagrid id="grd_famyfact" nodeset="/root/main/famyfact" scroll="auto" caption="상태^관계^성명^전화번호^핸드폰번호^주보호자^주소(동/구)^세부주소^비고^fmlyseq" colsep="^" colwidth="0, 45, 0, 82, 85, 55, 94, 130, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:500px; width:391px; height:108px; ">
  2379. <col ref="stat"/>
  2380. <col class="gridcombo" ref="rela" type="combo">
  2381. <choices>
  2382. <itemset nodeset="/root/init/mlist/M0072">
  2383. <label ref="cdnm"/>
  2384. <value ref="cdid"/>
  2385. </itemset>
  2386. </choices>
  2387. </col>
  2388. <col ref="hngnm" type="input"/>
  2389. <col ref="tel" type="input">
  2390. <script type="javascript" ev:event="xforms-value-changed">
  2391. <![CDATA[
  2392. ]]>
  2393. </script>
  2394. </col>
  2395. <col ref="mpphone" type="input"/>
  2396. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  2397. <col ref="addr" type="input" visibility="hidden"/>
  2398. <col ref="detladdr" type="input" visibility="hidden"/>
  2399. <col ref="remfact" type="input"/>
  2400. <col ref="fmlyseq" visibility="hidden"/>
  2401. <script type="javascript" ev:event="xforms-value-changed">
  2402. <![CDATA[
  2403. ]]>
  2404. </script>
  2405. <script type="javascript" ev:event="onclick">
  2406. <![CDATA[
  2407. grd_famyfact.editCell();
  2408. ]]>
  2409. </script>
  2410. </datagrid>
  2411. <button id="button1" class="btn2_letter6" visibility="hidden" style="left:176px; top:323px; width:86px; height:19px; ">
  2412. <caption>환자기초정보</caption>
  2413. <script type="javascript" ev:event="DOMActivate">
  2414. <![CDATA[
  2415. //debugger;
  2416. if( model.getValue("/root/temp/cond/list/pid") != "" || model.getValue("/root/temp/cond/list/hngnm") != "" ) {
  2417. // 전화번호 더블클릭시 해당환자의 '전화번호/주소 조회 및 수정 창' 팝업창을 호출!!!
  2418. //예약내역이 없는 필드 체크
  2419. var hngnm = model.getValue("/root/temp/cond/list/hngnm");
  2420. var pid = model.getValue("/root/temp/cond/list/pid");
  2421. if (pid == null && pid == "" && hngnm == " " && hngnm == "-"){
  2422. return false;
  2423. }
  2424. //setParameter("opener_parameter_id", pid);
  2425. model.removeNodeset("/root/temp/source");
  2426. model.makeValue("/root/temp/source/srchcond", "1");
  2427. model.makeValue("/root/temp/source/pid", pid);
  2428. modal("SPPMO01400", "1", "100", "100", "SPPMO01400", "/root/temp/source", "/root/source");
  2429. // var hometel = getParameter("SMPMO01400_hometel");
  2430. // var mpphontel = getParameter("SMPMO01400_mpphontel");
  2431. // if( hometel != '' && mpphontel != '' ){
  2432. // model.setValue("/root/main/patrem/selectpat/hometel", hometel) ;
  2433. // model.setValue("/root/main/patrem/selectpat/mpphontel", mpphontel) ;
  2434. // }
  2435. model.removeNodeset("/root/temp/source");
  2436. model.refresh();
  2437. }
  2438. ]]>
  2439. </script>
  2440. </button>
  2441. <select id="chk_femaleaddinfoyn" ref="/root/main/wardrecinfo/femaleinfo/female/femaleaddinfoyn" navindex="75" overflow="visible" appearance="full" style="left:646px; top:276px; width:65px; height:15px; border-style:none; ">
  2442. <choices>
  2443. <item>
  2444. <label>추가사정</label>
  2445. <value>1</value>
  2446. </item>
  2447. </choices>
  2448. <script type="javascript" ev:event="xforms-value-changed">
  2449. <![CDATA[
  2450. if(model.getValue("/root/main/wardrecinfo/femaleinfo/female/femaleaddinfoyn") == "1") {
  2451. rdo_endmensyn.disabled = false;
  2452. ipt_endmensyn.disabled = false;
  2453. ipt_closmensage.disabled = false;
  2454. ipt_lastmensdd.disabled = false;
  2455. ipt_prgbthhisg.disabled = false;
  2456. ipt_prgbthhisp.disabled = false;
  2457. ipt_prgbthhisa.disabled = false;
  2458. ipt_prgbthhissa.disabled = false;
  2459. ipt_prgbthhisaa.disabled = false;
  2460. ipt_prgbthhisl.disabled = false;
  2461. } else {
  2462. model.resetInstanceNode("/root/main/wardrecinfo/femaleinfo/female/female/lastmensdd");
  2463. model.resetInstanceNode("/root/main/wardrecinfo/femaleinfo/female/female/prgbthhisg");
  2464. model.resetInstanceNode("/root/main/wardrecinfo/femaleinfo/female/female/prgbthhisp");
  2465. model.resetInstanceNode("/root/main/wardrecinfo/femaleinfo/female/female/prgbthhisa");
  2466. model.resetInstanceNode("/root/main/wardrecinfo/femaleinfo/female/female/prgbthhissa");
  2467. model.resetInstanceNode("/root/main/wardrecinfo/femaleinfo/female/female/prgbthhisaa");
  2468. model.resetInstanceNode("/root/main/wardrecinfo/femaleinfo/female/female/prgbthhisl");
  2469. rdo_endmensyn.disabled = false;
  2470. ipt_endmensyn.disabled = false;
  2471. ipt_closmensage.disabled = false;
  2472. ipt_lastmensdd.disabled = true;
  2473. ipt_prgbthhisg.disabled = true;
  2474. ipt_prgbthhisp.disabled = true;
  2475. ipt_prgbthhisa.disabled = true;
  2476. ipt_prgbthhissa.disabled = true;
  2477. ipt_prgbthhisaa.disabled = true;
  2478. ipt_prgbthhisl.disabled = true;
  2479. }
  2480. rdo_mensyn.refresh();
  2481. rdo_endmensyn.refresh();
  2482. ipt_closmensage.refresh();
  2483. ipt_fstmensage.refresh();
  2484. ipt_lastmensdd.refresh();
  2485. ipt_mensvol.refresh();
  2486. rdo_menspainyn.refresh();
  2487. ipt_mensday.refresh();
  2488. ipt_mensweek.refresh();
  2489. rdo_mensstat.refresh();
  2490. ipt_prgbthhisg.refresh();
  2491. ipt_prgbthhisp.refresh();
  2492. ipt_prgbthhisa.refresh();
  2493. ipt_prgbthhissa.refresh();
  2494. ipt_prgbthhisaa.refresh();
  2495. ipt_prgbthhisl.refresh();
  2496. chk_mensaddinfoyn.refresh();
  2497. ]]>
  2498. </script>
  2499. <script type="javascript" ev:event="xforms-select">
  2500. <![CDATA[
  2501. // status = "click";
  2502. // ]]>
  2503. </script>
  2504. </select>
  2505. </xhtml:body>
  2506. </xhtml:html>