SPMMO14300_종속처방묶음.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  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. <prcp>
  11. <prcplist>
  12. <status/>
  13. <prcpstatcd/>
  14. <prcpclscd/>
  15. <prcpkindcd/>
  16. <prcpcd/>
  17. <prcpnm/>
  18. <prcpvol/>
  19. <prcpvolunitnm/>
  20. <prcpqty/>
  21. <prcpqtyunitnm/>
  22. <prcptims/>
  23. <prcpdayno/>
  24. <drugmthdspccdnm/>
  25. <prcpmixno/>
  26. <payflagcd/>
  27. <prcpdelivefact/>
  28. <hosinhosoutflag/>
  29. <prcpexecdeptcd/>
  30. <prcphopedd/>
  31. <choiordflag/>
  32. <rgstdt/>
  33. <rgstridnm/>
  34. <testrsltunit/>
  35. <testrsltcnts/>
  36. <prcpgenrflag/>
  37. <prcphistcd/>
  38. <tempprcpflag/>
  39. <prcpsetcd/>
  40. <prcpvolunitflag/>
  41. <prcpqtyunitflag/>
  42. <orgprcpqty/>
  43. <drugspd/>
  44. <drugspdunitflag/>
  45. <powdflag/>
  46. <prnprcpflag/>
  47. <prepprcpflag/>
  48. <selfprcpflag/>
  49. <selfdrugflag/>
  50. <drugpackflag/>
  51. <erprcpflag/>
  52. <precureprcpflag/>
  53. <nigtprcpflag/>
  54. <portprcpflag/>
  55. <fixprcpflag/>
  56. <anamneflag/>
  57. <fastprcpflag/>
  58. <erreadflag/>
  59. <prcpdirecflag/>
  60. <tnsuseflag/>
  61. <tnsfiltflag/>
  62. <trnptbftestflag/>
  63. <offictourhealexamflag/>
  64. <stemcellflag/>
  65. <angioflagcd/>
  66. <opansflagcd/>
  67. <ansttm/>
  68. <mealcalrcnts/>
  69. <mealprotcnts/>
  70. <mealupdtflag/>
  71. <hosinprcpresncd/>
  72. <etcprcpresncd/>
  73. <drugmthdspccd/>
  74. <issdeptcd/>
  75. <prcpauthflag/>
  76. <prcpinptflag/>
  77. <prcpsignflag/>
  78. <rateprcpflag/>
  79. <prcprefseq/>
  80. <ordreqlnkno/>
  81. <testreqlnkno/>
  82. <prcplnkdd/>
  83. <prcplnkno/>
  84. <oprsrvno/>
  85. <tootfact/>
  86. <clinccmtcnts/>
  87. <prcpessninptflag/>
  88. <grupsnglflag/>
  89. <drugrateqty/>
  90. <asttestflag/>
  91. <clincstdyflag/>
  92. <prtlno/>
  93. <clincstdycd/>
  94. <optermcd/>
  95. <prcpflag/>
  96. <hscttempprcpflag/>
  97. <inclprcpcd/>
  98. <inclprcpno/>
  99. <pampkspec/>
  100. <prcppkspec/>
  101. <calcscormastspec/>
  102. <drugmastspec/>
  103. <rateprcpspec/>
  104. <matrsetprcpspec/>
  105. <suppdeptspec/>
  106. <contprcpspec/>
  107. <etclnkspec/>
  108. <srchcondcnts/>
  109. <orgprcpnm/>
  110. <chkcol/>
  111. <hsctdelivepos/>
  112. <hsctlnkno/>
  113. <etcprcpflag/>
  114. <aftcertflag/>
  115. <aftcertdrid/>
  116. <prcpvalidd/>
  117. <insukind/>
  118. <specdrid/>
  119. <anticncrprtlno/>
  120. <anticncrdayno/>
  121. <druglnkno/>
  122. <drprcpetc1/>
  123. <drprcpetc2/>
  124. <drprcpetc3/>
  125. <drprcpetc4/>
  126. <drprcpetc5/>
  127. <drprcpetc6/>
  128. <drprcpetc7/>
  129. <drprcpetc8/>
  130. <drprcpetc9/>
  131. <drprcpetc10/>
  132. <tempcol1/>
  133. <tempcol2/>
  134. <tempcol3/>
  135. <tempcol4/>
  136. <tempcol5/>
  137. <tempcol6/>
  138. <tempcol7/>
  139. <tempcol8/>
  140. <tempcol9/>
  141. <tempcol10/>
  142. <tempcol11/>
  143. <tempcol12/>
  144. <tempcol13/>
  145. <tempcol14/>
  146. <tempcol15/>
  147. <tempcol16/>
  148. <tempcol17/>
  149. <tempcol18/>
  150. <tempcol19/>
  151. <tempcol20/>
  152. <tempcol21/>
  153. <tempcol22/>
  154. <tempcol23/>
  155. <tempcol24/>
  156. <tempcol25/>
  157. </prcplist>
  158. </prcp>
  159. </main>
  160. <init>
  161. <prcpkindcd/>
  162. <prcpclscd/>
  163. <prcpstatcd/>
  164. <hosinprcpresncd/>
  165. <payflagcd/>
  166. <orddept/>
  167. </init>
  168. <prcptemp/>
  169. </root>
  170. </instance>
  171. <script type="javascript" ev:event="xforms-model-construct-done">
  172. <![CDATA[
  173. zbcfGetCodeList(new Array("M0003", "M0005", "M0011", "M0037", "M0029" ),
  174. new Array("/root/init/prcpkindcd","/root/init/prcpclscd","/root/init/prcpstatcd","/root/init/hosinprcpresncd", "/root/init/payflagcd"));
  175. grd_prcplist.rowstyle(1, "data", "background-color") = "#ffffcc";
  176. model.refresh();
  177. ]]>
  178. </script>
  179. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  180. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  181. </model>
  182. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  183. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  184. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  185. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  186. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  187. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  188. </xhtml:head>
  189. <xhtml:body pagewidth="1000" pageheight="660">
  190. <datagrid id="grd_prcplist" nodeset="/root/main/prcp/prcplist" dragmode="true" dropmode="true" caption="^상태^분류^종류^처방코드^처방명^총용량^단위^수량^단위^횟수^일수^용법/검체^MIX^급비^전달^원내외^시행부서^희망일자^선택진료^등록일시^등록자^전달" colsep="^" colwidth="38, 55, 0, 50, 80, 250, 45, 37, 37, 37, 40, 37, 106, 38, 44, 40, 50, 100, 100, 60, 120, 80" dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" selectionmode="byrow" tooltip="true" navindex="1" style="left:7px; top:21px; width:986px; height:607px; focus-rect:hidden; ">
  191. <col checkvalue="I,N" ref="status" type="checkbox" visibility="hidden" style="left:0px; top:23px; width:38px; height:23px; text-align:center; word-wrap:word; ">
  192. <choices>
  193. <item>
  194. <label>검색</label>
  195. <value>S</value>
  196. </item>
  197. <item>
  198. <label>신규</label>
  199. <value>I</value>
  200. </item>
  201. <item>
  202. <label>삭제</label>
  203. <value>D</value>
  204. </item>
  205. <item>
  206. <label>D/C</label>
  207. <value>C</value>
  208. </item>
  209. <item>
  210. <label>-</label>
  211. <value>-</value>
  212. </item>
  213. </choices>
  214. </col>
  215. <col disabled="true" ref="prcpstatcd" type="combo" style="left:38px; top:23px; width:55px; height:23px; text-align:center; ">
  216. <choices>
  217. <itemset nodeset="/root/init/prcpstatcd/M0011">
  218. <label ref="cdnm"/>
  219. <value ref="cdid"/>
  220. </itemset>
  221. </choices>
  222. </col>
  223. <col ref="prcpclscd" type="combo" style="left:93px; top:23px; width:0px; height:23px; text-align:left; ">
  224. <choices>
  225. <itemset nodeset="/root/init/prcpclscd/M0005">
  226. <label ref="cdnm"/>
  227. <value ref="cdid"/>
  228. </itemset>
  229. </choices>
  230. </col>
  231. <col disabled="true" ref="prcpkindcd" type="combo" style="left:93px; top:23px; width:0px; height:23px; text-align:center; ">
  232. <choices>
  233. <itemset nodeset="/root/init/prcpkindcd/M0003">
  234. <label ref="cdnm"/>
  235. <value ref="cdid"/>
  236. </itemset>
  237. </choices>
  238. </col>
  239. <col ref="prcpcd" type="output" style="left:93px; top:23px; width:80px; height:23px; text-align:left; "/>
  240. <col ref="prcpnm" style="left:173px; top:23px; width:250px; height:23px; text-align:left; "/>
  241. <col ref="prcpvol" style="left:423px; top:23px; width:45px; height:23px; text-align:center; "/>
  242. <col ref="prcpvolunitnm" style="left:468px; top:23px; width:37px; height:23px; text-align:center; "/>
  243. <col ref="prcpqty" format="#.###" maxlength=".3" style="left:505px; top:23px; width:37px; height:23px; text-align:center; "/>
  244. <col ref="prcpqtyunitnm" style="left:542px; top:23px; width:37px; height:23px; text-align:center; "/>
  245. <col ref="prcptims" style="left:579px; top:23px; width:40px; height:23px; text-align:center; "/>
  246. <col ref="prcpdayno" style="left:619px; top:23px; width:37px; height:23px; text-align:center; "/>
  247. <col checkvalue="Y,N" ref="drugmthdspccdnm" type="output" style="left:656px; top:23px; width:75px; height:23px; "/>
  248. <col ref="prcpmixno" style="left:731px; top:23px; width:38px; height:23px; "/>
  249. <col disabled="true" ref="payflagcd" type="combo" style="left:769px; top:23px; width:44px; height:23px; ">
  250. <choices>
  251. <itemset nodeset="/root/init/payflagcd/M0029">
  252. <label ref="cdnm"/>
  253. <value ref="cdid"/>
  254. </itemset>
  255. </choices>
  256. </col>
  257. <col ref="prcpdelivefact" style="left:813px; top:23px; width:40px; height:23px; "/>
  258. <col disabled="true" ref="hosinhosoutflag" type="combo" style="left:853px; top:23px; width:50px; height:23px; text-align:center; ">
  259. <choices>
  260. <item>
  261. <label>원내</label>
  262. <value>I</value>
  263. </item>
  264. <item>
  265. <label>원외</label>
  266. <value>O</value>
  267. </item>
  268. <item>
  269. <label/>
  270. <value/>
  271. </item>
  272. </choices>
  273. </col>
  274. <col disabled="true" ref="prcpexecdeptcd" type="combo" visibility="hidden" style="left:903px; top:23px; width:100px; height:23px; text-align:center; ">
  275. <choices>
  276. <itemset nodeset="/root/init/orddept/dept">
  277. <label ref="depthngnm"/>
  278. <value ref="deptcd"/>
  279. </itemset>
  280. </choices>
  281. </col>
  282. <col ref="prcphopedd" format="yyyy-mm-dd" style="left:1003px; top:23px; width:100px; height:23px; text-align:center; "/>
  283. <col ref="choiordflag" style="left:1103px; top:23px; width:60px; height:23px; text-align:center; ">
  284. <choices/>
  285. </col>
  286. <col ref="rgstdt" format="yyyy-mm-dd hh:mm:ss" style="left:1163px; top:23px; width:100px; height:23px; text-align:center; "/>
  287. <col ref="rgstridnm" style="left:1263px; top:23px; width:100px; height:23px; text-align:center; "/>
  288. <script type="javascript" ev:event="xforms-value-changed">
  289. <![CDATA[
  290. if ( grd_prcplist.row == 1 ) {
  291. if ( grd_prcplist.col == grd_prcplist.colref("status")) {
  292. var status = model.getValue ( "/root/main/prcp/prcplist/status" );
  293. for ( var i = 2; i < grd_prcplist.rows; i++ ) {
  294. model.setValue ( "/root/main/prcp/prcplist[" + i + "]/status", status );
  295. }
  296. }
  297. }
  298. ]]>
  299. </script>
  300. </datagrid>
  301. <line id="line5" class="line_1" style="x1:7px; y1:17px; x2:992px; y2:18px; "/>
  302. <caption id="caption1" class="tit_2" style="left:12px; top:0px; width:289px; height:14px; ">종속처방으로 묶으시겠습니까 ?</caption>
  303. <button id="button1" class="btn4_letter6" style="left:829px; top:635px; width:104px; height:22px; ">
  304. <caption>종속처방묶음</caption>
  305. <script type="javascript" ev:event="DOMActivate">
  306. <![CDATA[
  307. var srcNodeList = model.instances(0).selectNodes( "/root/main/prcp/prcplist" );
  308. var inclprcpno = eval(opener.model.getValue ( "/root/init/inclprcpno")) + 1;
  309. var inclprcpcd = opener.javascript.getParameter ( "SPMMO14300_inclprcpcd" );
  310. var prcpgenrflag = opener.model.getValue ( "/root/patflag/list/prcpgenrflag" );
  311. var prcpclscd = "";
  312. for ( var i =1; i< grd_prcplist.rows; i++ ) {
  313. if ( model.getValue ( "/root/main/prcp/prcplist[" + i + "]/status" ) == "I" ) {
  314. prcpclscd = model.getValue ( "/root/main/prcp/prcplist[" + i + "]/prcpclscd" );
  315. model.setValue ( "/root/main/prcp/prcplist[" + i + "]/inclprcpno", inclprcpno );
  316. model.setValue ( "/root/main/prcp/prcplist[" + i + "]/inclprcpcd", inclprcpcd );
  317. //외래일경우 약, 주사 에 원내처방사유 검사 수술처리에 사용
  318. if ( prcpclscd == "A2" || prcpclscd == "A4" || prcpclscd == "A6" ){
  319. if ( prcpgenrflag == "O" ) {
  320. model.setValue ( "/root/main/prcp/prcplist[" + i + "]/hosinhosoutflag", "I" );//원내
  321. model.setValue ( "/root/main/prcp/prcplist[" + i + "]/hosinprcpresncd", "55" );//원내처방사유(원내처방사유 검사 수술처리에 사용)
  322. }
  323. model.setValue ( "/root/main/prcp/prcplist[" + i + "]/precureprcpflag", "Y" );//선처치여부
  324. }
  325. var openerRow = model.getValue ( "/root/main/prcp/prcplist[" + i + "]/prcprefseq" );
  326. var srcSingleNode = opener.model.instances(0).selectSingleNode( "/root/main/prcp/prcplist[" + openerRow + "]" );
  327. var destNode = opener.model.instances(0).selectSingleNode( "/root/main/prcp" );
  328. //복사할 노드를 오프너의 특정노드에 replace 한다.
  329. destNode.replaceChild( srcNodeList.item(i-1).cloneNode(true), srcSingleNode);
  330. opener.model.setValue ( "/root/init/inclprcpno", inclprcpno );
  331. }
  332. }
  333. opener.model.refresh();
  334. window.close();
  335. ]]>
  336. </script>
  337. </button>
  338. <button id="button2" class="btn4_letter2" style="left:935px; top:635px; width:56px; height:22px; ">
  339. <caption>취소</caption>
  340. <script type="javascript" ev:event="DOMActivate">
  341. <![CDATA[
  342. window.close();
  343. ]]>
  344. </script>
  345. </button>
  346. </xhtml:body>
  347. </xhtml:html>