SMMNW05900_정신과 퇴원간호계획.xrw 85 KB

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