SMASI00100_병원감염보고서관리.xrw 113 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140
  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>병원감염대상자기록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <hospinfcinfolist>
  11. </hospinfcinfolist>
  12. <hospinfcinfo>
  13. <hospinfc>
  14. <info>
  15. <psnflag>I</psnflag>
  16. <pid/>
  17. <patnm/>
  18. <indd/>
  19. <orddeptcd/>
  20. <wardcd/>
  21. <roomcd/>
  22. <infccaswardcd/>
  23. <infccasroomcd/>
  24. <chngroomdd/>
  25. <chngroomtm/>
  26. <sexflag/>
  27. <age/>
  28. <intm/>
  29. <atdrtcd/>
  30. <atdrtnm/>
  31. <diagcd/>
  32. <diagnm/>
  33. <outrmdd/>
  34. <outrmrslt/>
  35. <severityclssflag/>
  36. <icuinrmdd/>
  37. <icuinrmtm/>
  38. <icuoutrmdd/>
  39. <icuoutrmtm/>
  40. <icuinhospdayno/>
  41. <opinfcyn>N</opinfcyn>
  42. <opdd/>
  43. <opstarttm/>
  44. <opendtm/>
  45. <opusetm/>
  46. <opstartdate/>
  47. <opstarttime/>
  48. <openddate/>
  49. <opendtime/>
  50. <opcd/>
  51. <opnm/>
  52. <opflagcd>F</opflagcd>
  53. <perfdrcd/>
  54. <perfdrnm/>
  55. <woundclssflag/>
  56. <asaclssflag/>
  57. <generalanesthesiayn/>
  58. <endoscopicopyn/>
  59. <riskindxpnt/>
  60. <anstkind/>
  61. <rgstdt/>
  62. <rgstdd/>
  63. <rgsttm/>
  64. <cnfmyn/>
  65. <infcdd/>
  66. <infcbfinhospdayno/>
  67. <infckindlrg>-</infckindlrg>
  68. <infckindsml/>
  69. <catecd/>
  70. <cateusdt/>
  71. <cateuedt/>
  72. <cateusedayno/>
  73. <tpnyn/>
  74. <steroidyn/>
  75. <anticncryn/>
  76. <fstrgstrid/>
  77. <hbtestdt1/>
  78. <hbtestrslt1/>
  79. <wbctestdt1/>
  80. <wbctestrslt1/>
  81. <neutrophilstestdt1/>
  82. <neutrophilstestrslt1/>
  83. <esrtestdt1/>
  84. <esrtestrslt1/>
  85. <crptestdt1/>
  86. <crptestrslt1/>
  87. <bdtptestdt1/>
  88. <bdtptestrslt1/>
  89. <bdtptestdate1/>
  90. <bdtptesttime1/>
  91. <hbtestdt2/>
  92. <hbtestrslt2/>
  93. <wbctestdt2/>
  94. <wbctestrslt2/>
  95. <neutrophilstestdt2/>
  96. <neutrophilstestrslt2/>
  97. <esrtestdt2/>
  98. <esrtestrslt2/>
  99. <crptestdt2/>
  100. <crptestrslt2/>
  101. <bdtptestdt2/>
  102. <bdtptestrslt2/>
  103. <bdtptestdate2/>
  104. <bdtptesttime2/>
  105. <brethdate2/>
  106. <brethtime2/>
  107. <pulsedate2/>
  108. <pulsetime2/>
  109. <etc1/>
  110. <etc2/>
  111. <rem/>
  112. <scndbfinfcyn/>
  113. <nnopcd/>
  114. <opwundkind/>
  115. <infcyn/>
  116. <warddd/>
  117. </info>
  118. </hospinfc>
  119. <basalsicklist>
  120. </basalsicklist>
  121. <mirotestrslt>
  122. </mirotestrslt>
  123. <druginfo>
  124. </druginfo>
  125. <oprecinfo>
  126. </oprecinfo>
  127. </hospinfcinfo>
  128. <copyset>
  129. </copyset>
  130. <paminfo/>
  131. <diaglist/>
  132. </main>
  133. <hidden>
  134. <condition>
  135. <state>-</state>
  136. <pid/>
  137. <indd/>
  138. <fromdd/>
  139. <todd/>
  140. <refcond/>
  141. <psnflag/>
  142. <cretno/>
  143. <orddeptcd/>
  144. </condition>
  145. <getdata/>
  146. <selectedrowcnt/>
  147. </hidden>
  148. <send>
  149. </send>
  150. <init>
  151. <paminfo/>
  152. <current>
  153. <today/>
  154. <time/>
  155. </current>
  156. <warddeptlist>
  157. <dept>
  158. <deptcd/>
  159. <depthngnm>-</depthngnm>
  160. </dept>
  161. </warddeptlist>
  162. <A0358list>
  163. <A0358>
  164. <cdid/>
  165. <cdnm/>
  166. </A0358>
  167. </A0358list>
  168. <A0124list>
  169. </A0124list>
  170. <deptlist>
  171. <dept>
  172. <deptcd/>
  173. <depthngnm>-</depthngnm>
  174. </dept>
  175. </deptlist>
  176. <M0013list>
  177. <M0013>
  178. <cdid/>
  179. <cdnm/>
  180. </M0013>
  181. </M0013list>
  182. <M0015list>
  183. <M0015>
  184. <cdid/>
  185. <cdnm/>
  186. </M0015>
  187. </M0015list>
  188. <M0271list>
  189. <M0271>
  190. <cdid/>
  191. <cdnm/>
  192. </M0271>
  193. </M0271list>
  194. <P0064list>
  195. <P0064>
  196. <cdid/>
  197. <cdnm/>
  198. </P0064>
  199. </P0064list>
  200. <A0006list>
  201. <A0006>
  202. <cdid/>
  203. <cdnm/>
  204. </A0006>
  205. </A0006list>
  206. <A0144list>
  207. <A0144>
  208. <cdid/>
  209. <cdnm/>
  210. </A0144>
  211. </A0144list>
  212. <A0145list>
  213. <A0145>
  214. <cdid/>
  215. <cdnm/>
  216. </A0145>
  217. </A0145list>
  218. <M0157list/>
  219. <M0067list/>
  220. <M0341list>
  221. <M0341>
  222. <cdid/>
  223. <cdnm/>
  224. </M0341>
  225. </M0341list>
  226. <patinddlist>
  227. <patindd/>
  228. </patinddlist>
  229. <firstyn/>
  230. </init>
  231. </root>
  232. </instance>
  233. <script type="javascript" ev:event="xforms-ready">
  234. <![CDATA[
  235. //공통코드를 조회한다.
  236. fInitialize();
  237. var pamInfoCvs = getGlobalVariable("paminfo"); //상단정보가 있을 경우는 검색
  238. var pid = "";
  239. if(pamInfoCvs != "" ){ //cvs가 ""이 아닌 경우에만 처리함.
  240. model.removeNodeSet("/root/main/paminfo/list");
  241. setCSVToNode("/root/main/paminfo", pamInfoCvs);
  242. var ioflag = model.getValue("/root/main/paminfo/list/ioflag");
  243. model.setValue("/root/hidden/condition/psnflag", ioflag);
  244. if(ioflag == "I" || ioflag == "E"|| ioflag == "D"){
  245. model.setValue("/root/hidden/condition/pid", model.getValue("/root/main/paminfo/list/pid") );
  246. model.setValue("/root/hidden/condition/indd", model.getValue("/root/main/paminfo/list/indd"));
  247. model.refresh();
  248. }else if(ioflag == "O"){
  249. model.setValue("/root/hidden/condition/pid", model.getValue("/root/main/paminfo/list/pid") );
  250. model.setValue("/root/hidden/condition/indd", model.getValue("/root/main/paminfo/list/orddd"));
  251. model.refresh();
  252. }
  253. model.makeValue("/root/send/reqdata/pid", model.getValue("/root/hidden/condition/pid"));
  254. submit("TRASI00108", true);
  255. }
  256. if( isPopup() && opener.javascript.getParameter("SMASI00500_param") == "Y"){//병원감염대상자에서 파라미터 노드를 보낸다.
  257. model.setValue("/root/hidden/condition/pid", model.getValue("/root/hidden/getdata/pid") );
  258. model.setValue("/root/hidden/condition/indd", model.getValue("/root/hidden/getdata/indd") );
  259. model.setValue("/root/hidden/condition/psnflag", model.getValue("/root/hidden/getdata/psnflag") );
  260. }
  261. if(model.getValue("/root/hidden/condition/pid") != "") {
  262. model.makeValue("/root/send/reqdata/pid", model.getValue("/root/hidden/condition/pid"));
  263. submit("TRASI00108", true);
  264. fGetPtnInfo("I");
  265. }
  266. if(isPopup()){
  267. // model.removeNodeset("/root/main/hospinfcinfo/oprecinfo");
  268. // grd_opinfo.rebuild();
  269. btn_getpatinfo.disabled = true;
  270. rdo_psnflag.disabled = true;
  271. ipt_pid.disabled = true;
  272. // ipt_indd.disabled = true;
  273. var getPara = opener.window.javascript.getParameter("setVal1");//수술환자관련
  274. var getPara1 = opener.window.javascript.getParameter("setVal9");//발열1
  275. var getPara2 = opener.window.javascript.getParameter("setVal10");//발열2
  276. var getPara3 = opener.window.javascript.getParameter("setVal11");//유행발생검사
  277. var getPara4 = opener.window.javascript.getParameter("setVal12");//항생제내성균
  278. var getPara5 = opener.window.javascript.getParameter("setVal13");//미생물배양양성자
  279. var cnt = getPara.split("▩").length;
  280. var data = "";
  281. var currRow = 0;
  282. if(getPara != null && getPara != "" ){
  283. for(var i= 1; i<cnt-1; i++){
  284. grd_opinfo.addRow(false);
  285. currRow = grd_opinfo.rows - grd_opinfo.fixedRows ;
  286. data = getPara.split("▩")[i];
  287. model.makeValue("/root/main/hospinfcinfo/oprecinfo/info["+ currRow +"]/infcyn", data.split("▦")[0]);
  288. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ currRow +"]/opcd", data.split("▦")[1]);
  289. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ currRow +"]/opnm", data.split("▦")[2]);
  290. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ currRow +"]/opmskind", data.split("▦")[3]);
  291. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ currRow +"]/opflagcd", data.split("▦")[4]);
  292. model.makeValue("/root/main/hospinfcinfo/oprecinfo/info["+ currRow +"]/opstatcd", data.split("▦")[5]);
  293. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ currRow +"]/perfdrnm", data.split("▦")[6]);
  294. model.makeValue("/root/main/hospinfcinfo/oprecinfo/info["+ currRow +"]/perfdrcd", data.split("▦")[7]);
  295. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ currRow +"]/anstkind", data.split("▦")[8]);
  296. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ currRow +"]/opdd", data.split("▦")[9]);
  297. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ currRow +"]/opstarttm", data.split("▦")[10]);
  298. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ currRow +"]/opendtm", data.split("▦")[11]);
  299. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ currRow +"]/opusetm", data.split("▦")[12]);
  300. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ currRow +"]/opwundkind", data.split("▦")[13]);
  301. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ currRow +"]/asascore", data.split("▦")[14]);
  302. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ currRow +"]/riskindex", data.split("▦")[15]);
  303. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ currRow +"]/gnrlanst", data.split("▦")[16]);
  304. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ currRow +"]/nnopcd", data.split("▦")[17]);
  305. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ currRow +"]/escopeopyn", data.split("▦")[18]);
  306. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ currRow +"]/opdiagcd", data.split("▦")[19]);
  307. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ currRow +"]/opdiagnm", data.split("▦")[20]);
  308. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ currRow +"]/subopcd", data.split("▦")[21]);
  309. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ currRow +"]/subopnm", data.split("▦")[22]);
  310. }
  311. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/woundclssflag", opener.window.javascript.getParameter("setVal2"));
  312. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/asaclssflag", opener.window.javascript.getParameter("setVal3"));
  313. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/riskindxpnt", opener.window.javascript.getParameter("setVal4"));
  314. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/generalanesthesiayn", opener.window.javascript.getParameter("setVal5"));
  315. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/endoscopicopyn", opener.window.javascript.getParameter("setVal6"));
  316. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/anstkind", opener.window.javascript.getParameter("setVal7"));
  317. model.refresh();
  318. }else if(getPara1 != null && getPara1 != ""){
  319. model.setValue("/root/main/hospinfcinfo/hospinfc/info/bdtptestdate1", getPara1);
  320. model.setValue("/root/main/hospinfcinfo/hospinfc/info/bdtptesttime1", getPara2);
  321. model.refresh();
  322. }else if(getPara3 != null && getPara3 != ""){
  323. cnt = getPara3.split("▩").length;
  324. for(var i=1; i<cnt-1; i++){
  325. grd_mirotestrslt.addRow(false);
  326. currRow = grd_mirotestrslt.rows - grd_mirotestrslt.fixedRows;
  327. data = getPara3.split("▩")[i];
  328. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/culturedt", data.split("▦")[0]);
  329. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/spccd", data.split("▦")[1]);
  330. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/spcnm", data.split("▦")[2]);
  331. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/baccd", data.split("▦")[3]);
  332. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/bacnm", data.split("▦")[4]);
  333. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/nsgbrcdnm", data.split("▦")[5]);
  334. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/antibtrstbtrflag", data.split("▦")[6]);
  335. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/prcpdd", data.split("▦")[7]);
  336. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/bcoldt", data.split("▦")[8]);
  337. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/tclscd", data.split("▦")[9]);
  338. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/testcd", data.split("▦")[10]);
  339. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/bcno", data.split("▦")[11]);
  340. }
  341. grd_mirotestrslt.refresh();
  342. }else if(getPara4 != null && getPara4 != ""){
  343. cnt = getPara4.split("▩").length;
  344. for(var i=1; i<cnt-1; i++){
  345. grd_mirotestrslt.addRow(false);
  346. currRow = grd_mirotestrslt.rows - grd_mirotestrslt.fixedRows;
  347. data = getPara4.split("▩")[i];
  348. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/culturedt", data.split("▦")[0]);
  349. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/spccd", data.split("▦")[1]);
  350. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/spcnm", data.split("▦")[2]);
  351. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/baccd", data.split("▦")[3]);
  352. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/bacnm", data.split("▦")[4]);
  353. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/antibtrstbtrflagnm", data.split("▦")[5]);
  354. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/antibtrstbtrflag", data.split("▦")[6]);
  355. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/prcpdd", data.split("▦")[7]);
  356. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/bcoldt", data.split("▦")[8]);
  357. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/tclscd", data.split("▦")[9]);
  358. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/testcd", data.split("▦")[10]);
  359. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/bcno", data.split("▦")[11]);
  360. }
  361. grd_mirotestrslt.refresh();
  362. }else if(getPara5 != null && getPara5 != ""){
  363. cnt = getPara5.split("▩").length;
  364. for(var i=1; i<cnt-1; i++){
  365. grd_mirotestrslt.addRow(false);
  366. currRow = grd_mirotestrslt.rows - grd_mirotestrslt.fixedRows;
  367. data = getPara5.split("▩")[i];
  368. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/culturedt", data.split("▦")[0]);
  369. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/spccd", data.split("▦")[1]);
  370. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/spcnm", data.split("▦")[2]);
  371. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+currRow +"]/baccd", data.split("▦")[3]);
  372. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/bacnm", data.split("▦")[4]);
  373. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+currRow +"]/antibtrstbtrflagnm", data.split("▦")[5]);
  374. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow+"]/antibtrstbtrflag", data.split("▦")[6]);
  375. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/prcpdd", data.split("▦")[7]);
  376. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow+"]/bcoldt", data.split("▦")[8]);
  377. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+currRow +"]/tclscd", data.split("▦")[9]);
  378. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+ currRow +"]/testcd", data.split("▦")[10]);
  379. model.makeValue("/root/main/hospinfcinfo/mirotestrslt/info["+currRow +"]/bcno", data.split("▦")[11]);
  380. }
  381. grd_mirotestrslt.refresh();
  382. }
  383. } else{
  384. button72.selected = true;
  385. }
  386. ]]>
  387. </script>
  388. <submission id="TRASI00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/hospinfcinfolist"/>
  389. <submission id="TRASI00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/hospinfcinfo/oprecinfo"/>
  390. <submission id="TRASI00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/hospinfcinfo/basalsicklist"/>
  391. <submission id="TRASI00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/hospinfcinfo/druginfo"/>
  392. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  393. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  394. <submission id="TXASI00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/hospinfcinfolist"/>
  395. <submission id="TRASI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/hospinfcinfo/mirotestrslt"/>
  396. <submission id="TRASI00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/patbaseinfo"/>
  397. <script type="javascript" ev:event="xforms-model-construct-done">
  398. <![CDATA[
  399. ]]>
  400. </script>
  401. <submission id="TRASI00108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patinddlist"/>
  402. </model>
  403. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  404. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  405. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  406. <script type="javascript" src="../../../ast/infcmngtweb/js/SMTRASI001.js"/>
  407. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  408. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  409. <script type="javascript">
  410. <![CDATA[
  411. function fInitialize() {
  412. // 진료과
  413. var instcd = getUserInfo("dutplceinstcd");
  414. var standard_yn = "orduseyn";
  415. var ord_deptflag = 'D';
  416. var rslt_ref = "/root/init/deptlist";
  417. sort_field = "deptcd";
  418. sort_method = "asc";
  419. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
  420. //벙동
  421. standard_yn = "orduseyn";
  422. ord_deptflag = "W";
  423. rslt_ref = "/root/init/warddeptlist";
  424. sort_field = "deptcd";
  425. sort_method = "asc";
  426. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
  427. // 공통코드를 조회한다.
  428. zbcfGetCodeList( new Array("A0124", "A0358", "P0149", "M0013", "M0015", "M0271","P0064", "A0144", "A0145", "M0157","A0006", "M0067", "M0341"), new Array( "/root/init/A0124list", "/root/init/A0358list", "/root/init/P0149list", "/root/init/M0013list", "/root/init/M0015list", "/root/init/M0271list", "/root/init/P0064list", "/root/init/A0144list", "/root/init/A0145list", "/root/init/M0157list", "/root/init/A0006list", "/root/init/M0067list", "/root/init/M0341list") );
  429. switch1.selectedIndex = 0;
  430. }
  431. function fChkDup(pGridNm, pChkCd, pDestNode){
  432. if( pGridNm.rows - pGridNm.fixedRows >0 ) {
  433. var nodeList1 = instance1.selectNodes(pDestNode+ pChkCd +"']" );//dest
  434. if( nodeList1 != null && nodeList1.length > 0 ){
  435. return false;
  436. }
  437. }
  438. return true;
  439. }
  440. function fCalcuDayno(strParam){
  441. var InterDay;
  442. if( strParam == "device" ){
  443. if( !isNull(model.getValue("/root/main/hospinfcinfo/hospinfc/info/cateusdt")) ){
  444. if( !isNull(model.getValue("/root/main/hospinfcinfo/hospinfc/info/cateuedt")) ){
  445. InterDay = getDateInterval(model.getValue("/root/main/hospinfcinfo/hospinfc/info/cateusdt"), model.getValue("/root/main/hospinfcinfo/hospinfc/info/cateuedt"));
  446. } else {
  447. InterDay = getDateInterval(model.getValue("/root/main/hospinfcinfo/hospinfc/info/cateusdt"), getCurrentDate());
  448. }
  449. }
  450. model.setValue("/root/main/hospinfcinfo/hospinfc/info/cateusedayno", InterDay);
  451. } else if (strParam == "infcdd" ){
  452. if( !isNull(model.getValue("/root/main/hospinfcinfo/hospinfc/info/indd")) ){
  453. if( !isNull(model.getValue("/root/main/hospinfcinfo/hospinfc/info/infcdd")) ){
  454. InterDay = getDateInterval(model.getValue("/root/main/hospinfcinfo/hospinfc/info/indd"), model.getValue("/root/main/hospinfcinfo/hospinfc/info/infcdd"));
  455. model.setValue("/root/main/hospinfcinfo/hospinfc/info/infcbfinhospdayno", InterDay);
  456. } else {
  457. //InterDay = getDateInterval(model.getValue("/root/main/hospinfcinfo/hospinfc/info/indd"), getCurrentDate());
  458. InterDay = null;
  459. }
  460. }
  461. } else {
  462. if( !isNull(model.getValue("/root/main/hospinfcinfo/hospinfc/info/icuinrmdd")) ){
  463. if( !isNull(model.getValue("/root/main/hospinfcinfo/hospinfc/info/icuoutrmdd")) ){
  464. InterDay = getDateInterval(model.getValue("/root/main/hospinfcinfo/hospinfc/info/icuinrmdd"), model.getValue("/root/main/hospinfcinfo/hospinfc/info/icuoutrmdd"));
  465. } else {
  466. InterDay = getDateInterval(model.getValue("/root/main/hospinfcinfo/hospinfc/info/icuinrmdd"), getCurrentDate());
  467. }
  468. }
  469. model.setValue("/root/main/hospinfcinfo/hospinfc/info/icuinhospdayno", InterDay);
  470. }
  471. model.refresh();
  472. }
  473. function fChgPsnFlag(){
  474. if(model.getValue("/root/main/hospinfcinfo/hospinfc/info/psnflag") =="I" || model.getValue("/root/main/hospinfcinfo/hospinfc/info/psnflag") =="E"){
  475. cap_indd.text = "입원일";
  476. grd_hospinfclist.colHidden(9) = false;
  477. grd_hospinfclist.colHidden(10) = true;
  478. }else{
  479. cap_indd.text = "진료일";
  480. grd_hospinfclist.colHidden(9) = true;
  481. grd_hospinfclist.colHidden(10) = false;
  482. }
  483. if( model.getValue("/root/main/hospinfcinfo/hospinfc/info/psnflag") == "I" || model.getValue("/root/main/hospinfcinfo/hospinfc/info/psnflag") == "E"){
  484. // group1.disabled = false;
  485. // combo6.disabled = false;
  486. // input20.disabled = false;
  487. // combo23.disabled = false;
  488. // input2.disabled = false;
  489. // input53.disabled = false;
  490. button5.disabled = false;
  491. // input1.disabled = false;
  492. // combo1.disabled = false;
  493. }else{
  494. group1.disabled = true;
  495. //combo6.disabled = true;
  496. //input20.disabled = true;
  497. combo23.disabled = true;
  498. input2.disabled = true;
  499. input53.disabled = true;
  500. button5.disabled = true;
  501. input1.disabled = true;
  502. combo1.disabled = true;
  503. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/wardcd", "");
  504. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/roomcd", "");
  505. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/infccaswardcd", "");
  506. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/infccasroomcd", "");
  507. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/chngroomdd", "");
  508. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/outrmdd", "");
  509. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/outrmrslt", "");
  510. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/severityclssflag", "");
  511. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/icuinrmdd", "");
  512. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/icuoutrmdd", "");
  513. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/icuinhospdayno", "");
  514. }
  515. model.refresh();
  516. }
  517. function fpamCompareNodes(originalNode, copyNode){
  518. var ins = instance1;
  519. var original = ins.selectSingleNode(originalNode);
  520. var copy = ins.selectSingleNode(copyNode);
  521. if(original == null || copy == null){
  522. return false;
  523. }else if (original.xml == copy.xml){
  524. return true;
  525. }else{
  526. return false;
  527. }
  528. }
  529. function fRowDelete( grdName, grdPath ){
  530. var iRow = grdName.row - grdName.fixedRows + 1;
  531. if(iRow < 1){
  532. return;
  533. }
  534. var status = grdName.rowStatus(iRow);
  535. if(status == 1){
  536. grdName.deleteRow(iRow, false);
  537. }else{
  538. grdName.rowStatus(iRow)= 4;
  539. }
  540. model.makeValue(grdPath, "D");
  541. if(grdName.row - grdName.fixedRows <= 0 ){
  542. model.setValue("/root/main/hospinfcinfo/hospinfc/info/woundclssflag", "");
  543. model.setValue("/root/main/hospinfcinfo/hospinfc/info/asaclssflag", "");
  544. model.setValue("/root/main/hospinfcinfo/hospinfc/info/riskindxpnt", "");
  545. model.setValue("/root/main/hospinfcinfo/hospinfc/info/generalanesthesiayn", "");
  546. model.setValue("/root/main/hospinfcinfo/hospinfc/info/endoscopicopyn", "");
  547. model.setValue("/root/main/hospinfcinfo/hospinfc/info/anstkind", "");
  548. }
  549. model.refresh();
  550. }
  551. function fSetParameter(){
  552. var idate = new Date();
  553. var jdate = new Date();
  554. if(model.getValue("/root/main/hospinfcinfo/hospinfc/info/infcdd") == "" || model.getValue("/root/main/hospinfcinfo/hospinfc/info/infcdd") == null) {
  555. var todd = getCurrentDate();
  556. jdate = idate.getAddDate(-14, "D");
  557. var fromdd = jdate.getDateFormat();
  558. } else {
  559. idate= model.getValue("/root/main/hospinfcinfo/hospinfc/info/infcdd").toDate();
  560. var todd = idate.getDateFormat();
  561. jdate = idate.getAddDate(-14, "D");
  562. var fromdd = jdate.getDateFormat();
  563. }
  564. model.setValue("/root/hidden/condition/fromdd", fromdd);
  565. model.setValue("/root/hidden/condition/todd", todd);
  566. model.setValue("/root/hidden/condition/refcond", "3");
  567. model.setValue("/root/hidden/condition/pid", model.getValue("/root/main/hospinfcinfo/hospinfc/info/pid"));
  568. }
  569. function fGetPtnInfo(activeFlag){
  570. model.removeNodeset("/root/send");
  571. model.makeValue("/root/send/reqdata/pid", model.getValue("/root/hidden/condition/pid"));
  572. model.makeValue("/root/send/reqdata/indd", model.getValue("/root/hidden/condition/indd"));
  573. model.makeValue("/root/send/reqdata/cretno", model.getValue("/root/hidden/condition/cretno"));
  574. model.makeValue("/root/send/reqdata/orddeptcd", model.getValue("/root/hidden/condition/orddeptcd"));
  575. model.makeValue("/root/send/reqdata/psnflag", model.getValue("/root/hidden/condition/psnflag"));
  576. // if( activeFlag == "C" && ipt_pid.disabled == false){
  577. // if( isRequiredControls("ipt_pid", "ipt_indd") == false ){
  578. // return;
  579. // }
  580. // }
  581. if( activeFlag != "I" ){
  582. model.resetInstanceNode("/root/main/hospinfcinfo");
  583. model.removeNodeset("/root/main/hospinfcinfo/basalsicklist");
  584. model.removeNodeset("/root/main/hospinfcinfo/mirotestrslt");
  585. model.removeNodeset("/root/main/hospinfcinfo/druginfo");
  586. model.removeNodeset("/root/main/hospinfcinfo/oprecinfo");
  587. }
  588. if( activeFlag == "I" || activeFlag == "C" ){//처음열릴때 또는 등록번호입력했을때
  589. //대상자기록리스트조회(병원감염대상기록데이터)
  590. submit("TRASI00101");
  591. }
  592. submit("TRASI00102", true);
  593. model.copyNode("/root/main/diaglist", "/root/hidden/patbaseinfo");
  594. if( grd_hospinfclist.rows-grd_hospinfclist.fixedRows <= 0 || activeFlag == "I" ){
  595. //병원감염대상자 기본정보조회
  596. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/psnflag", model.getValue("/root/hidden/condition/psnflag"));
  597. fChgPsnFlag();
  598. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/pid", model.getValue("/root/hidden/condition/pid"));
  599. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/indd", model.getValue("/root/hidden/patbaseinfo/info/indd"));
  600. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/intm", model.getValue("/root/hidden/patbaseinfo/info/intm"));
  601. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/patnm", model.getValue("/root/hidden/patbaseinfo/info/patnm"));
  602. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/sexflag", model.getValue("/root/hidden/patbaseinfo/info/sexflag"));
  603. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/atdrtcd", model.getValue("/root/hidden/patbaseinfo/info/atdrtcd"));
  604. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/atdrtnm", model.getValue("/root/hidden/patbaseinfo/info/atdrtnm"));
  605. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/wardcd", model.getValue("/root/hidden/patbaseinfo/info/wardcd"));
  606. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/roomcd", model.getValue("/root/hidden/patbaseinfo/info/roomcd"));
  607. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/orddeptcd", model.getValue("/root/hidden/patbaseinfo/info/orddeptcd"));
  608. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/age", model.getValue("/root/hidden/patbaseinfo/info/age"));
  609. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/diagcd", model.getValue("/root/hidden/patbaseinfo/info/diagcd"));
  610. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/diagnm", model.getValue("/root/hidden/patbaseinfo/info/diagnm"));
  611. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/outrmdd", model.getValue("/root/hidden/patbaseinfo/info/dschdd"));
  612. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/outrmrslt", model.getValue("/root/hidden/patbaseinfo/info/dschtype"));
  613. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/warddd", model.getValue("/root/hidden/patbaseinfo/info/warddd"));
  614. // 감염병동병실 정보를 입원병동병실 정보로 default 설정함
  615. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/infccaswardcd", model.getValue("/root/hidden/patbaseinfo/info/wardcd"));
  616. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/infccasroomcd", model.getValue("/root/hidden/patbaseinfo/info/roomcd"));
  617. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/chngroomdd", model.getValue("/root/hidden/patbaseinfo/info/indd"));
  618. model.refresh();
  619. }
  620. fDblClickAllSearch(activeFlag);
  621. // if(activeFlag =="I" ||activeFlag =="C"){
  622. // fDblClickAllSearch(activeFlag);
  623. // }
  624. }
  625. function fDblClickAllSearch(flag){
  626. //선택한 값을 컨트롤에 setting해준다.
  627. //state를 ""으로 setting해준다.
  628. var rowcnt = grd_hospinfclist.row;
  629. var lastrow = grd_hospinfclist.rows-grd_hospinfclist.fixedRows;
  630. if( (lastrow > 0 && flag == "I") || (lastrow > 0 && flag == "D") || (lastrow > 0 && flag == "S") || (lastrow > 0 && flag == "C") ){
  631. rowcnt = 1;
  632. }
  633. var k = 0;
  634. if( lastrow > 0 && rowcnt > 0) {
  635. model.setValue("/root/hidden/selectedrowcnt", rowcnt);
  636. var selinfo = model.getValue("/root/main/hospinfcinfolist/info[" + rowcnt + "]/pid");
  637. //model.resetInstanceNode("/root/main/hospinfcinfo");
  638. model.setValue("/root/hidden/condition/state", "-");
  639. //기저질환, 항생제 투약 정보를 가지고 온다.
  640. model.removeNodeset("/root/send");
  641. model.makeValue("/root/send/reqdata/pid", model.getValue("/root/hidden/condition/pid"));
  642. if ( model.getValue("/root/hidden/condition/indd") != "" ) {
  643. model.makeValue("/root/send/reqdata/indd", model.getValue("/root/hidden/condition/indd"));
  644. } else {
  645. model.makeValue("/root/send/reqdata/indd", model.getValue("/root/main/hospinfcinfo/hospinfc/info/indd"));
  646. }
  647. model.makeValue("/root/send/reqdata/psnflag", model.getValue("/root/hidden/condition/psnflag"));
  648. model.makeValue("/root/send/reqdata/diagcd", model.getValue("/root/main/hospinfcinfolist/info[" + rowcnt + "]/diagcd"));
  649. model.makeValue("/root/send/reqdata/opcd", model.getValue("/root/main/hospinfcinfolist/info[" + rowcnt + "]/opcd"));
  650. model.makeValue("/root/send/reqdata/atdrtcd", model.getValue("/root/main/hospinfcinfolist/info[" + rowcnt + "]/atdrtcd"));
  651. model.makeValue("/root/send/reqdata/perfdrid", model.getValue("/root/main/hospinfcinfolist/info[" + rowcnt + "]/perfdrid"));
  652. model.makeValue("/root/send/reqdata/rgstdt", model.getValue("/root/main/hospinfcinfolist/info[" + rowcnt + "]/rgstdt"));
  653. // 병원감염대상자기록리스트에서 더블클릭했을 때에만 조회한다.
  654. if ( flag != "I" ) {
  655. //주치의, 집도의 성명, 진단명, 마취종류 등을 조회는 그리드 조회때 함께 함
  656. grd_hospinfclist.select(rowcnt,1) = true;
  657. fMapping(rowcnt);fCalcuDayno();
  658. fChgPsnFlag();
  659. if(!submit("TRASI00103")) {
  660. model.resetInstanceNode("/root/main/hospinfcinfo/oprecinfo");
  661. } //수술정보 조회
  662. if(!submit("TRASI00104")) {
  663. model.resetInstanceNode("/root/main/hospinfcinfo/basalsicklist");
  664. } //기저질환을 조회
  665. if(!submit("TRASI00105")) {
  666. model.resetInstanceNode("/root/main/hospinfcinfo/druginfo");
  667. } // 항생제 투약정보를 조회
  668. if(!submit("TRASI00106")){
  669. model.resetInstanceNode("/root/main/hospinfcinfo/mirotestrslt");
  670. } // 미생물 검사결과를 조회
  671. //나중에 수정이 일어났는지 여부를 알기 위해 COPY본을 만든다.
  672. model.makeNode("/root/main/copyset/hospinfcinfo/info");
  673. model.makeNode("/root/main/copyset/basalsicklist");
  674. model.makeNode("/root/main/copyset/mirotestrslt");
  675. model.makeNode("/root/main/copyset/druginfo");
  676. model.makeNode("/root/main/copyset/oprecinfo");
  677. model.copyNode("/root/main/copyset/hospinfcinfo/info", "/root/main/hospinfcinfo/hospinfc/info");
  678. model.copyNode("/root/main/copyset/basalsicklist", "/root/main/hospinfcinfo/basalsicklist");
  679. model.copyNode("/root/main/copyset/mirotestrslt", "/root/main/hospinfcinfo/mirotestrslt");
  680. model.copyNode("/root/main/copyset/druginfo", "/root/main/hospinfcinfo/druginfo");
  681. model.copyNode("/root/main/copyset/oprecinfo", "/root/main/hospinfcinfo/oprecinfo");
  682. }
  683. model.refresh();
  684. }
  685. }
  686. ]]>
  687. </script>
  688. </xhtml:head>
  689. <xhtml:body pagewidth="1211" pageheight="785" guideline="1,1193;2,737;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  690. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:759px; ">
  691. <group id="group2" style="left:0px; top:13px; width:1195px; height:734px; vertical-align:top; ">
  692. <switch id="switch1" style="left:0px; top:467px; width:476px; height:265px; border-color:#c7a3cf; border-style:solid; ">
  693. <case id="case1" selected="true">
  694. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:170px; height:13px; ">미생물배양결과</caption>
  695. <button id="button23" class="btn2_letter2" navindex="53" style="left:374px; top:4px; width:64px; height:19px; ">
  696. <caption>삭제</caption>
  697. <script type="javascript" ev:event="DOMActivate">
  698. <![CDATA[
  699. var iRow = grd_mirotestrslt.row - grd_mirotestrslt.fixedRows + 1;
  700. fRowDelete(grd_mirotestrslt, "/root/main/hospinfcinfo/mirotestrslt/info[" + iRow + "]/status");
  701. ]]>
  702. </script>
  703. </button>
  704. <button id="button1" class="btn2_letter3" navindex="53" style="left:419px; top:4px; width:53px; height:19px; ">
  705. <caption>미생물</caption>
  706. <script type="javascript" ev:event="onclick">
  707. <![CDATA[
  708. //model.removeNodeset("/root/main/hospinfcinfo/mirotestrslt");
  709. model.removenode("/root/properties/parameters/setVal/setValvalue");
  710. grd_mirotestrslt.refresh();
  711. model.makeValue("/root/hidden/condition/pid", model.getValue("/root/main/hospinfcinfo/hospinfc/info/pid"));
  712. model.makeValue("/root/hidden/condition/psnflag", model.getValue("/root/main/hospinfcinfo/hospinfc/info/psnflag"));
  713. modal("SPASI00300",0,0,0,"SPASI00300","/root/hidden/condition", "/root/main/cond");
  714. var lastRow = 0;
  715. var bChkDup = true;
  716. var getPara = model.getValue("/root/properties/parameters/setVal/setValvalue");
  717. var cnt = getPara.split("▩").length;
  718. var data = "";
  719. for(var i=1; i<cnt-1; i++){
  720. data = getPara.split("▩")[i];
  721. var culturedt = data.split("▦")[0];
  722. var spccd = data.split("▦")[1];
  723. var baccd = data.split("▦")[3];
  724. var nsgbrcdnm = data.split("▦")[11];
  725. var nodeList1 = instance1.selectNodes("/root/main/hospinfcinfo/mirotestrslt/info[culturedt='"+ culturedt +"' and spccd='"+spccd+"' and baccd='"+baccd+"']" );//dest
  726. if( nodeList1 != null && nodeList1.length > 0 ){
  727. continue;
  728. }
  729. grd_mirotestrslt.addRow(false);
  730. lastRow = grd_mirotestrslt.rows - grd_mirotestrslt.fixedRows;
  731. model.setValue("/root/main/hospinfcinfo/mirotestrslt/info["+ lastRow +"]/culturedt", data.split("▦")[0]);
  732. model.setValue("/root/main/hospinfcinfo/mirotestrslt/info["+ lastRow +"]/spccd", data.split("▦")[1]);
  733. model.setValue("/root/main/hospinfcinfo/mirotestrslt/info["+ lastRow +"]/spcnm", data.split("▦")[2]);
  734. model.setValue("/root/main/hospinfcinfo/mirotestrslt/info["+ lastRow +"]/baccd", data.split("▦")[3]);
  735. model.setValue("/root/main/hospinfcinfo/mirotestrslt/info["+ lastRow +"]/bacnm", data.split("▦")[4]);
  736. model.setValue("/root/main/hospinfcinfo/mirotestrslt/info["+ lastRow +"]/antibtrstbtrflag", data.split("▦")[5]);
  737. model.setValue("/root/main/hospinfcinfo/mirotestrslt/info["+ lastRow +"]/bcno", data.split("▦")[6]);
  738. model.setValue("/root/main/hospinfcinfo/mirotestrslt/info["+ lastRow +"]/tclscd", data.split("▦")[7]);
  739. model.setValue("/root/main/hospinfcinfo/mirotestrslt/info["+ lastRow +"]/testcd", data.split("▦")[8]);
  740. model.setValue("/root/main/hospinfcinfo/mirotestrslt/info["+ lastRow +"]/prcpdd", data.split("▦")[9]);
  741. model.setValue("/root/main/hospinfcinfo/mirotestrslt/info["+ lastRow +"]/bcoldt", data.split("▦")[10]);
  742. model.setValue("/root/main/hospinfcinfo/mirotestrslt/info["+ lastRow +"]/antibtrstbtrflagnm", data.split("▦")[11]);
  743. }
  744. grd_mirotestrslt.refresh();
  745. ]]>
  746. </script>
  747. </button>
  748. <line id="line4" class="line_1" style="x1:0px; y1:25px; x2:472; y2:25px; "/>
  749. <datagrid id="grd_mirotestrslt" nodeset="/root/main/hospinfcinfo/mirotestrslt/info" class="datagrid2" caption="원인균&#xA; 여부^채혈일시^검사일^cd^검체^cd^원인균^내성균&#xA;구분코드^항생제내성균구분^caption1^caption2^caption3^caption4" colsep="^" colwidth="49, 105, 105, 18, 68, 17, 145, 100, 124, 30, 30, 30, 30" dataheight="25" defaultrows="0" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:28px; width:472px; height:228px; text-align:center; vertical-align:middle; ">
  750. <col checkvalue="Y,N" ref="casbaccdyn" type="checkbox"/>
  751. <col ref="bcoldt" format="yyyy-mm-dd hh:nn" style="text-align:center; vertical-align:middle; "/>
  752. <col ref="culturedt" format="yyyy-mm-dd hh:nn" style="text-align:center; vertical-align:middle; word-wrap:none; "/>
  753. <col ref="spccd" visibility="hidden"/>
  754. <col ref="spcnm"/>
  755. <col ref="baccd" visibility="hidden"/>
  756. <col ref="bacnm"/>
  757. <col ref="antibtrstbtrflagnm" type="combo">
  758. <choices>
  759. <item>
  760. <label/>
  761. <value>-</value>
  762. </item>
  763. <item>
  764. <label>MR</label>
  765. <value>MR</value>
  766. </item>
  767. <item>
  768. <label>VR</label>
  769. <value>VR</value>
  770. </item>
  771. <item>
  772. <label>ESBL</label>
  773. <value>ESBL</value>
  774. </item>
  775. <item>
  776. <label>IR/MR</label>
  777. <value>IRMR</value>
  778. </item>
  779. </choices>
  780. </col>
  781. <col ref="antibtrstbtrflag" visibility="hidden"/>
  782. <col ref="bcno" visibility="hidden"/>
  783. <col ref="tclscd" visibility="hidden"/>
  784. <col ref="testcd" visibility="hidden"/>
  785. <col ref="prcpdd" visibility="hidden"/>
  786. <script type="javascript" ev:event="xforms-value-changed">
  787. <![CDATA[
  788. // 내성균 구분코드값을 설정한다.
  789. var row = grd_mirotestrslt.row;
  790. grd_mirotestrslt.valueMatrix(row, grd_mirotestrslt.colRef("antibtrstbtrflag")) =
  791. grd_mirotestrslt.valueMatrix(row, grd_mirotestrslt.colRef("antibtrstbtrflagnm"));
  792. ]]>
  793. </script>
  794. </datagrid>
  795. <line id="line18" class="line_3" style="x1:0px; y1:259px; x2:472px; y2:259px; "/>
  796. </case>
  797. <case id="case2">
  798. <caption id="caption5" class="tit_2" style="left:10px; top:9px; width:170px; height:14px; ">투약 정보</caption>
  799. <line id="line2" class="line_1" style="x1:0px; y1:24px; x2:472; y2:24px; "/>
  800. <button id="button10" class="btn2_letter2" navindex="37" style="left:364px; top:4px; width:64px; height:19px; ">
  801. <caption>삭제</caption>
  802. <script type="javascript" ev:event="DOMActivate">
  803. <![CDATA[
  804. var iRow = grd_druginfo.row - grd_druginfo.fixedRows + 1;
  805. fRowDelete(grd_druginfo, "/root/main/hospinfcinfo/druginfo/info[" + iRow + "]/status");
  806. ]]>
  807. </script>
  808. </button>
  809. <button id="button4" class="btn2_letter4" navindex="54" style="left:408px; top:4px; width:64px; height:19px; ">
  810. <caption>약품조회</caption>
  811. <script type="javascript" ev:event="onclick">
  812. <![CDATA[
  813. //model.removeNodeset("/root/main/hospinfcinfo/druginfo/info");
  814. model.removenode("/root/properties/parameters/setVal/setValvalue");
  815. grd_druginfo.refresh();
  816. fSetParameter();
  817. model.makeNode("/root/hidden/condition/drugcd");
  818. modal("SPASB00800",1,10,10,"SPASB00800", "/root/hidden/condition", "/root/main/cond");
  819. var lastRow = grd_druginfo.rows;
  820. var bChkDup = true;
  821. var getPara = model.getValue("/root/properties/parameters/setVal/setValvalue");
  822. var cnt = getPara.split("▩").length;
  823. var data;
  824. for(var i=1; i<cnt-1; i++){
  825. data = getPara.split("▩")[i];
  826. bChkDup = fChkDup(grd_druginfo, data.split("▦")[8], "/root/main/hospinfcinfo/druginfo/info[drugcd='");
  827. if(bChkDup == false){
  828. continue;
  829. }
  830. //alert("data.split[9] : " + data.split("▦")[9]);
  831. grd_druginfo.addRow(false);
  832. lastRow = grd_druginfo.rows - grd_druginfo.fixedRows;
  833. model.setValue("/root/main/hospinfcinfo/druginfo/info["+ lastRow +"]/drugflag", data.split("▦")[0]);
  834. model.setValue("/root/main/hospinfcinfo/druginfo/info["+ lastRow +"]/spcldrug", data.split("▦")[1]);
  835. model.setValue("/root/main/hospinfcinfo/druginfo/info["+ lastRow +"]/drughngnm", data.split("▦")[2]);
  836. model.setValue("/root/main/hospinfcinfo/druginfo/info["+ lastRow +"]/drugusdt", data.split("▦")[3]);
  837. model.setValue("/root/main/hospinfcinfo/druginfo/info["+ lastRow +"]/druguedt", data.split("▦")[4]);
  838. model.setValue("/root/main/hospinfcinfo/druginfo/info["+ lastRow +"]/drugcd", data.split("▦")[8]);
  839. model.setValue("/root/main/hospinfcinfo/druginfo/info["+ lastRow +"]/etc", data.split("▦")[9]);
  840. // 20070828 감염관리 리뷰에서 삭제요청
  841. // model.setValue("/root/main/hospinfcinfo/druginfo/info["+ i +"]/tpnyn", data.split("▦")[5]);
  842. // model.setValue("/root/main/hospinfcinfo/druginfo/info["+ i +"]/anticncryn", data.split("▦")[6]);
  843. // model.setValue("/root/main/hospinfcinfo/druginfo/info["+ i +"]/steroidyn", data.split("▦")[7]);
  844. }
  845. grd_druginfo.refresh();
  846. ]]>
  847. </script>
  848. </button>
  849. <line id="line5" class="line_3" style="x1:0px; y1:259px; x2:472; y2:259px; "/>
  850. <datagrid id="grd_druginfo" nodeset="/root/main/hospinfcinfo/druginfo/info" caption="분류^특별약품구분^약품코드^약품명^투여시작일^투여종료일" colsep="^" colwidth="84, 90, 100, 201, 90, 90, 100" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:30px; width:472px; height:226px; vertical-align:middle; ">
  851. <col disabled="true" ref="drugflag" type="combo">
  852. <choices>
  853. <item>
  854. <label>항암제</label>
  855. <value>C</value>
  856. </item>
  857. <item>
  858. <label>항바이러스제</label>
  859. <value>V</value>
  860. </item>
  861. </choices>
  862. </col>
  863. <col disabled="true" ref="spcldrug" type="combo">
  864. <choices>
  865. <itemset nodeset="/root/init/A0006list/A0006">
  866. <label ref="cdnm"/>
  867. <value ref="cdid"/>
  868. </itemset>
  869. </choices>
  870. </col>
  871. <col ref="drugcd"/>
  872. <col ref="drughngnm" style="left:194px; top:23px; width:201px; height:23px; "/>
  873. <col ref="drugusdt" format="yyyy-mm-dd" style="left:395px; top:23px; width:90px; height:23px; "/>
  874. <col ref="druguedt" format="yyyy-mm-dd"/>
  875. <col ref="etc" visibility="hidden"/>
  876. </datagrid>
  877. </case>
  878. <case id="case3">
  879. <caption id="caption4" class="tit_2" style="left:5px; top:9px; width:148px; height:13px; ">검사결과</caption>
  880. <line id="line13" class="line_1" style="x1:0px; y1:25px; x2:471; y2:25px; "/>
  881. <caption id="caption40" class="tit_2" style="left:4px; top:194px; width:122px; height:13px; ">V/S 정보</caption>
  882. <caption id="caption41" class="cell_1" style="left:0px; top:30px; width:75px; height:23px; vertical-align:middle; ">Hb1</caption>
  883. <caption id="caption47" class="cell_1" style="left:0px; top:54px; width:75px; height:23px; vertical-align:middle; ">WBC1</caption>
  884. <caption id="caption57" class="cell_1" style="left:0px; top:78px; width:76px; height:23px; vertical-align:middle; ">Neutrophils1</caption>
  885. <caption id="caption60" class="cell_1" style="left:0px; top:102px; width:75px; height:23px; vertical-align:middle; ">ESR1</caption>
  886. <caption id="caption61" class="cell_1" style="left:0px; top:126px; width:75px; height:23px; vertical-align:middle; ">CRP1</caption>
  887. <caption id="caption69" class="cell_1" style="left:0px; top:150px; width:75px; height:23px; vertical-align:middle; ">기타1</caption>
  888. <line id="line27" class="line_2" style="x1:0px; y1:52px; x2:471; y2:52px; "/>
  889. <line id="line29" class="line_2" style="x1:0px; y1:76px; x2:471; y2:76px; "/>
  890. <line id="line30" class="line_2" style="x1:0px; y1:99px; x2:471; y2:99px; "/>
  891. <line id="line31" class="line_2" style="x1:0px; y1:124px; x2:471; y2:124px; "/>
  892. <line id="line32" class="line_2" style="x1:0px; y1:148px; x2:471; y2:148px; "/>
  893. <line id="line33" class="line_3" style="x1:0px; y1:259px; x2:471px; y2:259px; "/>
  894. <input id="input11" ref="/root/main/hospinfcinfo/hospinfc/info/hbtestrslt1" class="input_search" navindex="57" maxlength="9" style="left:151px; top:31px; width:55px; height:19px; "/>
  895. <caption id="caption72" class="cell_1" style="left:236px; top:30px; width:75px; height:23px; vertical-align:middle; ">Hb2</caption>
  896. <input id="input12" ref="/root/main/hospinfcinfo/hospinfc/info/hbtestrslt2" class="input_search" navindex="72" maxlength="9" style="left:387px; top:31px; width:55px; height:19px; "/>
  897. <caption id="caption73" class="cell_1" style="left:236px; top:54px; width:75px; height:23px; vertical-align:middle; ">WBC2</caption>
  898. <input id="input13" ref="/root/main/hospinfcinfo/hospinfc/info/wbctestrslt1" class="input_search" navindex="59" maxlength="9" style="left:151px; top:55px; width:55px; height:19px; "/>
  899. <input id="input14" ref="/root/main/hospinfcinfo/hospinfc/info/wbctestrslt2" class="input_search" navindex="74" maxlength="9" style="left:387px; top:55px; width:55px; height:19px; "/>
  900. <caption id="caption74" class="cell_1" style="left:236px; top:78px; width:76px; height:23px; vertical-align:middle; ">Neutrophils2</caption>
  901. <input id="input15" ref="/root/main/hospinfcinfo/hospinfc/info/neutrophilstestrslt1" class="input_search" navindex="61" maxlength="9" style="left:151px; top:79px; width:55px; height:19px; "/>
  902. <input id="input17" ref="/root/main/hospinfcinfo/hospinfc/info/neutrophilstestrslt2" class="input_search" navindex="76" maxlength="9" style="left:387px; top:79px; width:55px; height:19px; "/>
  903. <caption id="caption75" class="cell_1" style="left:236px; top:102px; width:75px; height:23px; vertical-align:middle; ">ESR2</caption>
  904. <input id="input23" ref="/root/main/hospinfcinfo/hospinfc/info/esrtestrslt1" class="input_search" navindex="64" maxlength="9" style="left:151px; top:103px; width:55px; height:19px; "/>
  905. <input id="input24" ref="/root/main/hospinfcinfo/hospinfc/info/esrtestrslt2" class="input_search" navindex="79" maxlength="9" style="left:387px; top:103px; width:55px; height:19px; "/>
  906. <caption id="caption76" class="cell_1" style="left:236px; top:126px; width:75px; height:23px; vertical-align:middle; ">CRP2</caption>
  907. <input id="input29" ref="/root/main/hospinfcinfo/hospinfc/info/crptestrslt1" class="input_search" navindex="67" maxlength="9" style="left:151px; top:127px; width:55px; height:19px; "/>
  908. <input id="input31" ref="/root/main/hospinfcinfo/hospinfc/info/crptestrslt2" class="input_search" navindex="82" maxlength="9" style="left:387px; top:127px; width:55px; height:19px; "/>
  909. <input id="input32" class="input_search" navindex="84" maxlength="9" style="left:387px; top:151px; width:55px; height:19px; "/>
  910. <caption id="caption77" class="cell_1" style="left:236px; top:150px; width:75px; height:23px; vertical-align:middle; ">기타2</caption>
  911. <input id="input37" class="input_search" navindex="69" maxlength="9" style="left:151px; top:151px; width:55px; height:19px; "/>
  912. <caption id="caption78" class="cell_1" visibility="hidden" style="left:0px; top:237px; width:75px; height:23px; vertical-align:middle; ">체온</caption>
  913. <caption id="caption79" class="cell_1" style="left:0px; top:213px; width:75px; height:23px; vertical-align:middle; ">체온1</caption>
  914. <line id="line34" class="line_1" style="x1:0px; y1:208px; x2:471px; y2:208px; "/>
  915. <line id="line3" class="line_3" style="x1:0px; y1:172px; x2:471; y2:172px; "/>
  916. <input id="input54" ref="/root/main/hospinfcinfo/hospinfc/info/hbtestdt1" class="input_search" navindex="56" format="yyyy-mm-dd" style="left:78px; top:31px; width:70px; height:19px; "/>
  917. <input id="input55" ref="/root/main/hospinfcinfo/hospinfc/info/esrtestdt1" class="input_search" navindex="63" format="yyyy-mm-dd" style="left:78px; top:103px; width:70px; height:19px; "/>
  918. <input id="input56" ref="/root/main/hospinfcinfo/hospinfc/info/wbctestdt1" class="input_search" navindex="58" format="yyyy-mm-dd" style="left:78px; top:55px; width:70px; height:19px; "/>
  919. <input id="input57" ref="/root/main/hospinfcinfo/hospinfc/info/etc1" class="input_search" navindex="68" format="yyyy-mm-dd" style="left:78px; top:151px; width:70px; height:19px; "/>
  920. <input id="input58" ref="/root/main/hospinfcinfo/hospinfc/info/neutrophilstestdt1" class="input_search" navindex="60" format="yyyy-mm-dd" style="left:78px; top:79px; width:70px; height:19px; "/>
  921. <input id="input59" ref="/root/main/hospinfcinfo/hospinfc/info/crptestdt1" class="input_search" navindex="66" format="yyyy-mm-dd" style="left:78px; top:127px; width:70px; height:19px; "/>
  922. <input id="input60" ref="/root/main/hospinfcinfo/hospinfc/info/hbtestdt2" class="input_search" navindex="71" format="yyyy-mm-dd" style="left:314px; top:31px; width:70px; height:19px; "/>
  923. <input id="input61" ref="/root/main/hospinfcinfo/hospinfc/info/esrtestdt2" class="input_search" navindex="78" format="yyyy-mm-dd" style="left:314px; top:103px; width:70px; height:19px; "/>
  924. <input id="input62" ref="/root/main/hospinfcinfo/hospinfc/info/wbctestdt2" class="input_search" navindex="73" format="yyyy-mm-dd" style="left:314px; top:55px; width:70px; height:19px; "/>
  925. <input id="input63" ref="/root/main/hospinfcinfo/hospinfc/info/etc2" class="input_search" navindex="83" format="yyyy-mm-dd" style="left:314px; top:151px; width:70px; height:19px; "/>
  926. <input id="input64" ref="/root/main/hospinfcinfo/hospinfc/info/neutrophilstestdt2" class="input_search" navindex="75" format="yyyy-mm-dd" style="left:314px; top:79px; width:70px; height:19px; "/>
  927. <input id="input65" ref="/root/main/hospinfcinfo/hospinfc/info/crptestdt2" class="input_search" navindex="81" format="yyyy-mm-dd" style="left:314px; top:127px; width:70px; height:19px; "/>
  928. <input id="input9" ref="/root/main/hospinfcinfo/hospinfc/info/bdtptestdt1" class="input_search" navindex="86" format="yyyy-mm-dd hh:nn" style="left:78px; top:214px; width:70px; height:19px; "/>
  929. <line id="line8" class="line_2" style="x1:0px; y1:235px; x2:471px; y2:235px; "/>
  930. <input id="input66" ref="/root/main/hospinfcinfo/hospinfc/info/bdtptestrslt1" class="input_search" navindex="87" maxlength="9" style="left:151px; top:214px; width:59px; height:19px; "/>
  931. <button id="button12" class="icon_search" navindex="85" style="left:214px; top:217px; width:16px; height:16px; ">
  932. <caption/>
  933. <script type="javascript" ev:event="DOMActivate">
  934. <![CDATA[
  935. model.makeValue("/root/hidden/condition/flag", "BT1");
  936. modal("SPASB02000",1,10,10,"SPASB02000", "/root/hidden/condition", "/root/main/cond");
  937. ]]>
  938. </script>
  939. </button>
  940. <button id="button13" class="icon_search" navindex="89" visibility="hidden" style="left:215px; top:240px; width:16px; height:16px; ">
  941. <caption/>
  942. <script type="javascript" ev:event="DOMActivate">
  943. <![CDATA[
  944. model.makeValue("/root/hidden/condition/flag", "BT");
  945. modal("SPASB02000",1,10,10,"SPASB02000", "/root/hidden/condition", "/root/main/cond");
  946. ]]>
  947. </script>
  948. </button>
  949. <input id="input67" ref="/root/main/hospinfcinfo/hospinfc/info/bdtptestdate2" class="input_search" navindex="92" visibility="hidden" format="yyyy-mm-dd" style="left:78px; top:238px; width:70px; height:19px; "/>
  950. <input id="input68" ref="/root/main/hospinfcinfo/hospinfc/info/bdtptesttime2" class="input_search" navindex="91" visibility="hidden" maxlength="9" style="left:151px; top:238px; width:59px; height:19px; "/>
  951. <button id="button14" class="icon_search" navindex="55" style="left:211px; top:34px; width:16px; height:16px; ">
  952. <caption/>
  953. <script type="javascript" ev:event="DOMActivate">
  954. <![CDATA[
  955. model.makeValue("/root/hidden/condition/flag", "H1");
  956. modal("SPASB00900",1,10,10,"SPASB00900", "/root/hidden/condition", "/root/main/cond");
  957. ]]>
  958. </script>
  959. </button>
  960. <button id="button15" class="icon_search" navindex="70" style="left:447px; top:34px; width:16px; height:16px; ">
  961. <caption/>
  962. <script type="javascript" ev:event="DOMActivate">
  963. <![CDATA[
  964. model.makeValue("/root/hidden/condition/flag", "H2");
  965. modal("SPASB00900",1,10,10,"SPASB00900", "/root/hidden/condition", "/root/main/cond");
  966. ]]>
  967. </script>
  968. </button>
  969. <button id="button18" class="icon_search" navindex="62" style="left:214px; top:105px; width:16px; height:16px; ">
  970. <caption/>
  971. <script type="javascript" ev:event="DOMActivate">
  972. <![CDATA[
  973. fSetParameter();
  974. model.makeValue("/root/hidden/condition/flag", "E1");
  975. modal("SPASB00900",1,10,10,"SPASB00900", "/root/hidden/condition", "/root/main/cond");
  976. ]]>
  977. </script>
  978. </button>
  979. <button id="button19" class="icon_search" navindex="77" style="left:450px; top:105px; width:16px; height:16px; ">
  980. <caption/>
  981. <script type="javascript" ev:event="DOMActivate">
  982. <![CDATA[
  983. fSetParameter();
  984. model.makeValue("/root/hidden/condition/flag", "E2");
  985. modal("SPASB00900",1,10,10,"SPASB00900", "/root/hidden/condition", "/root/main/cond");
  986. ]]>
  987. </script>
  988. </button>
  989. <button id="button21" class="icon_search" navindex="80" style="left:450px; top:128px; width:16px; height:16px; ">
  990. <caption/>
  991. <script type="javascript" ev:event="DOMActivate">
  992. <![CDATA[
  993. fSetParameter();
  994. model.makeValue("/root/hidden/condition/flag", "C2");
  995. modal("SPASB00900",1,10,10,"SPASB00900", "/root/hidden/condition", "/root/main/cond");
  996. ]]>
  997. </script>
  998. </button>
  999. <button id="button24" class="icon_search" navindex="65" style="left:214px; top:128px; width:16px; height:16px; ">
  1000. <caption/>
  1001. <script type="javascript" ev:event="DOMActivate">
  1002. <![CDATA[
  1003. fSetParameter();
  1004. model.makeValue("/root/hidden/condition/flag", "C1");
  1005. modal("SPASB00900",1,10,10,"SPASB00900", "/root/hidden/condition", "/root/main/cond");
  1006. ]]>
  1007. </script>
  1008. </button>
  1009. <caption id="caption19" class="cell_1" style="left:236px; top:213px; width:75px; height:23px; vertical-align:middle; ">체온2</caption>
  1010. <caption id="caption20" class="cell_1" visibility="hidden" style="left:236px; top:237px; width:75px; height:23px; vertical-align:middle; ">맥박</caption>
  1011. <input id="input5" ref="/root/main/hospinfcinfo/hospinfc/info/bdtptestdt2" class="input_search" navindex="84" format="yyyy-mm-dd hh:nn" style="left:314px; top:214px; width:70px; height:19px; "/>
  1012. <input id="input6" ref="/root/main/hospinfcinfo/hospinfc/info/pulsedate2" class="input_search" navindex="84" visibility="hidden" format="yyyy-mm-dd" style="left:314px; top:237px; width:70px; height:19px; "/>
  1013. <input id="input7" ref="/root/main/hospinfcinfo/hospinfc/info/bdtptestrslt2" class="input_search" navindex="84" maxlength="9" style="left:387px; top:215px; width:55px; height:19px; "/>
  1014. <input id="input19" ref="/root/main/hospinfcinfo/hospinfc/info/pulsetime2" class="input_search" navindex="84" visibility="hidden" maxlength="9" style="left:387px; top:237px; width:55px; height:19px; "/>
  1015. <button id="button7" class="icon_search" navindex="85" style="left:445px; top:215px; width:16px; height:16px; ">
  1016. <caption/>
  1017. <script type="javascript" ev:event="DOMActivate">
  1018. <![CDATA[
  1019. model.makeValue("/root/hidden/condition/flag", "BT2");
  1020. modal("SPASB02000",1,10,10,"SPASB02000", "/root/hidden/condition", "/root/main/cond");
  1021. ]]>
  1022. </script>
  1023. </button>
  1024. <button id="button9" class="icon_search" navindex="85" visibility="hidden" style="left:445px; top:240px; width:16px; height:16px; ">
  1025. <caption/>
  1026. <script type="javascript" ev:event="DOMActivate">
  1027. <![CDATA[
  1028. model.makeValue("/root/hidden/condition/flag", "PU");
  1029. modal("SPASB02000",1,10,10,"SPASB02000", "/root/hidden/condition", "/root/main/cond");
  1030. ]]>
  1031. </script>
  1032. </button>
  1033. </case>
  1034. </switch>
  1035. <group id="group5" style="left:479px; top:626px; width:715px; height:103px; ">
  1036. <line id="line23" class="line_1" style="x1:0px; y1:0px; x2:714px; y2:0px; "/>
  1037. <caption id="caption59" class="cell_1" style="left:0px; top:29px; width:85; height:23px; vertical-align:middle; ">감염종류</caption>
  1038. <caption id="caption62" class="cell_1" style="left:547px; top:5px; width:95px; height:23px; text-align:left; vertical-align:middle; ">감염전재원일수</caption>
  1039. <caption id="cap_rgstdd" class="cell_1" style="left:0; top:5px; width:85; height:23px; vertical-align:middle; ">등록일</caption>
  1040. <line id="line25" class="line_2" style="x1:85px; y1:51; x2:715px; y2:51px; "/>
  1041. <line id="line26" class="line_2" style="x1:1px; y1:27px; x2:715px; y2:27px; "/>
  1042. <caption id="caption65" class="cell_1" style="left:191px; top:53px; width:105px; height:23px; vertical-align:middle; ">Device 삽입일</caption>
  1043. <input id="ipt_rgstdd" ref="/root/main/hospinfcinfo/hospinfc/info/rgstdd" class="input_essential" navindex="38" inputtype="date" style="left:88px; top:6px; width:100px; height:19px; "/>
  1044. <input id="input47" ref="/root/main/hospinfcinfo/hospinfc/info/infcbfinhospdayno" class="input_search" navindex="41" style="left:645px; top:6px; width:45px; height:19px; "/>
  1045. <caption id="caption70" class="cell_1" style="left:0px; top:53px; width:85px; height:23px; vertical-align:middle; ">Device</caption>
  1046. <select1 id="combo21" ref="/root/main/hospinfcinfo/hospinfc/info/catecd" class="combo_search" navindex="45" appearance="minimal" style="left:88px; top:54px; width:100; height:19px; ">
  1047. <choices>
  1048. <itemset nodeset="/root/init/A0358list/A0358">
  1049. <label ref="cdnm"/>
  1050. <value ref="cdid"/>
  1051. </itemset>
  1052. </choices>
  1053. </select1>
  1054. <input id="input39" ref="/root/main/hospinfcinfo/hospinfc/info/cateusdt" class="input_default" navindex="46" inputtype="date" style="left:299px; top:54px; width:90px; height:19px; ">
  1055. <script type="javascript" ev:event="DOMFocusOut">
  1056. <![CDATA[
  1057. // Device 삽입일자가 년월일 8자리 모두 제대로 입력되고 포커스 아웃 인 경우, 자동으로 Device 제거일을 세팅한다.
  1058. var cateusdt = model.getValue("/root/main/hospinfcinfo/hospinfc/info/cateusdt");
  1059. var cateuedt = model.getValue("/root/main/hospinfcinfo/hospinfc/info/cateuedt");
  1060. if ( cateusdt.length == 8 && ( cateuedt != null || cateuedt != "" ) ) {
  1061. model.setValue("/root/main/hospinfcinfo/hospinfc/info/cateuedt",
  1062. model.getValue("/root/main/hospinfcinfo/hospinfc/info/outrmdd"));
  1063. model.refresh();
  1064. }
  1065. fCalcuDayno("device");
  1066. ]]>
  1067. </script>
  1068. </input>
  1069. <input id="input51" ref="/root/main/hospinfcinfo/hospinfc/info/cateuedt" class="input_default" navindex="47" inputtype="date" style="left:500px; top:54px; width:90px; height:19px; ">
  1070. <script type="javascript" ev:event="DOMFocusOut">
  1071. <![CDATA[
  1072. fCalcuDayno("device");
  1073. ]]>
  1074. </script>
  1075. </input>
  1076. <caption id="caption71" class="cell_1" style="left:191px; top:5px; width:85px; height:23px; text-align:left; vertical-align:middle; ">확정여부</caption>
  1077. <line id="line28" class="line_3" style="x1:1px; y1:99px; x2:715px; y2:99px; "/>
  1078. <caption id="caption31" class="cell_1" style="left:390px; top:5px; width:55px; height:23px; text-align:left; vertical-align:middle; ">감염일</caption>
  1079. <input id="input10" ref="/root/main/hospinfcinfo/hospinfc/info/cateusedayno" class="input_search" navindex="48" maxlength="4" style="left:651px; top:55px; width:39px; height:19px; "/>
  1080. <caption id="caption13" class="cell_1" style="left:692px; top:53px; width:19px; height:23px; text-align:left; vertical-align:middle; ">일</caption>
  1081. <caption id="caption32" class="cell_1" style="left:0px; top:77px; width:85; height:23px; vertical-align:middle; ">TPN</caption>
  1082. <line id="line14" class="line_2" style="width:84; x1:0px; y1:75px; x2:714px; y2:75px; "/>
  1083. <caption id="caption38" class="cell_1" style="left:593px; top:53px; width:57px; height:23px; vertical-align:middle; ">삽입일수</caption>
  1084. <select1 id="radio1" ref="/root/main/hospinfcinfo/hospinfc/info/tpnyn" navindex="49" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:88px; top:80px; width:98px; height:20px; border-style:none; ">
  1085. <choices>
  1086. <item>
  1087. <label>Y</label>
  1088. <value>Y</value>
  1089. </item>
  1090. <item>
  1091. <label>N</label>
  1092. <value>N</value>
  1093. </item>
  1094. </choices>
  1095. </select1>
  1096. <select1 id="radio2" ref="/root/main/hospinfcinfo/hospinfc/info/cnfmyn" navindex="39" appearance="full" cellspacing="8" cols="2" overflow="visible" style="left:278px; top:6px; width:110; height:20px; border-style:none; ">
  1097. <choices>
  1098. <item>
  1099. <label>확정</label>
  1100. <value>Y</value>
  1101. </item>
  1102. <item>
  1103. <label>미확정</label>
  1104. <value>N</value>
  1105. </item>
  1106. </choices>
  1107. <script type="javascript" ev:event="xforms-value-changed">
  1108. <![CDATA[
  1109. ]]>
  1110. </script>
  1111. </select1>
  1112. <caption id="caption15" class="cell_1" style="left:191px; top:77px; width:105; height:23px; vertical-align:middle; ">항암제</caption>
  1113. <select1 id="radio3" ref="/root/main/hospinfcinfo/hospinfc/info/anticncryn" navindex="50" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:298px; top:79px; width:87px; height:20px; border-style:none; ">
  1114. <choices>
  1115. <item>
  1116. <label>Y</label>
  1117. <value>Y</value>
  1118. </item>
  1119. <item>
  1120. <label>N</label>
  1121. <value>N</value>
  1122. </item>
  1123. </choices>
  1124. </select1>
  1125. <caption id="caption16" class="cell_1" style="left:392px; top:76px; width:105; height:23px; text-align:left; ">스테로이드</caption>
  1126. <select1 id="radio4" ref="/root/main/hospinfcinfo/hospinfc/info/steroidyn" navindex="51" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:500px; top:78px; width:88px; height:20px; border-style:none; ">
  1127. <choices>
  1128. <item>
  1129. <label>Y</label>
  1130. <value>Y</value>
  1131. </item>
  1132. <item>
  1133. <label>N</label>
  1134. <value>N</value>
  1135. </item>
  1136. </choices>
  1137. </select1>
  1138. <input id="input41" ref="/root/main/hospinfcinfo/hospinfc/info/fstrgstrid" class="input_search" navindex="52" visibility="hidden" style="left:641px; top:78px; width:73px; height:19px; "/>
  1139. <caption id="caption64" class="cell_1" visibility="hidden" style="left:593px; top:77px; width:45px; height:23px; vertical-align:middle; ">등록자</caption>
  1140. <caption id="caption42" class="cell_1" style="left:191px; top:29px; width:105px; height:23px; vertical-align:middle; ">감염종류(소분류)</caption>
  1141. <caption id="caption9" class="cell_1" style="left:392px; top:51px; width:105px; height:23px; vertical-align:middle; ">Device 제거일</caption>
  1142. <caption id="caption22" class="cell_1" style="left:508px; top:29px; width:110px; height:23px; vertical-align:middle; ">2차 혈류감염 여부</caption>
  1143. <select1 id="radio5" ref="/root/main/hospinfcinfo/hospinfc/info/scndbfinfcyn" navindex="44" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:620px; top:30px; width:88px; height:20px; border-style:none; ">
  1144. <choices>
  1145. <item>
  1146. <label>Y</label>
  1147. <value>Y</value>
  1148. </item>
  1149. <item>
  1150. <label>N</label>
  1151. <value>N</value>
  1152. </item>
  1153. </choices>
  1154. </select1>
  1155. <select1 id="cmb_infckindlrg" ref="/root/main/hospinfcinfo/hospinfc/info/infckindlrg" class="combo_essential" navindex="42" appearance="minimal" style="left:88px; top:30px; width:100px; height:19px; ">
  1156. <choices>
  1157. <itemset nodeset="/root/init/A0144list/A0144">
  1158. <label ref="cdnm"/>
  1159. <value ref="cdid"/>
  1160. </itemset>
  1161. </choices>
  1162. <script type="javascript" ev:event="xforms-value-changed">
  1163. <![CDATA[
  1164. var cmb_infckindsml = document.controls("cmb_infckindsml");
  1165. cmb_infckindsml.choices.itemset.attribute("nodeset") = "/root/init/A0145list/A0145[contains(cdid, '"+model.getValue("/root/main/hospinfcinfo/hospinfc/info/infckindlrg") +"')]"
  1166. cmb_infckindsml.refresh();
  1167. ]]>
  1168. </script>
  1169. </select1>
  1170. <select1 id="cmb_infckindsml" ref="/root/main/hospinfcinfo/hospinfc/info/infckindsml" class="combo_search" navindex="43" appearance="minimal" style="left:299px; top:30px; width:206px; height:19px; ">
  1171. <choices>
  1172. <itemset nodeset="/root/init/A0145list/A0145">
  1173. <label ref="cdnm"/>
  1174. <value ref="cdid"/>
  1175. </itemset>
  1176. </choices>
  1177. </select1>
  1178. <input id="ipt_infcdd" ref="/root/main/hospinfcinfo/hospinfc/info/infcdd" class="input_essential" navindex="40" inputtype="date" style="left:446px; top:6px; width:100px; height:19px; ">
  1179. <script type="javascript" ev:event="DOMFocusOut">
  1180. <![CDATA[
  1181. fCalcuDayno("infcdd");
  1182. ]]>
  1183. </script>
  1184. </input>
  1185. <caption id="caption12" class="cell_1" style="left:693px; top:5px; width:19px; height:23px; text-align:left; vertical-align:middle; ">일</caption>
  1186. </group>
  1187. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:475px; y2:25px; "/>
  1188. <caption id="caption24" class="tit_2" visibility="visible" style="left:479px; top:9px; width:178px; height:13px; ">병원감염대상자 기본정보</caption>
  1189. <caption id="caption25" class="tit_2" style="left:0px; top:10px; width:173px; height:13px; ">병원감염대상자기록리스트</caption>
  1190. <group id="group10" style="left:479px; top:24px; width:715px; height:221px; ">
  1191. <caption id="caption29" class="cell_1" style="left:300px; top:5px; width:62px; height:23px; text-align:center; vertical-align:middle; ">성명</caption>
  1192. <line id="line9" class="line_1" style="x1:0px; y1:0px; x2:714px; y2:0px; "/>
  1193. <input id="input20" ref="/root/main/hospinfcinfo/hospinfc/info/roomcd" class="input_search" disabled="false" navindex="9" style="left:207px; top:30px; width:71px; height:19px; "/>
  1194. <caption id="caption23" class="cell_1" style="left:0px; top:78px; width:68px; height:142px; vertical-align:middle; ">기저질환</caption>
  1195. <caption id="caption26" class="cell_1" style="left:0px; top:29px; width:68px; height:23px; vertical-align:middle; ">병동/병실</caption>
  1196. <input id="input21" ref="/root/main/hospinfcinfo/hospinfc/info/atdrtnm" class="input_search" disabled="true" navindex="7" style="left:647px; top:6px; width:66px; height:19px; "/>
  1197. <caption id="caption28" class="cell_1" style="left:281px; top:29px; width:81px; height:23px; vertical-align:middle; ">감염병동병실</caption>
  1198. <select1 id="combo3" ref="/root/main/hospinfcinfo/hospinfc/info/orddeptcd" class="combo_search" disabled="false" navindex="14" appearance="minimal" style="left:71px; top:55px; width:207px; height:19px; ">
  1199. <choices>
  1200. <itemset nodeset="/root/init/deptlist/dept">
  1201. <label ref="depthngnm"/>
  1202. <value ref="deptcd"/>
  1203. </itemset>
  1204. </choices>
  1205. </select1>
  1206. <caption id="cap_pid" class="cell_1" style="left:0px; top:5px; width:68px; height:23px; vertical-align:middle; ">등록번호</caption>
  1207. <select1 id="combo6" ref="/root/main/hospinfcinfo/hospinfc/info/wardcd" class="combo_search" disabled="false" navindex="8" appearance="minimal" style="left:71px; top:30px; width:133px; height:19px; ">
  1208. <choices>
  1209. <itemset nodeset="/root/init/warddeptlist/dept">
  1210. <label ref="depthngnm"/>
  1211. <value ref="deptcd"/>
  1212. </itemset>
  1213. </choices>
  1214. </select1>
  1215. <line id="line10" class="line_2" style="x1:1px; y1:52px; x2:715px; y2:52px; "/>
  1216. <line id="line11" class="line_2" style="x1:1px; y1:27px; x2:715px; y2:27px; "/>
  1217. <caption id="cap_indd" class="cell_1" style="left:145px; top:5px; width:60px; height:23px; vertical-align:middle; ">입원일</caption>
  1218. <caption id="caption34" class="cell_1" style="left:0px; top:54px; width:68px; height:23px; vertical-align:middle; ">진료과</caption>
  1219. <input id="ipt_pid" ref="/root/main/hospinfcinfo/hospinfc/info/pid" class="input_essential" navindex="1" style="left:71px; top:6px; width:71px; height:19px; ">
  1220. <script type="javascript" ev:event="onkeypress">
  1221. <![CDATA[
  1222. inputEnterKey("btn_getpatinfo", "DOMActivate");
  1223. ]]>
  1224. </script>
  1225. </input>
  1226. <caption id="caption35" class="cell_1" style="left:583px; top:5px; width:61px; height:23px; vertical-align:middle; ">전문의</caption>
  1227. <select1 id="cmb_isoldiagcd" ref="/root/main/hospinfcinfo/hospinfc/info/diagcd" appearance="minimal" style="left:365px; top:55px; width:349px; height:19px; ">
  1228. <choices>
  1229. <itemset nodeset="/root/main/diaglist/diaginfo">
  1230. <label ref="diagengnm"/>
  1231. <value ref="diagcd"/>
  1232. </itemset>
  1233. </choices>
  1234. <script type="javascript" ev:event="onmouseover">
  1235. <![CDATA[
  1236. if( isNull(model.getValue("/root/main/hospinfcinfo/hospinfc/info/diagcd")) == false ){
  1237. var cd = model.getValue("/root/main/hospinfcinfo/hospinfc/info/diagcd");
  1238. var node = instance1.selectSingleNode("/root/main/diaglist/diaginfo[diagcd = '" + cd + "']/diaghngnm");
  1239. if ( node != null ){
  1240. cmb_isoldiagcd.hint = node.value;
  1241. }
  1242. }
  1243. ]]>
  1244. </script>
  1245. </select1>
  1246. <caption id="caption36" class="cell_1" style="left:281px; top:54px; width:81px; height:23px; vertical-align:middle; ">진단명</caption>
  1247. <line id="line15" class="line_3" style="x1:1px; y1:220px; x2:715px; y2:220px; "/>
  1248. <line id="line12" class="line_2" style="x1:1px; y1:76px; x2:715px; y2:76px; "/>
  1249. <input id="input2" ref="/root/main/hospinfcinfo/hospinfc/info/infccasroomcd" class="input_search" navindex="11" style="left:495px; top:30px; width:66; height:19px; "/>
  1250. <select1 id="combo23" ref="/root/main/hospinfcinfo/hospinfc/info/infccaswardcd" class="combo_search" navindex="10" appearance="minimal" style="left:365px; top:30px; width:127px; height:19px; ">
  1251. <choices>
  1252. <itemset nodeset="/root/init/warddeptlist/dept">
  1253. <label ref="depthngnm"/>
  1254. <value ref="deptcd"/>
  1255. </itemset>
  1256. </choices>
  1257. </select1>
  1258. <button id="button5" class="btn2_letter4" navindex="13" style="left:650px; top:31px; width:64px; height:19px; ">
  1259. <caption>전과전동</caption>
  1260. <script type="javascript" ev:event="onclick">
  1261. <![CDATA[
  1262. model.setValue("/root/hidden/condition/pid", model.getValue("/root/main/hospinfcinfo/hospinfc/info/pid"));
  1263. model.setValue("/root/hidden/condition/fromdd", model.getValue("/root/main/hospinfcinfo/hospinfc/info/indd"));
  1264. model.setValue("/root/hidden/condition/todd", getCurrentDate());
  1265. modal("SPASI00400",1,10,10,"SPASI00400", "/root/hidden/condition", "/root/main/cond");
  1266. ]]>
  1267. </script>
  1268. </button>
  1269. <input id="input1" ref="/root/main/hospinfcinfo/hospinfc/info/outrmdd" class="input_search" disabled="true" navindex="18" inputtype="date" format="yyyy-mm-dd" style="left:627px; top:104px; width:86px; height:19px; text-align:left; "/>
  1270. <caption id="caption11" class="cell_1" style="left:554px; top:103px; width:72px; height:23px; vertical-align:middle; ">퇴원일</caption>
  1271. <input id="input53" ref="/root/main/hospinfcinfo/hospinfc/info/chngroomdd" class="input_search" navindex="12" inputtype="date" format="yyyy-mm-dd" style="left:564px; top:30px; width:83; height:19px; "/>
  1272. <line id="line37" class="line_2" style="x1:555px; y1:125px; x2:714px; y2:125px; "/>
  1273. <button id="button17" class="btn2_letter2" style="left:597px; top:199px; width:42px; height:19px; ">
  1274. <caption>삭제</caption>
  1275. <script type="javascript" ev:event="DOMActivate">
  1276. <![CDATA[
  1277. var iRow = grd_basalsicklist.row - grd_basalsicklist.fixedRows + 1;
  1278. fRowDelete(grd_basalsicklist, "/root/main/copyset/basalsicklist/info[" + iRow + "]/status");
  1279. ]]>
  1280. </script>
  1281. </button>
  1282. <button id="button20" class="btn2_letter2" style="left:553px; top:199px; width:42px; height:19px; ">
  1283. <caption>추가</caption>
  1284. <script type="javascript" ev:event="DOMActivate">
  1285. <![CDATA[
  1286. grd_basalsicklist.addItem();
  1287. ]]>
  1288. </script>
  1289. </button>
  1290. <datagrid id="grd_basalsicklist" nodeset="/root/main/hospinfcinfo/basalsicklist/info" caption="질환명" colsep="^" colwidth="439" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:70px; top:79px; width:480px; height:140px; ">
  1291. <col disabled="true" ref="basalsickcd" type="combo">
  1292. <choices>
  1293. <itemset nodeset="/root/init/A0124list/A0124">
  1294. <label ref="cdnm"/>
  1295. <value ref="cdid"/>
  1296. </itemset>
  1297. </choices>
  1298. </col>
  1299. <script type="javascript" ev:event="onclick">
  1300. <![CDATA[
  1301. if( grd_basalsicklist.row > 0 ){
  1302. if( grd_basalsicklist.rowStatus(grd_basalsicklist.row) == 2 ){
  1303. grd_basalsicklist.editCell();
  1304. }
  1305. }
  1306. ]]>
  1307. </script>
  1308. </datagrid>
  1309. <button id="btn_getpatinfo" class="icon_search" navindex="3" visibility="hidden" style="left:301px; top:7px; width:16px; height:16px; ">
  1310. <caption/>
  1311. <script type="javascript" ev:event="DOMActivate">
  1312. <![CDATA[
  1313. // 초기화후 조회 처리/root/main/hospinfcinfo/hospinfc/info/pid
  1314. var pid = model.getValue("/root/main/hospinfcinfo/hospinfc/info/pid");
  1315. var patnm = model.getValue("/root/main/hospinfcinfo/hospinfc/info/patnm");
  1316. ///root/main/hospinfcinfo/hospinfc/info/sexflag
  1317. ///root/main/hospinfcinfo/hospinfc/info/age
  1318. ///root/main/hospinfcinfo/hospinfc/info/atdrtnm
  1319. ///root/main/hospinfcinfo/hospinfc/info/atdrtcd
  1320. ///root/main/hospinfcinfo/hospinfc/info/orddeptcd
  1321. ///root/main/hospinfcinfo/hospinfc/info/wardcd
  1322. ///root/main/hospinfcinfo/hospinfc/info/roomcd
  1323. model.resetInstanceNode("/root/main/hospinfcinfo");
  1324. model.removeNodeset("/root/main/hospinfcinfo/basalsicklist");
  1325. model.removeNodeset("/root/main/hospinfcinfo/mirotestrslt");
  1326. model.removeNodeset("/root/main/hospinfcinfo/druginfo");
  1327. model.removeNodeset("/root/main/hospinfcinfo/oprecinfo");
  1328. model.resetInstanceNode("/root/main/hospinfcinfolist");
  1329. model.removenodeset("/root/main/hospinfcinfolist/info");
  1330. model.refresh();
  1331. // 기본값으로 진료유형을 입원으로 설정함.
  1332. model.setValue("/root/main/hospinfcinfo/hospinfc/info/pid", pid);
  1333. model.setValue("/root/main/hospinfcinfo/hospinfc/info/psnflag", "I");
  1334. model.setValue("/root/hidden/condition/state", "I");
  1335. model.makeValue("/root/hidden/condition/pid", model.getValue("/root/main/hospinfcinfo/hospinfc/info/pid"));
  1336. model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/hospinfcinfo/hospinfc/info/pid"));
  1337. submit("TRASI00108", true);
  1338. cbo_indd.select(0);
  1339. /*
  1340. model.makeValue("/root/hidden/condition/indd", model.getValue("/root/main/hospinfcinfo/hospinfc/info/indd"));
  1341. model.makeValue("/root/hidden/condition/psnflag", model.getValue("/root/main/hospinfcinfo/hospinfc/info/psnflag"));
  1342. fGetPtnInfo("C");//click event 발생시
  1343. */
  1344. ]]>
  1345. </script>
  1346. </button>
  1347. <input id="input16" ref="/root/main/hospinfcinfo/hospinfc/info/sexflag" class="input_search" disabled="true" navindex="5" style="left:517px; top:6px; width:27px; height:19px; "/>
  1348. <input id="input27" ref="/root/main/hospinfcinfo/hospinfc/info/patnm" class="input_search" disabled="true" navindex="4" style="left:365px; top:6px; width:70px; height:19px; "/>
  1349. <caption id="caption27" class="cell_1" style="left:438px; top:5px; width:76px; height:23px; vertical-align:middle; ">성별/나이</caption>
  1350. <input id="input18" ref="/root/main/hospinfcinfo/hospinfc/info/age" class="input_search" disabled="true" navindex="6" style="left:547px; top:6px; width:33px; height:19px; "/>
  1351. <caption id="caption7" class="cell_1" style="left:554px; top:127px; width:72px; height:23px; vertical-align:middle; ">퇴원사유</caption>
  1352. <select1 id="combo1" ref="/root/main/hospinfcinfo/hospinfc/info/outrmrslt" class="combo_search" disabled="true" navindex="20" appearance="minimal" style="left:627px; top:128px; width:85px; height:19px; text-align:left; ">
  1353. <choices>
  1354. <itemset nodeset="/root/init/M0067list/M0067">
  1355. <label ref="cdnm"/>
  1356. <value ref="cdid"/>
  1357. </itemset>
  1358. </choices>
  1359. <script type="javascript" ev:event="onmouseover">
  1360. <![CDATA[
  1361. var idx = combo1.focusIndex+ 1 ;
  1362. combo1.hint = model.getValue("/root/init/M0157list/M0157[" + idx + "]/cdnm");
  1363. model.refresh();
  1364. ]]>
  1365. </script>
  1366. </select1>
  1367. <line id="line7" class="line_3" style="x1:555px; y1:150px; x2:714px; y2:150px; "/>
  1368. <select1 id="cbo_indd" ref="/root/main/hospinfcinfo/hospinfc/info/indd" appearance="minimal" style="left:207px; top:5px; width:90px; height:19px; ">
  1369. <choices>
  1370. <itemset nodeset="/root/init/patinddlist/patindd">
  1371. <label ref="indd"/>
  1372. <value ref="indd"/>
  1373. </itemset>
  1374. </choices>
  1375. <script type="javascript" ev:event="xforms-value-changed">
  1376. <![CDATA[
  1377. model.makeValue("/root/hidden/condition/pid", model.getValue("/root/main/hospinfcinfo/hospinfc/info/pid"));
  1378. model.makeValue("/root/hidden/condition/indd", model.getValue("/root/main/hospinfcinfo/hospinfc/info/indd"));
  1379. model.makeValue("/root/hidden/condition/psnflag", model.getValue("/root/main/hospinfcinfo/hospinfc/info/psnflag"));
  1380. fGetPtnInfo("I");//click event 발생시
  1381. ]]>
  1382. </script>
  1383. </select1>
  1384. <caption id="caption21" class="cell_1" style="left:554px; top:78px; width:72px; height:23px; font-size:10pt; vertical-align:middle; ">병동입원일</caption>
  1385. <line id="line24" class="line_2" style="x1:555px; y1:101px; x2:714px; y2:101px; "/>
  1386. <input id="input22" ref="/root/main/hospinfcinfo/hospinfc/info/warddd" class="input_search" disabled="true" navindex="18" inputtype="date" format="yyyy-mm-dd" style="left:628px; top:80px; width:86px; height:19px; text-align:left; "/>
  1387. </group>
  1388. <group id="group1" style="left:479px; top:284px; width:715px; height:31px; ">
  1389. <line id="line16" class="line_1" style="x1:0px; y1:0px; x2:714px; y2:0px; "/>
  1390. <caption id="caption44" class="cell_1" style="left:0px; top:5px; width:67px; height:23px; text-align:left; vertical-align:middle; ">중증도</caption>
  1391. <caption id="caption45" class="cell_1" style="left:186px; top:5px; width:91px; height:23px; text-align:left; vertical-align:middle; ">입실일자</caption>
  1392. <input id="input28" ref="/root/main/hospinfcinfo/hospinfc/info/icuinrmdd" class="input_search" navindex="22" inputtype="date" style="left:280px; top:6px; width:90px; height:19px; ">
  1393. <script type="javascript" ev:event="DOMFocusOut">
  1394. <![CDATA[
  1395. // 입실일자가 년월일 8자리 모두 제대로 입력되고 포커스 아웃 인 경우, 자동으로 퇴실일을 세팅한다.
  1396. var icuinrmdd = model.getValue("/root/main/hospinfcinfo/hospinfc/info/icuinrmdd");
  1397. var icuoutrmdd = model.getValue("/root/main/hospinfcinfo/hospinfc/info/icuoutrmdd");
  1398. if ( icuinrmdd.length == 8 && ( icuoutrmdd != null || icuoutrmdd != "" ) ) {
  1399. model.setValue("/root/main/hospinfcinfo/hospinfc/info/icuoutrmdd",
  1400. model.getValue("/root/main/hospinfcinfo/hospinfc/info/outrmdd"));
  1401. model.refresh();
  1402. }
  1403. fCalcuDayno();
  1404. ]]>
  1405. </script>
  1406. </input>
  1407. <caption id="caption39" class="cell_1" style="left:560px; top:5px; width:65px; height:23px; text-align:left; vertical-align:middle; ">재원기간</caption>
  1408. <input id="input30" ref="/root/main/hospinfcinfo/hospinfc/info/icuinhospdayno" class="input_search" navindex="24" maxlength="4" style="left:628px; top:6px; width:64px; height:19px; "/>
  1409. <line id="line21" class="line_3" style="x1:1px; y1:27px; x2:715px; y2:27px; "/>
  1410. <input id="input3" ref="/root/main/hospinfcinfo/hospinfc/info/severityclssflag" class="input_search" navindex="21" maxlength="2" style="left:70px; top:6px; width:113px; height:19px; "/>
  1411. <caption id="caption18" class="cell_1" style="left:373px; top:5px; width:91px; height:23px; text-align:left; vertical-align:middle; ">퇴실일자</caption>
  1412. <input id="input4" ref="/root/main/hospinfcinfo/hospinfc/info/icuoutrmdd" class="input_search" navindex="23" inputtype="date" style="left:467px; top:6px; width:90px; height:19px; ">
  1413. <script type="javascript" ev:event="DOMFocusOut">
  1414. <![CDATA[
  1415. fCalcuDayno();
  1416. ]]>
  1417. </script>
  1418. </input>
  1419. <caption id="caption8" class="cell_1" style="left:695px; top:5px; width:19px; height:23px; text-align:left; vertical-align:middle; ">일</caption>
  1420. </group>
  1421. <group id="group4" style="left:479px; top:356px; width:715px; height:229px; ">
  1422. <line id="line17" class="line_1" style="x1:0px; y1:0px; x2:714px; y2:0px; "/>
  1423. <input id="input40" ref="/root/main/hospinfcinfo/hospinfc/info/asaclssflag" class="input_search" disabled="true" navindex="31" style="left:414px; top:5px; width:69px; height:19px; "/>
  1424. <caption id="caption51" class="cell_1" style="left:245px; top:4px; width:166px; height:23px; text-align:right; vertical-align:middle; ">ASA Class</caption>
  1425. <caption id="caption54" class="cell_1" style="left:0px; top:4px; width:169px; height:23px; text-align:right; vertical-align:middle; ">Wound Class</caption>
  1426. <caption id="caption56" class="cell_1" style="left:246px; top:28px; width:166px; height:23px; text-align:right; vertical-align:middle; ">Endoscopic Approach 유무</caption>
  1427. <caption id="caption52" class="cell_1" style="left:0px; top:28px; width:169px; height:23px; text-align:right; vertical-align:middle; ">General Anesthesia 유무</caption>
  1428. <select1 id="combo11" ref="/root/main/hospinfcinfo/hospinfc/info/generalanesthesiayn" class="combo_search" disabled="true" navindex="34" appearance="minimal" style="left:173px; top:29px; width:69px; height:19px; ">
  1429. <choices>
  1430. <item>
  1431. <label>-</label>
  1432. <value>-</value>
  1433. </item>
  1434. <item>
  1435. <label>Y</label>
  1436. <value>Y</value>
  1437. </item>
  1438. <item>
  1439. <label>N</label>
  1440. <value>N</value>
  1441. </item>
  1442. </choices>
  1443. </select1>
  1444. <select1 id="combo12" ref="/root/main/hospinfcinfo/hospinfc/info/endoscopicopyn" class="combo_search" disabled="true" navindex="35" appearance="minimal" style="left:414px; top:29px; width:69px; height:19px; ">
  1445. <choices>
  1446. <item>
  1447. <label>-</label>
  1448. <value>-</value>
  1449. </item>
  1450. <item>
  1451. <label>Y</label>
  1452. <value>Y</value>
  1453. </item>
  1454. <item>
  1455. <label>N</label>
  1456. <value>N</value>
  1457. </item>
  1458. </choices>
  1459. </select1>
  1460. <line id="line20" class="line_2" style="x1:1px; y1:26px; x2:715px; y2:26px; "/>
  1461. <line id="line19" class="line_2" style="x1:1px; y1:51px; x2:715px; y2:51px; "/>
  1462. <line id="line22" class="line_3" style="x1:1px; y1:50px; x2:715px; y2:50px; "/>
  1463. <input id="input8" ref="/root/main/hospinfcinfo/hospinfc/info/woundclssflag" class="input_search" disabled="true" navindex="30" style="left:172px; top:5px; width:70px; height:19px; "/>
  1464. <caption id="caption14" class="cell_1" style="left:486px; top:4px; width:70px; height:23px; text-align:left; vertical-align:middle; ">Risk Index</caption>
  1465. <input id="input35" ref="/root/main/hospinfcinfo/hospinfc/info/riskindxpnt" class="input_search" disabled="true" navindex="32" style="left:559px; top:5px; width:153px; height:19px; "/>
  1466. <caption id="caption17" class="cell_1" style="left:486px; top:28px; width:70px; height:23px; text-align:left; vertical-align:middle; ">마취종류</caption>
  1467. <datagrid id="grd_opinfo" nodeset="/root/main/hospinfcinfo/oprecinfo/info" class="datagrid2" caption="감염관리&#xA;자체코드^수술코드^수술명^부수술코드^부수술명^수술진단코드^수술진단명^주/부^수술구분^진행상태^집도의^집도의cd^마취종류^수술일^시작시간^종료시간^수술소요시간^Wound Class^ASA Class^Risk Index^General Anesthesia 유무^Endoscopic Approach 유무^감염여부" colsep="^" colwidth="77, 44, 209, 31, 161, 57, 169, 74, 60, 61, 70, 67, 100, 72, 66, 64, 80, 100, 100, 100, 160, 170, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:50px; width:670px; height:177px; ">
  1468. <col disabled="true" ref="infcopcd" type="input" visibility="visible"/>
  1469. <col ref="opcd" visibility="hidden"/>
  1470. <col ref="opnm"/>
  1471. <col ref="subopcd" visibility="hidden"/>
  1472. <col ref="subopnm"/>
  1473. <col ref="opdiagcd" visibility="hidden"/>
  1474. <col ref="opdiagnm" visibility="hidden"/>
  1475. <col ref="opmskind" type="combo" visibility="hidden">
  1476. <choices>
  1477. <itemset nodeset="/root/init/P0064list/P0064">
  1478. <label ref="cdnm"/>
  1479. <value ref="cdid"/>
  1480. </itemset>
  1481. </choices>
  1482. </col>
  1483. <col disabled="true" ref="opflagcd" type="combo">
  1484. <choices>
  1485. <itemset nodeset="/root/init/M0013list/M0013">
  1486. <label ref="cdnm"/>
  1487. <value ref="cdid"/>
  1488. </itemset>
  1489. </choices>
  1490. </col>
  1491. <col disabled="true" ref="opstatcd" type="combo">
  1492. <choices>
  1493. <itemset nodeset="/root/init/M0015list/M0015">
  1494. <label ref="cdnm"/>
  1495. <value ref="cdid"/>
  1496. </itemset>
  1497. </choices>
  1498. </col>
  1499. <col ref="perfdrnm"/>
  1500. <col ref="perfdrid" visibility="hidden"/>
  1501. <col disabled="true" ref="anstkind" type="combo">
  1502. <choices>
  1503. <itemset nodeset="/root/init/M0271list/M0271">
  1504. <label ref="cdnm"/>
  1505. <value ref="cdid"/>
  1506. </itemset>
  1507. </choices>
  1508. </col>
  1509. <col ref="opdd" format="yyyy-mm-dd"/>
  1510. <col ref="opstarttm" format="hh:nn"/>
  1511. <col ref="opendtm" format="hh:nn"/>
  1512. <col ref="opusetm"/>
  1513. <col ref="opwundkind" type="combo">
  1514. <choices>
  1515. <itemset nodeset="/root/init/M0341list/M0341">
  1516. <label ref="cdnm"/>
  1517. <value ref="cdid"/>
  1518. </itemset>
  1519. </choices>
  1520. </col>
  1521. <col ref="asascore"/>
  1522. <col ref="riskindex"/>
  1523. <col ref="gnrlanst"/>
  1524. <col ref="escopeopyn"/>
  1525. <col ref="infcyn" visibility="hidden"/>
  1526. <script type="javascript" ev:event="onclick">
  1527. <![CDATA[
  1528. var iRow = grd_opinfo.mouseRow;
  1529. var lastRow = grd_opinfo.rows - grd_opinfo.fixedRows;
  1530. if( iRow > 0 && iRow <= lastRow){
  1531. model.setValue("/root/main/hospinfcinfo/hospinfc/info/woundclssflag", model.getValue("/root/main/hospinfcinfo/oprecinfo/info[" + iRow + "]/opwundkind"));
  1532. model.setValue("/root/main/hospinfcinfo/hospinfc/info/asaclssflag", model.getValue("/root/main/hospinfcinfo/oprecinfo/info[" + iRow + "]/asascore"));
  1533. model.setValue("/root/main/hospinfcinfo/hospinfc/info/riskindxpnt", model.getValue("/root/main/hospinfcinfo/oprecinfo/info[" + iRow + "]/riskindex"));
  1534. model.setValue("/root/main/hospinfcinfo/hospinfc/info/generalanesthesiayn", model.getValue("/root/main/hospinfcinfo/oprecinfo/info[" + iRow + "]/gnrlanst"));
  1535. model.setValue("/root/main/hospinfcinfo/hospinfc/info/endoscopicopyn", model.getValue("/root/main/hospinfcinfo/oprecinfo/info[" + iRow + "]/escopeopyn"));
  1536. model.setValue("/root/main/hospinfcinfo/hospinfc/info/anstkind", model.getValue("/root/main/hospinfcinfo/oprecinfo/info[" + iRow + "]/anstkind"));
  1537. model.refresh();
  1538. }
  1539. ]]>
  1540. </script>
  1541. </datagrid>
  1542. <button id="button3" class="btn2_letter2" navindex="37" style="left:672px; top:52px; width:42px; height:19px; ">
  1543. <caption>삭제</caption>
  1544. <script type="javascript" ev:event="DOMActivate">
  1545. <![CDATA[
  1546. var iRow = grd_opinfo.row - grd_opinfo.fixedRows + 1;
  1547. fRowDelete(grd_opinfo, "/root/main/hospinfcinfo/oprecinfo/info[" + iRow + "]/status");
  1548. ]]>
  1549. </script>
  1550. </button>
  1551. <line id="line6" class="line_3" style="x1:1px; y1:228px; x2:715px; y2:228px; "/>
  1552. <select1 id="cmb_anstkind" ref="/root/main/hospinfcinfo/hospinfc/info/anstkind" class="combo_search" disabled="true" navindex="35" appearance="minimal" style="left:559px; top:30px; width:154px; height:19px; ">
  1553. <choices>
  1554. <itemset nodeset="/root/init/M0271list/M0271">
  1555. <label ref="cdnm"/>
  1556. <value ref="cdid"/>
  1557. </itemset>
  1558. </choices>
  1559. </select1>
  1560. <button id="button2" class="btn2_letter2" navindex="37" style="left:672px; top:50px; width:42px; height:19px; ">
  1561. <caption>삭제</caption>
  1562. <script type="javascript" ev:event="DOMActivate">
  1563. <![CDATA[
  1564. var iRow = grd_opinfo.row - grd_opinfo.fixedRows + 1;
  1565. fRowDelete(grd_opinfo, "/root/main/hospinfcinfo/oprecinfo/info[" + iRow + "]/status");
  1566. ]]>
  1567. </script>
  1568. </button>
  1569. </group>
  1570. <caption id="caption2" class="tit_2" style="left:484px; top:269px; width:105px; height:13px; ">중환자실 정보</caption>
  1571. <caption id="caption3" class="tit_2" style="left:484px; top:610px; width:170px; height:13px; ">감염정보 및 감염위험요인</caption>
  1572. <button id="button72" class="btn_sw" group="tab" style="left:0px; top:444px; width:172px; height:22px; ">
  1573. <caption>미생물배양결과및검사진단</caption>
  1574. <toggle case="case1" ev:event="onclick"/>
  1575. </button>
  1576. <button id="button70" class="btn_sw" group="tab" style="left:172px; top:444px; width:108px; height:22px; ">
  1577. <caption>투약정보및결과</caption>
  1578. <toggle case="case2" ev:event="onclick"/>
  1579. </button>
  1580. <button id="button68" class="btn_sw" group="tab" style="left:281px; top:444px; width:84px; height:22px; ">
  1581. <caption>검사및V/S</caption>
  1582. <toggle case="case3" ev:event="onclick"/>
  1583. </button>
  1584. <caption id="caption10" class="tit_2" style="left:484px; top:341px; width:82px; height:13px; ">수술정보</caption>
  1585. <select1 id="combo20" ref="/root/hidden/condition/state" class="combo_default" visibility="hidden" appearance="minimal" style="left:1090px; top:3px; width:60px; height:19px; ">
  1586. <choices>
  1587. <item>
  1588. <label>-</label>
  1589. <value>-</value>
  1590. </item>
  1591. <item>
  1592. <label>신규</label>
  1593. <value>I</value>
  1594. </item>
  1595. <item>
  1596. <label>수정</label>
  1597. <value>U</value>
  1598. </item>
  1599. <item>
  1600. <label>삭제</label>
  1601. <value>D</value>
  1602. </item>
  1603. </choices>
  1604. </select1>
  1605. <button id="button6" class="btn2_letter4" style="left:1130px; top:334px; width:64px; height:19px; ">
  1606. <caption>수술조회</caption>
  1607. <script type="javascript" ev:event="onclick">
  1608. <![CDATA[
  1609. //model.removeNodeset("/root/main/hospinfcinfo/oprecinfo");
  1610. //model.makeNode("/root/main/hospinfcinfo/oprecinfo");
  1611. model.removenode("/root/properties/parameters/setVal/setValvalue");
  1612. grd_opinfo.refresh();
  1613. fSetParameter();
  1614. modal("SPASI00200",1,10,10,"SPASI00200", "/root/hidden/condition", "/root/main/cond");
  1615. var lastRow = 0;
  1616. var bChkDup = true;
  1617. var getPara = model.getValue("/root/properties/parameters/setVal/setValvalue");
  1618. var cnt = getPara.split("▩").length;
  1619. var data = "";
  1620. for(var i=1; i<cnt-1; i++){
  1621. data = getPara.split("▩")[i];
  1622. // 2010-05-24 수술팝업창에서 전달되는 수술정보에 대해서는 중복으로 허용을 하되,
  1623. // 감염정보 등록시에는 수술정보 그리드 row 에 대해서 중복체크 로직을 추가하도록 한다.
  1624. //bChkDup = fChkDup(grd_opinfo, data.split("▦")[1], "/root/main/hospinfcinfo/oprecinfo/info[opcd='");
  1625. //if(bChkDup == false){
  1626. // continue;
  1627. //}
  1628. grd_opinfo.addRow(false);
  1629. lastRow = grd_opinfo.rows - grd_opinfo.fixedRows;
  1630. //alert("감염관리자체코드 : " + data.split("▦")[0]);
  1631. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ lastRow +"]/infcopcd", data.split("▦")[0]);
  1632. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ lastRow +"]/opcd", data.split("▦")[1]);
  1633. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ lastRow +"]/opnm", data.split("▦")[2]);
  1634. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ lastRow +"]/opmskind", data.split("▦")[3]);
  1635. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ lastRow +"]/opflagcd", data.split("▦")[4]);
  1636. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ lastRow +"]/opstatcd", data.split("▦")[5]);
  1637. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ lastRow +"]/perfdrnm", data.split("▦")[6]);
  1638. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ lastRow +"]/perfdrid", data.split("▦")[7]);
  1639. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ lastRow +"]/anstkind", data.split("▦")[8]);
  1640. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ lastRow +"]/opdd", data.split("▦")[9]);
  1641. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ lastRow +"]/opstarttm", data.split("▦")[10]);
  1642. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ lastRow +"]/opendtm", data.split("▦")[11]);
  1643. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ lastRow +"]/opusetm", data.split("▦")[12]);
  1644. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ lastRow +"]/opwundkind", data.split("▦")[13]);
  1645. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ lastRow +"]/asascore", data.split("▦")[14]);
  1646. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ lastRow +"]/riskindex", data.split("▦")[15]);
  1647. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ lastRow +"]/gnrlanst", data.split("▦")[16]);
  1648. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ lastRow +"]/escopeopyn", data.split("▦")[17]);
  1649. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ lastRow +"]/opdiagcd", data.split("▦")[18]);
  1650. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ lastRow +"]/opdiagnm", data.split("▦")[19]);
  1651. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ lastRow +"]/subopcd", data.split("▦")[20]);
  1652. model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ lastRow +"]/subopnm", data.split("▦")[21]);
  1653. //model.setValue("/root/main/hospinfcinfo/oprecinfo/info["+ lastRow +"]/nnopcd", "");
  1654. }
  1655. model.refresh();
  1656. ]]>
  1657. </script>
  1658. </button>
  1659. <button id="button11" class="btn2_letter4" visibility="visible" style="left:1130px; top:605px; width:64px; height:19px; ">
  1660. <caption>부착기구
  1661. <script type="javascript" ev:event="onclick">
  1662. <![CDATA[
  1663. var pid = model.getValue("/root/main/hospinfcinfo/hospinfc/info/pid");
  1664. if ( pid == null || pid == "" ) {
  1665. messageBox("환자 정보가", "I004");
  1666. return;
  1667. }
  1668. modal("SPASI03000");
  1669. ]]>
  1670. </script>
  1671. </caption>
  1672. <!-- <load resource="부착기구.xrw" ev:event="onclick" show="modal"/> -->
  1673. </button>
  1674. <datagrid id="grd_hospinfclist" nodeset="/root/main/hospinfcinfolist/info" class="datagrid2" caption="확정&#xA;여부^등록번호^성명^감염일^감염종류1^감염종류2^원인균^항생제&#xA;내성균구분^입원일^진료일^진료과^병동^등록일" colsep="^" colwidth="32, 59, 53, 67, 82, 84, 94, 75, 86, 100, 90, 70, 80" dataheight="25" defaultrows="0" ellipsis="true" mergecells="never" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:30px; width:475px; height:400; ">
  1675. <col ref="cnfmyn"/>
  1676. <col ref="pid"/>
  1677. <col ref="patnm"/>
  1678. <col ref="infcdd" format="yyyy-mm-dd"/>
  1679. <col disabled="true" ref="infckindlrg" type="combo">
  1680. <choices>
  1681. <itemset nodeset="/root/init/A0144list/A0144">
  1682. <label ref="cdnm"/>
  1683. <value ref="cdid"/>
  1684. </itemset>
  1685. </choices>
  1686. </col>
  1687. <col disabled="true" ref="infckindsml" type="combo">
  1688. <choices>
  1689. <itemset nodeset="/root/init/A0145list/A0145">
  1690. <label ref="cdnm"/>
  1691. <value ref="cdid"/>
  1692. </itemset>
  1693. </choices>
  1694. </col>
  1695. <col ref="bacnm"/>
  1696. <col ref="antibtrstbtrflagnm"/>
  1697. <col ref="indd" format="yyyy-mm-dd"/>
  1698. <col ref="indd" visibility="hidden" format="yyyy-mm-dd"/>
  1699. <col disabled="true" ref="orddeptcd" type="combo">
  1700. <choices>
  1701. <itemset nodeset="/root/init/deptlist/dept">
  1702. <label ref="depthngnm"/>
  1703. <value ref="deptcd"/>
  1704. </itemset>
  1705. </choices>
  1706. </col>
  1707. <col disabled="true" ref="wardcd" type="combo">
  1708. <choices>
  1709. <itemset nodeset="/root/init/warddeptlist/dept">
  1710. <label ref="depthngnm"/>
  1711. <value ref="deptcd"/>
  1712. </itemset>
  1713. </choices>
  1714. </col>
  1715. <col ref="rgstdt"/>
  1716. <script type="javascript" ev:event="ondblclick">
  1717. <![CDATA[
  1718. var iRow = grd_hospinfclist.mouseRow;
  1719. var lastRow = grd_hospinfclist.rows - grd_hospinfclist.fixedRows;
  1720. if( iRow > 0 && iRow <= lastRow){
  1721. fDblClickAllSearch("L");
  1722. }
  1723. ]]>
  1724. </script>
  1725. </datagrid>
  1726. <select1 id="rdo_psnflag" ref="/root/main/hospinfcinfo/hospinfc/info/psnflag" visibility="hidden" appearance="full" cellspacing="2" cols="3" overflow="visible" style="left:649px; top:7px; width:135px; height:20px; border-style:none; ">
  1727. <choices>
  1728. <item>
  1729. <label>입원</label>
  1730. <value>I</value>
  1731. </item>
  1732. <item>
  1733. <label>외래</label>
  1734. <value>O</value>
  1735. </item>
  1736. <item>
  1737. <label>응급</label>
  1738. <value>E</value>
  1739. </item>
  1740. </choices>
  1741. <script type="javascript" ev:event="xforms-value-changed">
  1742. <![CDATA[
  1743. fChgPsnFlag();
  1744. ]]>
  1745. </script>
  1746. </select1>
  1747. </group>
  1748. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  1749. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; ">병원감염보고서관리</caption>
  1750. </group>
  1751. </group>
  1752. <group id="grp_btn" style="left:0px; top:748px; width:1194px; height:27px; ">
  1753. <button id="button42" class="btn4_letter2" style="left:1135px; top:3px; width:56px; height:22px; ">
  1754. <caption>삭제</caption>
  1755. <script type="javascript" ev:event="DOMActivate">
  1756. <![CDATA[
  1757. var rowcnt = grd_hospinfclist.selectedRow(0);
  1758. if(rowcnt < 1) {
  1759. var msg = messageBox("삭제할 정보를 ", "C002");
  1760. return;
  1761. } else {
  1762. //등록이나 수정을 수행해야 하는 경우
  1763. model.setValue("/root/hidden/condition/state", "D");
  1764. if( isRequiredControls("ipt_rgstdd","rdo_psnflag","ipt_pid") == false ){
  1765. return;
  1766. }
  1767. model.makeNode("/root/send/hospinfc");
  1768. model.makeValue("/root/send/hospinfc/rgstdt", model.getValue("/root/main/hospinfcinfolist/info[" + rowcnt + "]/rgstdt"));
  1769. model.makeValue("/root/send/hospinfc/pid", model.getValue("/root/main/hospinfcinfolist/info[" + rowcnt + "]/pid"));
  1770. model.makeValue("/root/send/hospinfc/indd", model.getValue("/root/main/hospinfcinfolist/info[" + rowcnt + "]/indd"));
  1771. model.makeValue("/root/send/hospinfc/state", model.getValue("/root/hidden/condition/state"));
  1772. model.makeValue("/root/send/hospinfc/psnflag", model.getValue("/root/main/hospinfcinfolist/info[" + rowcnt + "]/psnflag"));
  1773. model.makeValue("/root/hidden/condition/pid", model.getValue("/root/main/hospinfcinfolist/info[" + rowcnt + "]/pid"));
  1774. model.makeValue("/root/hidden/condition/indd", model.getValue("/root/main/hospinfcinfolist/info[" + rowcnt + "]/indd"));
  1775. model.makeValue("/root/hidden/condition/psnflag", model.getValue("/root/main/hospinfcinfolist/info[" + rowcnt + "]/psnflag"));
  1776. if(submit("TXASI00101")){
  1777. fGetPtnInfo("D");
  1778. }
  1779. }
  1780. ]]>
  1781. </script>
  1782. </button>
  1783. <button id="button8" class="btn4_letter2" style="left:1074px; top:3px; width:56px; height:22px; ">
  1784. <caption>저장</caption>
  1785. <script type="javascript" ev:event="DOMActivate">
  1786. <![CDATA[
  1787. var basalsick = grd_basalsicklist.rows;
  1788. var microtest = grd_mirotestrslt.rows;
  1789. var drug = grd_druginfo.rows;
  1790. var oprec = grd_opinfo.rows;
  1791. // 감염일, 감염종류 입력 유무 체크
  1792. var infcdd = model.getValue("/root/main/hospinfcinfo/hospinfc/info/infcdd");
  1793. if ( infcdd == null || infcdd == "" ) {
  1794. messageBox("[감염정보 마스터] 감염일은", "I003");
  1795. return;l
  1796. }
  1797. var infckindlrg = model.getValue("/root/main/hospinfcinfo/hospinfc/info/infckindlrg");
  1798. if ( infckindlrg == null || infckindlrg == "" ) {
  1799. messageBox("[감염정보 마스터] 감염종류를", "C002");
  1800. return;l
  1801. }
  1802. // 수술정보 등록항목이 있는 경우 감염관리자체코드 입력 유무를 체크 한다.
  1803. for (var i=1 ; i<oprec ; i++ ) {
  1804. var status = grd_opinfo.rowStatus(i); // status 값. 신규등록(3), 신규등록삭제처리(4)
  1805. if ( status == "4" || status_comp == "5" || status_comp == "6" ) {
  1806. // 조회시 수술코드로 복원처리 해야함.
  1807. grd_opinfo.valueMatrix(i, grd_opinfo.colRef("infcopcd")) = model.getValue("/root/main/copyset/oprecinfo/info["+i+"]/infcopcd");
  1808. model.refresh();
  1809. continue;
  1810. }
  1811. var infcopcd = grd_opinfo.valueMatrix(i, grd_opinfo.colRef("infcopcd"));
  1812. grd_opinfo.valueMatrix(i, grd_opinfo.colRef("infcopcd")) = infcopcd.toUpperCase();
  1813. if ( infcopcd == null || infcopcd == "" ) {
  1814. messageBox("[수술정보] " + i + " 번째 열의 감염관리 자체코드는", "I003");
  1815. return;
  1816. }
  1817. }
  1818. // 수술정보 데이터 그리드 상에서 중복 데이터가 존재하는지 체크 한다.
  1819. for (var i=1 ; i<oprec ; i++ ) {
  1820. var status = grd_opinfo.rowStatus(i); // status 값. 신규등록(3), 신규등록삭제처리(4)
  1821. if ( status == "4" || status == "5" || status == "6" ) continue;
  1822. var infcopcd = grd_opinfo.valueMatrix(i, grd_opinfo.colRef("infcopcd"));
  1823. for ( var j=1 ; j<oprec ; j++ ) {
  1824. if ( i == j ) continue;
  1825. var infcopcd_comp = grd_opinfo.valueMatrix(j, grd_opinfo.colRef("infcopcd"));
  1826. var status_comp = grd_opinfo.rowStatus(j);
  1827. if ( infcopcd.toUpperCase() == infcopcd_comp.toUpperCase() &&
  1828. status_comp != "4" && status_comp != "5" && status_comp != "6" ) { // 삭제처리된 row는 비교조건에서 제외 한다.
  1829. messageBox("감염관리 자체코드가", "E006");
  1830. return;
  1831. }
  1832. }
  1833. }
  1834. //return;
  1835. // 기저질환 등록항목이 있는 경우 기저질환 코드가 선택되었는지 유무를 체크 한다.
  1836. for ( var i=1; i<basalsick ; i++ ) {
  1837. var basalsickcd = model.getValue("/root/main/hospinfcinfo/basalsicklist/info["+i+"]/basalsickcd");
  1838. if ( basalsickcd == null || basalsickcd == "" ) {
  1839. messageBox("[기저질환] " + i + " 번째 열의 기절질환명은", "I003");
  1840. return;
  1841. }
  1842. }
  1843. // 기저질환 데이터 그리드 상에서 중복 데이터가 존재하는지 체크 한다.
  1844. for (var i=1 ; i<basalsick ; i++ ) {
  1845. var status = grd_basalsicklist.rowStatus(i); // status 값. 신규등록(3), 신규등록삭제처리(4)
  1846. if ( status == "4" || status == "5" || status == "6" ) continue;
  1847. var basalsickcd = grd_basalsicklist.valueMatrix(i, grd_basalsicklist.colRef("basalsickcd"));
  1848. for ( var j=1 ; j<basalsick ; j++ ) {
  1849. if ( i == j ) continue;
  1850. var basalsickcd_comp = grd_basalsicklist.valueMatrix(j, grd_basalsicklist.colRef("basalsickcd"));
  1851. var status_comp = grd_basalsicklist.rowStatus(j);
  1852. if ( basalsickcd.toUpperCase() == basalsickcd_comp.toUpperCase() &&
  1853. status_comp != "4" && status_comp != "5" && status_comp != "6" ) { // 삭제처리된 row는 비교조건에서 제외 한다.
  1854. messageBox("기저질환명이", "E006");
  1855. return;
  1856. }
  1857. }
  1858. }
  1859. // 투약정보 등록항목이 있는 경우 약품코드값 유무를 체크 한다.
  1860. for (var i=1 ; i<drug ; i++ ) {
  1861. var drugcd = grd_druginfo.valueMatrix(i, grd_druginfo.colRef("drugcd"));
  1862. if ( drugcd == null || drugcd == "" ) {
  1863. messageBox("[투약정보] " + i + " 번째 열의 약품코드는", "I003");
  1864. return;
  1865. }
  1866. }
  1867. // 투약정보 데이터 그리드 상에서 중복 데이터가 존재하는지 체크 한다.
  1868. for (var i=1 ; i<drug ; i++ ) {
  1869. var status = grd_druginfo.rowStatus(i); // status 값. 신규등록(3), 신규등록삭제처리(4)
  1870. if ( status == "4" || status == "5" || status == "6" ) continue;
  1871. var drugcd = grd_druginfo.valueMatrix(i, grd_druginfo.colRef("drugcd"));
  1872. for ( var j=1 ; j<drug ; j++ ) {
  1873. if ( i == j ) continue;
  1874. var drugcd_comp = grd_druginfo.valueMatrix(j, grd_druginfo.colRef("drugcd"));
  1875. var status_comp = grd_opinfo.rowStatus(j);
  1876. if ( drugcd.toUpperCase() == drugcd_comp.toUpperCase() &&
  1877. status_comp != "4" && status_comp != "5" && status_comp != "6" ) { // 삭제처리된 row는 비교조건에서 제외 한다.
  1878. messageBox("약품코드가", "E006");
  1879. return;
  1880. }
  1881. }
  1882. }
  1883. model.setValue("/root/hidden/condition/state", "-" );//초기화
  1884. if( isRequiredControls("ipt_rgstdd", "ipt_infcdd","cmb_infckindlrg","rdo_psnflag","ipt_pid") == false ){
  1885. return;
  1886. }
  1887. if(fpamCompareNodes("/root/main/hospinfcinfo/hospinfc/info", "/root/main/copyset/hospinfcinfo/info") &&
  1888. fpamCompareNodes("/root/main/hospinfcinfo/basalsicklist", "/root/main/copyset/basalsicklist") &&
  1889. fpamCompareNodes("/root/main/hospinfcinfo/mirotestrslt", "/root/main/copyset/mirotestrslt") &&
  1890. fpamCompareNodes("/root/main/hospinfcinfo/druginfo", "/root/main/copyset/druginfo") &&
  1891. fpamCompareNodes("/root/main/hospinfcinfo/oprecinfo", "/root/main/copyset/oprecinfo") ) {
  1892. var msg = messageBox("등록/수정된 내용이 없으므로 저장", "E001");
  1893. } else {
  1894. model.removeNodeset("/root/send");
  1895. //원본 데이터와 복사값을 비교해서 수정된 사항만 INPUT 에 담는다
  1896. //기본 마스터 정보
  1897. if(!fpamCompareNodes("/root/main/hospinfcinfo/hospinfc/info", "/root/main/copyset/hospinfcinfo/info")) {
  1898. //등록이나 수정을 수행해야 하는 경우
  1899. if( model.getValue("/root/main/hospinfcinfo/hospinfc/info/pid") != model.getValue("/root/main/copyset/hospinfcinfo/info/pid")
  1900. || model.getValue("/root/main/hospinfcinfo/hospinfc/info/indd") != model.getValue("/root/main/copyset/hospinfcinfo/info/indd")
  1901. || model.getValue("/root/main/hospinfcinfo/hospinfc/info/psnflag") != model.getValue("/root/main/copyset/hospinfcinfo/info/psnflag")
  1902. || model.getValue("/root/main/hospinfcinfo/hospinfc/info/rgstdd") != model.getValue("/root/main/copyset/hospinfcinfo/info/rgstdd")
  1903. || model.getValue("/root/hidden/condition/state") == "I" ){
  1904. model.setValue("/root/hidden/condition/state", "I");
  1905. model.setValue("/root/main/hospinfcinfo/hospinfc/info/rgstdt", model.getValue("/root/main/hospinfcinfo/hospinfc/info/rgstdd")+ getCurrentTime());
  1906. }
  1907. if(model.getValue("/root/hidden/condition/state") != "I") {
  1908. model.setValue("/root/hidden/condition/state", "U");
  1909. model.setValue("/root/main/hospinfcinfo/hospinfc/info/rgstdt", model.getValue("/root/main/hospinfcinfo/hospinfc/info/rgstdd")+""+model.getValue("/root/main/hospinfcinfo/hospinfc/info/rgsttm"));
  1910. }
  1911. model.makeValue("/root/main/hospinfcinfo/hospinfc/info/state", model.getValue("/root/hidden/condition/state"));
  1912. }
  1913. model.makeNode("/root/send/hospinfc");
  1914. model.copyNode("/root/send/hospinfc","/root/main/hospinfcinfo/hospinfc/info");
  1915. //기저질환 디테일
  1916. //if(!pamCompareNodes("/root/main/copyset/basalsicklist", "/root/main/hospinfcinfo/basalsicklist")) {
  1917. if(!fpamCompareNodes("/root/main/hospinfcinfo/basalsicklist", "/root/main/copyset/basalsicklist")) {
  1918. model.makeNode("/root/send/basalsicklist");
  1919. model.setValue("/root/send/basalsicklist", grd_basalsicklist.getUpdateData());
  1920. }
  1921. //수술내역 디테일
  1922. if(!fpamCompareNodes("/root/main/copyset/oprecinfo", "/root/main/hospinfcinfo/oprecinfo")) {
  1923. model.makeNode("/root/send/oprecinfo");
  1924. model.setValue("/root/send/oprecinfo", grd_opinfo.getUpdateData());
  1925. }
  1926. //미생물배양결과 디테일
  1927. if(!fpamCompareNodes("/root/main/hospinfcinfo/mirotestrslt", "/root/main/copyset/mirotestrslt")) {
  1928. model.makeNode("/root/send/mirotestrslt");
  1929. model.setValue("/root/send/mirotestrslt", grd_mirotestrslt.getUpdateData());
  1930. }
  1931. //항생제 투약사항 디테일fGetPtnInfo
  1932. if(!fpamCompareNodes("/root/main/hospinfcinfo/druginfo", "/root/main/copyset/druginfo")) {
  1933. model.makeNode("/root/send/druginfo");
  1934. model.setValue("/root/send/druginfo", grd_druginfo.getUpdateData());
  1935. }
  1936. if(submit("TXASI00101")){
  1937. fGetPtnInfo("S");
  1938. }
  1939. //model.refresh();
  1940. }
  1941. ]]>
  1942. </script>
  1943. </button>
  1944. <button id="button22" class="btn4_letter2" visibility="visible" style="left:1013px; top:3px; width:56px; height:22px; ">
  1945. <caption>복사</caption>
  1946. <script type="javascript" ev:event="DOMActivate">
  1947. <![CDATA[
  1948. var rowcnt = model.getValue("/root/hidden/selectedrowcnt");
  1949. if(rowcnt == "" || rowcnt == null ) {
  1950. var msg = messageBox("복사할 데이터를 그리드에서 ", "C002");
  1951. return;
  1952. }
  1953. else{
  1954. fMapping(rowcnt);
  1955. fClear("N");
  1956. model.removeNodeset("/root/main/hospinfcinfo/oprecinfo");
  1957. model.removeNodeset("/root/main/hospinfcinfo/mirotestrslt");
  1958. model.removeNodeset("/root/main/hospinfcinfo/druginfo");
  1959. model.setValue("/root/hidden/condition/state", "I");
  1960. model.refresh();
  1961. }
  1962. ]]>
  1963. </script>
  1964. </button>
  1965. <button id="button25" class="btn4_letter3" style="left:940px; top:3px; width:56px; height:22px; ">
  1966. <caption>초기화</caption>
  1967. <script type="javascript" ev:event="DOMActivate">
  1968. <![CDATA[
  1969. button72.attribute("class") = "btn_sw_bottom";
  1970. // 2010-05-25 환자기본정보를 포함한 포함 항목을 reset 설정 요청(문서파일명:병원감염보고서 오류(20100525).ppt)에 의해 수정.
  1971. // 수정인 : 허권주
  1972. //var vPid = model.getValue("/root/main/hospinfcinfo/hospinfc/info/pid");
  1973. //var vIndd = model.getValue("/root/main/hospinfcinfo/hospinfc/info/indd");
  1974. //var vPsnflag= model.getValue("/root/main/hospinfcinfo/hospinfc/info/psnflag");
  1975. //model.resetInstanceNode("/root/main/hospinfcinfo");
  1976. //model.setValue("/root/main/hospinfcinfo/hospinfc/info/pid", vPid);
  1977. //model.makeValue("/root/hidden/condition/pid", vPid);
  1978. //model.makeValue("/root/send/reqdata/pid", vPid);
  1979. //model.setValue("/root/main/hospinfcinfo/hospinfc/info/psnflag", vPsnflag);
  1980. //submit("TRASI00108");
  1981. //model.setValue("/root/main/hospinfcinfo/hospinfc/info/indd", vIndd);
  1982. //model.setValue("/root/hidden/condition/state", "I");
  1983. //cbo_indd.dispatch("xforms-value-changed");
  1984. //model.refresh();
  1985. model.resetInstanceNode("/root/main/hospinfcinfo");
  1986. model.removeNodeset("/root/main/hospinfcinfo/basalsicklist");
  1987. model.removeNodeset("/root/main/hospinfcinfo/mirotestrslt");
  1988. model.removeNodeset("/root/main/hospinfcinfo/druginfo");
  1989. model.removeNodeset("/root/main/hospinfcinfo/oprecinfo");
  1990. model.resetInstanceNode("/root/main/hospinfcinfolist");
  1991. model.removenodeset("/root/main/hospinfcinfolist/info");
  1992. // 기본값으로 진료유형을 입원으로 설정함.
  1993. model.setValue("/root/main/hospinfcinfo/hospinfc/info/psnflag", "I");
  1994. model.setValue("/root/hidden/condition/state", "I");
  1995. model.refresh();
  1996. ]]>
  1997. </script>
  1998. </button>
  1999. </group>
  2000. </xhtml:body>
  2001. </xhtml:html>