SMMNN00500_산모퇴원간호계획.xrw 98 KB

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