SMMNW14300_해피콜.xrw 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>해피콜</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <wardcd/>
  12. <fromdd/>
  13. <todd/>
  14. <actstatflagm>Y</actstatflagm>
  15. <actstatflagn/>
  16. <actstatflagy/>
  17. <actstatflag/>
  18. <deathinsertyn>Y</deathinsertyn>
  19. <threeday>Y</threeday>
  20. <change/>
  21. </cond>
  22. <cnstinfo>
  23. <cnstlist>
  24. </cnstlist>
  25. </cnstinfo>
  26. <cnst>
  27. <pid/>
  28. <patnm/>
  29. <deptcd/>
  30. <intvflag/>
  31. <userid/>
  32. <guardiangubn/>
  33. <indt/>
  34. <inpathnm/>
  35. <dschdt/>
  36. <keepcnt/>
  37. <age/>
  38. <dschtypenm/>
  39. <dschaftmoveplcenm/>
  40. <deathyn/>
  41. <orddeptnm/>
  42. <healthstat/>
  43. <statrmk/>
  44. <medicineyn/>
  45. <timeyn/>
  46. <explanyn/>
  47. <mealyn/>
  48. <mealrmk/>
  49. <ivlineremoveyn/>
  50. <chemoportyn/>
  51. <drainyn/>
  52. <colostomysiteyn/>
  53. <stomayn/>
  54. <nothingyn/>
  55. <admindisp/>
  56. <admgood/>
  57. <addguide/>
  58. <instcd/>
  59. <indd/>
  60. <cretno/>
  61. <ordtype/>
  62. <actstat/>
  63. <inrecflag/>
  64. <dschrecflag/>
  65. <dschdd/>
  66. </cnst>
  67. </main>
  68. <send>
  69. <reqdata/>
  70. <savedata/>
  71. </send>
  72. <temp/>
  73. </root>
  74. </instance>
  75. <script type="javascript" ev:event="xforms-ready">
  76. <![CDATA[
  77. var instnm=getUserInfo("dutplceinstnm");
  78. var wardnm=getUserInfo("dutplcenm");
  79. var nursenm=getUserInfo("usernm");
  80. var txtbox = "";
  81. txtbox = "안녕 하십니까?\n저는 "+ instnm +" "+wardnm+" (수)간호사 "+nursenm+"입니다.\n님 께서 퇴원 후 생활에 대해 몇가지 질문 드리고 궁금한 점에 대해 도움을 주고자\n연락을 드렸습니다. (전화 가능하신지요?)";
  82. cpt_textbox.value = txtbox;
  83. var deptcd = model.getValue("/root/init/codeinfo/codelist[cdgrupid='T78']/cdid");
  84. var instcd = getUserInfo("dutplceinstcd");
  85. var standard_yn = "orduseyn";
  86. var ord_deptflag = 'W';
  87. var rslt_ref = "/root/init/dept";
  88. var sort_field = "depthngnm";
  89. var sort_method = "asc";
  90. var dt = getCurrentDate();
  91. var dat = ((dt.toDate("YYYYMMDD")).getAddDate(-3, "D")).getDateFormat("YYYYMMDD") ;
  92. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method, dt);
  93. model.setValue(cmb_wardcd.attribute("ref"), getUserInfo("dutplcecd"));
  94. model.makeNode("/root/hidden/deptcd");
  95. model.copyNode("/root/hidden/deptcd", rslt_ref);
  96. model.setValue(ipt_fromdd.attribute("ref"), dat);
  97. model.setValue(ipt_todd.attribute("ref"), dt);
  98. ipt_fromdd.refresh();
  99. ipt_todd.refresh();
  100. fSearch() ;
  101. ]]>
  102. </script>
  103. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
  104. <submission id="TRMNW14301" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/cnstinfo"/>
  105. <submission id="TXMNW14301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata/saveinfo" resultref="/root/temp"/>
  106. </model>
  107. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  108. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  109. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  110. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  111. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  112. <script type="javascript">
  113. <![CDATA[
  114. function fSearch() {
  115. var actstatflagm = model.getValue("/root/main/cond/actstatflagm");
  116. var actstatflagn = model.getValue("/root/main/cond/actstatflagn");
  117. var actstatflagy = model.getValue("/root/main/cond/actstatflagy");
  118. var actstatflag = "/root/main/cond/actstatflag";
  119. if(actstatflagm == "Y" && actstatflagn == "" && actstatflagy == "" ){
  120. model.setValue(actstatflag,"1"); // 미진행
  121. }else if(actstatflagm == "" && actstatflagn == "Y" && actstatflagy == "" ){
  122. model.setValue(actstatflag,"2"); // 진행중
  123. }else if(actstatflagm == "" && actstatflagn == "" && actstatflagy == "Y" ){
  124. model.setValue(actstatflag,"3"); // 완료
  125. }else if(actstatflagm == "Y" && actstatflagn == "Y" && actstatflagy == "" ){
  126. model.setValue(actstatflag,"4"); // 미진행, 진행중
  127. }else if(actstatflagm == "Y" && actstatflagn == "" && actstatflagy == "Y" ){
  128. model.setValue(actstatflag,"5"); // 미진행, 완료
  129. }else if(actstatflagm == "" && actstatflagn == "Y" && actstatflagy == "Y" ){
  130. model.setValue(actstatflag,"6"); // 진행중, 완료
  131. }else if(actstatflagm == "Y" && actstatflagn == "Y" && actstatflagy == "Y" ){
  132. model.setValue(actstatflag,"7"); // 미진행, 진행중, 완료
  133. }else{
  134. model.setValue(actstatflag,""); // 체크 안했을때
  135. }
  136. model.copyNode("/root/send/reqdata", "/root/main/cond");
  137. submit("TRMNW14301");
  138. }
  139. ]]>
  140. </script>
  141. </xhtml:head>
  142. <xhtml:body style="font-family:굴림, Arial; vertical-align:middle; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  143. <group id="group3" style="left:0px; top:0px; width:1195px; height:776px; font-family:굴림; vertical-align:middle; ">
  144. <caption id="cpt_title" class="tit_1" style="left:110px; top:5px; width:145px; height:13px; font-family:굴림; vertical-align:middle; ">퇴원환자상담</caption>
  145. <group id="grp_sea" style="left:0px; top:20px; width:550px; height:70px; font-family:굴림; vertical-align:top; ">
  146. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:550px; height:70px; font-family:굴림; "/>
  147. <caption id="caption3" class="search_name" style="left:15px; top:9px; width:69px; height:17px; font-family:굴림; ">기 간 :</caption>
  148. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" navindex="2" inputtype="date" style="left:85px; top:8px; width:95px; height:19px; font-family:굴림; "/>
  149. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" navindex="2" inputtype="date" style="left:195px; top:8px; width:95px; height:19px; font-family:굴림; "/>
  150. <caption id="caption4" style="left:178px; top:10px; width:20px; height:15px; font-family:굴림; text-align:center; ">~</caption>
  151. <select id="chk_actstatflagm" ref="/root/main/cond/actstatflagm" overflow="visible" appearance="full" style="left:375px; top:40px; width:55px; height:20px; font-family:굴림; border-style:none; ">
  152. <choices>
  153. <item>
  154. <label>미진행</label>
  155. <value>Y</value>
  156. </item>
  157. </choices>
  158. <script type="javascript" ev:event="xforms-value-changed">
  159. <![CDATA[
  160. fSearch();
  161. ]]>
  162. </script>
  163. </select>
  164. <select id="chk_actstatflagn" ref="/root/main/cond/actstatflagn" overflow="visible" appearance="full" style="left:435px; top:40px; width:45px; height:20px; font-family:굴림; border-style:none; ">
  165. <choices>
  166. <item>
  167. <label>진행</label>
  168. <value>Y</value>
  169. </item>
  170. </choices>
  171. <script type="javascript" ev:event="xforms-value-changed">
  172. <![CDATA[
  173. fSearch();
  174. ]]>
  175. </script>
  176. </select>
  177. <select id="chk_threeday" ref="/root/main/cond/threeday" overflow="visible" appearance="full" style="left:150px; top:40px; width:90px; height:20px; font-family:굴림; border-style:none; ">
  178. <choices>
  179. <item>
  180. <label>재원 3일이상</label>
  181. <value>Y</value>
  182. </item>
  183. </choices>
  184. <script type="javascript" ev:event="xforms-value-changed">
  185. <![CDATA[
  186. fSearch();
  187. ]]>
  188. </script>
  189. </select>
  190. <select id="chk_deathinsertyn" ref="/root/main/cond/deathinsertyn" overflow="visible" appearance="full" style="left:245px; top:40px; width:120px; height:20px; font-family:굴림; border-style:none; ">
  191. <choices>
  192. <item>
  193. <label>사망등록환자제외</label>
  194. <value>Y</value>
  195. </item>
  196. </choices>
  197. <script type="javascript" ev:event="xforms-value-changed">
  198. <![CDATA[
  199. fSearch();
  200. ]]>
  201. </script>
  202. </select>
  203. <select id="chk_actstatflagy" ref="/root/main/cond/actstatflagy" overflow="visible" appearance="full" style="left:485px; top:40px; width:40px; height:20px; font-family:굴림; border-style:none; ">
  204. <choices>
  205. <item>
  206. <label>완료</label>
  207. <value>Y</value>
  208. </item>
  209. </choices>
  210. <script type="javascript" ev:event="xforms-value-changed">
  211. <![CDATA[
  212. fSearch();
  213. ]]>
  214. </script>
  215. </select>
  216. <select id="checkbox2" ref="/root/main/cond/change" overflow="visible" appearance="full" style="left:65px; top:40px; width:75px; height:20px; border-style:none; ">
  217. <choices>
  218. <item>
  219. <label>전원 제외</label>
  220. <value>Y</value>
  221. </item>
  222. </choices>
  223. <script type="javascript" ev:event="xforms-value-changed">
  224. <![CDATA[
  225. fSearch();
  226. ]]>
  227. </script>
  228. </select>
  229. </group>
  230. <input id="ipt_pid" ref="/root/main/cnst/pid" disabled="true" navindex="4" visibility="visible" appearance="minimal" style="left:637px; top:5px; width:68px; height:19px; font-family:굴림; ">
  231. <choices>
  232. <itemset nodeset="/root/init/ward">
  233. <label ref="depthngnm"/>
  234. <value ref="deptcd"/>
  235. </itemset>
  236. </choices>
  237. <script type="javascript" ev:event="onkeyup">
  238. <![CDATA[
  239. inputEnterKey("btn_ref", "DOMActivate");
  240. ]]>
  241. </script>
  242. </input>
  243. <caption id="caption24" class="search_name" style="left:567px; top:5px; width:65px; height:17px; font-family:굴림; ">환 자 :</caption>
  244. <select1 id="cmb_wardcd" ref="/root/main/cond/wardcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:370px; top:29px; width:95px; height:19px; font-family:굴림; text-align:left; ">
  245. <choices>
  246. <itemset nodeset="/root/init/dept/dept">
  247. <label ref="depthngnm"/>
  248. <value ref="deptcd"/>
  249. </itemset>
  250. </choices>
  251. <script type="javascript" ev:event="xforms-value-changed">
  252. <![CDATA[
  253. fSearch();
  254. ]]>
  255. </script>
  256. </select1>
  257. <caption id="caption25" class="search_name" style="left:300px; top:30px; width:67px; height:17px; font-family:굴림; ">병 동 :</caption>
  258. <button id="button1" class="btn1_letter2" navindex="7" style="left:475px; top:30px; width:56px; height:22px; font-family:굴림; ">
  259. <caption>조회</caption>
  260. <script type="javascript" ev:event="DOMActivate">
  261. <![CDATA[
  262. fSearch() ;
  263. ]]>
  264. </script>
  265. </button>
  266. <caption id="caption28" class="search_name" style="left:567px; top:40px; width:73px; height:17px; font-family:굴림; ">조사자 :</caption>
  267. <caption id="caption30" class="search_name" style="left:767px; top:40px; width:70px; height:17px; font-family:굴림; ">구 분 :</caption>
  268. <caption id="caption31" class="search_name" style="left:1007px; top:40px; width:65px; height:17px; font-family:굴림; ">이 름 :</caption>
  269. <input id="input4" ref="/root/main/cnst/patnm" disabled="true" style="left:707px; top:5px; width:80px; height:19px; font-family:굴림; "/>
  270. <input id="ipt_userid" ref="/root/main/cnst/userid" disabled="true" style="left:1077px; top:40px; width:100px; height:19px; font-family:굴림; "/>
  271. <button id="btn_save" class="btn3_letter2" navindex="8" style="left:1002px; top:5px; width:56px; height:22px; font-family:굴림; ">
  272. <caption>저장</caption>
  273. <script type="javascript" ev:event="DOMActivate">
  274. <![CDATA[
  275. if(model.getValue("/root/main/cnst/instcd") == "") {
  276. messageBox("환자를 선택해주십시오.", "I");
  277. return;
  278. }
  279. if(model.getValue("/root/main/cnst/actstat") == "M"){ // 처리완료를 선택하지 않고 저장 하는경우 상태값이 진행중(N)으로 바뀜
  280. model.setValue("/root/main/cnst/actstat","N");
  281. }
  282. model.makeNode("/root/send/savedata/saveinfo");
  283. model.copyNode("/root/send/savedata/saveinfo", "/root/main/cnst");
  284. submit("TXMNW14301");
  285. fSearch() ;
  286. ]]>
  287. </script>
  288. </button>
  289. <button id="btn_print" class="btn3_letter2" navindex="8" style="left:1062px; top:5px; width:56px; height:22px; font-family:굴림; ">
  290. <caption>출력</caption>
  291. <script type="javascript" ev:event="DOMActivate">
  292. <![CDATA[
  293. model.makeValue("/root/main/cnst/deptnm", cmb_deptcd.label );
  294. model.makeValue("/root/main/cnst/textbox", cpt_textbox.value);
  295. exeReportPreview("RPMNW14300", "XMLSTR");
  296. ]]>
  297. </script>
  298. </button>
  299. <button id="btn_xls" class="btn3_letter2" navindex="8" style="left:1122px; top:5px; width:56px; height:22px; font-family:굴림; ">
  300. <caption>엑셀</caption>
  301. <script type="javascript" ev:event="DOMActivate">
  302. <![CDATA[
  303. var fileName = window.fileDialog("save", ",", false, "해피콜", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  304. grd_cnstinfo.saveExcel(fileName, "sheetname");
  305. ]]>
  306. </script>
  307. </button>
  308. <select1 id="rdo_intvflag" ref="/root/main/cnst/intvflag" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:842px; top:40px; width:155px; height:20px; font-family:굴림; border-style:none; ">
  309. <choices>
  310. <item>
  311. <label>수간호사</label>
  312. <value>A</value>
  313. </item>
  314. <item>
  315. <label>간호사</label>
  316. <value>B</value>
  317. </item>
  318. </choices>
  319. </select1>
  320. <line id="line5" style="x1:567px; y1:65px; x2:1176px; y2:65px; font-family:굴림; "/>
  321. <line id="line6" style="x1:567px; y1:160px; x2:1176px; y2:160px; font-family:굴림; "/>
  322. <caption id="caption37" style="left:567px; top:165px; width:100px; height:20px; font-family:굴림; font-weight:bold; ">일반사항</caption>
  323. <caption id="caption38" class="search_name" style="left:567px; top:190px; width:75px; height:17px; font-family:굴림; ">이 름 :</caption>
  324. <caption id="caption39" class="search_name" style="left:567px; top:210px; width:75px; height:17px; font-family:굴림; ">입원일 :</caption>
  325. <caption id="caption40" class="search_name" style="left:567px; top:230px; width:75px; height:17px; font-family:굴림; ">퇴원일 :</caption>
  326. <caption id="caption41" class="search_name" style="left:567px; top:250px; width:90px; height:17px; font-family:굴림; ">퇴원경로 :</caption>
  327. <caption id="caption42" class="search_name" style="left:767px; top:190px; width:90px; height:17px; font-family:굴림; ">구 분 :</caption>
  328. <caption id="caption43" class="search_name" style="left:767px; top:210px; width:90px; height:17px; font-family:굴림; ">입원경로 :</caption>
  329. <caption id="caption44" class="search_name" style="left:767px; top:230px; width:90px; height:17px; font-family:굴림; ">재원일수 :</caption>
  330. <caption id="caption45" class="search_name" style="left:767px; top:250px; width:90px; height:17px; font-family:굴림; ">퇴원구분 :</caption>
  331. <caption id="caption46" class="search_name" style="left:987px; top:210px; width:88px; height:17px; font-family:굴림; ">진 료 과 :</caption>
  332. <caption id="caption47" class="search_name" style="left:987px; top:230px; width:86px; height:17px; font-family:굴림; ">현재나이 :</caption>
  333. <select id="chk_deathyn" ref="/root/main/cnst/deathyn" overflow="visible" appearance="full" style="left:987px; top:250px; width:100px; height:20px; font-family:굴림; border-style:none; ">
  334. <choices>
  335. <item>
  336. <label>퇴원후사망</label>
  337. <value>Y</value>
  338. </item>
  339. </choices>
  340. </select>
  341. <select1 id="radio3" ref="/root/main/cnst/guardiangubn" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:852px; top:190px; width:155px; height:20px; font-family:굴림; border-style:none; ">
  342. <choices>
  343. <item>
  344. <label>환자</label>
  345. <value>A</value>
  346. </item>
  347. <item>
  348. <label>보호자</label>
  349. <value>B</value>
  350. </item>
  351. </choices>
  352. </select1>
  353. <line id="line7" style="x1:567px; y1:275px; x2:1176px; y2:275px; font-family:굴림; "/>
  354. <caption id="caption48" style="left:567px; top:285px; width:202px; height:20px; font-family:굴림; ">1. 퇴원 후 건강상태는 어떠하신지요?</caption>
  355. <select1 id="rdo_healthstat" ref="/root/main/cnst/healthstat" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:567px; top:310px; width:200px; height:20px; font-family:굴림; border-style:none; ">
  356. <choices>
  357. <item>
  358. <label>양호</label>
  359. <value>A</value>
  360. </item>
  361. <item>
  362. <label>보통</label>
  363. <value>B</value>
  364. </item>
  365. <item>
  366. <label>나쁘다</label>
  367. <value>C</value>
  368. </item>
  369. </choices>
  370. </select1>
  371. <caption id="caption49" style="left:567px; top:335px; width:100px; height:20px; font-family:굴림; ">나쁘다면?(이유)</caption>
  372. <input id="ipt_statrmk" ref="/root/main/cnst/statrmk" maxlength="40" style="left:662px; top:335px; width:515px; height:19px; font-family:굴림; "/>
  373. <caption id="caption50" style="left:567px; top:365px; width:163px; height:20px; font-family:굴림; ">2. 퇴원약은 복용중이십니까?</caption>
  374. <caption id="caption51" style="left:567px; top:390px; width:166px; height:20px; font-family:굴림; ">시간에 맞추어 잘복용하시는지</caption>
  375. <caption id="caption52" style="left:567px; top:410px; width:178px; height:20px; font-family:굴림; ">약에 대해 보충 설명 필요 하신지</caption>
  376. <select1 id="rdo_timeyn" ref="/root/main/cnst/timeyn" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:757px; top:390px; width:125px; height:20px; font-family:굴림; border-style:none; ">
  377. <choices>
  378. <item>
  379. <label>예</label>
  380. <value>Y</value>
  381. </item>
  382. <item>
  383. <label>아니요</label>
  384. <value>N</value>
  385. </item>
  386. </choices>
  387. </select1>
  388. <select1 id="rdo_explanyn" ref="/root/main/cnst/explanyn" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:757px; top:410px; width:125px; height:20px; font-family:굴림; border-style:none; ">
  389. <choices>
  390. <item>
  391. <label>예</label>
  392. <value>Y</value>
  393. </item>
  394. <item>
  395. <label>아니요</label>
  396. <value>N</value>
  397. </item>
  398. </choices>
  399. </select1>
  400. <caption id="caption53" style="left:567px; top:435px; width:298px; height:20px; font-family:굴림; ">3. 식사는 잘하고 계시며 식사 후 불편감은 없으신지요?</caption>
  401. <select1 id="rdo_mealyn" ref="/root/main/cnst/mealyn" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:567px; top:455px; width:130px; height:20px; font-family:굴림; border-style:none; ">
  402. <choices>
  403. <item>
  404. <label>예</label>
  405. <value>Y</value>
  406. </item>
  407. <item>
  408. <label>아니요</label>
  409. <value>N</value>
  410. </item>
  411. </choices>
  412. </select1>
  413. <caption id="caption54" style="left:567px; top:475px; width:100px; height:20px; font-family:굴림; ">있다면?(이유)</caption>
  414. <input id="ipt_mealrmk" ref="/root/main/cnst/mealrmk" maxlength="40" style="left:657px; top:475px; width:520px; height:19px; font-family:굴림; "/>
  415. <caption id="caption55" style="left:567px; top:500px; width:515px; height:20px; font-family:굴림; ">4. 퇴원할때 수술부위 및 상처 치료에 대해 설명 들으셨습니까? (여부에 따라)</caption>
  416. <caption id="caption56" style="left:567px; top:550px; width:525px; height:20px; font-family:굴림; ">5. 입원 했을때 불편했던 점을 말씀해 주십시오.(시설, 사람, 환경, 식사, 시스템)</caption>
  417. <textarea id="tar_admindisp" ref="/root/main/cnst/admindisp" maxlength="500" style="left:567px; top:570px; width:610px; height:35px; font-family:굴림; vertical-align:top; "/>
  418. <caption id="caption57" style="left:567px; top:615px; width:525px; height:20px; font-family:굴림; ">6. 입원 했을때 좋았던 점을 말씀해 주십시오.</caption>
  419. <textarea id="tar_admgood" ref="/root/main/cnst/admgood" maxlength="500" style="left:567px; top:635px; width:610px; height:35px; font-family:굴림; vertical-align:top; "/>
  420. <caption id="caption58" style="left:567px; top:680px; width:525px; height:20px; font-family:굴림; ">7. 지금 더 안내 받고 싶은 것이 있다면 말씀해 주십시오.</caption>
  421. <textarea id="tar_addguide" ref="/root/main/cnst/addguide" maxlength="500" style="left:567px; top:700px; width:610px; height:35px; font-family:굴림; vertical-align:top; "/>
  422. <output id="opt_patnm" ref="/root/main/cnst/patnm" style="left:647px; top:190px; width:100px; height:19px; font-family:굴림; "/>
  423. <output id="opt_indt" ref="/root/main/cnst/indt" format="yyyy-mm-dd hh:nn" style="left:647px; top:210px; width:100px; height:19px; font-family:굴림; "/>
  424. <output id="opt_dschdt" ref="/root/main/cnst/dschdt" format="yyyy-mm-dd hh:nn" style="left:647px; top:230px; width:100px; height:19px; font-family:굴림; "/>
  425. <output id="opt_dschtypenm" ref="/root/main/cnst/dschtypenm" style="left:862px; top:250px; width:100px; height:19px; font-family:굴림; "/>
  426. <output id="opt_inpathnm" ref="/root/main/cnst/inpathnm" style="left:862px; top:210px; width:100px; height:19px; font-family:굴림; "/>
  427. <output id="opt_keepcnt" ref="/root/main/cnst/keepcnt" style="left:862px; top:230px; width:100px; height:19px; font-family:굴림; "/>
  428. <output id="opt_outgubn" ref="/root/main/cnst/dschaftmoveplcenm" style="left:662px; top:250px; width:100px; height:19px; font-family:굴림; "/>
  429. <output id="opt_orddeptnm" ref="/root/main/cnst/orddeptnm" style="left:1077px; top:210px; width:100px; height:19px; font-family:굴림; "/>
  430. <output id="opt_age" ref="/root/main/cnst/age" style="left:1077px; top:230px; width:100px; height:19px; font-family:굴림; "/>
  431. <select1 id="rdo_medicineyn" ref="/root/main/cnst/medicineyn" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:737px; top:365px; width:198px; height:20px; font-family:굴림; border-style:none; ">
  432. <choices>
  433. <item>
  434. <label>예</label>
  435. <value>Y</value>
  436. </item>
  437. <item>
  438. <label>아니요</label>
  439. <value>N</value>
  440. </item>
  441. <item>
  442. <label>해당 무</label>
  443. <value>X</value>
  444. </item>
  445. </choices>
  446. <script type="javascript" ev:event="xforms-value-changed">
  447. <![CDATA[
  448. if(rdo_medicineyn.value == 'X'){
  449. rdo_timeyn.disabled = true;
  450. rdo_explanyn.disabled = true;
  451. rdo_timeyn.value ="";
  452. rdo_explanyn.value = "";
  453. }else{
  454. rdo_timeyn.disabled = false;
  455. rdo_explanyn.disabled = false;
  456. }
  457. ]]>
  458. </script>
  459. </select1>
  460. <output id="output1" ref="/root/main/cnst/instcd" visibility="hidden" style="left:792px; top:5px; width:25px; height:19px; font-family:굴림; "/>
  461. <output id="output2" ref="/root/main/cnst/indd" visibility="hidden" style="left:822px; top:5px; width:25px; height:19px; font-family:굴림; "/>
  462. <output id="output3" ref="/root/main/cnst/cretno" visibility="hidden" style="left:852px; top:5px; width:25px; height:19px; font-family:굴림; "/>
  463. <caption id="caption1" class="tit_2" style="left:5px; top:100px; width:135px; height:13px; font-family:굴림; ">퇴원환자상담 정보</caption>
  464. <select id="chk_ivlineremoveyn" ref="/root/main/cnst/ivlineremoveyn" overflow="visible" appearance="full" cellspacing="25" cols="5" style="left:567px; top:525px; width:190px; height:20px; font-family:굴림; border-style:none; ">
  465. <choices>
  466. <item>
  467. <label>IV line 제거 및 이상상태 유,무</label>
  468. <value>Y</value>
  469. </item>
  470. </choices>
  471. </select>
  472. <select id="chk_chemoportyn" ref="/root/main/cnst/chemoportyn" overflow="visible" appearance="full" cellspacing="25" cols="5" style="left:762px; top:525px; width:90px; height:20px; font-family:굴림; border-style:none; ">
  473. <choices>
  474. <item>
  475. <label>Chemoport</label>
  476. <value>Y</value>
  477. </item>
  478. </choices>
  479. </select>
  480. <select id="chk_drainyn" ref="/root/main/cnst/drainyn" overflow="visible" appearance="full" cellspacing="25" cols="5" style="left:857px; top:525px; width:55px; height:20px; font-family:굴림; border-style:none; ">
  481. <choices>
  482. <item>
  483. <label>Drain</label>
  484. <value>Y</value>
  485. </item>
  486. </choices>
  487. </select>
  488. <select id="chk_colostomysiteyn" ref="/root/main/cnst/colostomysiteyn" overflow="visible" appearance="full" cellspacing="25" cols="5" style="left:917px; top:525px; width:105px; height:20px; font-family:굴림; border-style:none; ">
  489. <choices>
  490. <item>
  491. <label>colostomy site</label>
  492. <value>Y</value>
  493. </item>
  494. </choices>
  495. </select>
  496. <select id="chk_stomayn" ref="/root/main/cnst/stomayn" overflow="visible" appearance="full" cellspacing="25" cols="5" style="left:1027px; top:525px; width:85px; height:20px; font-family:굴림; border-style:none; ">
  497. <choices>
  498. <item>
  499. <label>stoma 관리</label>
  500. <value>Y</value>
  501. </item>
  502. </choices>
  503. </select>
  504. <caption id="cpt_textbox" style="left:572px; top:70px; width:498px; height:85px; font-family:굴림; line-spacing:7; "/>
  505. <select1 id="cmb_deptcd" ref="/root/main/cnst/deptcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:647px; top:40px; width:100px; height:19px; font-family:굴림; ">
  506. <choices>
  507. <itemset nodeset="/root/init/dept/dept">
  508. <label ref="depthngnm"/>
  509. <value ref="deptcd"/>
  510. </itemset>
  511. </choices>
  512. </select1>
  513. <bool id="bool1" checkvalue="Y,N" ref="/root/main/cnst/actstat" style="left:562px; top:740px; width:25px; height:20px; font-family:굴림; "/>
  514. <caption id="caption2" style="left:587px; top:740px; width:60px; height:20px; font-family:굴림; ">처리 완료</caption>
  515. <output id="opt_actstatflag" ref="/root/main/cond/actstatflag" visibility="hidden" style="left:520px; top:0px; width:25px; height:19px; font-family:굴림; "/>
  516. <button id="btn_ininfo" class="btn2_letter4" style="left:1112px; top:80px; width:64px; height:19px; font-family:굴림; ">
  517. <caption>입원정보</caption>
  518. <script type="javascript" ev:event="DOMActivate">
  519. <![CDATA[
  520. var instcd = model.getValue("/root/main/cnst/instcd");
  521. var indd = model.getValue("/root/main/cnst/indd");
  522. if(instcd == "") {
  523. messageBox("환자를 선택해주십시오.", "I");
  524. return;
  525. }
  526. var inrecflag = model.getValue(opt_inrecflag.attribute("ref"));
  527. if( inrecflag == "01"){ // 병동
  528. if(instcd == "032" || indd < "20150402" ){
  529. open("SMMNW03100",1,50,250);
  530. }else{
  531. open("SMMNW04100",1,50,250);
  532. }
  533. }else if( inrecflag == "02"){ // 정신과
  534. open("SMMNW03400",1,50,250);
  535. }else if( inrecflag == "03"){ // 산모
  536. open("SMMNN00300",1,50,250);
  537. }else if( inrecflag == "04"){ // 소아청소년
  538. open("SMMNW03200",1,50,250);
  539. }else if( inrecflag == "05"){ // BMT
  540. open("SMMNW03500",1,50,250);
  541. }else if( inrecflag == "06" || inrecflag == "07" ){ // 신생아
  542. open("SMMNN00400",1,50,250);
  543. }else if( inrecflag == "10"){ // 응급
  544. open("SMMNE04300",1,50,250);
  545. }else {
  546. messageBox("간호정보 조사지가 없습니다.", "I");
  547. return;
  548. }
  549. ]]>
  550. </script>
  551. </button>
  552. <button id="btn_dschinfo" class="btn2_letter4" style="left:1112px; top:105px; width:64px; height:19px; font-family:굴림; ">
  553. <caption>퇴원정보</caption>
  554. <script type="javascript" ev:event="DOMActivate">
  555. <![CDATA[
  556. if(model.getValue("/root/main/cnst/instcd") == "") {
  557. messageBox("환자를 선택해주십시오.", "I");
  558. return;
  559. }
  560. var dschrecflag = model.getValue(opt_dschrecflag.attribute("ref"));
  561. if( dschrecflag == "01"){ // 병동
  562. open("SMMNW03600",1,50,250);
  563. }else if( dschrecflag == "02"){ // 소아
  564. open("SMMNW05800",1,50,250);
  565. }else if( dschrecflag == "03"){ // 정신과
  566. open("SMMNW05900",1,50,250);
  567. }else if( dschrecflag == "04"){ // BMT
  568. open("SMMNW03800",1,50,250);
  569. }else if( dschrecflag == "05"){ // 산모
  570. open("SMMNN00500",1,50,250);
  571. }else if( dschrecflag == "06"){ // 신생아
  572. open("SMMNN00600",1,50,250);
  573. }else {
  574. messageBox("퇴원정보 조사지가 없습니다.", "I");
  575. return;
  576. }
  577. ]]>
  578. </script>
  579. </button>
  580. <output id="opt_inrecflag" ref="/root/main/cnst/inrecflag" visibility="hidden" style="left:882px; top:5px; width:25px; height:19px; font-family:굴림; "/>
  581. <output id="opt_dschrecflag" ref="/root/main/cnst/dschrecflag" visibility="hidden" style="left:912px; top:5px; width:25px; height:19px; font-family:굴림; "/>
  582. <output id="opt_ordtype" ref="/root/main/cnst/ordtype" visibility="hidden" style="left:942px; top:5px; width:25px; height:19px; font-family:굴림; "/>
  583. <output id="opt_dschdd" ref="/root/main/cnst/dschdd" visibility="hidden" style="left:972px; top:5px; width:25px; height:19px; font-family:굴림; "/>
  584. <select id="checkbox1" ref="/root/main/cnst/nothingyn" overflow="visible" appearance="full" style="left:1115px; top:525px; width:60px; height:20px; border-style:none; ">
  585. <choices>
  586. <item>
  587. <label>해당 무</label>
  588. <value>Y</value>
  589. </item>
  590. </choices>
  591. </select>
  592. <button id="btn_record" class="btn2_letter6" style="left:1090px; top:130px; width:86px; height:19px; font-family:굴림; ">
  593. <caption>통합기록조회</caption>
  594. <script type="javascript" ev:event="DOMActivate">
  595. <![CDATA[
  596. var pid = model.getValue("/root/main/cnst/pid");
  597. if(model.getValue("/root/main/cnst/instcd") == "") {
  598. messageBox("환자를 선택해주십시오.", "I");
  599. return;
  600. }
  601. setParameter("SMMRI00400_param_pid", pid);
  602. open("SMMRI00400");
  603. ]]>
  604. </script>
  605. </button>
  606. <button id="btn_zoom" class="btn5_letter4" style="left:485px; top:95px; width:64px; height:19px; ">
  607. <caption>확대하기</caption>
  608. <script type="javascript" ev:event="DOMActivate">
  609. <![CDATA[
  610. if ( btn_zoom.attribute("text") == "확대하기" ) {
  611. btn_zoom.attribute("text") = "축소하기";
  612. grd_cnstinfo.attribute("left") = "0";
  613. grd_cnstinfo.attribute("width") = "1190";
  614. } else {
  615. btn_zoom.attribute("text") = "확대하기";
  616. grd_cnstinfo.attribute("left") = "0";
  617. grd_cnstinfo.attribute("width") = "550";
  618. }
  619. model.refresh();
  620. ]]>
  621. </script>
  622. </button>
  623. <datagrid id="grd_cnstinfo" nodeset="/root/main/cnstinfo/cnstlist" visibility="visible" caption="환자번호^이름^성별/나이^상태^입원일자^퇴원일자^사망등록여부^퇴원구분^병동^병실^재원일수^진료과^입원경로^퇴원경로^instcd^indd^cretno^ordtype^dschdd^조사자^조사자^조사자^본인/보호자구분^퇴원 후 사망여부^퇴원 후 건강상태^건강상태이유^퇴원 약 복용여부^약시간여부^약설명여부^식사불편여부^식사불편이유^치료에대한설명^치료에대한설명^치료에대한설명^치료에대한설명^치료에대한설명^치료에대한설명^입원시불편한점^입원시좋았던점^추가안내받고싶은점^inrecflag^dschrecflag^dschrecflag|환자번호^이름^성별/나이^상태^입원일자^퇴원일자^사망등록여부^퇴원구분^병동^병실^재원일수^진료과^입원경로^퇴원경로^instcd^indd^cretno^ordtype^dschdd^병동^구분^이름^본인/보호자구분^퇴원 후 사망여부^퇴원 후 건강상태^건강상태이유^퇴원 약 복용여부^약시간여부^약설명여부^식사불편여부^식사불편이유^IV line remove^Chemoport^Drain^Colostomy site^Stoma 관리^해당 무^입원시불편한점^입원시좋았던점^추가안내받고싶은점^inrecflag^dschrecflag^inrecflag^dschrecflag" colsep="^" colwidth="58, 63, 60, 57, 110, 110, 59, 76, 88, 52, 31, 100, 87, 87, 42, 42, 42, 51, 49, 85, 72, 77, 72, 74, 55, 100, 57, 43, 49, 55, 108, 88, 70, 40, 97, 70, 55, 120, 116, 116, 100, 100" explorerbar="sort" frozencols="2" mergecellsfixedrows="bycolrec" rowsep="2" ref="/root/main/cnstinfo/cnstlist" style="left:0px; top:120px; width:550px; height:640px; font-family:굴림; vertical-align:middle; ">
  624. <col ref="pid" style="text-align:center; "/>
  625. <col ref="patnm" style="text-align:center; "/>
  626. <col ref="age" style="text-align:center; "/>
  627. <col disabled="true" ref="actstat" type="combo" style="text-align:center; ">
  628. <choices>
  629. <item>
  630. <label>미진행</label>
  631. <value>M</value>
  632. </item>
  633. <item>
  634. <label>진행</label>
  635. <value>N</value>
  636. </item>
  637. <item>
  638. <label>완료</label>
  639. <value>Y</value>
  640. </item>
  641. </choices>
  642. </col>
  643. <col ref="indt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  644. <col ref="dschdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  645. <col ref="deathinsertyn" style="text-align:center; "/>
  646. <col ref="dschtypenm" style="left:471px; top:43px; width:89px; height:23px; text-align:center; "/>
  647. <col disabled="true" ref="wardcd" type="combo" style="text-align:center; ">
  648. <choices>
  649. <itemset nodeset="/root/init/dept/dept">
  650. <label ref="depthngnm"/>
  651. <value ref="deptcd"/>
  652. </itemset>
  653. </choices>
  654. </col>
  655. <col ref="roomcd" style="text-align:center; "/>
  656. <col ref="keepcnt" style="text-align:center; "/>
  657. <col ref="orddeptnm" style="text-align:center; "/>
  658. <col ref="inpathnm" style="text-align:center; "/>
  659. <col ref="dschaftmoveplcenm" style="text-align:center; "/>
  660. <col ref="instcd" visibility="hidden"/>
  661. <col ref="indd" visibility="hidden"/>
  662. <col ref="cretno" visibility="hidden"/>
  663. <col ref="ordtype" visibility="hidden"/>
  664. <col ref="dschdd" visibility="hidden"/>
  665. <col disabled="true" ref="deptcd" type="combo" style="text-align:center; ">
  666. <choices>
  667. <itemset nodeset="/root/hidden/deptcd/dept">
  668. <label ref="depthngnm"/>
  669. <value ref="deptcd"/>
  670. </itemset>
  671. </choices>
  672. </col>
  673. <col disabled="true" ref="intvflag" type="combo" style="text-align:center; ">
  674. <choices>
  675. <item>
  676. <label>수간호사</label>
  677. <value>A</value>
  678. </item>
  679. <item>
  680. <label>간호사</label>
  681. <value>B</value>
  682. </item>
  683. </choices>
  684. </col>
  685. <col ref="userid" style="text-align:center; "/>
  686. <col disabled="true" ref="guardiangubn" type="combo" style="left:1446px; top:43px; width:72px; height:23px; text-align:center; ">
  687. <choices>
  688. <item>
  689. <label>환자</label>
  690. <value>A</value>
  691. </item>
  692. <item>
  693. <label>보호자</label>
  694. <value>B</value>
  695. </item>
  696. </choices>
  697. </col>
  698. <col disabled="true" ref="deathyn" type="combo" style="text-align:center; ">
  699. <choices>
  700. <item>
  701. <label>퇴원후사망</label>
  702. <value>Y</value>
  703. </item>
  704. </choices>
  705. </col>
  706. <col disabled="true" ref="healthstat" type="combo" style="text-align:center; ">
  707. <choices>
  708. <item>
  709. <label>양호</label>
  710. <value>A</value>
  711. </item>
  712. <item>
  713. <label>보통</label>
  714. <value>B</value>
  715. </item>
  716. <item>
  717. <label>나쁘다</label>
  718. <value>C</value>
  719. </item>
  720. </choices>
  721. </col>
  722. <col ref="statrmk"/>
  723. <col disabled="true" ref="medicineyn" type="combo" style="text-align:center; ">
  724. <choices>
  725. <item>
  726. <label>예</label>
  727. <value>Y</value>
  728. </item>
  729. <item>
  730. <label>아니요</label>
  731. <value>N</value>
  732. </item>
  733. <item>
  734. <label>해당 무</label>
  735. <value>X</value>
  736. </item>
  737. </choices>
  738. </col>
  739. <col disabled="true" ref="timeyn" type="combo" style="text-align:center; ">
  740. <choices>
  741. <item>
  742. <label>예</label>
  743. <value>Y</value>
  744. </item>
  745. <item>
  746. <label>아니요</label>
  747. <value>N</value>
  748. </item>
  749. </choices>
  750. </col>
  751. <col disabled="true" ref="explanyn" type="combo" style="text-align:center; ">
  752. <choices>
  753. <item>
  754. <label>예</label>
  755. <value>Y</value>
  756. </item>
  757. <item>
  758. <label>아니요</label>
  759. <value>N</value>
  760. </item>
  761. </choices>
  762. </col>
  763. <col disabled="true" ref="mealyn" type="combo" style="text-align:center; ">
  764. <choices>
  765. <item>
  766. <label>예</label>
  767. <value>Y</value>
  768. </item>
  769. <item>
  770. <label>아니요</label>
  771. <value>N</value>
  772. </item>
  773. </choices>
  774. </col>
  775. <col ref="mealrmk"/>
  776. <col ref="ivlineremoveyn" style="text-align:center; "/>
  777. <col ref="chemoportyn" style="text-align:center; "/>
  778. <col ref="drainyn" style="text-align:center; "/>
  779. <col ref="colostomysiteyn" style="text-align:center; "/>
  780. <col ref="stomayn" style="text-align:center; "/>
  781. <col ref="nothingyn" style="text-align:center; "/>
  782. <col ref="admindisp"/>
  783. <col ref="admgood"/>
  784. <col ref="addguide"/>
  785. <col ref="inrecflag" visibility="hidden"/>
  786. <col ref="dschrecflag" visibility="hidden"/>
  787. <script type="javascript" ev:event="ondblclick">
  788. <![CDATA[
  789. var row= grd_cnstinfo.row -1;
  790. var txtbox = "";
  791. var instnm=getUserInfo("dutplceinstnm");
  792. var wardnm=getUserInfo("dutplcenm");
  793. var nursenm=getUserInfo("usernm");
  794. if(grd_cnstinfo.isCell(event.target) && grd_cnstinfo.mouseRow >= grd_cnstinfo.fixedrows){
  795. var ordtype = model.getValue(grd_cnstinfo.nodeset + "[" + row + "]/ordtype");
  796. var param = ordtype + "▦" + model.getValue(grd_cnstinfo.nodeset + "[" + row + "]/pid")
  797. + "▦" + model.getValue(grd_cnstinfo.nodeset + "[" + row + "]/indd")
  798. + "▦" + model.getValue(grd_cnstinfo.nodeset + "[" + row + "]/cretno")
  799. + "▦" + model.getValue(grd_cnstinfo.nodeset + "[" + row + "]/instcd")
  800. + "▦" + model.getValue(grd_cnstinfo.nodeset + "[" + row + "]/dschdd") ;
  801. setParameter("condparam", param);
  802. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  803. model.copyNode("/root/main/cnst", grd_cnstinfo.nodeset + "[" + row + "]");
  804. if(model.getValue("/root/main/cnst/userid") == ""){
  805. model.setValue(ipt_userid.attribute("ref") , nursenm);
  806. }
  807. if(model.getValue("/root/main/cnst/deptcd") == "") {
  808. model.setValue(cmb_deptcd.attribute("ref"), getUserInfo("dutplcecd"));
  809. }
  810. if(model.getValue("/root/main/cnst/medicineyn") == 'X'){
  811. rdo_timeyn.disabled = true;
  812. rdo_explanyn.disabled = true;
  813. rdo_timeyn.value ="";
  814. rdo_explanyn.value = "";
  815. }else{
  816. rdo_timeyn.disabled = false;
  817. rdo_explanyn.disabled = false;
  818. }
  819. txtbox = "안녕 하십니까?\n저는 "+ instnm +" "+wardnm+" (수)간호사 "+nursenm+"입니다.\n" + grd_cnstinfo.valueMatrix(grd_cnstinfo.row, grd_cnstinfo.colRef("patnm")) +"님 께서 퇴원 후 생활에 대해 몇가지 질문 드리고 궁금한 점에 대해 도움을 주고자\n연락을 드렸습니다. (전화 가능하신지요?)";
  820. cpt_textbox.value = txtbox;
  821. model.refresh();
  822. }
  823. ]]>
  824. </script>
  825. </datagrid>
  826. <line id="line4" class="line_1" style="x1:0px; y1:115px; x2:550px; y2:115px; font-family:굴림; "/>
  827. </group>
  828. </xhtml:body>
  829. </xhtml:html>