SMMNW03800_BMT퇴원간호계획.xrw 88 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203
  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>BMT퇴원간호계획</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <room/>
  11. <patnm/>
  12. <sex/>
  13. <age/>
  14. <pid/>
  15. <dschcareinfo>
  16. <dschcareinfo>
  17. <cscsstatcd>01</cscsstatcd>
  18. <proceracomp>01</proceracomp>
  19. <dracomp>02</dracomp>
  20. <dschtypecds>01</dschtypecds>
  21. <dschtypenm/>
  22. <dschmthdcd>01</dschmthdcd>
  23. <dschmthdnm/>
  24. <dschgoplaccd>01</dschgoplaccd>
  25. <dschgoplacnm/>
  26. <antibioallgyn>01</antibioallgyn>
  27. <antibioallgcd/>
  28. <antibioallgnm/>
  29. <dschcareeducinfo>
  30. <dschcareeduc>
  31. <actscop>01</actscop>
  32. <dietcd>01</dietcd>
  33. <treatdiet/>
  34. <dietnm/>
  35. <bathcd>01</bathcd>
  36. <bathnm/>
  37. <healmngtcd/>
  38. <healmngtnm/>
  39. <healmngtsymp/>
  40. <mainveintubemngt/>
  41. <mngtaftdschyn>02</mngtaftdschyn>
  42. <mngtaftdschcd/>
  43. <mngtaftdschnm/>
  44. <dschseqeducyn>01</dschseqeducyn>
  45. <dschmeditmedguidyn>01</dschmeditmedguidyn>
  46. <dschcatestatcd/>
  47. <dschcateoxy/>
  48. <dschcatestatnm/>
  49. <spcffact/>
  50. <dschcatestatyn>01</dschcatestatyn>
  51. </dschcareeduc>
  52. </dschcareeducinfo>
  53. <etcfactinfo>
  54. <etcfact>
  55. <tel/>
  56. <eductrgt/>
  57. <educunstdgrde>01</educunstdgrde>
  58. </etcfact>
  59. </etcfactinfo>
  60. <recdd/>
  61. <rectm/>
  62. <recuserid/>
  63. <dschdd/>
  64. <recusernm/>
  65. <signno/>
  66. </dschcareinfo>
  67. </dschcareinfo>
  68. </main>
  69. <send>
  70. <dschcareinfo>
  71. <rsrvinfo>
  72. <ordrsrvinfo/>
  73. <testrsrvinfo/>
  74. <dschdrugfactinfo/>
  75. </rsrvinfo>
  76. </dschcareinfo>
  77. </send>
  78. <harddata>
  79. <hardcode/>
  80. <send/>
  81. </harddata>
  82. <codeinfo/>
  83. <duplocrprnt>
  84. <msginfo/>
  85. </duplocrprnt>
  86. <temp>
  87. <prtPatient>Y</prtPatient>
  88. <prtOCR/>
  89. </temp>
  90. </root>
  91. </instance>
  92. <script type="javascript" ev:event="xforms-ready">
  93. <![CDATA[
  94. model.removeNodeset("/root/main/dschcareinfo/ordrsrvinfo");
  95. model.removeNodeset("/root/main/dschcareinfo/testrsrvinfo");
  96. model.removeNodeset("/root/main/dschcareinfo/dschdrugfactinfo");
  97. grd_ordrsrvinfo.rebuild();
  98. grd_testrsrvinfo.rebuild();
  99. grd_dschdrugmedifact.rebuild();
  100. //172 JCI 적용여부
  101. //fGetNursHardCdInfo("'172','174','178','U31'", getCurrentDate()); //CareCom.js
  102. model.makeNode("/root/temp/cond");
  103. var paminfo = getGlobalVariable("paminfo");
  104. setCSVToNode("/root/temp/cond", paminfo);
  105. var dschdclrtyn = model.getValue("/root/temp/cond/list/dschdclrtyn");
  106. var pid = model.getValue("/root/temp/cond/list/pid");
  107. if(pid == "") {
  108. messageBox("환자를 선택하지 ", "E007");
  109. window.close();
  110. }else{
  111. if(dschdclrtyn == 'N') {
  112. messageBox("퇴원예고가 이루어지지", "E007");
  113. window.close();
  114. }else{
  115. var room = model.getValue("/root/temp/cond/list/roomcd");
  116. var patnm = model.getValue("/root/temp/cond/list/hngnm2");
  117. var sex = model.getValue("/root/temp/cond/list/sex");
  118. var age = model.getValue("/root/temp/cond/list/age");
  119. var pid = model.getValue("/root/temp/cond/list/pid");
  120. var deptcd = model.getValue("/root/temp/cond/list/wardcd");
  121. var userdept = getUserInfo("dutplcecd");
  122. var spiritdept = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='U31']/cdid");
  123. if(deptcd == spiritdept) {
  124. if(userdept != spiritdept) {
  125. messageBox("환자 개인정보 보호를 위해 해당병동 사용자외엔 조회를 제한합니다", "E");
  126. window.close();
  127. }
  128. }
  129. model.setValue("/root/main/room", room);
  130. model.setValue("/root/main/patnm", patnm);
  131. model.setValue("/root/main/sex", sex);
  132. model.setValue("/root/main/age", age);
  133. model.setValue("/root/main/pid", pid);
  134. fGetDschInfo();
  135. var dschdd = model.getValue("/root/main/dschcareinfo/dschcareinfo/dschdd");
  136. var dschdclrdt = model.getValue("/root/temp/cond/list/dschdclrdt").substr(0,8);
  137. if(dschdd == '' ) {
  138. if(dschdclrdt != '-' || dschdclrdt != '') {
  139. model.setValue("/root/main/dschcareinfo/dschcareinfo/dschdd",dschdclrdt);
  140. }
  141. }
  142. model.refresh();
  143. }
  144. }
  145. ]]>
  146. </script>
  147. <submission id="TRMNW03801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main"/>
  148. <submission id="TRMNW03802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden"/>
  149. <submission id="TRMNW03803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/rsrvinfo"/>
  150. <submission id="TRMNW03804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/patinfo"/>
  151. <submission id="TXMNW03801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dschcareinfo"/>
  152. <submission id="TXMRF03805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/insocrtag"/>
  153. <submission id="TRMMB04105" mediatype="application/x-www-form-urlencoded" method="post"/>
  154. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/codeinfo/codelist"/>
  155. <submission id="TRADC02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/patinfo"/>
  156. <submission id="TRMNW15101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/duplocrprnt/msginfo"/>
  157. <submission id="TXMNW03602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reprntinfo"/>
  158. <submission id="TRMNW03605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hiden"/>
  159. </model>
  160. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  161. <script type="javascript" src="../../../com/signweb/js/ZES001.js"/>
  162. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  163. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  164. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  165. <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
  166. <script type="javascript" src="../../../emr/formmngtweb/js/MRF03800.js"/>
  167. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  168. <script type="javascript" src="../../../emr/wardcareweb/js/SMMNW03.js"/>
  169. <script type="javascript">
  170. <![CDATA[
  171. var pid ="";
  172. var indd = "";
  173. var instcd = "";
  174. var orddeptcd = "";
  175. //var xFormCd = "0000002457";
  176. fGetNursHardCdInfo("'172','174','178','U31','R4'", getCurrentDate()); //CareCom.js
  177. var xFormCd = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='R4' and supcdid = '04']/cdid"); // 서식코드 기준자료로 관리
  178. function fGetCurrentDate() {
  179. var dt = getCurrentDate();
  180. return dt;
  181. }
  182. function fGetCurrentTime() {
  183. var dt = getCurrentTime();
  184. dt = dt.substr(0,4);
  185. return dt;
  186. }
  187. function fMakeGridData(grdObj) {
  188. var grdInfo = grdObj.getUpdateData();
  189. var rowStatus;
  190. var status;
  191. for(var i = 1; i < grdObj.rows; i++) {
  192. rowStatus = grdObj.rowStatus(i);
  193. if(rowStatus=="1" || rowStatus == "3") {
  194. status = "i";
  195. } else if(rowStatus == "2") {
  196. status = "u";
  197. } else if(rowStatus == "4") {
  198. status = "d";
  199. } else if(rowStatus == "0") {
  200. }
  201. grdInfo += status;
  202. grdInfo += grdObj.attribute("colsep");
  203. for(var j = 0; j < grdObj.cols; j++) {
  204. grdInfo += grdObj.valueMatrix(i, j);
  205. if(j != grdObj.cols-1) {
  206. grdInfo += grdObj.attribute("colsep");
  207. }
  208. }
  209. grdInfo += grd_ordrsrvinfo.attribute("rowsep");
  210. }
  211. return grdInfo;
  212. }
  213. //퇴원간호계획 조회
  214. function fGetDschInfo(){
  215. var pid = model.getValue("/root/temp/cond/list/pid");
  216. var indd = model.getValue("/root/temp/cond/list/indd");
  217. var cretno = model.getValue("/root/temp/cond/list/cretno");
  218. var instcd = model.getValue("/root/temp/cond/list/instcd");
  219. var orddeptcd = model.getValue("/root/temp/cond/list/orddeptcd");
  220. model.removeNodeset("/root/send/req");
  221. model.makeValue("/root/send/req/pid", pid);
  222. model.makeValue("/root/send/req/indd", indd);
  223. model.makeValue("/root/send/req/cretno", cretno);
  224. model.makeValue("/root/send/req/orddeptcd", orddeptcd);
  225. model.makeValue("/root/send/req/instcd", instcd);
  226. model.makeValue("/root/send/req/dschdclrdt", model.getValue("/root/temp/cond/list/dschdclrdt").substr(0,8)); //예약정보 조회시 사용
  227. model.makeValue("/root/send/req/recflag", "04");
  228. if(submit("TRMNW03802")) {
  229. var exist = model.getValue("/root/hidden/existinfo/exist");
  230. if(exist == "Y") {
  231. submit("TRMNW03801");
  232. } else {
  233. model.setValue("/root/main/dschcareinfo/dschcareinfo/recdd", fGetCurrentDate());
  234. model.setValue("/root/main/dschcareinfo/dschcareinfo/rectm", fGetCurrentTime());
  235. model.setValue("/root/main/dschcareinfo/dschcareinfo/recuserid", getUserId());
  236. model.setValue("/root/main/dschcareinfo/dschcareinfo/recusernm", getUserName());
  237. //입원전 검사실에서 미시행한 처방이 존재할 경우 [외래진료과에서 반환받으실 입원전 검사처방이 존재합니다] 라는 메시지가 퇴원간호계획화면의 {특이사항} 항목에 자동으로 조회
  238. if(model.getValue("/root/hidden/existinfo/intestprcpyn") == "Y"){
  239. model.setValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/spcffact", "외래진료과에서 반환받으실 입원전 검사처방이 존재합니다.");
  240. }
  241. }
  242. submit("TRMNW03605");
  243. var dschcateyn = model.getValue("/root/hiden/dschcateinfo/dschcateyn");
  244. if( dschcateyn == "Y" ){
  245. model.setValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatyn", "02"); //유
  246. messageBox("제거되지 않은 [삽관/기구] 기록이 있습니다. \n 기록을 확인","I008"); // 하십시오.
  247. }
  248. rdo_dschtypes.dispatch("xforms-value-changed");
  249. rdo_dschmthd.dispatch("xforms-value-changed");
  250. rdo_dschgoplac.dispatch("xforms-value-changed");
  251. rdo_antibioallgyn.dispatch("xforms-value-changed");
  252. chk_antibioallgcd.dispatch("xforms-value-changed");
  253. rdo_diet.dispatch("xforms-value-changed");
  254. rdo_bath.dispatch("xforms-value-changed");
  255. chk_healmngt.dispatch("xforms-value-changed");
  256. rdo_mngtaftdschyn.dispatch("xforms-value-changed");
  257. chk_mngtaftdsch.dispatch("xforms-value-changed");
  258. if ( isNull(model.getValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatyn")) ){
  259. model.makeValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatyn","01");
  260. }
  261. rdo_dschcatestatyn.dispatch("xforms-value-changed");
  262. chk_dschcatestat.dispatch("xforms-value-changed");
  263. fGetRsrvInfo(); //예약정보조회
  264. }
  265. }
  266. /**
  267. * @group :
  268. * @ver : 2007.10.09
  269. * @by : 김 병 국
  270. * @---------------------------------------------------
  271. * @type : function
  272. * @access : public
  273. * @desc : 퇴원 간호 계획 출력
  274. * @param :
  275. * @return :
  276. * @---------------------------------------------------
  277. */
  278. function fPrintDschInfo(printflag, ocrtag, elecflag) {
  279. var exist = model.getValue("/root/hidden/existinfo/exist");
  280. if(exist != "Y") {
  281. messageBox("저장한 후에 출력하세요.", "I");
  282. return;
  283. }
  284. var printflag = printflag;
  285. var ocrtag = ocrtag;
  286. var formcd = xFormCd; //"0000002457";
  287. var usernm = getUserName();
  288. model.makeValue("/root/send/req/formcd", formcd);
  289. var sendPath = "/root/send/dschcareinfo"; //렉스퍼트 인자값 경로
  290. var sendDschPath = "/root/send/dschcareinfo/dschcareinfo"; //렉스퍼트 인자값 경로
  291. var destPath = "/root/main/dschcareinfo/dschcareinfo"; //기본 퇴원간호계획 경로
  292. var destEducPath = "/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc"; //퇴원간호교육에 관한 경로
  293. var destEtcPath = "/root/main/dschcareinfo/dschcareinfo/etcfactinfo/etcfact"; //기타 사항들에 관한 경로
  294. var patInfoPath = "/root/temp/cond/list"; //상단정보 경로
  295. var pid = model.getValue(patInfoPath + "/pid");
  296. var indd = model.getValue(patInfoPath + "/indd");
  297. var cretno = model.getValue(patInfoPath + "/cretno");
  298. var instcd = model.getValue(patInfoPath + "/instcd");
  299. var ordtype = model.getValue(patInfoPath + "/ioflag");
  300. var medispclid = model.getValue(patInfoPath + "/medispclid");
  301. var orddeptcd = model.getValue(patInfoPath + "/orddeptcd");
  302. var hngnm = model.getValue(patInfoPath + "/hngnm");
  303. var age = model.getValue(patInfoPath + "/age");
  304. var sex= model.getValue(patInfoPath + "/sex");
  305. var wardnm = model.getValue(patInfoPath + "/wardnm");
  306. submit("TRMNW03804"); //주민번호, 부서명 가져오기 위한 submit
  307. var rrgstno1 = model.getValue("/root/hidden/patinfo/rrgstno1");
  308. var rrgstno2 = model.getValue("/root/hidden/patinfo/rrgstno2");
  309. var orddeptnm = model.getValue("/root/hidden/patinfo/orddeptnm");
  310. var seq = "" ;
  311. if(printflag == "reprint"){
  312. seq = ocrtag;
  313. }else{
  314. seq = model.getValue("/root/hidden/patinfo/seq");
  315. }
  316. var formfromdt = model.getValue("/root/hidden/patinfo/formfromdt");
  317. var orddeptabbr = model.getValue("/root/hidden/patinfo/orddeptabbr");
  318. var prntcnt = model.getValue("/root/hidden/patinfo/prntcnt");
  319. //출력물 : 병원별 등록번호 표시방법 여부(HardCode 테이블 이용)_20090820_SMY
  320. model.removeNodeset("/root/harddata/send");
  321. model.makeNode("/root/harddata/send");
  322. mmbfGetHardCodeInfoNm("/root/harddata/send","/root/harddata/hardcode", 3801); //OCR서식의 등록번호 체크로직 표시 여부
  323. var SetPidYN = model.getValue("/root/harddata/hardcode/hardcd/hardcd"); //Y일 경우 : 출력물의 pid정보가 8자리 이하일 경우 0으로 자릿수를 맞춰줌
  324. var actscop = rdo_actscop.label;
  325. var diet = rdo_diet.value;
  326. if(diet == "02") { //치료식 선택시.
  327. diet = rdo_diet.label + "( " + ipt_treatdiet.label + " )";
  328. } else if(diet == "04") { //기타 선택시.
  329. diet = rdo_diet.label + "( " + ipt_dietnm.label + " )";
  330. } else {
  331. diet = rdo_diet.label;
  332. }
  333. var bath = rdo_bath.value;
  334. if(bath == "07") {
  335. bath = rdo_bath.label + "( " + ipt_bathnm.label + " )";
  336. } else {
  337. bath = rdo_bath.label;
  338. }
  339. var healmngtVal = chk_healmngt.value;
  340. var healmngtLab = chk_healmngt.label;
  341. var arr = new Array(chk_healmngt.length);
  342. for(var i = 0; i < arr.length; i++) {
  343. arr[i]="";
  344. }
  345. var arrVal = healmngtVal.split(" "); //선택된 Value값을 가져온.다
  346. var arrLab = healmngtLab.split(" "); //선택된 Label값을 가져온다.
  347. var healmngt = "";
  348. var idx = 0;
  349. var inreq = model.getValue("/root/main/dschcareinfo/rsrvinfo/inrsrvinfo/inreq");//입원의뢰서정보
  350. var roomcd = model.getValue("/root/temp/cond/list/roomcd");//병실정보
  351. //전체 아이템 갯수 만큼 반복.(item값을 비교하기를 위한 반복문)
  352. for(var i = 1; i <= chk_healmngt.length; i++) {
  353. //선택된 아이템의 갯수만큼 반복.
  354. for(var j = 0; j < arrVal.length; j++) {
  355. //i를 가지고 비교를 함으로써 아이템 항목 순서대로 값을 가져감.
  356. if(i == arrVal[j]) {
  357. //기타이거나
  358. if(i == '11') {
  359. arrLab[idx] += "( " + ipt_healmngtnm.label + " )";
  360. }
  361. //외래진료나 문의를 요하는 증상 항목 선택시
  362. if(i == '13') {
  363. arrLab[idx] += cap_healmngtsymp.label + "( " + ipt_healmngtsymp.label + " )";
  364. }
  365. idx++; //선택된 항목만큼. 값이 담겨져있는지 비료를 위한 인덱스.
  366. //선택된 항목만큼값을 담았다면 종료.
  367. if(idx == arrVal.length) {
  368. break;
  369. }
  370. }
  371. }
  372. }
  373. healmngt = arrLab; //저장한 값을 변수에 담음.
  374. var mngtaftdsch = rdo_mngtaftdschyn.value;
  375. var mngtaftdschVal = chk_mngtaftdsch.value;
  376. var mngtaftdschLab = chk_mngtaftdsch.label;
  377. arrVal = mngtaftdschVal.split(" ");
  378. arrLab = mngtaftdschLab.split(" ");
  379. if(mngtaftdsch == "01") {
  380. mngtaftdsch = rdo_mngtaftdschyn.label;
  381. } else {
  382. idx = 0;
  383. for(var i = 1; i <= chk_mngtaftdsch.length; i++) {
  384. for(var j = 0; j < mngtaftdschVal.length; j++) {
  385. if(i == arrVal[j]) {
  386. if(i == '6') {
  387. arrLab[idx] += "( " + ipt_mngtaftdschnm.label + " )";
  388. }
  389. idx++;
  390. }
  391. }
  392. }
  393. mngtaftdsch = rdo_mngtaftdschyn.label + "( " + arrLab + " )";
  394. }
  395. var dschseqeduc = rdo_dschseqeducyn.label;
  396. var dschmeditmedguid = rdo_dschmeditmedguidyn.label;
  397. var mainveintubemngt = chk_mainveintubemngt.label;
  398. //퇴원시 기구 및 삽관상태_20090601_SMY
  399. var dschcatestatVal = chk_dschcatestat.value;
  400. var dschcatestatLab = chk_dschcatestat.label;
  401. var dschcatestatyn = rdo_dschcatestatyn.label;
  402. var dschcatestatynVal = rdo_dschcatestatyn.value;
  403. if ( dschcatestatynVal !="" && dschcatestatynVal == "02" ){
  404. var arr = new Array(chk_dschcatestat.length);
  405. for(var i = 0; i < arr.length; i++) {
  406. arr[i]="";
  407. }
  408. var arrVal = dschcatestatVal.split("▦"); //선택된 Value값을 가져온.다
  409. var arrLab = dschcatestatLab.split("▦"); //선택된 Label값을 가져온다.
  410. var dschcatestat = "";
  411. var idx = 0;
  412. //전체 아이템 갯수 만큼 반복.(item값을 비교하기를 위한 반복문)
  413. for(var i = 1; i <= chk_dschcatestat.length; i++) {
  414. //선택된 아이템의 갯수만큼 반복.
  415. for(var j = 0; j < arrVal.length; j++) {
  416. //i를 가지고 비교를 함으로써 아이템 항목 순서대로 값을 가져감.
  417. if(i == arrVal[j]) {
  418. //산소
  419. if(i == '7') {
  420. arrLab[idx] += "( " + ipt_dschcateoxy.value + cap_oxyunit.label + " )";
  421. }
  422. //기타이거나
  423. if(i == '12') {
  424. arrLab[idx] += "( " + ipt_dschcatestatnm.label + " )";
  425. }
  426. idx++; //선택된 항목만큼. 값이 담겨져있는지 비료를 위한 인덱스.
  427. //선택된 항목만큼값을 담았다면 종료.
  428. if(idx == arrVal.length) {
  429. break;
  430. }
  431. }
  432. }
  433. }
  434. dschcatestat = arrLab; //저장한 값을 변수에 담음
  435. } else {
  436. dschcatestat = dschcatestatyn;
  437. }
  438. var spcffact = tar_spcffact.label;
  439. var tel = ipt_tel.label;
  440. var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//JCI 추가 20091216 김홍점
  441. //JCI 추가 20091216 김홍점 산부인과 비뇨기과 신경과는 입퇴원요약기록 출력되면 안됨.
  442. var instNotUseDeptcd = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='178' and cdnm = '"+ orddeptcd +"']/cdid");
  443. model.makeNode(sendPath);
  444. model.makeValue(sendDschPath + "/pid", pid);
  445. model.makeValue(sendDschPath + "/hngnm", hngnm);
  446. model.makeValue(sendDschPath + "/age", age);
  447. model.makeValue(sendDschPath + "/sex", sex);
  448. model.makeValue(sendDschPath + "/regist1", rrgstno1);
  449. model.makeValue(sendDschPath + "/regist2", rrgstno2);
  450. model.makeValue(sendDschPath + "/orddeptnm", orddeptnm);
  451. model.makeValue(sendDschPath + "/wardnm", wardnm);
  452. model.makeValue(sendDschPath + "/indd", indd);
  453. model.makeValue(sendDschPath + "/actscope", actscop);
  454. model.makeValue(sendDschPath + "/diet", diet);
  455. model.makeValue(sendDschPath + "/bath", bath);
  456. model.makeValue(sendDschPath + "/healmngt", healmngt);
  457. model.makeValue(sendDschPath + "/mngtaftdsch", mngtaftdsch);
  458. model.makeValue(sendDschPath + "/dschseqeduc", dschseqeduc);
  459. model.makeValue(sendDschPath + "/mainveintubemngt", mainveintubemngt);
  460. model.makeValue(sendDschPath + "/dschmeditmedguid", dschmeditmedguid);
  461. model.makeValue(sendDschPath + "/dschcatestat", dschcatestat); //20090601_SMY추가
  462. model.makeValue(sendDschPath + "/spcffact", spcffact);
  463. model.makeValue(sendDschPath + "/tel", tel);
  464. model.makeValue(sendDschPath + "/seq", seq);
  465. model.makeValue(sendDschPath + "/usernm", usernm);
  466. //model.makeValue(sendDschPath + "/logurl", getLogoImageURL());
  467. //model.makeValue(sendDschPath + "/logurl", getBigLogoImageURL('', instcd));
  468. model.makeValue(sendDschPath + "/logurl", getImageURL("biglogo"+instcd, "jpg"));
  469. model.makeValue(sendDschPath + "/curdd", getCurrentDate());
  470. model.makeValue(sendDschPath + "/curtm", getCurrentTime());
  471. model.makeValue(sendDschPath + "/orddeptabbr", orddeptabbr);
  472. model.makeValue(sendDschPath + "/setpidyn", SetPidYN); //20090820_SMY추가
  473. model.makeNode(sendPath + "/rsrvinfo/ordrsrvinfo");
  474. model.makeNode(sendPath + "/rsrvinfo/testrsrvinfo");
  475. model.makeNode(sendPath + "/rsrvinfo/dschdrugfactinfo");
  476. model.makeValue(sendDschPath + "/inreq", inreq); //입원외뢰서정보
  477. model.makeValue(sendDschPath + "/roomcd", roomcd); //병실정보
  478. fPrintDschCarePlanForJCI(sendPath + "/comrecinfo", "/root/hidden/comrecinfo", "/root/codeinfo/codeinfo" );//Carecom.js
  479. copyNodesetType(sendPath + "/rsrvinfo/ordrsrvinfo", "/root/main/dschcareinfo/rsrvinfo/ordrsrvinfo");
  480. copyNodesetType(sendPath + "/rsrvinfo/testrsrvinfo", "/root/main/dschcareinfo/rsrvinfo/testrsrvinfo");
  481. copyNodesetType(sendPath + "/rsrvinfo/dschdrugfactinfo", "/root/main/dschcareinfo/rsrvinfo/dschdrugfactinfo");
  482. clearParameter("reportprintyn");
  483. // 전자동의서
  484. if ( elecflag == "Y" ) {
  485. if ( model.getValue("/root/temp/prtPatient") == "Y" ) {
  486. //환자보관용
  487. exeReportPreview("RPMNW03800", "XMLSTR", "", "", "true", "", "", "", "", "true");
  488. }
  489. if ( model.getValue("/root/temp/prtOCR") == "Y" ) {
  490. //전자동의서 version
  491. if(!fSaveOCRIF(seq, pid, indd, cretno, ordtype, orddeptcd, medispclid, formcd, formfromdt, "", "", pagecnt)){
  492. messageBox("통합기록조회 연동중 실패하였습니다.","C999");
  493. return;
  494. }
  495. ocrtag = seq;
  496. fElecPrint(pid, cretno, indd, instcd, formcd, ocrtag, "RPMNW03803");
  497. }
  498. } else {
  499. //환자보관용
  500. exeReportPreview("RPMNW03800", "XMLSTR", "", "", "true", "", "", "", "", "true");
  501. //출력 version
  502. exeReportPreview("RPMNW03802", "XMLSTR", "", "", "true", "", "", "", "", "true");
  503. model.removeNode("/root/hidden/comrecinfo");
  504. if (getParameter("reportprintyn") == "Y"){ // 프린트 출력이 되고 창이 닫혔을 때
  505. var pagecnt = getParameter("reportPageCount"); //출력장수(RPMNW03600)
  506. if(printflag == "newprint"){ // 신규 출력
  507. //OCR 정보 저장
  508. if(!fSaveOCRIF(seq, pid, indd, cretno, ordtype, orddeptcd, medispclid, formcd, formfromdt, "", "", pagecnt)){
  509. messageBox("통합기록조회 연동중 실패하였습니다.","C999");
  510. return;
  511. }
  512. }else if(printflag == "reprint"){ // 재출력
  513. model.makeValue("/root/send/reprntinfo/ocrtag", seq);
  514. model.makeValue("/root/send/reprntinfo/pagecnt", pagecnt);
  515. submit("TXMNW03602");
  516. }
  517. }
  518. }
  519. //btn_prn.dispatch("DOMActivate");
  520. }
  521. function fSetDschInfo(certFlag) {
  522. var ordRsrvInfo = getGridUpdateData(grd_ordrsrvinfo);
  523. var testRsrvInfo = getGridUpdateData(grd_testrsrvinfo);
  524. var dschdrugmedifactinfo = getGridUpdateData(grd_dschdrugmedifact);
  525. var recdt = model.getValue("/root/main/dschcareinfo/dschcareinfo/recdd") + model.getValue("/root/main/dschcareinfo/dschcareinfo/rectm");
  526. pid = model.getValue("/root/temp/cond/list/pid");
  527. indd = model.getValue("/root/temp/cond/list/indd");
  528. instcd = model.getValue("/root/temp/cond/list/instcd");
  529. orddeptcd = model.getValue("/root/temp/cond/list/orddeptcd");
  530. var existflag = model.getValue("/root/hidden/existinfo/exist");
  531. model.makeValue("/root/send/dschcareinfo/recdd", model.getValue("/root/main/dschcareinfo/dschcareinfo/recdd"));
  532. model.makeValue("/root/send/dschcareinfo/rectm", model.getValue("/root/main/dschcareinfo/dschcareinfo/rectm"));
  533. model.makeValue("/root/send/dschcareinfo/recdt", recdt);
  534. model.makeValue("/root/send/dschcareinfo/recuserid", model.getValue("/root/main/dschcareinfo/dschcareinfo/recuserid"));
  535. model.makeValue("/root/send/dschcareinfo/recusernm", model.getValue("/root/main/dschcareinfo/dschcareinfo/recusernm"));
  536. model.makeValue("/root/send/dschcareinfo/dschdd", model.getValue("/root/main/dschcareinfo/dschcareinfo/dschdd"));
  537. model.makeValue("/root/send/dschcareinfo/dschtypecds", model.getValue("/root/main/dschcareinfo/dschcareinfo/dschtypecds"));
  538. model.makeValue("/root/send/dschcareinfo/dschtypenm", model.getValue("/root/main/dschcareinfo/dschcareinfo/dschtypenm"));
  539. model.makeValue("/root/send/dschcareinfo/cscsstatcd", model.getValue("/root/main/dschcareinfo/dschcareinfo/cscsstatcd"));
  540. model.makeValue("/root/send/dschcareinfo/dschmthdcd", model.getValue("/root/main/dschcareinfo/dschcareinfo/dschmthdcd"));
  541. model.makeValue("/root/send/dschcareinfo/dschmthdnm", model.getValue("/root/main/dschcareinfo/dschcareinfo/dschmthdnm"));
  542. model.makeValue("/root/send/dschcareinfo/dschgoplaccd", model.getValue("/root/main/dschcareinfo/dschcareinfo/dschgoplaccd"));
  543. model.makeValue("/root/send/dschcareinfo/dschgoplacnm", model.getValue("/root/main/dschcareinfo/dschcareinfo/dschgoplacnm"));
  544. model.makeValue("/root/send/dschcareinfo/proceracomp", model.getValue("/root/main/dschcareinfo/dschcareinfo/proceracomp"));
  545. model.makeValue("/root/send/dschcareinfo/dracomp", model.getValue("/root/main/dschcareinfo/dschcareinfo/dracomp")); //20090601_SMY추가
  546. model.makeValue("/root/send/dschcareinfo/antibioallgyn", model.getValue("/root/main/dschcareinfo/dschcareinfo/antibioallgyn"));
  547. model.makeValue("/root/send/dschcareinfo/antibioallgcd", model.getValue("/root/main/dschcareinfo/dschcareinfo/antibioallgcd"));
  548. model.makeValue("/root/send/dschcareinfo/antibioallgnm", model.getValue("/root/main/dschcareinfo/dschcareinfo/antibioallgnm"));
  549. model.makeValue("/root/send/dschcareinfo/dschcareeducinfo", instance1.selectNodesXml("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc"));
  550. model.makeValue("/root/send/dschcareinfo/etcfactinfo", instance1.selectNodesXml("/root/main/dschcareinfo/dschcareinfo/etcfactinfo/etcfact"));
  551. model.makeValue("/root/send/dschcareinfo/ordrsrvinfo", ordRsrvInfo);
  552. model.makeValue("/root/send/dschcareinfo/testrsrvinfo", testRsrvInfo);
  553. model.makeValue("/root/send/dschcareinfo/dschdrugmedifactinfo", dschdrugmedifactinfo);
  554. model.makeValue("/root/send/dschcareinfo/recflag", "04");
  555. model.makeValue("/root/send/dschcareinfo/pid", pid);
  556. model.makeValue("/root/send/dschcareinfo/indd", indd);
  557. model.makeValue("/root/send/dschcareinfo/orddeptcd", orddeptcd);
  558. model.makeValue("/root/send/dschcareinfo/instcd", instcd);
  559. model.makeValue("/root/send/dschcareinfo/existflag", existflag);
  560. model.makeValue("/root/send/dschcareinfo/certflag", certFlag);
  561. }
  562. function fMake_SignData() {
  563. Sign.addnode("/root/main/dschcareinfo");
  564. var xDschInfoPath = Sign.XPATH_SIGNINFO + "/dschcareinfo";
  565. var str = "";
  566. /****************************** 퇴원시 환자정보 **************************************/
  567. //퇴원유형
  568. var dschtypecds = model.getValue(xDschInfoPath + "/dschcareinfo/dschtypecds");
  569. var dschtypenm = model.getValue(xDschInfoPath + "/dschcareinfo/dschtypenm");
  570. str = rdo_dschtypes.label;
  571. if(dschtypecds != "") {
  572. if(dschtypecds == "07") {
  573. if(dschtypenm != "") {
  574. str += "(" + dschtypenm + ")";
  575. }
  576. }
  577. model.setValue(xDschInfoPath + "/dschcareinfo/dschtypecds", str);
  578. }
  579. //의식상태
  580. var cscsstat = model.getValue(xDschInfoPath + "/dschcareinfo/cscsstatcd");
  581. str = rdo_cscsstat.label;
  582. if(cscsstat != "") {
  583. model.setValue(xDschInfoPath + "/dschcareinfo/cscsstatcd", str);
  584. }
  585. //보호자동반
  586. var proceracomp = model.getValue(xDschInfoPath + "/dschcareinfo/proceracomp");
  587. str = rdo_proceracomp.label;
  588. if(proceracomp != "") {
  589. model.setValue(xDschInfoPath + "/dschcareinfo/proceracomp", str);
  590. }
  591. //진료의동반_20090601_SMY추가
  592. var dracomp = model.getValue(xDschInfoPath + "/dschcareinfo/dracomp");
  593. str = rdo_dracomp.label;
  594. if(dracomp != "") {
  595. model.setValue(xDschInfoPath + "/dschcareinfo/dracomp", str);
  596. }
  597. //퇴원방법
  598. var dschmthdcd = model.getValue(xDschInfoPath + "/dschcareinfo/dschmthdcd");
  599. var dschmthdnm = model.getValue(xDschInfoPath + "/dschcareinfo/dschmthdnm");
  600. str = rdo_dschmthd.label;
  601. if(dschmthdcd != "") {
  602. if(dschmthdcd == "06") {
  603. if(dschmthdnm != "") {
  604. str += "(" + dschmthdnm + ")";
  605. }
  606. }
  607. model.setValue(xDschInfoPath + "/dschcareinfo/dschmthdcd", str);
  608. }
  609. //퇴원후갈곳
  610. var dschgoplaccd = model.getValue(xDschInfoPath + "/dschcareinfo/dschgoplaccd");
  611. var dschgoplacnm = model.getValue(xDschInfoPath + "/dschcareinfo/dschgoplacnm");
  612. str = rdo_dschgoplac.label;
  613. if(dschgoplaccd != "") {
  614. if(dschgoplaccd == "04") {
  615. if(dschgoplacnm != "") {
  616. str += "(" + dschgoplacnm + ")";
  617. }
  618. }
  619. model.setValue(xDschInfoPath + "/dschcareinfo/dschgoplaccd", str);
  620. }
  621. //입원기간 중 항생제 알러지 반응
  622. var antibioallgyn = model.getValue(xDschInfoPath + "/dschcareinfo/antibioallgyn");
  623. var antibioallgnm = model.getValue(xDschInfoPath + "/dschcareinfo/antibioallgnm");
  624. str = rdo_antibioallgyn.label;
  625. if(antibioallgyn != "") {
  626. if(antibioallgyn == "02") {
  627. var antibioallgVal = chk_antibioallgcd.value;
  628. var antibioallgLab = chk_antibioallgcd.label;
  629. var arrVal = antibioallgVal.split(",");
  630. var arrLab = antibioallgLab.split(",");
  631. idx = 0;
  632. for(var i = 1; i <= chk_antibioallgcd.length; i++) {
  633. for(var j = 0; j < antibioallgVal.length; j++) {
  634. if(i == arrVal[j]) {
  635. if(i == '3') {
  636. arrLab[idx] += "( " + antibioallgnm + " )";
  637. }
  638. idx++;
  639. }
  640. }
  641. }
  642. str += "( " + arrLab + " )";
  643. }
  644. model.setValue(xDschInfoPath + "/dschcareinfo/antibioallgyn", str );
  645. }
  646. /****************************** 퇴원 간호 교육 **************************************/
  647. //활동범위
  648. var actscop = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/actscop");
  649. str = rdo_actscop.label;
  650. if(actscop != "") {
  651. model.setValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/actscop", str);
  652. }
  653. //식이
  654. var diet = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dietcd");
  655. var treatdiet = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/treatdiet");
  656. var dietnm = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dietnm");
  657. str = rdo_diet.label;
  658. if(diet != "") {
  659. if(diet == "02") { //치료식 선택시.
  660. if(treatdiet != "") {
  661. str += "(" + treatdiet + ")";
  662. }
  663. } else if(diet == "04") { //기타 선택시.
  664. if(dietnm != "") {
  665. str += "(" + dietnm + ")";
  666. }
  667. }
  668. model.setValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dietcd", str);
  669. }
  670. //목욕
  671. var bathcd = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/bathcd");
  672. var bathnm = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/bathnm");
  673. str = rdo_bath.label;
  674. if(bathcd != "") {
  675. if(bathcd == "07") {
  676. if(bathnm != "") {
  677. str += "(" + bathnm + ")";
  678. }
  679. }
  680. model.setValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/bathcd", str);
  681. }
  682. //건강관리
  683. var idx = 0;
  684. var healmngt = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtcd");
  685. var healmngtnm = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtnm");
  686. var healmngtsymp = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtsymp");
  687. if(healmngt != "") {
  688. var healmngtVal = chk_healmngt.value;
  689. var healmngtLab = chk_healmngt.label;
  690. var arrVal = healmngtVal.split(" "); //선택된 Value값을 가져온.다
  691. var arrLab = healmngtLab.split(" "); //선택된 Label값을 가져온다.
  692. //전체 아이템 갯수 만큼 반복.(item값을 비교하기를 위한 반복문)
  693. for(var i = 1; i <= chk_healmngt.length; i++) {
  694. //선택된 아이템의 갯수만큼 반복.
  695. for(var j = 0; j < arrVal.length; j++) {
  696. //i를 가지고 비교를 함으로써 아이템 항목 순서대로 값을 가져감.
  697. if(i == arrVal[j]) {
  698. //기타이거나
  699. if(i == '11') {
  700. arrLab[idx] += "( " + healmngtnm + " )";
  701. }
  702. //외래진료나 문의를 요하는 증상 항목 선택시
  703. if(i == '13') {
  704. arrLab[idx] += cap_healmngtsymp.label + "( " + healmngtsymp + " )";
  705. }
  706. idx++; //선택된 항목만큼. 값이 담겨져있는지 비료를 위한 인덱스.
  707. //선택된 항목만큼값을 담았다면 종료.
  708. if(idx == arrVal.length) {
  709. break;
  710. }
  711. }
  712. }
  713. }
  714. str = arrLab; //저장한 값을 변수에 담음.
  715. model.setValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtcd", str );
  716. }
  717. //중심정맥관 관리
  718. var mainveintubemngt = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/mainveintubemngt");
  719. if(mainveintubemngt != "") {
  720. arr = chk_mainveintubemngt.label.split("▦");
  721. model.setValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/mainveintubemngt", arr);
  722. }
  723. //추후관리
  724. var mngtaftdsch = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschyn");
  725. var mngtaftdschnm = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschnm");
  726. str = rdo_mngtaftdschyn.label;
  727. if(mngtaftdsch != "") {
  728. if(mngtaftdsch == "02") {
  729. var mngtaftdschVal = chk_mngtaftdsch.value;
  730. var mngtaftdschLab = chk_mngtaftdsch.label;
  731. var arrVal = mngtaftdschVal.split(" ");
  732. var arrLab = mngtaftdschLab.split(" ");
  733. idx = 0;
  734. for(var i = 1; i <= chk_mngtaftdsch.length; i++) {
  735. for(var j = 0; j < mngtaftdschVal.length; j++) {
  736. if(i == arrVal[j]) {
  737. if(i == '6') {
  738. arrLab[idx] += "( " + mngtaftdschnm + " )";
  739. }
  740. idx++;
  741. }
  742. }
  743. }
  744. str += "( " + arrLab + " )";
  745. }
  746. model.setValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschyn", str );
  747. }
  748. //퇴원절차교육
  749. var dschseqeducyn = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dschseqeducyn");
  750. str = rdo_dschseqeducyn.label;
  751. if(dschseqeducyn != "") {
  752. model.setValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dschseqeducyn", str);
  753. }
  754. //퇴원약복약지도
  755. var dschmeditmedguidyn = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dschmeditmedguidyn");
  756. str = rdo_dschmeditmedguidyn.label;
  757. if(dschmeditmedguidyn != "") {
  758. model.setValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dschmeditmedguidyn", str);
  759. }
  760. //퇴원시 기구 및 삽관상태_20090601_SMY추가
  761. var dschcatestatyn = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatyn");
  762. str = rdo_dschcatestatyn.label;
  763. var idx = 0;
  764. var dschcatestatcd = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatcd");
  765. var dschcateoxy = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcateoxy");
  766. var dschcatestatnm = model.getValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatnm");
  767. if(dschcatestatyn != "" && dschcatestatyn == "02") {
  768. var dschcatestatVal = chk_dschcatestat.value;
  769. var dschcatestatLab = chk_dschcatestat.label;
  770. var arrVal = dschcatestatVal.split("▦"); //선택된 Value값을 가져온.다
  771. var arrLab = dschcatestatLab.split("▦"); //선택된 Label값을 가져온다.
  772. //전체 아이템 갯수 만큼 반복.(item값을 비교하기를 위한 반복문)
  773. for(var i = 1; i <= chk_dschcatestat.length; i++) {
  774. //선택된 아이템의 갯수만큼 반복.
  775. for(var j = 0; j < arrVal.length; j++) {
  776. //i를 가지고 비교를 함으로써 아이템 항목 순서대로 값을 가져감.
  777. if(i == arrVal[j]) {
  778. //산소
  779. if(i == '7') {
  780. arrLab[idx] += "( " + dschcateoxy + cap_oxyunit.label + " )";
  781. }
  782. //기타이거나
  783. if(i == '12') {
  784. arrLab[idx] += "( " + dschcatestatnm + " )";
  785. }
  786. idx++; //선택된 항목만큼. 값이 담겨져있는지 비료를 위한 인덱스.
  787. //선택된 항목만큼값을 담았다면 종료.
  788. if(idx == arrVal.length) {
  789. break;
  790. }
  791. }
  792. }
  793. }
  794. str = arrLab; //저장한 값을 변수에 담음.
  795. model.setValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatcd", str );
  796. }else {
  797. model.setValue(xDschInfoPath + "/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatcd", str );
  798. }
  799. //교육대상
  800. var eductrgt = model.getValue(xDschInfoPath + "/dschcareinfo/etcfactinfo/etcfact/eductrgt");
  801. str = chk_eductrgt.label;
  802. if(eductrgt != "") {
  803. arr = str.split(" ");
  804. model.setValue(xDschInfoPath + "/dschcareinfo/etcfactinfo/etcfact/eductrgt", arr);
  805. }
  806. //교육이해정도
  807. var educunstdgrde = model.getValue(xDschInfoPath + "/dschcareinfo/etcfactinfo/etcfact/educunstdgrde");
  808. str = rdo_educunstdgrde.label;
  809. if(educunstdgrde != "") {
  810. model.setValue(xDschInfoPath + "/dschcareinfo/etcfactinfo/etcfact/educunstdgrde", str);
  811. }
  812. }
  813. ]]>
  814. </script>
  815. </xhtml:head>
  816. <xhtml:body guideline="1,1192;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  817. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  818. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:129px; height:14px; ">BMT퇴원간호계획</caption>
  819. </group>
  820. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  821. <select id="chk_healmngt" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtcd" overflow="visible" appearance="full" cellspacing="75" cols="8" vcellspacing="6" style="left:85px; top:521px; width:1105px; height:66px; border-style:none; ">
  822. <choices>
  823. <item>
  824. <label>감염예방</label>
  825. <value>1</value>
  826. </item>
  827. <item>
  828. <label>체중측정</label>
  829. <value>2</value>
  830. </item>
  831. <item>
  832. <label>당뇨조절</label>
  833. <value>3</value>
  834. </item>
  835. <item>
  836. <label>구강간호</label>
  837. <value>4</value>
  838. </item>
  839. <item>
  840. <label>발간호</label>
  841. <value>5</value>
  842. </item>
  843. <item>
  844. <label>튜브관리</label>
  845. <value>6</value>
  846. </item>
  847. <item>
  848. <label>흡인간호</label>
  849. <value>14</value>
  850. </item>
  851. <item>
  852. <label>경관영양간호</label>
  853. <value>15</value>
  854. </item>
  855. <item>
  856. <label>혈압조절</label>
  857. <value>7</value>
  858. </item>
  859. <item>
  860. <label>좌욕</label>
  861. <value>8</value>
  862. </item>
  863. <item>
  864. <label>체위변경</label>
  865. <value>9</value>
  866. </item>
  867. <item>
  868. <label>상처관리</label>
  869. <value>10</value>
  870. </item>
  871. <item>
  872. <label>기타</label>
  873. <value>11</value>
  874. </item>
  875. <item>
  876. <label/>
  877. <value>12</value>
  878. </item>
  879. <item>
  880. <label/>
  881. <value>16</value>
  882. </item>
  883. <item>
  884. <label/>
  885. <value>17</value>
  886. </item>
  887. <item>
  888. <label/>
  889. <value>13</value>
  890. </item>
  891. </choices>
  892. <script type="javascript" ev:event="xforms-value-changed">
  893. <![CDATA[
  894. var healmngtcd = model.getValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtcd");
  895. var kind = new Array();
  896. var arr = new Array(chk_healmngt.length);
  897. kind = healmngtcd.split(" ");
  898. for(var i = 0; i < arr.length; i++) {
  899. arr[i] = "";
  900. }
  901. for(var i = 0; i < kind.length; i++) {
  902. switch(kind[i]) {
  903. case '1':
  904. arr[0] = kind[i];
  905. break;
  906. case '2':
  907. arr[1] = kind[i];
  908. break;
  909. case '3':
  910. arr[2] = kind[i];
  911. break;
  912. case '4':
  913. arr[3] = kind[i];
  914. break;
  915. case '5':
  916. arr[4] = kind[i];
  917. break;
  918. case '6':
  919. arr[5] = kind[i];
  920. break;
  921. case '7':
  922. arr[6] = kind[i];
  923. break;
  924. case '8':
  925. arr[7] = kind[i];
  926. break;
  927. case '9':
  928. arr[8] = kind[i];
  929. break;
  930. case '10':
  931. arr[9] = kind[i];
  932. break;
  933. case '11':
  934. arr[10] = kind[i];
  935. break;
  936. case '12':
  937. arr[11] = kind[i];
  938. break;
  939. case '13':
  940. arr[12] = kind[i];
  941. break;
  942. default:
  943. break;
  944. }
  945. }
  946. for(var i = 0; i < arr.length; i++) {
  947. if(arr[10] == '11') {
  948. ipt_healmngtnm.disabled = false;
  949. } else {
  950. ipt_healmngtnm.disabled = true;
  951. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtnm");
  952. ipt_healmngtnm.refresh();
  953. }
  954. if(arr[12] == "13") {
  955. ipt_healmngtsymp.disabled = false;
  956. } else {
  957. ipt_healmngtsymp.disabled = true;
  958. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtsymp");
  959. ipt_healmngtsymp.refresh();
  960. }
  961. }
  962. ]]>
  963. </script>
  964. </select>
  965. <line id="line11" class="line_2" style="x1:0px; y1:648px; x2:1194px; y2:648px; "/>
  966. <line id="line10" class="line_2" style="x1:0px; y1:624px; x2:1194px; y2:624px; "/>
  967. <line id="line2" class="line_2" style="x1:0px; y1:352px; x2:1194px; y2:352px; "/>
  968. <caption id="cap_bfrecdt" class="cell_1" style="left:0px; top:38px; width:80px; height:23px; vertical-align:middle; ">기록일시</caption>
  969. <line id="line13" class="line_1" style="x1:0px; y1:33px; x2:1194px; y2:33px; "/>
  970. <caption id="caption1" class="cell_1" style="left:250px; top:38px; width:80px; height:23px; vertical-align:middle; ">기록자</caption>
  971. <caption id="caption2" class="cell_1" style="left:436px; top:38px; width:80px; height:23px; vertical-align:middle; ">퇴원예정일</caption>
  972. <button id="btn_certsave" class="btn5_letter4" style="left:1130px; top:40px; width:64px; height:19px; ">
  973. <caption>인증저장</caption>
  974. <script type="javascript" ev:event="DOMActivate">
  975. <![CDATA[
  976. //기록일시 필수입력 체크
  977. if(model.getValue("/root/main/dschcareinfo/dschcareinfo/recdd") == "" || model.getValue("/root/main/dschcareinfo/dschcareinfo/rectm") == "") {
  978. messageBox("기록일시는 필수입력입니다.", "I");
  979. return;
  980. }
  981. fSetDschInfo("C");
  982. Sign.certreload = true ;
  983. if (Sign.signprocess() == true){
  984. //src="C:\CMCProject\application\webapps\emr\formmngtweb\xrw\SSMRF03800_OCR뷰어.xrw"
  985. // alert("인증성공" );
  986. // alert("1. 인증성공여부 false / true \n\n" + Sign.signedInfos[0]); // 인증성공여부 false / true
  987. // alert("2. 인증할 데이터 정보 (미기록 노드 제거전 원본 노드) \n\n" + Sign.signedInfos[3]); // 인증할 데이터 정보 (미기록 노드 제거전 원본 노드)
  988. // alert("2.--> text 데이터(없는 노드 포함된) text 형태 변형 결과 \n\n" + Sign.signedInfos[4]); // [3] 데이터(없는 노드 포함된) text 형태 변형 결과
  989. // alert("3. 인증할 데이터 정보(미기록 노드 제거된 정보) \n\n" + Sign.signedInfos[1]); // 인증할 데이터 정보(미기록 노드 제거된 정보)
  990. // alert("3. -->text 데이터(없는 노드 제거된) text 형태 변형 결과 \n\n" + Sign.signedInfos[5]); // ★[1] 데이터(없는 노드 제거된) text 형태 변형 결과 >>> [5]
  991. // alert("3. -->text --> sign 공인인증 처리후 데이터 \n\n" + Sign.signedInfos[2]); // ★공인인증 처리후 데이터 >>> [2]
  992. model.makeValue("/root/send/dschcareinfo/pid", model.getValue("/root/temp/cond/list/pid"));
  993. model.makeValue("/root/send/dschcareinfo/orddd", model.getValue("/root/temp/cond/list/indd"));
  994. model.makeValue("/root/send/dschcareinfo/signno", model.getValue("/root/main/dschcareinfo/dschcareinfo/signno"));
  995. model.makeValue("/root/send/dschcareinfo/cretno", model.getValue("/root/temp/cond/list/cretno"));
  996. model.makeValue("/root/send/dschcareinfo/recdd", model.getValue("/root/main/dschcareinfo/dschcareinfo/recdd"));
  997. model.makeValue("/root/send/dschcareinfo/rectm", model.getValue("/root/main/dschcareinfo/dschcareinfo/rectm"));
  998. model.makeValue("/root/send/dschcareinfo/recsaveflag","Y");
  999. model.makeValue("/root/send/dschcareinfo/signflag", "02");
  1000. model.makeValue("/root/send/dschcareinfo/signgenrflag", model.getValue("/root/temp/cond/list/ioflag"));
  1001. model.makeValue("/root/send/dschcareinfo/formcd", "0000001587"); //XLST통합기록 조회용 formcd 변경_20090226_SMY
  1002. model.makeValue("/root/send/dschcareinfo/orddeptcd", model.getValue("/root/temp/cond/list/orddeptcd"));
  1003. model.makeValue("/root/send/dschcareinfo/orddrid", model.getValue("/root/temp/cond/list/medispclid"));
  1004. model.makeValue("/root/send/dschcareinfo/signbfcnts", Sign.signedInfos[1]);
  1005. model.makeValue("/root/send/dschcareinfo/signaftcnts", Sign.signedInfos[2]);
  1006. model.makeValue("/root/send/dschcareinfo/dispyn", "Y");
  1007. if(submit("TXMNW03801", false) == true) {
  1008. messageBox("저장이 ", "I001");
  1009. fGetDschInfo(); //재조회
  1010. } else {
  1011. messageBox("저장이 실패하였습니다.", "E");
  1012. }
  1013. model.refresh();
  1014. }
  1015. ]]>
  1016. </script>
  1017. </button>
  1018. <button id="btn_print" class="btn2_letter12" style="left:790px; top:40px; width:152px; height:19px; ">
  1019. <caption>출력(환자교육출력물 포함)</caption>
  1020. <script type="javascript" ev:event="DOMActivate">
  1021. <![CDATA[
  1022. fClickPrintBtn(xFormCd, "N") ; // parameter : 전자동의서 여부
  1023. ]]>
  1024. </script>
  1025. </button>
  1026. <import id="import1" instancetype="merge" src="..\..\..\emr\wardcareweb\xrw\SMMNW10000_예약정보.xrw" style="left:0px; top:64px; width:1194px; height:291px; "/>
  1027. <line id="line64" class="line_3" style="x1:0px; y1:62px; x2:1194px; y2:62px; "/>
  1028. <line id="line1" class="line_1" style="x1:0px; y1:325px; x2:1194px; y2:325px; "/>
  1029. <caption id="caption4" class="tit_2" style="left:0px; top:311px; width:113px; height:13px; ">퇴원시 환자정보</caption>
  1030. <line id="line3" class="line_2" style="x1:0px; y1:376px; x2:1194px; y2:376px; "/>
  1031. <line id="line4" class="line_2" style="x1:0px; y1:400px; x2:734px; y2:400px; "/>
  1032. <caption id="caption10" class="tit_2" style="left:0px; top:429px; width:113px; height:13px; ">퇴원 간호 교육</caption>
  1033. <line id="line6" class="line_1" style="x1:0px; y1:443px; x2:1194px; y2:443px; "/>
  1034. <line id="line7" class="line_2" style="x1:0px; y1:470px; x2:1194px; y2:470px; "/>
  1035. <line id="line8" class="line_2" style="x1:0px; y1:494px; x2:1194px; y2:494px; "/>
  1036. <line id="line9" class="line_2" style="x1:0px; y1:518px; x2:1194px; y2:518px; "/>
  1037. <caption id="caption11" class="cell_1" style="left:0px; top:448px; width:80px; height:23px; text-align:center; vertical-align:middle; ">활동범위</caption>
  1038. <caption id="caption12" class="cell_1" style="left:0px; top:472px; width:80px; height:23px; text-align:center; vertical-align:middle; ">식이</caption>
  1039. <caption id="caption13" class="cell_1" style="left:0px; top:496px; width:80px; height:23px; text-align:center; vertical-align:middle; ">목욕</caption>
  1040. <caption id="caption15" class="cell_1" style="left:0px; top:626px; width:80px; height:23px; text-align:center; vertical-align:middle; ">추후관리</caption>
  1041. <caption id="caption16" class="cell_1" style="left:0px; top:650px; width:80px; height:23px; text-align:center; vertical-align:middle; ">퇴원절차교육</caption>
  1042. <select1 id="rdo_actscop" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/actscop" appearance="full" cellspacing="57" cols="6" overflow="visible" style="left:83px; top:451px; width:757px; height:13px; border-style:none; ">
  1043. <choices>
  1044. <item>
  1045. <label>제한없음</label>
  1046. <value>01</value>
  1047. </item>
  1048. <item>
  1049. <label>일상생활</label>
  1050. <value>02</value>
  1051. </item>
  1052. <item>
  1053. <label>안정</label>
  1054. <value>03</value>
  1055. </item>
  1056. <item>
  1057. <label>절대안정</label>
  1058. <value>04</value>
  1059. </item>
  1060. <item>
  1061. <label>정기적 운동</label>
  1062. <value>05</value>
  1063. </item>
  1064. <item>
  1065. <label>재활지도</label>
  1066. <value>06</value>
  1067. </item>
  1068. </choices>
  1069. </select1>
  1070. <select1 id="rdo_dschseqeducyn" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschseqeducyn" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:84px; top:655px; width:116px; height:13px; border-style:none; ">
  1071. <choices>
  1072. <item>
  1073. <label>유</label>
  1074. <value>01</value>
  1075. </item>
  1076. <item>
  1077. <label>무</label>
  1078. <value>02</value>
  1079. </item>
  1080. </choices>
  1081. </select1>
  1082. <select1 id="rdo_dschmeditmedguidyn" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschmeditmedguidyn" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:690px; top:655px; width:116px; height:13px; border-style:none; ">
  1083. <choices>
  1084. <item>
  1085. <label>유</label>
  1086. <value>01</value>
  1087. </item>
  1088. <item>
  1089. <label>무</label>
  1090. <value>02</value>
  1091. </item>
  1092. </choices>
  1093. </select1>
  1094. <caption id="caption21" class="cell_1" style="left:595px; top:650px; width:91px; height:23px; text-align:center; vertical-align:middle; ">퇴원약복약지도</caption>
  1095. <caption id="caption22" class="cell_1" style="left:0px; top:721px; width:80px; height:23px; text-align:center; vertical-align:middle; ">문의전화</caption>
  1096. <line id="line16" class="line_1" style="x1:0px; y1:716px; x2:1194px; y2:716px; "/>
  1097. <input id="ipt_tel" ref="/root/main/dschcareinfo/dschcareinfo/etcfactinfo/etcfact/tel" style="left:83px; top:722px; width:231px; height:19px; text-align:center; "/>
  1098. <caption id="caption23" class="cell_1" style="left:317px; top:721px; width:80px; height:23px; text-align:center; vertical-align:middle; ">교육대상</caption>
  1099. <select id="chk_eductrgt" ref="/root/main/dschcareinfo/dschcareinfo/etcfactinfo/etcfact/eductrgt" overflow="visible" appearance="full" cellspacing="60" cols="2" style="left:400px; top:724px; width:172px; height:13px; border-style:none; ">
  1100. <choices>
  1101. <item>
  1102. <label>환자</label>
  1103. <value>1</value>
  1104. </item>
  1105. <item>
  1106. <label>보호자</label>
  1107. <value>2</value>
  1108. </item>
  1109. </choices>
  1110. </select>
  1111. <caption id="caption24" class="cell_1" style="left:640px; top:721px; width:80px; height:23px; text-align:center; vertical-align:middle; ">교육이해정도</caption>
  1112. <line id="line15" class="line_3" style="x1:0px; y1:743px; x2:1194px; y2:743px; "/>
  1113. <select1 id="rdo_educunstdgrde" ref="/root/main/dschcareinfo/dschcareinfo/etcfactinfo/etcfact/educunstdgrde" appearance="full" cellspacing="50" cols="3" overflow="visible" style="left:725px; top:726px; width:225px; height:13px; border-style:none; ">
  1114. <choices>
  1115. <item>
  1116. <label>상</label>
  1117. <value>01</value>
  1118. </item>
  1119. <item>
  1120. <label>중</label>
  1121. <value>02</value>
  1122. </item>
  1123. <item>
  1124. <label>하</label>
  1125. <value>03</value>
  1126. </item>
  1127. </choices>
  1128. </select1>
  1129. <line id="line14" class="line_3" style="x1:0px; y1:712px; x2:1194px; y2:712px; "/>
  1130. <line id="line12" class="line_2" style="x1:0px; y1:589px; x2:1194px; y2:589px; "/>
  1131. <caption id="caption17" class="cell_1" style="left:0px; top:591px; width:80px; height:34px; text-align:center; vertical-align:middle; ">
  1132. <![CDATA[중심정맥관
  1133. 관리]]>
  1134. </caption>
  1135. <caption id="caption14" class="cell_1" style="left:0px; top:520px; width:80px; height:70px; text-align:center; vertical-align:middle; ">건강관리</caption>
  1136. <select id="chk_mainveintubemngt" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mainveintubemngt" overflow="visible" appearance="full" cellspacing="60" cols="4" sep="▦" style="left:83px; top:601px; width:372px; height:13px; border-style:none; ">
  1137. <choices>
  1138. <item>
  1139. <label>중심정맥관 제거 후 관리</label>
  1140. <value>01</value>
  1141. </item>
  1142. <item>
  1143. <label>중심정맥관 삽입부위 소독</label>
  1144. <value>02</value>
  1145. </item>
  1146. </choices>
  1147. </select>
  1148. <select1 id="rdo_dschtypes" ref="/root/main/dschcareinfo/dschcareinfo/dschtypecds" appearance="full" cellspacing="20" cols="7" overflow="visible" style="left:83px; top:333px; width:517px; height:13px; border-style:none; ">
  1149. <choices>
  1150. <item>
  1151. <label>지시 후 퇴원</label>
  1152. <value>01</value>
  1153. </item>
  1154. <item>
  1155. <label>DAMA</label>
  1156. <value>02</value>
  1157. </item>
  1158. <item>
  1159. <label>Hopeless</label>
  1160. <value>03</value>
  1161. </item>
  1162. <item>
  1163. <label>전원</label>
  1164. <value>04</value>
  1165. </item>
  1166. <item>
  1167. <label>탈원</label>
  1168. <value>05</value>
  1169. </item>
  1170. <item>
  1171. <label>사망</label>
  1172. <value>06</value>
  1173. </item>
  1174. <item>
  1175. <label>기타</label>
  1176. <value>07</value>
  1177. </item>
  1178. </choices>
  1179. <script type="javascript" ev:event="xforms-value-changed">
  1180. <![CDATA[
  1181. if(model.getValue("/root/main/dschcareinfo/dschcareinfo/dschtypecds") == "06") { //사망
  1182. //퇴원유형(기타)
  1183. ipt_dschtypenm.disabled = true;
  1184. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschtypenm");
  1185. //의식상태
  1186. rdo_cscsstat.disabled = true;
  1187. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/cscsstatcd");
  1188. //보호자동반
  1189. rdo_proceracomp.disabled = true;
  1190. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/proceracomp");
  1191. //진료의동반_20090601_SMY추가
  1192. rdo_dracomp.disabled = true;
  1193. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dracomp");
  1194. //퇴원방법
  1195. rdo_dschmthd.disabled = true;
  1196. model.setValue("/root/main/dschcareinfo/dschcareinfo/dschmthdcd", "06");
  1197. ipt_dschmthdnm.disabled = false;
  1198. //퇴원 후 갈 곳
  1199. rdo_dschgoplac.disabled = true;
  1200. model.setValue("/root/main/dschcareinfo/dschcareinfo/dschgoplaccd", "04");
  1201. ipt_dschgoplacnm.disabled = false;
  1202. //활동범위
  1203. rdo_actscop.disabled = true;
  1204. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/actscop");
  1205. //식이
  1206. rdo_diet.disabled = true;
  1207. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dietcd");
  1208. ipt_treatdiet.disabled = true;
  1209. ipt_dietnm.disabled = true;
  1210. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/treatdiet");
  1211. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dietnm");
  1212. //목욕
  1213. rdo_bath.disabled = true;
  1214. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/bathcd");
  1215. ipt_bathnm.disabled = true;
  1216. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/bathnm");
  1217. //건강관리
  1218. chk_healmngt.disabled = true;
  1219. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtcd");
  1220. ipt_healmngtnm.disabled = true;
  1221. ipt_healmngtsymp.disabled = true;
  1222. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtnm");
  1223. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtsymp");
  1224. //중심정맥관관리
  1225. chk_mainveintubemngt.disabled = true;
  1226. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mainveintubemngt");
  1227. //추후관리
  1228. rdo_mngtaftdschyn.disabled = true;
  1229. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschyn");
  1230. rdo_mngtaftdschyn.dispatch("xforms-value-changed");
  1231. ipt_mngtaftdschnm.disabled = true;
  1232. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschnm");
  1233. //퇴원약 복약지도
  1234. rdo_dschmeditmedguidyn.disabled = true;
  1235. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschmeditmedguidyn");
  1236. //퇴원시 기구 및 삽관상태_20090601_SMY추가
  1237. rdo_dschcatestatyn.disabled = true;
  1238. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatyn");
  1239. chk_dschcatestat.disabled = true;
  1240. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatcd");
  1241. ipt_dschcateoxy.disabled= true;
  1242. ipt_dschcatestatnm.disabled = true;
  1243. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcateoxy");
  1244. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatnm");
  1245. }else{
  1246. rdo_cscsstat.disabled = false;
  1247. rdo_proceracomp.disabled = false;
  1248. rdo_dracomp.disabled = false;
  1249. rdo_dschmthd.disabled = false;
  1250. rdo_dschgoplac.disabled = false;
  1251. rdo_actscop.disabled = false;
  1252. rdo_diet.disabled = false;
  1253. rdo_bath.disabled = false;
  1254. chk_healmngt.disabled = false;
  1255. chk_mainveintubemngt.disabled = false;
  1256. rdo_mngtaftdschyn.disabled = false;
  1257. rdo_dschmeditmedguidyn.disabled = false;
  1258. chk_dschcatestat.disabled = false;
  1259. rdo_dschcatestatyn.disabled = false;
  1260. if(model.getValue("/root/main/dschcareinfo/dschcareinfo/dschtypecds") == "07") {
  1261. ipt_dschtypenm.disabled = false;
  1262. } else {
  1263. ipt_dschtypenm.disabled = true;
  1264. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschtypenm");
  1265. }
  1266. }
  1267. model.refresh();
  1268. ]]>
  1269. </script>
  1270. </select1>
  1271. <select1 id="rdo_dschgoplac" ref="/root/main/dschcareinfo/dschcareinfo/dschgoplaccd" appearance="full" cellspacing="40" cols="4" overflow="visible" style="left:83px; top:405px; width:312px; height:13px; border-style:none; ">
  1272. <choices>
  1273. <item>
  1274. <label>자가</label>
  1275. <value>01</value>
  1276. </item>
  1277. <item>
  1278. <label>친척</label>
  1279. <value>02</value>
  1280. </item>
  1281. <item>
  1282. <label>타병원</label>
  1283. <value>03</value>
  1284. </item>
  1285. <item>
  1286. <label>기타</label>
  1287. <value>04</value>
  1288. </item>
  1289. </choices>
  1290. <script type="javascript" ev:event="xforms-value-changed">
  1291. <![CDATA[
  1292. if(model.getValue("/root/main/dschcareinfo/dschcareinfo/dschgoplaccd") == "04") {
  1293. ipt_dschgoplacnm.disabled = false;
  1294. } else {
  1295. ipt_dschgoplacnm.disabled = true;
  1296. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschgoplacnm");
  1297. ipt_dschgoplacnm.refresh();
  1298. }
  1299. ]]>
  1300. </script>
  1301. </select1>
  1302. <select1 id="rdo_cscsstat" ref="/root/main/dschcareinfo/dschcareinfo/cscsstatcd" appearance="full" cellspacing="40" cols="5" overflow="visible" style="left:83px; top:357px; width:510px; height:13px; border-style:none; ">
  1303. <choices>
  1304. <item>
  1305. <label>Alert</label>
  1306. <value>01</value>
  1307. </item>
  1308. <item>
  1309. <label>Drowsy</label>
  1310. <value>02</value>
  1311. </item>
  1312. <item>
  1313. <label>Stupor</label>
  1314. <value>03</value>
  1315. </item>
  1316. <item>
  1317. <label>Semicoma</label>
  1318. <value>04</value>
  1319. </item>
  1320. <item>
  1321. <label>Coma</label>
  1322. <value>05</value>
  1323. </item>
  1324. </choices>
  1325. </select1>
  1326. <input id="ipt_dschtypenm" ref="/root/main/dschcareinfo/dschcareinfo/dschtypenm" disabled="true" style="left:600px; top:331px; width:130px; height:19px; "/>
  1327. <caption id="caption3" class="cell_1" style="left:0px; top:354px; width:80px; height:23px; text-align:center; vertical-align:middle; ">의식상태</caption>
  1328. <input id="ipt_dschgoplacnm" ref="/root/main/dschcareinfo/dschcareinfo/dschgoplacnm" disabled="true" style="left:394px; top:403px; width:140px; height:19px; "/>
  1329. <caption id="caption5" class="cell_1" style="left:0px; top:330px; width:80px; height:23px; text-align:center; vertical-align:middle; ">퇴원유형</caption>
  1330. <caption id="caption7" class="cell_1" style="left:0px; top:378px; width:80px; height:23px; text-align:center; vertical-align:middle; ">퇴원방법</caption>
  1331. <caption id="caption8" class="cell_1" style="left:0px; top:402px; width:80px; height:23px; text-align:center; vertical-align:middle; ">퇴원 후 갈곳</caption>
  1332. <select1 id="rdo_dschmthd" ref="/root/main/dschcareinfo/dschcareinfo/dschmthdcd" appearance="full" cellspacing="40" cols="7" overflow="visible" style="left:83px; top:382px; width:517px; height:13px; border-style:none; ">
  1333. <choices>
  1334. <item>
  1335. <label>도보</label>
  1336. <value>01</value>
  1337. </item>
  1338. <item>
  1339. <label>목발</label>
  1340. <value>02</value>
  1341. </item>
  1342. <item>
  1343. <label>휠체어</label>
  1344. <value>03</value>
  1345. </item>
  1346. <item>
  1347. <label>이동침대</label>
  1348. <value>04</value>
  1349. </item>
  1350. <item>
  1351. <label>응급차</label>
  1352. <value>05</value>
  1353. </item>
  1354. <item>
  1355. <label>기타</label>
  1356. <value>06</value>
  1357. </item>
  1358. </choices>
  1359. <script type="javascript" ev:event="xforms-value-changed">
  1360. <![CDATA[
  1361. if(model.getValue("/root/main/dschcareinfo/dschcareinfo/dschmthdcd") == "06") {
  1362. ipt_dschmthdnm.disabled = false;
  1363. } else {
  1364. ipt_dschmthdnm.disabled = true;
  1365. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschmthdnm");
  1366. ipt_dschmthdnm.refresh();
  1367. }
  1368. ]]>
  1369. </script>
  1370. </select1>
  1371. <line id="line5" class="line_3" style="x1:0px; y1:424px; x2:1194px; y2:424px; "/>
  1372. <select1 id="rdo_bath" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/bathcd" appearance="full" cellspacing="70" cols="7" overflow="visible" style="left:83px; top:500px; width:837px; height:13px; border-style:none; ">
  1373. <choices>
  1374. <item>
  1375. <label>제한없음</label>
  1376. <value>01</value>
  1377. </item>
  1378. <item>
  1379. <label>샤워</label>
  1380. <value>02</value>
  1381. </item>
  1382. <item>
  1383. <label>통목욕</label>
  1384. <value>03</value>
  1385. </item>
  1386. <item>
  1387. <label>부분목욕</label>
  1388. <value>04</value>
  1389. </item>
  1390. <item>
  1391. <label>침상목욕</label>
  1392. <value>05</value>
  1393. </item>
  1394. <item>
  1395. <label>목욕금지</label>
  1396. <value>06</value>
  1397. </item>
  1398. <item>
  1399. <label>기타</label>
  1400. <value>07</value>
  1401. </item>
  1402. </choices>
  1403. <script type="javascript" ev:event="xforms-value-changed">
  1404. <![CDATA[
  1405. if(model.getValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/bathcd") == "07") {
  1406. ipt_bathnm.disabled = false;
  1407. } else {
  1408. ipt_bathnm.disabled = true;
  1409. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/bathnm");
  1410. ipt_bathnm.refresh();
  1411. }
  1412. ]]>
  1413. </script>
  1414. </select1>
  1415. <input id="ipt_bathnm" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/bathnm" disabled="true" style="left:921px; top:497px; width:135px; height:19px; "/>
  1416. <caption id="cap_healmngtsymp" style="left:103px; top:570px; width:436px; height:14px; ">외래진료나 문의를 요하는 증상(고열, 통증, 출혈, 설사, 피부반점, 오심, 불면 등)</caption>
  1417. <select id="chk_mngtaftdsch" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschcd" disabled="true" overflow="visible" appearance="full" cellspacing="60" cols="6" style="left:209px; top:629px; width:636px; height:13px; border-style:none; ">
  1418. <choices>
  1419. <item>
  1420. <label>외래</label>
  1421. <value>1</value>
  1422. </item>
  1423. <item>
  1424. <label>가정간호</label>
  1425. <value>2</value>
  1426. </item>
  1427. <item>
  1428. <label>재입원</label>
  1429. <value>3</value>
  1430. </item>
  1431. <item>
  1432. <label>호스피스</label>
  1433. <value>4</value>
  1434. </item>
  1435. <item>
  1436. <label>타병원</label>
  1437. <value>5</value>
  1438. </item>
  1439. <item>
  1440. <label>기타</label>
  1441. <value>6</value>
  1442. </item>
  1443. </choices>
  1444. <script type="javascript" ev:event="xforms-value-changed">
  1445. <![CDATA[
  1446. var mngtaftdschcd = model.getValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschcd");
  1447. var kind = new Array();
  1448. var arr = new Array(chk_mngtaftdsch.length);
  1449. kind = mngtaftdschcd.split(" ");
  1450. for(var i = 0; i < arr.length; i++) {
  1451. arr[i] = "";
  1452. }
  1453. for(var i = 0; i < kind.length; i++) {
  1454. switch(kind[i]) {
  1455. case '1':
  1456. arr[0] = kind[i];
  1457. break;
  1458. case '2':
  1459. arr[1] = kind[i];
  1460. break;
  1461. case '3':
  1462. arr[2] = kind[i];
  1463. break;
  1464. case '4':
  1465. arr[3] = kind[i];
  1466. break;
  1467. case '5':
  1468. arr[4] = kind[i];
  1469. break;
  1470. case '6':
  1471. arr[5] = kind[i];
  1472. default :
  1473. arr[arr.length - 1] = kind[i];
  1474. }
  1475. }
  1476. for(var i = 0; i < arr.length; i++) {
  1477. if(arr[5] == '6') {
  1478. ipt_mngtaftdschnm.disabled = false;
  1479. } else {
  1480. ipt_mngtaftdschnm.disabled = true;
  1481. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschnm");
  1482. ipt_mngtaftdschnm.refresh();
  1483. }
  1484. }
  1485. ]]>
  1486. </script>
  1487. </select>
  1488. <caption id="caption19" style="left:198px; top:630px; width:13px; height:14px; ">(</caption>
  1489. <select1 id="rdo_mngtaftdschyn" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschyn" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:84px; top:630px; width:116px; height:13px; border-style:none; ">
  1490. <choices>
  1491. <item>
  1492. <label>무</label>
  1493. <value>01</value>
  1494. </item>
  1495. <item>
  1496. <label>유</label>
  1497. <value>02</value>
  1498. </item>
  1499. </choices>
  1500. <script type="javascript" ev:event="xforms-value-changed">
  1501. <![CDATA[
  1502. if(model.getValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschyn") == "02") {
  1503. chk_mngtaftdsch.disabled = false;
  1504. chk_mngtaftdsch.dispatch("xforms-value-changed");
  1505. } else {
  1506. chk_mngtaftdsch.disabled = true;
  1507. ipt_mngtaftdschnm.disabled = true;
  1508. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschcd");
  1509. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschnm");
  1510. chk_mngtaftdsch.refresh();
  1511. ipt_mngtaftdschnm.refresh();
  1512. }
  1513. ]]>
  1514. </script>
  1515. </select1>
  1516. <button id="btn_recdt" class="icon_clock" navindex="3" style="left:229px; top:41px; width:16px; height:16px; ">
  1517. <caption/>
  1518. <script type="javascript" ev:event="DOMActivate">
  1519. <![CDATA[
  1520. var dt = fGetCurrentTime();
  1521. var dd = getCurrentDate();
  1522. model.setValue("/root/main/dschcareinfo/dschcareinfo/rectm", dt);
  1523. model.setValue("/root/main/dschcareinfo/dschcareinfo/recdd", dd);
  1524. ipt_rectm.refresh();
  1525. ipt_recdd.refresh();
  1526. ]]>
  1527. </script>
  1528. </button>
  1529. <output id="ipt_recuser" ref="/root/main/dschcareinfo/dschcareinfo/recusernm" class="output_fix" navindex="4" appearance="output" style="left:333px; top:40px; width:100px; height:19px; "/>
  1530. <input id="ipt_rectm" ref="/root/main/dschcareinfo/dschcareinfo/rectm" navindex="2" format="hh:nn" style="left:185px; top:40px; width:40px; height:19px; "/>
  1531. <input id="ipt_recdd" ref="/root/main/dschcareinfo/dschcareinfo/recdd" class="input_default" navindex="1" inputtype="date" style="left:83px; top:40px; width:100px; height:19px; "/>
  1532. <input id="ipt_dschdd" ref="/root/main/dschcareinfo/dschcareinfo/dschdd" class="input_default" disabled="false" navindex="5" inputtype="date" style="left:519px; top:40px; width:100px; height:19px; "/>
  1533. <button id="btn_tmpsave" class="btn5_letter4" visibility="hidden" style="left:920px; top:5px; width:64px; height:19px; ">
  1534. <caption>임시저장</caption>
  1535. <script type="javascript" ev:event="DOMActivate">
  1536. <![CDATA[
  1537. fSetDschInfo("T");
  1538. if(submit("TXMNW03801") == true) {
  1539. messageBox("저장이 ", "I001");
  1540. } else {
  1541. messageBox("저장이 실패하였습니다.", "E");
  1542. }
  1543. ]]>
  1544. </script>
  1545. </button>
  1546. <caption id="caption20" style="left:847px; top:630px; width:85px; height:14px; ">)</caption>
  1547. <input id="ipt_mngtaftdschnm" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/mngtaftdschnm" disabled="true" style="left:855px; top:626px; width:181px; height:19px; "/>
  1548. <caption id="caption25" class="cell_1" style="left:595px; top:590px; width:91px; height:34px; text-align:center; vertical-align:middle; ">특이사항</caption>
  1549. <textarea id="tar_spcffact" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/spcffact" scroll="autovscroll" style="left:688px; top:592px; width:499px; height:30px; "/>
  1550. <select1 id="rdo_diet" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dietcd" appearance="full" cellspacing="40" cols="8" overflow="visible" style="left:83px; top:475px; width:762px; height:13px; border-style:none; ">
  1551. <choices>
  1552. <item>
  1553. <label>일반식 .</label>
  1554. <value>01</value>
  1555. </item>
  1556. <item>
  1557. <label>치료식</label>
  1558. <value>02</value>
  1559. </item>
  1560. <item>
  1561. <label>. .</label>
  1562. <value/>
  1563. </item>
  1564. <item>
  1565. <label>경관영양</label>
  1566. <value>03</value>
  1567. </item>
  1568. <item>
  1569. <label>기타</label>
  1570. <value>04</value>
  1571. </item>
  1572. </choices>
  1573. <script type="javascript" ev:event="xforms-value-changed">
  1574. <![CDATA[
  1575. if(model.getValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dietcd") == "04") {
  1576. ipt_dietnm.disabled = false;
  1577. ipt_treatdiet.disabled = true;
  1578. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/treatdiet");
  1579. ipt_treatdiet.refresh();
  1580. } else if(model.getValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dietcd") == "02") {
  1581. ipt_treatdiet.disabled = false;
  1582. ipt_dietnm.disabled = true;
  1583. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dietnm");
  1584. ipt_treatdiet.refresh();
  1585. }
  1586. else {
  1587. ipt_dietnm.disabled = true;
  1588. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcawreeduc/dietnm");
  1589. ipt_dietnm.refresh();
  1590. ipt_treatdiet.disabled = true;
  1591. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/treatdiet");
  1592. ipt_treatdiet.refresh();
  1593. }
  1594. ]]>
  1595. </script>
  1596. </select1>
  1597. <input id="ipt_dietnm" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dietnm" disabled="true" style="left:630px; top:473px; width:135px; height:19px; "/>
  1598. <input id="ipt_treatdiet" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/treatdiet" disabled="true" style="left:285px; top:473px; width:185px; height:19px; "/>
  1599. <input id="input2" ref="/root/main/dschcareinfo/dschcareinfo/signno" visibility="hidden" style="left:745px; top:5px; width:100px; height:19px; "/>
  1600. <caption id="caption30" ref="/root/main/age" style="left:418px; top:9px; width:37px; height:20px; font-family:돋움; "/>
  1601. <caption id="caption31" class="search_name" style="left:360px; top:10px; width:58px; height:17px; ">나이:</caption>
  1602. <caption id="caption32" class="search_name" style="left:460px; top:10px; width:81px; height:17px; ">등록번호:</caption>
  1603. <caption id="caption68" class="search_name" style="left:5px; top:10px; width:55px; height:17px; ">병실:</caption>
  1604. <caption id="caption18" ref="/root/main/room" style="left:63px; top:9px; width:52px; height:20px; font-family:돋움; "/>
  1605. <caption id="caption26" ref="/root/main/patnm" style="left:190px; top:9px; width:60px; height:20px; font-family:돋움; "/>
  1606. <caption id="caption27" class="search_name" style="left:122px; top:10px; width:68px; height:17px; ">환자명:</caption>
  1607. <caption id="caption28" ref="/root/main/sex" style="left:318px; top:9px; width:32px; height:20px; font-family:돋움; "/>
  1608. <caption id="caption29" class="search_name" style="left:260px; top:10px; width:58px; height:17px; ">성별:</caption>
  1609. <caption id="caption33" ref="/root/main/pid" style="left:544px; top:9px; width:96px; height:20px; font-family:돋움; "/>
  1610. <input id="ipt_dschmthdnm" ref="/root/main/dschcareinfo/dschcareinfo/dschmthdnm" disabled="true" style="left:600px; top:380px; width:130px; height:19px; "/>
  1611. <input id="ipt_antibioallgnm" ref="/root/main/dschcareinfo/dschcareinfo/antibioallgnm" disabled="true" style="left:1099px; top:404px; width:85px; height:19px; "/>
  1612. <select1 id="rdo_antibioallgyn" ref="/root/main/dschcareinfo/dschcareinfo/antibioallgyn" appearance="full" cellspacing="50" cols="1" vcellspacing="7" overflow="visible" style="left:853px; top:378px; width:35px; height:43px; border-style:none; ">
  1613. <choices>
  1614. <item>
  1615. <label>무</label>
  1616. <value>01</value>
  1617. </item>
  1618. <item>
  1619. <label>유</label>
  1620. <value>02</value>
  1621. </item>
  1622. </choices>
  1623. <script type="javascript" ev:event="xforms-value-changed">
  1624. <![CDATA[
  1625. if(model.getValue("/root/main/dschcareinfo/dschcareinfo/antibioallgyn") == "02") {
  1626. chk_antibioallgcd.disabled = false;
  1627. chk_antibioallgcd.dispatch("xforms-value-changed");
  1628. } else {
  1629. chk_antibioallgcd.disabled = true;
  1630. ipt_antibioallgnm.disabled = true;
  1631. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/antibioallgcd");
  1632. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/antibioallgnm");
  1633. }
  1634. chk_antibioallgcd.refresh();
  1635. ipt_antibioallgnm.refresh();
  1636. ]]>
  1637. </script>
  1638. </select1>
  1639. <caption id="caption34" style="left:888px; top:407px; width:15px; height:13px; ">(</caption>
  1640. <caption id="caption35" style="left:1185px; top:407px; width:10px; height:14px; ">)</caption>
  1641. <caption id="caption37" class="cell_1" style="left:735px; top:378px; width:115px; height:46px; text-align:center; vertical-align:middle; ">
  1642. <![CDATA[입원기간 중 항생제
  1643. 알러지 반응 ]]>
  1644. </caption>
  1645. <select id="chk_antibioallgcd" ref="/root/main/dschcareinfo/dschcareinfo/antibioallgcd" disabled="true" overflow="visible" appearance="full" cols="3" sep="," style="left:896px; top:406px; width:206px; height:13px; border-style:none; ">
  1646. <choices>
  1647. <item>
  1648. <label>페니실린계</label>
  1649. <value>1</value>
  1650. </item>
  1651. <item>
  1652. <label>베타락탐계</label>
  1653. <value>2</value>
  1654. </item>
  1655. <item>
  1656. <label>기타</label>
  1657. <value>3</value>
  1658. </item>
  1659. </choices>
  1660. <script type="javascript" ev:event="xforms-value-changed">
  1661. <![CDATA[
  1662. var antibioallgcd = model.getValue("/root/main/dschcareinfo/dschcareinfo/antibioallgcd");
  1663. var kind = new Array();
  1664. var arr = new Array(chk_antibioallgcd.length);
  1665. kind = antibioallgcd.split(",");
  1666. for(var i = 0; i < arr.length; i++) {
  1667. arr[i] = "";
  1668. }
  1669. for(var i = 0; i < kind.length; i++) {
  1670. switch(kind[i]) {
  1671. case '1':
  1672. arr[0] = kind[i];
  1673. break;
  1674. case '2':
  1675. arr[1] = kind[i];
  1676. break;
  1677. case '3':
  1678. arr[2] = kind[i];
  1679. break;
  1680. default :
  1681. arr[arr.length - 1] = kind[i];
  1682. }
  1683. }
  1684. for(var i = 0; i < arr.length; i++) {
  1685. if(arr[2] == '3') {
  1686. ipt_antibioallgnm.disabled = false;
  1687. } else {
  1688. ipt_antibioallgnm.disabled = true;
  1689. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/antibioallgnm");
  1690. }
  1691. ipt_antibioallgnm.refresh();
  1692. }
  1693. ]]>
  1694. </script>
  1695. </select>
  1696. <select1 id="rdo_proceracomp" ref="/root/main/dschcareinfo/dschcareinfo/proceracomp" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:853px; top:333px; width:100px; height:13px; border-style:none; ">
  1697. <choices>
  1698. <item>
  1699. <label>유</label>
  1700. <value>01</value>
  1701. </item>
  1702. <item>
  1703. <label>무</label>
  1704. <value>02</value>
  1705. </item>
  1706. </choices>
  1707. </select1>
  1708. <caption id="caption36" class="cell_1" style="left:962px; top:330px; width:115px; height:23px; text-align:center; vertical-align:middle; ">진료의 동반</caption>
  1709. <select1 id="rdo_dracomp" ref="/root/main/dschcareinfo/dschcareinfo/dracomp" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:1080px; top:333px; width:100px; height:13px; border-style:none; ">
  1710. <choices>
  1711. <item>
  1712. <label>유</label>
  1713. <value>01</value>
  1714. </item>
  1715. <item>
  1716. <label>무</label>
  1717. <value>02</value>
  1718. </item>
  1719. </choices>
  1720. </select1>
  1721. <caption id="caption9" class="cell_1" style="left:735px; top:330px; width:115px; height:23px; text-align:center; vertical-align:middle; ">보호자 동반</caption>
  1722. <input id="ipt_healmngtsymp" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtsymp" disabled="true" style="left:545px; top:568px; width:456px; height:19px; "/>
  1723. <input id="ipt_healmngtnm" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/healmngtnm" disabled="true" style="left:721px; top:545px; width:466px; height:19px; "/>
  1724. <line id="line17" class="line_2" style="x1:0px; y1:672px; x2:1194px; y2:672px; "/>
  1725. <select1 id="rdo_dschcatestatyn" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatyn" appearance="full" cols="1" rows="2" overflow="visible" style="left:84px; top:677px; width:30px; height:33px; border-style:none; ">
  1726. <choices>
  1727. <item>
  1728. <label>무</label>
  1729. <value>01</value>
  1730. </item>
  1731. <item>
  1732. <label>유</label>
  1733. <value>02</value>
  1734. </item>
  1735. </choices>
  1736. <script type="javascript" ev:event="xforms-value-changed">
  1737. <![CDATA[
  1738. var dschcatestatyn = model.getValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatyn");
  1739. if( dschcatestatyn == "01" ){
  1740. submit("TRMNW03605");
  1741. var dschcateyn = model.getValue("/root/hiden/dschcateinfo/dschcateyn");
  1742. if( dschcateyn == "Y" ){
  1743. model.setValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatyn", "02"); //유
  1744. rdo_dschcatestatyn.refresh();
  1745. messageBox("제거되지 않은 [삽관/기구] 기록이 있습니다. \n 기록을 확인","I008"); // 하십시오.
  1746. return;
  1747. }
  1748. }
  1749. if(model.getValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatyn") == "02") {
  1750. chk_dschcatestat.disabled = false;
  1751. chk_dschcatestat.dispatch("xforms-value-changed");
  1752. } else {
  1753. chk_dschcatestat.disabled = true;
  1754. ipt_dschcateoxy.disabled = true;
  1755. ipt_dschcatestatnm.disabled = true;
  1756. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcateoxy");
  1757. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatnm");
  1758. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatcd");
  1759. chk_dschcatestat.refresh();
  1760. ipt_dschcateoxy.refresh();
  1761. ipt_dschcatestatnm.refresh();
  1762. }
  1763. ]]>
  1764. </script>
  1765. </select1>
  1766. <select id="chk_dschcatestat" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatcd" overflow="visible" appearance="full" cellspacing="45" cols="7" sep="▦" vcellspacing="4" style="left:115px; top:673px; width:1060px; height:41px; border-style:none; ">
  1767. <choices>
  1768. <item>
  1769. <label>L-tube</label>
  1770. <value>1</value>
  1771. </item>
  1772. <item>
  1773. <label>Foley catheter</label>
  1774. <value>2</value>
  1775. </item>
  1776. <item>
  1777. <label>Colostomy</label>
  1778. <value>3</value>
  1779. </item>
  1780. <item>
  1781. <label>Endotracheal tube</label>
  1782. <value>4</value>
  1783. </item>
  1784. <item>
  1785. <label>Tracheostomy tube</label>
  1786. <value>5</value>
  1787. </item>
  1788. <item>
  1789. <label>HD catheter</label>
  1790. <value>6</value>
  1791. </item>
  1792. <item>
  1793. <label>산소</label>
  1794. <value>7</value>
  1795. </item>
  1796. <item>
  1797. <label>Subclavian catheter</label>
  1798. <value>8</value>
  1799. </item>
  1800. <item>
  1801. <label>Chemoport</label>
  1802. <value>9</value>
  1803. </item>
  1804. <item>
  1805. <label>Hemo-vac</label>
  1806. <value>10</value>
  1807. </item>
  1808. <item>
  1809. <label>JP bag</label>
  1810. <value>11</value>
  1811. </item>
  1812. <item>
  1813. <label>기타</label>
  1814. <value>12</value>
  1815. </item>
  1816. </choices>
  1817. <script type="javascript" ev:event="xforms-value-changed">
  1818. <![CDATA[
  1819. var dschcatestatcd = model.getValue("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatcd");
  1820. var kind = new Array();
  1821. var arr = new Array(chk_dschcatestat.length);
  1822. kind = dschcatestatcd.split("▦");
  1823. for(var i = 0; i < arr.length; i++) {
  1824. arr[i] = "";
  1825. }
  1826. for(var i = 0; i < kind.length; i++) {
  1827. switch(kind[i]) {
  1828. case '1':
  1829. arr[0] = kind[i];
  1830. break;
  1831. case '2':
  1832. arr[1] = kind[i];
  1833. break;
  1834. case '3':
  1835. arr[2] = kind[i];
  1836. break;
  1837. case '4':
  1838. arr[3] = kind[i];
  1839. break;
  1840. case '5':
  1841. arr[4] = kind[i];
  1842. break;
  1843. case '6':
  1844. arr[5] = kind[i];
  1845. break;
  1846. case '7':
  1847. arr[6] = kind[i];
  1848. break;
  1849. case '8':
  1850. arr[7] = kind[i];
  1851. break;
  1852. case '9':
  1853. arr[8] = kind[i];
  1854. break;
  1855. case '10':
  1856. arr[9] = kind[i];
  1857. break;
  1858. case '11':
  1859. arr[10] = kind[i];
  1860. break;
  1861. case '12':
  1862. arr[11] = kind[i];
  1863. break;
  1864. default:
  1865. break;
  1866. }
  1867. }
  1868. for(var i = 0; i < arr.length; i++) {
  1869. if(arr[6] == '7') {
  1870. ipt_dschcateoxy.disabled = false;
  1871. } else {
  1872. ipt_dschcateoxy.disabled = true;
  1873. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcateoxy");
  1874. ipt_dschcateoxy.refresh();
  1875. }
  1876. if(arr[11] == "12") {
  1877. ipt_dschcatestatnm.disabled = false;
  1878. } else {
  1879. ipt_dschcatestatnm.disabled = true;
  1880. model.resetInstanceNode("/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatnm");
  1881. ipt_dschcatestatnm.refresh();
  1882. }
  1883. }
  1884. ]]>
  1885. </script>
  1886. </select>
  1887. <caption id="caption38" class="cell_1" style="left:0px; top:674px; width:80px; height:38px; text-align:center; vertical-align:middle; ">
  1888. <![CDATA[퇴원시 기구
  1889. 및 삽관상태]]>
  1890. </caption>
  1891. <caption id="cap_oxyunit" style="left:1142px; top:679px; width:35px; height:14px; ">L/min</caption>
  1892. <input id="ipt_dschcatestatnm" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcatestatnm" disabled="true" style="left:776px; top:694px; width:416px; height:19px; "/>
  1893. <input id="ipt_dschcateoxy" ref="/root/main/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dschcateoxy" disabled="true" style="left:1075px; top:674px; width:65px; height:19px; "/>
  1894. <button id="btn_prn" class="btn2_letter5" style="left:709px; top:40px; width:75px; height:19px; ">
  1895. <caption>복약안내문</caption>
  1896. <script type="javascript" ev:event="DOMActivate">
  1897. <![CDATA[
  1898. var reqdd = model.getValue("/root/temp/cond/list/dschdclrdt");
  1899. var reqdt = reqdd.substr(0,8);
  1900. model.makeValue("/root/send/srchinfo/prcpddstart", reqdt);
  1901. model.makeValue("/root/send/srchinfo/prcpddend", reqdt);
  1902. // model.makeValue("/root/send/srchinfo/prcpddstart", model.getValue("/root/main/dschcareinfo/dschcareinfo/dschdd"));
  1903. // model.makeValue("/root/send/srchinfo/prcpddend", model.getValue("/root/main/dschcareinfo/dschcareinfo/dschdd"));
  1904. model.makeValue("/root/send/srchinfo/srchflag", "2"); // 퇴원 ==> 복약지도환자관리(SMADC02101.xrw) 구분 변경시 퇴원값 다시 가져와야 함.
  1905. model.makeValue("/root/send/srchinfo/prcpclscd", "A2|A4|A6|D"); // 약주사구분 셋팅
  1906. model.makeValue("/root/send/srchinfo/pid", model.getValue("/root/send/req/pid")); // 환자번호 셋팅
  1907. model.makeValue("/root/send/srchinfo/prtflag", "|3");
  1908. model.makeValue("/root/send/srchinfo/wardcd", ""); // node가 없으면 에러.
  1909. model.makeValue("/root/send/srchinfo/ward", "");
  1910. model.makeValue("/root/send/srchinfo/tmedcnst", ""); // node가 없으면 에러
  1911. submit("TRADC02101");
  1912. if(model.getValue("/root/main/patinfo/patlist/pid") != "" && model.getValue("/root/main/patinfo/patlist/pid") != null) {
  1913. // alert(model.getValue("/root/main/patinfo/patlist/pid"));
  1914. // alert(1);
  1915. model.makeValue("/root/main/patinfo/patlist/difflagcd", "1"); //복약설명서 출력조건[병원자료:1 , DIF한글:2, DIF영문:2]
  1916. open("SMADC02201", "", "", "", "", "/root/main/patinfo/patlist", "/root/temp/srchinfo", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  1917. var consultObj = getOpenWindow("SMADC02201");
  1918. if(consultObj != null){
  1919. modal("SPMNZ00300");
  1920. consultObj.javascript.btn_prt.dispatch("DOMActivate");
  1921. }
  1922. consultObj.close();
  1923. }
  1924. ]]>
  1925. </script>
  1926. </button>
  1927. <caption id="caption39" style="left:1165px; top:722px; width:26px; height:14px; ">[표]</caption>
  1928. <button id="button1" class="btn2_letter5" style="left:1048px; top:40px; width:75px; height:19px; ">
  1929. <caption>전자동의서</caption>
  1930. <script type="javascript" ev:event="DOMActivate">
  1931. <![CDATA[
  1932. //fClickPrintBtn(xFormCd, "Y") ; // parameter : 전자동의서 여부
  1933. //grp_elecprint.visible = true;
  1934. model.setValue("/root/temp/prtPatient", "N");
  1935. model.setValue("/root/temp/prtOCR", "Y");
  1936. fClickPrintBtn(xFormCd, "Y");
  1937. ]]>
  1938. </script>
  1939. </button>
  1940. <button id="button2" class="btn2_letter7" style="left:950px; top:40px; width:97px; height:19px; ">
  1941. <caption>환자교육출력물</caption>
  1942. <script type="javascript" ev:event="DOMActivate">
  1943. <![CDATA[
  1944. //fClickPrintBtn(xFormCd, "Y") ; // parameter : 전자동의서 여부
  1945. //grp_elecprint.visible = true;
  1946. model.setValue("/root/temp/prtPatient", "Y");
  1947. model.setValue("/root/temp/prtOCR", "N");
  1948. fClickPrintBtn(xFormCd, "Y");
  1949. ]]>
  1950. </script>
  1951. </button>
  1952. </group>
  1953. <shape id="rectangle1" appearance="rectangle" style="left:788px; top:51px; width:156px; height:23px; border-color:#008000; "/>
  1954. <shape id="rectangle2" appearance="rectangle" style="left:948px; top:51px; width:178px; height:23px; border-color:#008000; "/>
  1955. </xhtml:body>
  1956. </xhtml:html>