SMADC02100_복약지도환자조회.xrw 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906
  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. <patinfo>
  11. <patlist>
  12. <tmedcnst/>
  13. <req/>
  14. <stat/>
  15. <replpharmst/>
  16. <inyn/>
  17. <wardnm/>
  18. <roomcd/>
  19. <drugno/>
  20. <orddeptnm/>
  21. <orddeptcd/>
  22. <orddrnm/>
  23. <orddrid/>
  24. <fsexamflag/>
  25. <pid/>
  26. <patnm/>
  27. <agesex/>
  28. <prcpdd/>
  29. <prtlnm/>
  30. <anticncrdayno/>
  31. <orddd/>
  32. <lastcnstdd/>
  33. <fstdrugcd/>
  34. <hd_pod/>
  35. <dschstat/>
  36. <dschdd/>
  37. <diagnm/>
  38. <srchflag/>
  39. <cretno/>
  40. <prcpgenrflag/>
  41. <exptypeyn/>
  42. <prntdt/>
  43. <difflagcd/>
  44. <wardcd/>
  45. <brthdd/>
  46. </patlist>
  47. </patinfo>
  48. <tmedinfo>
  49. <tmedlist/>
  50. </tmedinfo>
  51. <autoprntinfo>
  52. <aprntlist/>
  53. </autoprntinfo>
  54. </main>
  55. <send>
  56. <srchinfo/>
  57. <deptinfo>
  58. <deptflag/>
  59. </deptinfo>
  60. <orddrinfo>
  61. <deptcd/>
  62. <userflag/>
  63. </orddrinfo>
  64. <tmedinfo>
  65. <tmedlisth/>
  66. <tmedlistd/>
  67. </tmedinfo>
  68. </send>
  69. <init>
  70. <orddept>
  71. <dept>
  72. <deptcd/>
  73. <deptnm/>
  74. </dept>
  75. </orddept>
  76. <deptlist>
  77. <ward>
  78. <deptcd/>
  79. <deptnm/>
  80. </ward>
  81. </deptlist>
  82. <orddrlist>
  83. <user>
  84. <userid/>
  85. <usernm/>
  86. </user>
  87. </orddrlist>
  88. <difflagcd>1</difflagcd>
  89. <baseinfo>
  90. <tmedcnst>
  91. <A0036/>
  92. </tmedcnst>
  93. </baseinfo>
  94. </init>
  95. <hidden>
  96. <chkitem>
  97. <count/>
  98. </chkitem>
  99. <receivedrugcd>/root/temp/srchinfo/speccode</receivedrugcd>
  100. </hidden>
  101. <temp>
  102. <printlabel>
  103. <prtgubun/>
  104. <prthosinhosoutflag/>
  105. <prtprcpclscd/>
  106. <prttmedcnst/>
  107. <prtorddeptcd/>
  108. <prtwardroom/>
  109. <prtorddrid/>
  110. </printlabel>
  111. <srchinfo>
  112. <prcpddstart/>
  113. <prcpddend/>
  114. <srchflag/>
  115. <srchflagall/>
  116. <newdrugflag/>
  117. <hosinhosoutflag/>
  118. <hosinhosoutflagall/>
  119. <prcpclscd/>
  120. <tmedcnst/>
  121. <speccode/>
  122. <orddeptcd/>
  123. <wardcd/>
  124. <ward/>
  125. <orddrid/>
  126. <wardnm/>
  127. <pid/>
  128. <tmedprntdt/>
  129. <sortcol/>
  130. <drugno/>
  131. <prtflag>|3</prtflag>
  132. <autoprntflag/>
  133. <cnstcnts/>
  134. <autoprntnurseflag/>
  135. <outfirst/>
  136. </srchinfo>
  137. <receivedata>
  138. <receiveref/>
  139. <srchflag/>
  140. <srchcnts/>
  141. <drugkind/>
  142. </receivedata>
  143. <prtnlist>
  144. <prtnlist/>
  145. </prtnlist>
  146. <durginput/>
  147. <drugindata>
  148. <pid/>
  149. <sna/>
  150. <hngnm/>
  151. <roomcd/>
  152. <reqdeptnm/>
  153. <requsernm/>
  154. <prcpflag/>
  155. <recvdeptnm/>
  156. <recvusernm/>
  157. <orddd/>
  158. <indd/>
  159. <fsexamflag/>
  160. <ioflag/>
  161. <cretno/>
  162. </drugindata>
  163. </temp>
  164. </root>
  165. </instance>
  166. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  167. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  168. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  169. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  170. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  171. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  172. <script type="javascript" src="../../../ast/pharmacyconsultweb/js/SMADC02100.js"/>
  173. <script type="javascript" ev:event="xforms-ready">
  174. <![CDATA[
  175. document.controls("Base64_Preview1").attribute("visibility") = "hidden";
  176. fInit();
  177. makeReportPreview("5","10", "350","370","grp_report");
  178. ]]>
  179. </script>
  180. <submission id="TRADC02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptinfo/deptflag" replace="instance" resultref="/root/init/orddept"/>
  181. <submission id="TRADC02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/patinfo"/>
  182. <submission id="TRADC02102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptinfo/deptflag" replace="instance" resultref="/root/init/deptlist"/>
  183. <submission id="TRADC02104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/orddrinfo" replace="instance" resultref="/root/init/orddrlist"/>
  184. <submission id="TRADC02105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmedinfo/tmedlisth" replace="instance" resultref="/root/main/tmedinfo"/>
  185. <submission id="TXADC02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmedinfo" replace="instance" resultref="/root/hidden/chkitem"/>
  186. <submission id="TRADB00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/baseinfo/tmedcnst"/>
  187. </model>
  188. </xhtml:head>
  189. <xhtml:body guideline="1,1209;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  190. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  191. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:310px; height:14px; ">복약 지도 환자 조회 ver.2.1 20090713</caption>
  192. </group>
  193. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  194. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:2px; top:711px; width:268px; height:30px; background-color:transparent; border-color:#7cbbdd; border-style:solid; "/>
  195. <caption id="caption51" visibility="hidden" style="left:975px; top:720px; width:50px; height:14px; vertical-align:middle; ">퇴원예고</caption>
  196. <caption id="caption53" class="color_4" visibility="hidden" style="left:1037px; top:719px; width:15px; height:15px; vertical-align:middle; "/>
  197. <group id="group2" style="left:0px; top:5px; width:1195px; height:120px; ">
  198. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:120px; background-color:#fffbf2; border-color:#ffd799; "/>
  199. <button id="button4" class="icon_search" style="left:610px; top:75px; width:16px; height:16px; ">
  200. <caption/>
  201. <script type="javascript" ev:event="DOMActivate">
  202. <![CDATA[
  203. if(chk_ward.visible){
  204. chk_ward.visible = false;
  205. }else {
  206. chk_ward.visible = true;
  207. }
  208. model.refresh();
  209. ]]>
  210. </script>
  211. </button>
  212. <button id="button5" class="icon_search" visibility="hidden" style="left:845px; top:50px; width:16px; height:16px; ">
  213. <caption/>
  214. </button>
  215. <caption id="caption1" class="search_name" style="left:15px; top:10px; width:72px; height:17px; ">일자 :</caption>
  216. <line id="line13" style="x1:1115px; y1:10px; x2:1115px; y2:75px; border-color:#ffe4bb; border-left-style:solid; "/>
  217. <select id="checkbox4" ref="/root/chk1" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="3" rows="1" style="left:750px; top:10px; width:150px; height:15px; border-style:none; ">
  218. <choices>
  219. <item>
  220. <label>의뢰</label>
  221. <value>1</value>
  222. </item>
  223. <item>
  224. <label>미의뢰</label>
  225. <value>2</value>
  226. </item>
  227. <item>
  228. <label>전체</label>
  229. <value>3</value>
  230. </item>
  231. </choices>
  232. </select>
  233. <caption id="caption2" class="search_name" style="left:330px; top:10px; width:72px; height:17px; ">구분 :</caption>
  234. <select id="checkbox5" ref="/root/chk2" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="3" rows="1" style="left:915px; top:10px; width:150px; height:15px; border-style:none; ">
  235. <choices>
  236. <item>
  237. <label>회신</label>
  238. <value>1</value>
  239. </item>
  240. <item>
  241. <label>미회신</label>
  242. <value>2</value>
  243. </item>
  244. <item>
  245. <label>전체</label>
  246. <value>3</value>
  247. </item>
  248. </choices>
  249. </select>
  250. <button id="button61" class="icon_search" style="left:610px; top:50px; width:16px; height:16px; ">
  251. <caption/>
  252. <script type="javascript" ev:event="DOMActivate">
  253. <![CDATA[
  254. model.setValue("/root/temp/receivedata/receiveref", model.getValue("/root/hidden/receivedrugcd"));
  255. model.setValue("/root/temp/receivedata/srchflag", "");
  256. model.setValue("/root/temp/receivedata/srchcnts", "");
  257. model.setValue("/root/temp/receivedata/drugkind","");
  258. // 약품코드 검색
  259. modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata");
  260. ]]>
  261. </script>
  262. </button>
  263. <caption id="caption3" class="search_name" style="left:640px; top:75px; width:86px; height:17px; ">진료과 :</caption>
  264. <button id="button9" class="icon_search" visibility="hidden" style="left:1070px; top:50px; width:16px; height:16px; ">
  265. <caption/>
  266. </button>
  267. <caption id="caption4" class="search_name" style="left:875px; top:75px; width:73px; height:17px; ">주치의 :</caption>
  268. <select1 id="radio1" ref="/root/optGu" class="radio_search" visibility="hidden" appearance="full" cols="2" rows="1" overflow="hidden" style="left:1095px; top:70px; width:85px; height:20px; border-style:none; ">
  269. <choices>
  270. <item>
  271. <label>AND</label>
  272. <value>1</value>
  273. </item>
  274. <item>
  275. <label>OR</label>
  276. <value>2</value>
  277. </item>
  278. </choices>
  279. </select1>
  280. <caption id="caption5" class="search_name" style="left:330px; top:75px; width:70px; height:17px; ">병 동 :</caption>
  281. <caption id="caption6" class="search_name" style="left:405px; top:50px; width:89px; height:17px; ">특정코드 :</caption>
  282. <caption id="caption7" class="search_name" style="left:15px; top:50px; width:89px; height:17px; ">복약분류 :</caption>
  283. <caption id="caption8" class="search_name" style="left:638px; top:50px; width:88px; height:17px; ">팀교육 :</caption>
  284. <caption id="caption9" class="search_name" style="left:875px; top:50px; width:83px; height:17px; ">상병군 :</caption>
  285. <input id="input4" class="input_search" style="left:725px; top:50px; width:108px; height:19px; ">
  286. <script type="javascript" ev:event="onkeydown">
  287. <![CDATA[
  288. inputEnterKey("btn_sea","DOMActivate");
  289. ]]>
  290. </script>
  291. </input>
  292. <input id="input6" class="input_search" style="left:957px; top:50px; width:108px; height:19px; ">
  293. <script type="javascript" ev:event="onkeydown">
  294. <![CDATA[
  295. inputEnterKey("btn_sea","DOMActivate");
  296. ]]>
  297. </script>
  298. </input>
  299. <button id="btn_sea" class="btn1_letter2" style="left:1125px; top:35px; width:56px; height:22px; ">
  300. <caption>조회</caption>
  301. <script type="javascript" ev:event="DOMActivate">
  302. <![CDATA[
  303. fSrchPatList();
  304. fPrntCnt(); //2008-11-25 출력건수 조회
  305. ]]>
  306. </script>
  307. </button>
  308. <select id="chk_srchflag" ref="/root/temp/srchinfo/srchflag" class="checkbox_search" overflow="visible" appearance="full" cols="4" rows="1" sep="|" style="left:395px; top:10px; width:135px; height:15px; border-style:none; ">
  309. <choices>
  310. <item>
  311. <label>재원</label>
  312. <value>1</value>
  313. </item>
  314. <item>
  315. <label>퇴원</label>
  316. <value>2</value>
  317. </item>
  318. <item>
  319. <label>외래</label>
  320. <value>3</value>
  321. </item>
  322. </choices>
  323. <script type="javascript" ev:event="xforms-value-changed">
  324. <![CDATA[
  325. fChkSrchflag();
  326. ]]>
  327. </script>
  328. </select>
  329. <select id="chk_srchflagall" ref="/root/temp/srchinfo/srchflagall" overflow="visible" appearance="full" style="left:527px; top:10px; width:49px; height:15px; border-style:none; ">
  330. <choices>
  331. <item>
  332. <label>전체</label>
  333. <value>Y</value>
  334. </item>
  335. </choices>
  336. <script type="javascript" ev:event="xforms-value-changed">
  337. <![CDATA[
  338. fChkSrchflagAll();
  339. ]]>
  340. </script>
  341. </select>
  342. <select id="chk_hosinhosoutflag" ref="/root/temp/srchinfo/hosinhosoutflag" class="checkbox_search" overflow="visible" appearance="full" cols="3" rows="1" sep="|" style="left:590px; top:10px; width:95px; height:15px; border-style:none; ">
  343. <choices>
  344. <item>
  345. <label>원내</label>
  346. <value>I</value>
  347. </item>
  348. <item>
  349. <label>원외</label>
  350. <value>O</value>
  351. </item>
  352. </choices>
  353. </select>
  354. <select id="chk_hosinhosoutflagall" ref="/root/temp/srchinfo/hosinhosoutflagall" overflow="visible" appearance="full" style="left:685px; top:10px; width:49px; height:15px; border-style:none; ">
  355. <choices>
  356. <item>
  357. <label>전체</label>
  358. <value>Y</value>
  359. </item>
  360. </choices>
  361. <script type="javascript" ev:event="onclick">
  362. <![CDATA[
  363. var allflag = model.getValue("/root/temp/srchinfo/hosinhosoutflagall");
  364. if(allflag == "Y"){
  365. model.setValue("/root/temp/srchinfo/hosinhosoutflag","I|O");
  366. }else{
  367. model.setValue("/root/temp/srchinfo/hosinhosoutflag","");
  368. }
  369. model.refresh();
  370. ]]>
  371. </script>
  372. </select>
  373. <select id="chk_prcpclscd" ref="/root/temp/srchinfo/prcpclscd" class="checkbox_search" overflow="visible" appearance="full" cols="4" rows="1" sep="|" style="left:590px; top:30px; width:265px; height:15px; border-style:none; ">
  374. <choices>
  375. <item>
  376. <label>일반약(</label>
  377. <value>A2</value>
  378. </item>
  379. <item>
  380. <label>외용제)</label>
  381. <value>A4</value>
  382. </item>
  383. <item>
  384. <label>항암주사</label>
  385. <value>D</value>
  386. </item>
  387. <item>
  388. <label>일반주사</label>
  389. <value>A6</value>
  390. </item>
  391. </choices>
  392. </select>
  393. <select id="chk_tmedcnst" ref="/root/temp/srchinfo/tmedcnst" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="7" rows="1" sep="|" style="left:30px; top:30px; width:285px; height:15px; border-style:none; ">
  394. <choices>
  395. <item>
  396. <label>항암</label>
  397. <value>1</value>
  398. </item>
  399. <item>
  400. <label>결핵</label>
  401. <value>2</value>
  402. </item>
  403. <item>
  404. <label>이식</label>
  405. <value>B</value>
  406. </item>
  407. <item>
  408. <label>흡입기</label>
  409. <value>3</value>
  410. </item>
  411. <item>
  412. <label>HIV</label>
  413. <value>4</value>
  414. </item>
  415. <item>
  416. <label>파킨슨</label>
  417. <value>5</value>
  418. </item>
  419. </choices>
  420. </select>
  421. <input id="ipt_speccode" ref="/root/temp/srchinfo/speccode" class="input_search" style="left:497px; top:50px; width:108px; height:19px; ">
  422. <script type="javascript" ev:event="onkeydown">
  423. <![CDATA[
  424. inputEnterKey("btn_sea","DOMActivate");
  425. ]]>
  426. </script>
  427. </input>
  428. <select1 id="cbo_orddeptcd" ref="/root/temp/srchinfo/orddeptcd" class="combo_search" appearance="minimal" style="left:725px; top:75px; width:140px; height:19px; ">
  429. <choices>
  430. <itemset nodeset="/root/init/orddept/dept">
  431. <label ref="deptnm"/>
  432. <value ref="deptcd"/>
  433. </itemset>
  434. </choices>
  435. <script type="javascript" ev:event="xforms-value-changed">
  436. <![CDATA[
  437. model.setValue("/root/temp/srchinfo/orddrid",""); //2008-11-18 주치의 Clear어 안되는 현상이 있음.
  438. model.setValue("/root/send/orddrinfo/userflag", "03%");
  439. model.setValue("/root/send/orddrinfo/deptcd", model.getValue("/root/temp/srchinfo/orddeptcd"));
  440. submit("TRADC02104");
  441. model.makeValue("/root/init/orddrlist/user", model.getValue("/root/init/orddrlist/user")); //2008-11-18 진료과별 조회후 전체조회시 오류발생 추가
  442. astfAddCombo("/root/init/orddrlist", "user", "userid,usernm", ",");
  443. ]]>
  444. </script>
  445. </select1>
  446. <input id="ipt_wardcd" ref="/root/temp/srchinfo/wardcd" class="input_search" visibility="hidden" style="left:220px; top:50px; width:65px; height:19px; "/>
  447. <select1 id="cbo_orddrid" ref="/root/temp/srchinfo/orddrid" class="combo_search" appearance="minimal" style="left:957px; top:75px; width:108px; height:19px; ">
  448. <choices>
  449. <itemset nodeset="/root/init/orddrlist/user">
  450. <label ref="usernm"/>
  451. <value ref="userid"/>
  452. </itemset>
  453. </choices>
  454. </select1>
  455. <input id="ipt_prcpddstart" ref="/root/temp/srchinfo/prcpddstart" class="input_search" inputtype="date" style="left:105px; top:10px; width:110px; height:19px; text-align:center; "/>
  456. <input id="ipt_prcpddend" ref="/root/temp/srchinfo/prcpddend" class="input_search" inputtype="date" style="left:220px; top:10px; width:105px; height:19px; text-align:center; "/>
  457. <select1 id="rdo_newdrugflag" ref="/root/temp/srchinfo/newdrugflag" appearance="full" cols="2" overflow="visible" style="left:395px; top:30px; width:110px; height:20px; border-style:none; ">
  458. <choices>
  459. <item>
  460. <label>새처방</label>
  461. <value>1</value>
  462. </item>
  463. <item>
  464. <label>모두</label>
  465. <value>2</value>
  466. </item>
  467. </choices>
  468. </select1>
  469. <input id="ipt_wardnm" ref="/root/temp/srchinfo/wardnm" class="input_search" disabled="true" style="left:415px; top:74px; width:185px; height:19px; "/>
  470. <caption id="caption12" class="search_name" style="left:15px; top:98px; width:94px; height:17px; ">등록번호 :</caption>
  471. <input id="ipt_pid" ref="/root/temp/srchinfo/pid" class="input_search" style="left:110px; top:98px; width:140px; height:19px; ">
  472. <script type="javascript" ev:event="onkeydown">
  473. <![CDATA[
  474. inputEnterKey("btn_sea","DOMActivate");
  475. ]]>
  476. </script>
  477. </input>
  478. <caption id="caption15" class="search_name" visibility="visible" style="left:15px; top:77px; width:99px; height:17px; ">투약번호 :</caption>
  479. <input id="input1" ref="/root/temp/srchinfo/drugno" class="input_search" visibility="visible" style="left:110px; top:75px; width:105px; height:19px; ">
  480. <script type="javascript" ev:event="onkeydown">
  481. <![CDATA[
  482. inputEnterKey("btn_sea","DOMActivate");
  483. ]]>
  484. </script>
  485. </input>
  486. <select id="checkbox1" ref="/root/temp/srchinfo/prtflag" class="checkbox_search" overflow="visible" appearance="full" cols="4" rows="1" sep="|" style="left:915px; top:30px; width:150px; height:15px; border-style:none; ">
  487. <choices>
  488. <item>
  489. <label>출력</label>
  490. <value>1</value>
  491. </item>
  492. <item>
  493. <label>미출력</label>
  494. <value>2</value>
  495. </item>
  496. <item>
  497. <label>전체</label>
  498. <value>3</value>
  499. </item>
  500. </choices>
  501. </select>
  502. <select id="checkbox2" ref="/root/temp/srchinfo/tmedcnst" visibility="visible" overflow="visible" appearance="full" cellspacing="4" cols="5" style="left:105px; top:50px; width:100px; height:20px; border-style:none; ">
  503. <choices>
  504. <itemset nodeset="/root/init/baseinfo/tmedcnst/A0036">
  505. <label ref="cdnm"/>
  506. <value ref="cdid"/>
  507. </itemset>
  508. </choices>
  509. </select>
  510. <select id="checkbox3" ref="/root/temp/durginput" overflow="visible" appearance="full" style="left:330px; top:99px; width:100px; height:20px; border-style:none; ">
  511. <choices>
  512. <item>
  513. <label>복약지도등록</label>
  514. <value>Y</value>
  515. </item>
  516. </choices>
  517. </select>
  518. <caption id="caption17" class="search_name" style="left:640px; top:99px; width:150px; height:17px; ">복약지도의뢰 종류 :</caption>
  519. <select1 id="combo1" ref="/root/temp/srchinfo/cnstcnts" class="combo_search" appearance="minimal" style="left:785px; top:99px; width:145px; height:19px; ">
  520. <choices>
  521. <item>
  522. <label>전체</label>
  523. <value>all</value>
  524. </item>
  525. <item>
  526. <label>항암제</label>
  527. <value>1</value>
  528. </item>
  529. <item>
  530. <label>결핵</label>
  531. <value>2</value>
  532. </item>
  533. <item>
  534. <label>장기이식</label>
  535. <value>3</value>
  536. </item>
  537. <item>
  538. <label>흡입제</label>
  539. <value>4</value>
  540. </item>
  541. <item>
  542. <label>복막투석</label>
  543. <value>9</value>
  544. </item>
  545. <item>
  546. <label>HIV</label>
  547. <value>5</value>
  548. </item>
  549. <item>
  550. <label>파킨슨</label>
  551. <value>6</value>
  552. </item>
  553. <item>
  554. <label>퇴원</label>
  555. <value>7</value>
  556. </item>
  557. <item>
  558. <label>항응고제</label>
  559. <value>20</value>
  560. </item>
  561. <item>
  562. <label>기타</label>
  563. <value>8</value>
  564. </item>
  565. </choices>
  566. </select1>
  567. <select1 id="rdo_outfirst" ref="/root/temp/srchinfo/outfirst" appearance="full" cols="2" overflow="visible" style="left:498px; top:30px; width:90px; height:20px; border-style:none; ">
  568. <choices>
  569. <item>
  570. <label>전체</label>
  571. <value></value>
  572. </item>
  573. <item>
  574. <label>초진</label>
  575. <value>Y</value>
  576. </item>
  577. </choices>
  578. </select1>
  579. </group>
  580. <caption id="caption55" visibility="hidden" style="left:1055px; top:720px; width:50px; height:14px; vertical-align:middle; ">퇴원계산</caption>
  581. <caption id="caption35" class="color_9" visibility="hidden" style="left:1112px; top:719px; width:15px; height:15px; vertical-align:middle; "/>
  582. <caption id="caption36" visibility="hidden" style="left:1130px; top:720px; width:50px; height:14px; vertical-align:middle; ">퇴원수납</caption>
  583. <caption id="caption47" class="cell_2" style="left:7px; top:717px; width:70px; height:20px; vertical-align:middle; ">범 례</caption>
  584. <caption id="caption49" class="color_1" visibility="hidden" style="left:957px; top:719px; width:15px; height:15px; vertical-align:middle; "/>
  585. <datagrid id="grd_patlist" nodeset="/root/main/patinfo/patlist" caption="복약분류^의뢰^상태^회신약사^inyn^병동^병실^투약번호^과^orddeptcd^등록번호^환자명^생년월일^orddrid^A/S^적용일자^프로토콜명^D#^입원일^초재진^주치의^최종상담일^최초복용약^HD/POD^퇴원상태^퇴원일^상병명^prcpkindcd^cretno^prcpgenrflag^exptypeyn^ 출력일시^difflagcd^wardcd" colsep="^" colwidth="56, 49, 51, 62, 36, 86, 49, 60, 84, 100, 75, 84, 81, 100, 57, 81, 190, 29, 82, 56, 63, 80, 100, 70, 59, 82, 130, 100, 100, 100, 88, 100, 100, 100" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:127px; width:1194px; height:583px; ">
  586. <col ref="tmedcnst" visibility="hidden" style="text-align:center; "/>
  587. <col ref="req" visibility="hidden" style="text-align:center; "/>
  588. <col ref="stat" visibility="hidden" style="text-align:center; "/>
  589. <col ref="replpharmst" visibility="hidden" style="text-align:center; "/>
  590. <col ref="inyn" visibility="hidden" style="text-align:center; "/>
  591. <col ref="wardnm" style="text-align:center; "/>
  592. <col ref="roomcd" style="text-align:center; "/>
  593. <col ref="drugno" style="text-align:center; "/>
  594. <col ref="orddeptnm"/>
  595. <col ref="orddeptcd" visibility="hidden"/>
  596. <col ref="pid" style="text-align:center; "/>
  597. <col ref="patnm" style="text-align:center; "/>
  598. <col ref="brthdd" format="yyyy-mm-dd" style="text-align:center; "/>
  599. <col ref="orddrid" visibility="hidden"/>
  600. <col ref="agesex" style="text-align:center; "/>
  601. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  602. <col ref="prtlnm" visibility="hidden"/>
  603. <col ref="anticncrdayno" visibility="hidden"/>
  604. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  605. <col ref="fsexamflag" style="text-align:center; "/>
  606. <col ref="orddrnm"/>
  607. <col ref="lastcnstdd" format="yyyy-mm-dd" style="text-align:center; "/>
  608. <col ref="fstdrugcd"/>
  609. <col ref="hd_pod" style="text-align:center; "/>
  610. <col ref="dschstat" visibility="hidden" style="text-align:center; "/>
  611. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  612. <col ref="diagnm"/>
  613. <col ref="srchflag" visibility="hidden"/>
  614. <col ref="cretno" visibility="hidden"/>
  615. <col ref="prcpgenrflag" visibility="hidden"/>
  616. <col ref="exptypeyn" visibility="hidden"/>
  617. <col ref="prntdt" format="yyyy-mm-dd hh:mm"/>
  618. <col ref="prntdt" visibility="hidden"/>
  619. <col ref="wardcd" visibility="hidden"/>
  620. <script type="javascript" ev:event="ondblclick">
  621. <![CDATA[
  622. var druginput = model.getValue("/root/temp/durginput");
  623. if (druginput == 'Y') {
  624. if(grd_patlist.iscell(event.target) && grd_patlist.row != 0 ){
  625. model.makeValue("/root/temp/drugindata/pid", model.getValue("/root/main/patinfo/patlist[" + grd_patlist.row + "]/pid"));
  626. model.makeValue("/root/temp/drugindata/sna", model.getValue("/root/main/patinfo/patlist[" + grd_patlist.row + "]/agesex"));
  627. model.makeValue("/root/temp/drugindata/hngnm", model.getValue("/root/main/patinfo/patlist[" + grd_patlist.row + "]/patnm"));
  628. ////2015.10.5 김치국 추가
  629. model.makeValue("/root/temp/drugindata/wardnm", model.getValue("/root/main/patinfo/patlist[" + grd_patlist.row + "]/wardnm"));
  630. /////
  631. model.makeValue("/root/temp/drugindata/roomcd", model.getValue("/root/main/patinfo/patlist[" + grd_patlist.row + "]/roomcd"));
  632. model.makeValue("/root/temp/drugindata/reqdeptnm", model.getValue("/root/main/patinfo/patlist[" + grd_patlist.row + "]/orddeptnm"));
  633. model.makeValue("/root/temp/drugindata/requsernm", model.getValue("/root/main/patinfo/patlist[" + grd_patlist.row + "]/orddrnm"));
  634. model.makeValue("/root/temp/drugindata/orddd", model.getValue("/root/main/patinfo/patlist[" + grd_patlist.row + "]/prcpdd"));
  635. model.makeValue("/root/temp/drugindata/indd", model.getValue("/root/main/patinfo/patlist[" + grd_patlist.row + "]/orddd"));
  636. model.makeValue("/root/temp/drugindata/fsexamflag", model.getValue("/root/main/patinfo/patlist[" + grd_patlist.row + "]/fsexamflag"));
  637. var ioflag ="";
  638. var roomcd = model.getValue("/root/main/patinfo/patlist[" + grd_patlist.row + "]/roomcd");
  639. if (roomcd == "-" ) {
  640. ioflag = "O" ;
  641. } else {
  642. ioflag = "I" ;
  643. }
  644. model.makeValue("/root/temp/drugindata/ioflag", ioflag);
  645. model.makeValue("/root/temp/drugindata/cretno", model.getValue("/root/main/patinfo/patlist[" + grd_patlist.row + "]/cretno"));
  646. modal("SPADC62100", 0, 50, 50, "", "/root/temp/drugindata", "/root/temp/calldata");
  647. }
  648. } else {
  649. if(grd_patlist.iscell(event.target) && grd_patlist.row != 0 ){
  650. model.setValue("/root/temp/srchinfo/tmedprntdt","");
  651. model.makeValue("/root/main/patinfo/patlist[" + grd_patlist.row + "]/difflagcd", model.getValue("/root/init/difflagcd"));
  652. modal("SMADC02200", 0, 50, 50, "", "/root/main/patinfo/patlist[" + grd_patlist.row + "]", "/root/temp/srchinfo");
  653. }
  654. }
  655. btn_sea.dispatch("DOMActivate");
  656. /*
  657. if (model.getValue("/root/temp/srchinfo/tmedprntdt") != '' ) {
  658. model.setValue( "/root/main/patinfo/patlist[" + datagrid1.row + "]/prntdt",model.getValue("/root/temp/srchinfo/tmedprntdt"));
  659. datagrid1.rowstyle(datagrid1.row, "data", "background-color") = "#7BE6B7" ; // 색깔표시
  660. }
  661. fPrntCnt(); //2008-11-25 출력건수 조회
  662. */
  663. ]]>
  664. </script>
  665. <script type="javascript" ev:event="onaftersort">
  666. <![CDATA[
  667. grd_patlist.gridToInstance();
  668. /* 화면에서 정렬한 사항이 그대로 유지되도록 설정 */
  669. var sortcol = grd_patlist.colAttribute(grd_patlist.col, "ref") + " " + grd_patlist.sort(1,1, grd_patlist.rows, grd_patlist.cols) ;
  670. model.setValue("/root/temp/srchinfo/sortcol", sortcol);
  671. ]]>
  672. </script>
  673. </datagrid>
  674. <select id="chk_ward" ref="/root/temp/srchinfo/ward" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="2" sep="|" style="left:415px; top:100px; width:205px; height:15px; background-color:#e5eae9; border-style:none; ">
  675. <choices>
  676. <itemset nodeset="/root/init/deptlist/ward">
  677. <label ref="deptnm"/>
  678. <value ref="deptcd"/>
  679. </itemset>
  680. </choices>
  681. <script type="javascript" ev:event="onclick">
  682. <![CDATA[
  683. if(chk_ward.mouseRow == 0 && chk_ward.mouseCol == 0){
  684. if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
  685. //ipt_wardcd.value = "2100300000|2110200000|2110201000|2280200000|2360800000|2361501000|3050107000|3050108000|3050109000|3050110000|3050112000|3050113000|3050115000|3050116000|3050118000|3050119000|3050120000|3050121000|3050122000|3050123000|3050135000|3050136000|3060000000|3060100000|3060200000|3060300000|3060400000|3060600000|3120400000";
  686. //ipt_wardnm.value = "분만실|신생아실|신생아중환자실|응급의료센터|통원수술센터|임상시험센터병동|04층동병동|04층서병동|05층동병동|05층서병동|06층동병동|06층서병동|07층동병동|07층서병동|08층동병동|08층서병동|09층동병동|09층서병동|10층동병동|10층서병동|응급병동|호스피스병동|중환자실|내과중환자실|외과중환자실|신경외과중환자실|순환기계중환자실|2층중환자실|특수주사실특수주사";
  687. //model.setValue("/root/temp/srchinfo/ward", "T|2100300000|2110200000|2110201000|2280200000|2360800000|2361501000|3050107000|3050108000|3050109000|3050110000|3050112000|3050113000|3050115000|3050116000|3050118000|3050119000|3050120000|3050121000|3050122000|3050123000|3050135000|3050136000|3060000000|3060100000|3060200000|3060300000|3060400000|3060600000|3120400000");
  688. var ward = "";
  689. for(var i = 1; i <= getNodesetCount("/root/init/deptlist/ward"); i++){
  690. if(i == (getNodesetCount("/root/init/deptlist/ward"))){
  691. ward += model.getValue("/root/init/deptlist/ward["+i+"]/deptcd");
  692. }else{
  693. ward += model.getValue("/root/init/deptlist/ward["+i+"]/deptcd")+"|";
  694. }
  695. }
  696. model.setValue("/root/temp/srchinfo/ward", ward);
  697. } else {
  698. model.setValue("/root/temp/srchinfo/ward", "");
  699. }
  700. model.refresh();
  701. }
  702. if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
  703. ipt_wardcd.value = chk_ward.value.substr(2,chk_ward.value.length);
  704. ipt_wardnm.value = chk_ward.label.substr(3,chk_ward.label.length);
  705. } else {
  706. ipt_wardcd.value = chk_ward.value;
  707. ipt_wardnm.value = chk_ward.label;
  708. }
  709. //input3.refresh();
  710. //검사실 체크박스 감추기
  711. //chk_excuroom.visible = false;
  712. ]]>
  713. </script>
  714. </select>
  715. <caption id="caption10" class="color_6" vertical-galign="middle" style="left:97px; top:719px; width:15px; height:15px; "/>
  716. <caption id="caption11" style="left:120px; top:720px; width:100px; height:14px; vertical-align:middle; ">일괄출력불가</caption>
  717. <group id="grp_report" visibility="hidden" style="left:745px; top:220px; width:300px; height:275px; "/>
  718. <caption id="caption13" class="color_4" style="left:207px; top:719px; width:15px; height:15px; vertical-align:middle; "/>
  719. <caption id="caption14" style="left:230px; top:720px; width:50px; height:14px; vertical-align:middle; ">출력</caption>
  720. <caption id="txtCnt" style="left:950px; top:103px; width:235px; height:20px; font-size:11pt; text-align:right; "/>
  721. <select1 id="rdo_difflagcd" ref="/root/init/difflagcd" appearance="full" cellspacing="5" cols="3" rows="1" overflow="visible" style="left:300px; top:720px; width:255px; height:15px; border-style:none; ">
  722. <choices>
  723. <item>
  724. <label>병원복약기준자료</label>
  725. <value>1</value>
  726. </item>
  727. <!-- <item>
  728. <label>DIF한글</label>
  729. <value>2</value>
  730. </item>
  731. <item>
  732. <label>DIF영문</label>
  733. <value>3</value>
  734. </item> -->
  735. </choices>
  736. </select1>
  737. <object id="Base64_Preview1" clsid="{72e5d9ed-0d6a-46e8-aead-23144bfef878}" style="left:200px; top:290px; width:415px; height:380px; background-color:transparent; "/>
  738. <select id="chk_autoprnt" ref="/root/temp/srchinfo/autoprntflag" overflow="visible" appearance="full" cols="1" rows="1" sep="|" style="left:690px; top:720px; width:85px; height:20px; border-style:none; ">
  739. <choices>
  740. <item>
  741. <label>자동출력</label>
  742. <value>Y</value>
  743. </item>
  744. </choices>
  745. <script type="javascript" ev:event="xforms-value-changed">
  746. <![CDATA[
  747. // 20100223_laboru_복약설명서 자동출력
  748. fChkAutoDescPrnt();
  749. ]]>
  750. </script>
  751. </select>
  752. <select id="checkbox6" ref="/root/temp/srchinfo/autoprntnurseflag" overflow="visible" appearance="full" cols="1" rows="1" sep="|" style="left:585px; top:720px; width:100px; height:20px; border-style:none; ">
  753. <choices>
  754. <item>
  755. <label>간호출력</label>
  756. <value>Y</value>
  757. </item>
  758. </choices>
  759. <script type="javascript" ev:event="xforms-value-changed">
  760. <![CDATA[
  761. // 20100223_laboru_복약설명서 자동출력
  762. fChkAutoDescPrnt();
  763. ]]>
  764. </script>
  765. </select>
  766. </group>
  767. <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  768. <button id="button1" class="btn6_letter10" style="left:564px; top:5px; width:140px; height:22px; ">
  769. <caption>복약설명서일괄출력</caption>
  770. <script type="javascript" ev:event="DOMActivate">
  771. <![CDATA[
  772. fGetTmedlist();
  773. fPrntCnt(); //2008-11-25 출력건수 조회
  774. ]]>
  775. </script>
  776. </button>
  777. <button id="button2" class="btn3_letter6" style="left:270px; top:5px; width:80px; height:22px; ">
  778. <caption>통합결과조회</caption>
  779. <script type="javascript" ev:event="DOMActivate">
  780. <![CDATA[
  781. open("SMAER00800 ","","","","","/root/main/patinfo/patlist["+grd_patlist.row+"]/pid","/root/send/data/singdata/srchpid");
  782. ]]>
  783. </script>
  784. </button>
  785. <button id="button3" class="btn3_letter6" style="left:376px; top:5px; width:104px; height:22px; ">
  786. <caption>투약기록조회</caption>
  787. <script type="javascript" ev:event="DOMActivate">
  788. <![CDATA[
  789. open("SMMNR04500");
  790. ]]>
  791. </script>
  792. </button>
  793. <button id="button7" class="btn3_letter4" style="left:82px; top:5px; width:80px; height:22px; ">
  794. <caption>약력조회</caption>
  795. <script type="javascript" ev:event="DOMActivate">
  796. <![CDATA[
  797. open("SMADB10100",0,0,0,"SMADB10100","/root/main/patinfo/patlist["+grd_patlist.row+"]/pid","/root/temp/patinfo/pid");
  798. ]]>
  799. </script>
  800. </button>
  801. <button id="button8" class="btn3_letter4" style="left:0px; top:5px; width:80px; height:22px; ">
  802. <caption>처방조회</caption>
  803. <script type="javascript" ev:event="DOMActivate">
  804. <![CDATA[
  805. setParameter ("SPMMO14900_pid" , model.getValue("/root/main/patinfo/patlist["+grd_patlist.row+"]/pid")); //등록번호
  806. setParameter ("SPMMO14900_hngnm" , model.getValue("/root/main/patinfo/patlist["+grd_patlist.row+"]/patnm")); //성명
  807. open("SPMMO14900");
  808. ]]>
  809. </script>
  810. </button>
  811. <button id="button10" class="btn4_letter6" style="left:970px; top:5px; width:56px; height:22px; ">
  812. <caption>일괄상담완료</caption>
  813. <script type="javascript" ev:event="DOMActivate">
  814. <![CDATA[
  815. window.load( "SPADC61000_복약상담일괄완료.xrw","modal","code", "left:800px; top:500px; width:400px; height:250px;min:hidden;max:hidden;resize:false;" );
  816. ]]>
  817. </script>
  818. </button>
  819. <button id="btn_prt" class="btn6_letter2" style="left:716px; top:5px; width:56px; height:22px; ">
  820. <caption>출력</caption>
  821. <script type="javascript" ev:event="DOMActivate">
  822. <![CDATA[
  823. // alert (model.getValue("/root/temp/srchinfo/lastcnstdd"));
  824. //exeReportPreview("RPADC02101", "XMLSTR", "", "", "true","","","","","true");
  825. exeReportPreview("RPADC02101", "XMLSTR", "", "", "false","","","","","false");
  826. ]]>
  827. </script>
  828. </button>
  829. <button id="btn_save" class="btn4_letter2" style="left:1078px; top:5px; width:56px; height:22px; ">
  830. <caption>저장</caption>
  831. </button>
  832. <button id="btn_del" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
  833. <caption>삭제</caption>
  834. </button>
  835. <button id="btn_prtndept" class="btn6_letter5" style="left:774px; top:5px; width:92px; height:22px; ">
  836. <caption>병동별 출력</caption>
  837. <script type="javascript" ev:event="DOMActivate">
  838. <![CDATA[
  839. var sRoomCd = "";
  840. //병실코드로 Sorting
  841. grd_patlist.colSort(grd_patlist.colRef("wardcd")) = "asc";
  842. grd_patlist.sort(1, 1, (grd_patlist.rows - 1), (grd_patlist.cols - 1))="usersort";
  843. grd_patlist.gridToInstance();
  844. grd_patlist.sortClear();
  845. //보고서 출력시 다음 페이지로 넘기기 위하여 각 병실의 마지막에 플로그 표시.
  846. sRoomCd = model.getValue("/root/main/patinfo/patlist[1]/wardcd");
  847. for(var iRowNo = 1 ; iRowNo < grd_patlist.rows ; iRowNo++ ) {
  848. if(iRowNo < (grd_patlist.rows - 1)) {
  849. if(model.getValue("/root/main/patinfo/patlist["+iRowNo+"]/wardcd") != model.getValue("/root/main/patinfo/patlist["+(iRowNo+1)+"]/wardcd")) {
  850. model.makeValue("/root/main/patinfo/patlist["+ iRowNo +"]/newpageyn", "Y");
  851. } else {
  852. model.makeValue("/root/main/patinfo/patlist["+ iRowNo +"]/newpageyn", "N");
  853. }
  854. } else {
  855. model.makeValue("/root/main/patinfo/patlist["+ iRowNo +"]/newpageyn", "N");
  856. }
  857. }
  858. grd_patlist.refresh();
  859. exeReportPreview("RPADC02101", "XMLSTR", "", "", "false","","","","","false");
  860. //초기화
  861. for(var iRowNo = 1 ; iRowNo < grd_patlist.rows ; iRowNo++ ) {
  862. model.makeValue("/root/main/patinfo/patlist["+ iRowNo +"]/newpageyn", "N");
  863. }
  864. ]]>
  865. </script>
  866. </button>
  867. <button id="button6" class="btn3_letter6" style="left:164px; top:5px; width:80px; height:22px; ">
  868. <caption>통합기록조회</caption>
  869. <script type="javascript" ev:event="DOMActivate">
  870. <![CDATA[
  871. setParameter("SMMRI00400_param_pid", model.getValue("/root/main/patinfo/patlist["+grd_patlist.row+"]/pid"));
  872. open("SMMRI00400");
  873. ]]>
  874. </script>
  875. </button>
  876. <button id="button11" class="btn3_letter4" style="left:482px; top:5px; width:80px; height:22px; ">
  877. <caption>약품편람</caption>
  878. <script type="javascript" ev:event="DOMActivate">
  879. <![CDATA[
  880. open("SMADB01900");
  881. ]]>
  882. </script>
  883. </button>
  884. </group>
  885. <group id="group4" visibility="hidden" style="left:770px; top:732px; width:130px; height:20px; background-color:#ffff99; ">
  886. <caption id="caption16" style="left:1px; top:2px; width:110px; height:15px; font-weight:bold; color:#ff0000; ">자동 출력 중</caption>
  887. </group>
  888. </xhtml:body>
  889. </xhtml:html>