SMMNW03600_퇴원간호계획.xrw 91 KB

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