SMMNW05800_소아퇴원간호계획.xrw 88 KB

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