SPMMD03500_처방조회.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  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. <baseinfo>
  11. <patinfolist>
  12. <pid/>
  13. <hngnm/>
  14. <sex/>
  15. <brthdd/>
  16. <hometel/>
  17. <mpphontel/>
  18. <detladdr/>
  19. </patinfolist>
  20. </baseinfo>
  21. <drughistory>
  22. <item>
  23. <flag/>
  24. <prcpcd/>
  25. <prcpnm/>
  26. <prcpqtyunit/>
  27. </item>
  28. </drughistory>
  29. <prcphistory2>
  30. <item>
  31. <prcpdd/>
  32. <ionm/>
  33. <orddeptnm/>
  34. <ioflag/>
  35. <orddeptid/>
  36. <orddd/>
  37. </item>
  38. </prcphistory2>
  39. <patinfo>
  40. <patinfolist/>
  41. </patinfo>
  42. <prcporderhistory>
  43. <item>
  44. <drugno/>
  45. <hosinhosoutflagnm/>
  46. <execprcphistcd/>
  47. <prcpno/>
  48. <prcpcd/>
  49. <prcpnm/>
  50. <prcpvol/>
  51. <prcpvolunit/>
  52. <prcpqty/>
  53. <prcpqtyunit/>
  54. <prcptims/>
  55. <prcpdayno/>
  56. <mthdcd/>
  57. <mthdnm/>
  58. <prcpmixno/>
  59. <powdflag/>
  60. <selfprcpflag/>
  61. <erprcpflag/>
  62. <precureprcpflag/>
  63. <prcpauthflag/>
  64. <payflagcd/>
  65. <issdeptnm/>
  66. <prcpexecdeptnm/>
  67. <inclprcpcd/>
  68. </item>
  69. <memoinfo>
  70. <pid/>
  71. <seqno/>
  72. <hosinhosoutflag/>
  73. <instcd/>
  74. <orddeptcd/>
  75. <orddeptnm/>
  76. <drugdd/>
  77. <drugno/>
  78. <writid2/>
  79. <writnm/>
  80. <writdt/>
  81. <memo/>
  82. <m/>
  83. <ioflag/>
  84. <writid/>
  85. <useyn/>
  86. <indd/>
  87. </memoinfo>
  88. </prcporderhistory>
  89. <reqlist>
  90. <reqlist>
  91. <stat/>
  92. <pid/>
  93. <hngnm/>
  94. <cretno/>
  95. <orddeptcd/>
  96. <prcpgenrflag/>
  97. <reqdd/>
  98. <repldd/>
  99. <replpharmst/>
  100. <reqdetlflag/>
  101. <wardnm/>
  102. <agesex/>
  103. <rrgstno/>
  104. <patstat/>
  105. <diagcd/>
  106. <orddd/>
  107. <inhospday/>
  108. <reqdrug/>
  109. <reqdeptnm/>
  110. <requsernm/>
  111. <reqresn/>
  112. <reqcommnet/>
  113. <formrecseq/>
  114. <reqdeptcd/>
  115. <requserid/>
  116. </reqlist>
  117. </reqlist>
  118. </main>
  119. <send>
  120. <srchdata>
  121. <pid/>
  122. <prcpfromdd/>
  123. <prcpfromdt>0000</prcpfromdt>
  124. <prcptodd/>
  125. <prcptodt>2400</prcptodt>
  126. <tmedflag/>
  127. <drugcd/>
  128. <hngnm/>
  129. <prcpdd/>
  130. <orddeptcd/>
  131. <ioflag/>
  132. <startreqdd/>
  133. <endreqdd/>
  134. <reqpid/>
  135. <srchpid/>
  136. <srchindd/>
  137. <srchprcpdd/>
  138. </srchdata>
  139. <memosrchinfo>
  140. <srchpid/>
  141. <srchseqno/>
  142. <srchindd/>
  143. <srchinstcd/>
  144. <srchioflag/>
  145. <srchhosinhosoutflag/>
  146. <srchorddeptcd/>
  147. </memosrchinfo>
  148. <srchdata2>
  149. <pid/>
  150. <prcpfromdd/>
  151. <prcpfromdt>0000</prcpfromdt>
  152. <prcptodd/>
  153. <prcptodt>2400</prcptodt>
  154. <tmedflag/>
  155. <drugcd/>
  156. <hngnm/>
  157. <prcpdd/>
  158. <orddeptcd/>
  159. <ioflag/>
  160. <startreqdd/>
  161. <endreqdd/>
  162. <reqpid/>
  163. <srchpid/>
  164. <srchindd/>
  165. <srchprcpdd/>
  166. </srchdata2>
  167. </send>
  168. <init>
  169. <M0009list>
  170. <M0009>
  171. <cdid/>
  172. <cdnm/>
  173. </M0009>
  174. </M0009list>
  175. </init>
  176. <hidden/>
  177. <temp>
  178. <patinfo>
  179. <pid/>
  180. </patinfo>
  181. </temp>
  182. </root>
  183. </instance>
  184. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  185. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  186. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  187. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  188. <script type="javascript" ev:event="xforms-ready">
  189. <![CDATA[
  190. var pid=getPatientId();
  191. //var pname=getPatientName();
  192. //alert(pid); alert(pname);
  193. zbcfGetCodeList(new Array("M0009"), new Array("/root/init/M0009list"));
  194. model.setValue("/root/send/srchdata2/prcpfromdd", (((getCurrentDate()).toDate("YYYYMMDD")).getAddDate(-1,"M")).getDateFormat("YYYYMMDD") );
  195. model.setValue("/root/send/srchdata2/prcptodd", getCurrentDate());
  196. if(pid != "") {
  197. model.setValue("/root/main/baseinfo/patinfolist/pid", pid);
  198. } else if(model.getValue("/root/temp/receivedata/reqpid") != "") {
  199. model.setValue("/root/main/baseinfo/patinfolist/pid", model.getValue("/root/temp/receivedata/reqpid"));
  200. }
  201. //model.setValue("/root/main/baseinfo/patinfolist/hngnm", pname);
  202. model.refresh()
  203. if (model.getValue("/root/main/baseinfo/patinfolist/pid")!=""){
  204. fView();
  205. }
  206. ]]>
  207. </script>
  208. <script type="javascript">
  209. <![CDATA[
  210. function fView(){
  211. model.setValue("/root/send/srchdata2/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
  212. //model.setValue("/root/send/srchdata/pid", "10000404");
  213. model.setValue("/root/send/srchdata2/reqpid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
  214. submit("TRADB10101");
  215. //if ( btn_prcp.selected== true ){
  216. submit("TRADB10102");
  217. /*} else if ( btn_cnst.selected==true){
  218. model.setValue("/root/send/srchdata/startreqdd", model.getValue("/root/send/srchdata/prcpfromdd"));
  219. model.setValue("/root/send/srchdata/endreqdd", model.getValue("/root/send/srchdata/prcptodd"));
  220. submit("TRADC00102");
  221. }else if ( btn_drug.selected==true){
  222. submit("TRADB10104");
  223. }
  224. */
  225. viewDetail(1);
  226. }
  227. function viewDetail(selectedrow){ //
  228. //var selectedrow = grd_prcphistory.row;
  229. model.setValue("/root/send/srchdata2/srchpid", model.getValue("/root/send/srchdata/pid"));
  230. model.setValue("/root/send/srchdata2/srchindd", model.getValue("/root/main/prcphistory/item["+selectedrow+"]/orddd"));
  231. model.setValue("/root/send/srchdata2/prcpdd", model.getValue("/root/main/prcphistory/item["+selectedrow+"]/prcpdd"));
  232. model.setValue("/root/send/srchdata2/orddeptcd", model.getValue("/root/main/prcphistory/item["+selectedrow+"]/orddeptcd"));
  233. model.setValue("/root/send/srchdata2/ioflag",model.getValue("/root/main/prcphistory/item["+selectedrow+"]/ioflag"));
  234. submit("TRADB10103");
  235. grd_prcplist.rebuildStyle();
  236. setRowStyle("grd_prcplist" , "4" , "C" , "execprcphistcd", "equal" );
  237. setRowStyle("grd_prcplist" , "4" , "50" , "execprcphistcd", "equal" );
  238. setRowStyle("grd_prcplist" , "3" , "D" , "execprcphistcd", "equal" );
  239. setRowStyle("grd_prcplist" , "2" , "E" , "execprcphistcd", "equal" );
  240. }
  241. ]]>
  242. </script>
  243. <submission id="TRADC00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/reqlist"/>
  244. <submission id="TRADB10101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata2" replace="instance" resultref="/root/main/baseinfo"/>
  245. <submission id="TRADB10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata2" replace="instance" resultref="/root/main/prcphistory"/>
  246. <submission id="TRADB10103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata2" replace="instance" resultref="/root/main/prcporderhistory"/>
  247. <submission id="TRADB10104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/drughistory"/>
  248. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  249. </model>
  250. </xhtml:head>
  251. <xhtml:body pagewidth="827" pageheight="784" guideline="1,811;2,786;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  252. <group id="group3" scroll="auto" style="left:0px; top:70px; width:810px; height:600px; ">
  253. <datagrid id="grd_prcphistory" nodeset="/root/main/prcphistory/item" caption="처방일자^입/외^진료과^caption1^" colsep="^" colwidth="72, 54, 100, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:230px; height:590px; ">
  254. <col ref="prcpdd" format="yyyy-mm-dd"/>
  255. <col ref="ionm"/>
  256. <col ref="orddeptnm"/>
  257. <col ref="ioflag"/>
  258. <col ref="orddeptid"/>
  259. <script type="javascript" ev:event="onclick">
  260. <![CDATA[
  261. var selectedrow = grd_prcphistory.row;
  262. viewDetail(selectedrow);
  263. //viewDetail();
  264. ]]>
  265. </script>
  266. </datagrid>
  267. <datagrid id="grd_prcplist" nodeset="/root/main/prcporderhistory/item" class="datagrid2" scroll="auto" caption="약번호^구분^실시처방변경이력^처방번호^약품코드^약품명^1일용량^단위^1일수량^단위^횟수^일수^용법^용법명^Mix^산제^자가^응급^선처치^부서처방^급여^발행부서^수행부서^M-Set" colsep="^" colwidth="45, 48, 55, 1, 95, 243, 55, 31, 47, 30, 23, 26, 56, 100, 25, 25, 25, 25, 30, 33, 54, 100, 100, 100" explorerbar="sortshowmove" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowsep="|" style="left:235px; top:0px; width:575px; height:590px; ">
  268. <col ref="drugno" style="text-align:center; "/>
  269. <col ref="hosinhosoutflagnm"/>
  270. <col id="cmb_execprcphistcd" disabled="true" ref="execprcphistcd" type="combo">
  271. <choices>
  272. <itemset nodeset="/root/init/M0009list/M0009">
  273. <label ref="cdnm"/>
  274. <value ref="cdid"/>
  275. </itemset>
  276. </choices>
  277. </col>
  278. <col ref="prcpno"/>
  279. <col ref="prcpcd"/>
  280. <col ref="prcpnm"/>
  281. <col ref="prcpvol" style="text-align:right; "/>
  282. <col ref="prcpvolunit"/>
  283. <col ref="prcpqty" style="text-align:right; "/>
  284. <col ref="prcpqtyunit"/>
  285. <col ref="prcptims" style="text-align:right; "/>
  286. <col ref="prcpdayno" style="text-align:right; "/>
  287. <col ref="mthdcd"/>
  288. <col ref="mthdnm"/>
  289. <col ref="prcpmixno"/>
  290. <col checkvalue="Y,N" ref="powdflag" type="checkbox"/>
  291. <col checkvalue="Y,N" ref="selfprcpflag" type="checkbox"/>
  292. <col checkvalue="Y,N" ref="erprcpflag" type="checkbox"/>
  293. <col ref="precureprcpflag" type="checkbox"/>
  294. <col checkvalue="Y,N" ref="prcpauthflag" type="checkbox"/>
  295. <col ref="payflagcd"/>
  296. <col ref="issdeptnm"/>
  297. <col ref="prcpexecdeptnm"/>
  298. <col ref="inclprcpcd"/>
  299. <script type="javascript" ev:event="ondblclick">
  300. <![CDATA[
  301. var receiveref = model.getValue("/root/temp/receivedata/receiveref");
  302. var receivedrugflag = model.getValue("/root/temp/receivedata/receivedrugflag");
  303. if ( checkOpener() ) {
  304. opener.model.setValue(receiveref, model.getValue("/root/main/prcporderhistory/item["+grd_prcplist.row+"]/prcpcd"));
  305. opener.model.setValue(receivedrugflag, "C");
  306. //opener.model.makeNode (receiveref +"/ordnm");
  307. //opener.model.setValue(receiveref +"/ordnm", model.getValue("/root/main/druglist/item["+grd_druglist1.row+"]/ordnm"));
  308. opener.model.refresh();
  309. window.close();
  310. } else {
  311. alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
  312. }
  313. ]]>
  314. </script>
  315. </datagrid>
  316. </group>
  317. <group id="group6" style="left:0px; top:5px; width:810px; height:35px; vertical-align:top; ">
  318. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:810px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  319. <caption id="caption24" class="search_name" style="left:310px; top:8px; width:86px; height:17px; ">적용일시 :</caption>
  320. <input id="input9" ref="/root/send/srchdata2/prcpfromdd" class="input_search" inputtype="date" style="left:399px; top:8px; width:85px; height:19px; "/>
  321. <caption id="caption26" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">환자 :</caption>
  322. <input id="input10" ref="/root/main/baseinfo/patinfolist/hngnm" class="output_fix" editable="false" style="left:175px; top:8px; width:105px; height:19px; "/>
  323. <input id="input11" ref="/root/main/baseinfo/patinfolist/pid" class="output_fix" editable="false" style="left:80px; top:8px; width:90px; height:19px; "/>
  324. <input id="input12" ref="/root/send/srchdata2/prcptodd" class="input_search" inputtype="date" style="left:499px; top:8px; width:85px; height:19px; "/>
  325. <caption id="caption29" style="left:487px; top:8px; width:15px; height:15px; ">~</caption>
  326. <button id="btn_sea" class="btn1_letter2" style="left:740px; top:7px; width:56px; height:22px; ">
  327. <caption>조회</caption>
  328. <script type="javascript" ev:event="DOMActivate">
  329. <![CDATA[
  330. //if ( btn_prcp.selected == true ){
  331. fView();
  332. //}
  333. ]]>
  334. </script>
  335. </button>
  336. <line id="line13" class="line_4" style="top:8px; x1:726px; y1:7px; x2:726px; y2:30px; "/>
  337. </group>
  338. <line id="line1" class="line_1" style="x1:0px; y1:64px; x2:810px; y2:64px; "/>
  339. <caption id="caption7" class="tit_2" style="left:0px; top:50px; width:95px; height:14px; ">처방조회</caption>
  340. </xhtml:body>
  341. </xhtml:html>