SMMNR04500_투약기록 조회.xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487
  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. <cond>
  11. <wardcd/>
  12. <roomcd/>
  13. <patnm/>
  14. <pid/>
  15. <indd/>
  16. <cretno/>
  17. <medfromdd/>
  18. <medtodd/>
  19. <prcpkindcd/>
  20. <prcpcd/>
  21. <acpstatflag>D</acpstatflag>
  22. <drugstat/>
  23. <settingrnid/>
  24. <pid_search/>
  25. <hngnm_search/>
  26. <roomflag/>
  27. <popyn>N</popyn>
  28. <acpstatyn/>
  29. <dtflag>1</dtflag>
  30. <hisindd/>
  31. </cond>
  32. <druglist>
  33. <druglist>
  34. <pid/>
  35. <hngnm/>
  36. <execdd/>
  37. <execprcphistcd/>
  38. <execprcphistnm/>
  39. <prcpkindnm/>
  40. <prcpmixno/>
  41. <prcpcd/>
  42. <prcpnm/>
  43. <prcpvol/>
  44. <prcpvolunitflag/>
  45. <prcpqty/>
  46. <prcpqtyunitflag/>
  47. <abbrnm/>
  48. <exectm/>
  49. <nursnm/>
  50. <execcarestatnm/>
  51. <prcpdd/>
  52. <prcpno/>
  53. <carecfact/>
  54. <prcpdelivefact/>
  55. <drugflag/>
  56. <drugstatnm/>
  57. <drugno/>
  58. <prntdt/>
  59. <orddrnm/>
  60. </druglist>
  61. </druglist>
  62. <wardpatinfo>
  63. <wardpatlist>
  64. <roomcd/>
  65. <patnm/>
  66. <sexage/>
  67. <pid/>
  68. <indd/>
  69. <cretno/>
  70. <seqno/>
  71. <instcd/>
  72. <wardcd/>
  73. <rrgstno/>
  74. </wardpatlist>
  75. </wardpatinfo>
  76. <paminfo/>
  77. <pidinfo>
  78. <roomcd/>
  79. <pid/>
  80. <patnm/>
  81. <sa/>
  82. <rrgstno/>
  83. </pidinfo>
  84. <popupendflag/>
  85. <patinfo>
  86. <patinfolist/>
  87. </patinfo>
  88. </main>
  89. <send>
  90. <reqdata/>
  91. </send>
  92. <init>
  93. <ward>
  94. <wardcd/>
  95. <wardnm/>
  96. </ward>
  97. <room>
  98. <room>
  99. <roomcd/>
  100. </room>
  101. </room>
  102. </init>
  103. <hidden>
  104. <wardpatinfo>
  105. <wardpatlist>
  106. <patnm>-</patnm>
  107. <pid/>
  108. <wardcd/>
  109. <roomcd/>
  110. <sexage/>
  111. <indd/>
  112. <cretno/>
  113. <seqno/>
  114. <instcd/>
  115. </wardpatlist>
  116. </wardpatinfo>
  117. <cond>
  118. <wardcd/>
  119. <pid/>
  120. <indd/>
  121. <cretno/>
  122. <medrfromdd/>
  123. <medrtodd/>
  124. </cond>
  125. </hidden>
  126. <temp>
  127. <hisinddinfo>
  128. <hisinddlist>
  129. <hisinddnm/>
  130. <hisinddcd/>
  131. </hisinddlist>
  132. </hisinddinfo>
  133. <pidinfo/>
  134. </temp>
  135. </root>
  136. </instance>
  137. <script type="javascript" ev:event="xforms-ready">
  138. <![CDATA[
  139. fInitialize();
  140. ]]>
  141. </script>
  142. <submission id="TRMNR00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init"/>
  143. <submission id="TRMNR00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/room"/>
  144. <submission id="TRMNR00603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/wardpatinfo"/>
  145. <submission id="TRMNR04501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/druglist"/>
  146. <submission id="TRMNR04502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/hisinddinfo"/>
  147. </model>
  148. <script type="javascript" src="../../../emr/caremedirecweb/js/SMMNR04500.js"/>
  149. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  150. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  151. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  152. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  153. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  154. </xhtml:head>
  155. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  156. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  157. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:257px; height:14px; ">투약기록 조회</caption>
  158. </group>
  159. <group id="grp_btn" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  160. <caption id="caption14" style="left:1160px; top:0px; width:30px; height:20px; ">[표]</caption>
  161. </group>
  162. <group id="group5" class="datagrid2" scroll="auto" style="left:0px; top:13px; width:1195px; height:742px; ">
  163. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:60px; vertical-align:top; ">
  164. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:60px; "/>
  165. <caption id="caption2" class="search_name" style="left:16px; top:9px; width:89px; height:17px; ">병 동 :</caption>
  166. <line id="line13" class="line_4" style="x1:1070px; y1:15px; x2:1070px; y2:47px; "/>
  167. <caption id="caption5" class="search_name" style="left:640px; top:9px; width:86px; height:17px; ">조회일시 :</caption>
  168. <input id="inp_medfromdd" ref="/root/main/cond/medfromdd" class="input_search" inputtype="date" style="left:731px; top:8px; width:90px; height:19px; "/>
  169. <caption id="caption7" style="left:826px; top:10px; width:15px; height:20px; font-weight:bold; ">~</caption>
  170. <input id="inp_medtodd" ref="/root/main/cond/medtodd" class="input_search" inputtype="date" style="left:841px; top:8px; width:90px; height:19px; "/>
  171. <caption id="caption8" class="search_name" style="left:15px; top:35px; width:109px; height:17px; ">약제별 조회 :</caption>
  172. <select1 id="combo3" ref="/root/main/cond/prcpkindcd" class="combo_search" navindex="2" appearance="minimal" style="left:129px; top:34px; width:111px; height:19px; ">
  173. <choices>
  174. <item>
  175. <label>전체</label>
  176. <value/>
  177. </item>
  178. <item>
  179. <label>약</label>
  180. <value>A</value>
  181. </item>
  182. <item>
  183. <label>주사</label>
  184. <value>A6</value>
  185. </item>
  186. <item>
  187. <label>수액</label>
  188. <value>S</value>
  189. </item>
  190. <item>
  191. <label>항암제</label>
  192. <value>D</value>
  193. </item>
  194. <item>
  195. <label>마약</label>
  196. <value>M</value>
  197. </item>
  198. <item>
  199. <label>향정</label>
  200. <value>H</value>
  201. </item>
  202. <item>
  203. <label>항생제 전체</label>
  204. <value>NA</value>
  205. </item>
  206. <item>
  207. <label>항생제 경구</label>
  208. <value>NO</value>
  209. </item>
  210. <item>
  211. <label>항생제 주사</label>
  212. <value>NI</value>
  213. </item>
  214. </choices>
  215. <script type="javascript" ev:event="xforms-value-changed">
  216. <![CDATA[
  217. fGetDrugList();
  218. ]]>
  219. </script>
  220. </select1>
  221. <caption id="caption9" class="search_name" style="left:256px; top:35px; width:86px; height:17px; ">약품코드 :</caption>
  222. <input id="input4" ref="/root/main/cond/prcpcd" class="input_search" navindex="3" style="left:345px; top:34px; width:80px; height:19px; ">
  223. <script type="javascript" ev:event="onkeyup">
  224. <![CDATA[
  225. if(event.keycode == "13"){
  226. model.setfocus("btn_DrugList");
  227. fGetDrugList();
  228. }
  229. ]]>
  230. </script>
  231. </input>
  232. <caption id="caption1" class="search_name" style="left:440px; top:9px; width:85px; height:17px; ">병 실 :</caption>
  233. <select1 id="combo4" ref="/root/main/cond/roomcd" class="combo_search" appearance="minimal" style="left:530px; top:8px; width:95px; height:19px; ">
  234. <choices>
  235. <itemset nodeset="/root/init/room/room">
  236. <label ref="roomnm"/>
  237. <value ref="roomcd"/>
  238. </itemset>
  239. </choices>
  240. <script type="javascript" ev:event="xforms-value-changed">
  241. <![CDATA[
  242. fGetPatList();
  243. ]]>
  244. </script>
  245. </select1>
  246. <select1 id="combo5" ref="/root/main/cond/wardcd" class="combo_search" appearance="minimal" style="left:130px; top:8px; width:110px; height:19px; ">
  247. <choices>
  248. <itemset nodeset="/root/init/ward/">
  249. <label ref="wardnm"/>
  250. <value ref="wardcd"/>
  251. </itemset>
  252. </choices>
  253. <script type="javascript" ev:event="xforms-value-changed">
  254. <![CDATA[
  255. model.setValue("/root/main/cond/roomcd", "");
  256. model.setValue("/root/main/cond/settingrnid", "");
  257. model.setValue("/root/main/cond/pid_search", "");
  258. model.setValue("/root/main/cond/hngnm_search", "");
  259. model.setValue("/root/main/cond/hisindd","");
  260. //submit("TRMNR00601");
  261. fQueryinit(); //-----------(20080819)
  262. fGetPatList();
  263. fGetRoomList();
  264. ]]>
  265. </script>
  266. </select1>
  267. <button id="btn_DrugList" class="btn1_letter2" style="left:1076px; top:6px; width:56px; height:22px; ">
  268. <caption>조회</caption>
  269. <script type="javascript" ev:event="onclick">
  270. <![CDATA[
  271. fGetDrugList();
  272. ]]>
  273. </script>
  274. </button>
  275. <button id="btn_ExcelSave" class="btn1_letter2" style="left:1135px; top:6px; width:56px; height:22px; ">
  276. <caption>엑셀</caption>
  277. <script type="javascript" ev:event="onclick">
  278. <![CDATA[
  279. var file = window.fileDialog("save","","true","","xls","All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  280. if(file != "") {
  281. grd_druglist.saveExcel(file);
  282. }
  283. ]]>
  284. </script>
  285. </button>
  286. <caption id="caption10" class="search_name" style="left:440px; top:35px; width:86px; height:17px; ">투약상태 :</caption>
  287. <select1 id="cmb_settingrn" ref="/root/main/cond/settingrnid" class="combo_search" appearance="minimal" style="left:346px; top:8px; width:80px; height:19px; ">
  288. <choices>
  289. <itemset nodeset="/root/main/wardpatinfo/settingrn">
  290. <label ref="settingrnnm"/>
  291. <value ref="settingrnid"/>
  292. </itemset>
  293. </choices>
  294. <script type="javascript" ev:event="xforms-value-changed">
  295. <![CDATA[
  296. fGetRoomList();
  297. fGetPatList();
  298. ]]>
  299. </script>
  300. </select1>
  301. <caption id="caption17" class="search_name" style="left:255px; top:9px; width:83px; height:17px; ">내 환 자 :</caption>
  302. <caption id="caption3" visibility="hidden" style="left:940px; top:35px; width:105px; height:22px; font-size:8pt; ">(등록번호로 조회시)</caption>
  303. <select1 id="cmb_drugstat" ref="/root/main/cond/drugstat" class="combo_search" navindex="2" appearance="minimal" style="left:530px; top:35px; width:95px; height:19px; ">
  304. <choices>
  305. <item>
  306. <label>전체</label>
  307. <value/>
  308. </item>
  309. <item>
  310. <label>투약</label>
  311. <value>D</value>
  312. </item>
  313. <item>
  314. <label>미투약</label>
  315. <value>N</value>
  316. </item>
  317. <item>
  318. <label>반환약</label>
  319. <value>R</value>
  320. </item>
  321. </choices>
  322. <script type="javascript" ev:event="xforms-value-changed">
  323. <![CDATA[
  324. fGetDrugList();
  325. ]]>
  326. </script>
  327. </select1>
  328. <caption id="caption4" class="search_name" style="left:640px; top:34px; width:86px; height:17px; ">등록번호 :</caption>
  329. <input id="ipt_pid_search" ref="/root/main/cond/pid_search" class="input_search" navindex="3" style="left:730px; top:35px; width:80px; height:19px; ">
  330. <script type="javascript" ev:event="onkeyup">
  331. <![CDATA[
  332. if(event.keycode == "13"){
  333. //환자팝업으로 포커스이동
  334. model.setFocus("bnt_pid");
  335. //(20080514) : 팝업
  336. fSearchPatInfo("1");
  337. //콤보열기
  338. fSearchPatInddInfo();
  339. //조회기능막음
  340. // model.setfocus("btn_DrugList");
  341. // model.setValue("/root/main/cond/acpstatyn", "true");
  342. // fGetDrugList();
  343. }
  344. ]]>
  345. </script>
  346. <script type="javascript" ev:event="xforms-value-changed">
  347. <![CDATA[
  348. ]]>
  349. </script>
  350. </input>
  351. <bool id="bool_acptstat" visibility="hidden" ref="/root/main/cond/acpstatyn" style="left:1044px; top:37px; width:25px; height:20px; ">
  352. <script type="javascript" ev:event="xforms-value-changed">
  353. <![CDATA[
  354. fnhisindd();
  355. ]]>
  356. </script>
  357. </bool>
  358. <select1 id="rdo_dtflag" ref="/root/main/cond/dtflag" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:947px; top:8px; width:115px; height:20px; border-style:none; ">
  359. <choices>
  360. <item>
  361. <label>처방일</label>
  362. <value>1</value>
  363. </item>
  364. <item>
  365. <label>투약일</label>
  366. <value>2</value>
  367. </item>
  368. </choices>
  369. <script type="javascript" ev:event="xforms-value-changed">
  370. <![CDATA[
  371. fGetDrugList();
  372. ]]>
  373. </script>
  374. </select1>
  375. <button id="bnt_pid" class="icon_search" navindex="6" style="left:815px; top:37px; width:16px; height:16px; ">
  376. <caption/>
  377. <script type="javascript" ev:event="DOMActivate">
  378. <![CDATA[
  379. //fSearchPatInfo("1");
  380. fSearchPatInfo("");
  381. //콤보열기
  382. fSearchPatInddInfo();
  383. ]]>
  384. </script>
  385. </button>
  386. <output id="opt_hngnm" ref="/root/main/cond/hngnm_search" class="output_fix" style="left:836px; top:35px; width:95px; height:19px; "/>
  387. <button id="button3" class="btn1_letter2" style="left:1077px; top:30px; width:56px; height:22px; ">
  388. <caption>출력</caption>
  389. <script type="javascript" ev:event="DOMActivate">
  390. <![CDATA[
  391. fExecPrint();
  392. ]]>
  393. </script>
  394. </button>
  395. </group>
  396. <line id="line1" class="line_1" style="x1:250px; y1:95px; x2:1194px; y2:95px; "/>
  397. <datagrid id="grd_druglist" nodeset="/root/main/druglist/druglist" class="datagrid2" scroll="auto" allowselection="true" caption="환자번호^환자명^투약일자^변경이력코드^변경이력^처방종류^Mix^처방코드^처방명[* : 혼동주의/고위험 약제]^용량^단위^수량^단위^경로^투약시간^간호사^투약기록^처방일자^처방번호^간호사&#xA;Remark^의사&#xA;Remark^약제&#xA;종류^조제&#xA;상태^투약번호^처방전 &#xA;출력시간^처방의^효능코드^효능명" colsep="^" colwidth="69, 70, 70, 100, 100, 60, 27, 80, 230, 40, 30, 40, 30, 50, 60, 65, 81, 80, 66, 108, 132, 69, 65, 60, 92, 60, 100, 100" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" tooltip="true" style="left:250px; top:100px; width:944px; height:635px; ">
  398. <col ref="pid" visibility="hidden" style="text-align:right; padding-right:3; "/>
  399. <col ref="hngnm" visibility="hidden" style="padding-left:3; "/>
  400. <col ref="execdd" format="yyyy-mm-dd" style="text-align:center; "/>
  401. <col ref="execprcphistcd" visibility="hidden" style="text-align:center; "/>
  402. <col ref="execprcphistnm" visibility="hidden" style="text-align:center; "/>
  403. <col ref="prcpkindnm" style="text-align:center; "/>
  404. <col ref="prcpmixno" style="text-align:center; "/>
  405. <col ref="prcpcd" style="text-align:left; "/>
  406. <col ref="prcpnm" style="border-right-width:0; "/>
  407. <col ref="prcpvol" format="#,###.##" style="text-align:right; border-left-width:0; border-right-width:0; "/>
  408. <col ref="prcpvolunitflag" style="text-align:left; border-left-width:0; border-right-width:0; "/>
  409. <col ref="prcpqty" format="#,###.##" style="text-align:right; border-left-width:0; border-right-width:0; "/>
  410. <col ref="prcpqtyunitflag" style="text-align:left; border-left-width:0; "/>
  411. <col ref="abbrnm"/>
  412. <col ref="exectm" format="hh:nn" style="text-align:center; "/>
  413. <col ref="nursnm" style="text-align:center; "/>
  414. <col ref="execcarestatnm"/>
  415. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  416. <col ref="prcpno" visibility="hidden" style="text-align:center; "/>
  417. <col ref="carecfact"/>
  418. <col ref="prcpdelivefact"/>
  419. <col ref="drugflag"/>
  420. <col ref="drugstatnm"/>
  421. <col ref="drugno" style="text-align:right; "/>
  422. <col ref="prntdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  423. <col ref="orddrnm"/>
  424. <col ref="efcycd"/>
  425. <col ref="efcynm"/>
  426. <script type="javascript" ev:event="onaftersort">
  427. <![CDATA[
  428. grd_druglist.gridToInstance();
  429. ]]>
  430. </script>
  431. </datagrid>
  432. <datagrid id="grd_patlist" nodeset="/root/main/wardpatinfo/wardpatlist" class="datagrid2" allowbigselection="false" allowselection="false" backcoloralternate="#ffffff" caption="병실^등록&#xA;번호^환자명^S/A" colsep="^" colwidth="46, 68, 64, 39" frozencols="0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:100px; width:240px; height:640px; ">
  433. <col ref="roomcd" style="text-align:center; "/>
  434. <col ref="pid" style="text-align:left; "/>
  435. <col ref="patnm" style="text-align:center; "/>
  436. <col ref="sexage" style="text-align:center; "/>
  437. <script type="javascript" ev:event="onaftersort">
  438. <![CDATA[
  439. grd_druglist.gridToInstance();
  440. ]]>
  441. </script>
  442. <script type="javascript" ev:event="onclick">
  443. <![CDATA[
  444. if(isDataCell()){
  445. fGetDrugList();
  446. }
  447. ]]>
  448. </script>
  449. </datagrid>
  450. <line id="line5" class="line_1" style="x1:0px; y1:95px; x2:240px; y2:95px; "/>
  451. <caption id="caption11" class="tit_2" style="left:0px; top:80px; width:90px; height:13px; ">환자 리스트</caption>
  452. <caption id="caption12" class="tit_2" style="left:255px; top:80px; width:113px; height:14px; ">리스트</caption>
  453. <output id="output32" ref="/root/main/pidinfo/pid" style="left:423px; top:74px; width:67px; height:19px; font-weight:bold; text-align:center; "/>
  454. <output id="output33" ref="/root/main/pidinfo/sa" style="left:571px; top:74px; width:44px; height:19px; font-weight:bold; text-align:center; "/>
  455. <caption id="caption13" ref="/root/main/pidinfo/patnm" class="cell_1" style="left:490px; top:75px; width:81px; height:18px; font-weight:bold; text-align:center; vertical-align:middle; "/>
  456. <caption id="caption57" ref="/root/main/pidinfo/roomcd" class="cell_1" style="left:355px; top:75px; width:68px; height:18px; font-weight:bold; vertical-align:middle; "/>
  457. <caption id="cap_hisindd" class="search_name" visibility="hidden" style="left:641px; top:74px; width:86px; height:17px; ">입원이력 :</caption>
  458. <select1 id="cbo_hisindd" ref="/root/main/cond/hisindd" class="combo_search" visibility="hidden" appearance="minimal" style="left:731px; top:73px; width:199px; height:19px; ">
  459. <choices>
  460. <itemset nodeset="/root/temp/hisinddinfo/hisinddlist">
  461. <label ref="hisinddnm"/>
  462. <value ref="hisinddcd"/>
  463. </itemset>
  464. </choices>
  465. <script type="javascript" ev:event="xforms-value-changed">
  466. <![CDATA[
  467. fnhisinddmove();
  468. fGetDrugList(); //------(20081114)
  469. ]]>
  470. </script>
  471. </select1>
  472. <line id="line27" class="line_3" style="x1:354px; y1:74px; x2:616px; y2:74px; "/>
  473. <line id="line3" class="line_3" style="x1:353px; y1:74px; x2:353px; y2:94px; border-color:#ffe4bb; border-left-style:solid; "/>
  474. <line id="line4" class="line_3" style="x1:353px; y1:92px; x2:616px; y2:92px; "/>
  475. <line id="line7" class="line_3" style="x1:615px; y1:74px; x2:615px; y2:92px; border-color:#ffe4bb; border-left-style:solid; "/>
  476. <input id="input1" ref="/root/main/pidinfo/rrgstno" visibility="hidden" style="left:150px; top:75px; width:100px; height:19px; "/>
  477. </group>
  478. </xhtml:body>
  479. </xhtml:html>