SPMMR09000_처방조회.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502
  1. <?xml version="1.0" encoding="UTF-8"?>
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <cond>
  11. <cond1/>
  12. <cond2/>
  13. <cond3/>
  14. <cond4/>
  15. <cond5/>
  16. <cond6/>
  17. <cond7/>
  18. <cond8/>
  19. <cond9/>
  20. <cond10/>
  21. <cond11/>
  22. <cond13/>
  23. <cond14/>
  24. <cond97/>
  25. <cond98/>
  26. <cond99/>
  27. <bCurr/>
  28. </cond>
  29. </send>
  30. <prcpsrch>
  31. <prcplist>
  32. <chk/>
  33. <status/>
  34. <prcpstatcd/>
  35. <prcpclscd/>
  36. <prcpkindcd/>
  37. <prcpcd/>
  38. <prcpnm/>
  39. <prcpvol/>
  40. <prcpvolunitnm/>
  41. <prcpqty/>
  42. <prcpqtyunitnm/>
  43. <prcptims/>
  44. <prcpdayno/>
  45. <drugmthdspccdnm/>
  46. <prcpmixno/>
  47. <payflagcd/>
  48. <prcpdelivefact/>
  49. <hosinhosoutflag/>
  50. <prcpexecdeptcd/>
  51. <prcphopedd/>
  52. <choiordflag/>
  53. <rgstdt/>
  54. <rgstridnm/>
  55. <testrsltunit/>
  56. <testrsltcnts/>
  57. <prcpgenrflag/>
  58. <prcphistcd/>
  59. <tempprcpflag/>
  60. <prcpsetcd/>
  61. <prcpvolunitflag/>
  62. <prcpqtyunitflag/>
  63. <orgprcpqty/>
  64. <drugspd/>
  65. <drugspdunitflag/>
  66. <powdflag/>
  67. <prnprcpflag/>
  68. <prepprcpflag/>
  69. <selfprcpflag/>
  70. <selfdrugflag/>
  71. <drugpackflag/>
  72. <erprcpflag/>
  73. <precureprcpflag/>
  74. <nigtprcpflag/>
  75. <portprcpflag/>
  76. <fixprcpflag/>
  77. <anamneflag/>
  78. <fastprcpflag/>
  79. <erreadflag/>
  80. <prcpdirecflag/>
  81. <tnsuseflag/>
  82. <tnsfiltflag/>
  83. <trnptbftestflag/>
  84. <offictourhealexamflag/>
  85. <stemcellflag/>
  86. <angioflagcd/>
  87. <opansflagcd/>
  88. <ansttm/>
  89. <mealcalrcnts/>
  90. <mealprotcnts/>
  91. <mealupdtflag/>
  92. <hosinprcpresncd/>
  93. <etcprcpresncd/>
  94. <drugmthdspccd/>
  95. <issdeptcd/>
  96. <prcpauthflag/>
  97. <prcpinptflag/>
  98. <prcpsignflag/>
  99. <rateprcpflag/>
  100. <prcprefseq/>
  101. <ordreqlnkno/>
  102. <testreqlnkno/>
  103. <prcplnkdd/>
  104. <prcplnkno/>
  105. <oprsrvno/>
  106. <tootfact/>
  107. <clinccmtcnts/>
  108. <prcpessninptflag/>
  109. <grupsnglflag/>
  110. <drugrateqty/>
  111. <asttestflag/>
  112. <clincstdyflag/>
  113. <prtlno/>
  114. <clincstdycd/>
  115. <optermcd/>
  116. <prcpflag/>
  117. <hscttempprcpflag/>
  118. <inclprcpcd/>
  119. <inclprcpno/>
  120. <pampkspec/>
  121. <prcppkspec/>
  122. <calcscormastspec/>
  123. <drugmastspec/>
  124. <rateprcpspec/>
  125. <matrsetprcpspec/>
  126. <suppdeptspec/>
  127. <contprcpspec/>
  128. <etclnkspec/>
  129. <srchcondcnts/>
  130. <orgprcpnm/>
  131. <chkcol/>
  132. <hsctdelivepos/>
  133. <hsctlnkno/>
  134. <etcprcpflag/>
  135. <aftcertflag/>
  136. <aftcertdrid/>
  137. <prcpvalidd/>
  138. <spynpy1/>
  139. <specdrid/>
  140. <specdrnm/>
  141. <anticncrprtlno/>
  142. <anticncrdayno/>
  143. <druglnkno/>
  144. <rehbprcpcurefreqflag/>
  145. <dietprcpgenrflag/>
  146. <irpayflag/>
  147. <irflag/>
  148. <procerdietflag/>
  149. <diagtestconttestintvlflag/>
  150. <drugindependpackflag/>
  151. <diagtestconttestbasetm/>
  152. <diagtestconttestorgtims/>
  153. <ermediscmngtresncd/>
  154. <rehbprcpenddd/>
  155. <matrallsizespecid/>
  156. <rehbprcpcurepartcd/>
  157. <lowdrugresncd/>
  158. <tfdtlcd/>
  159. <dnorreqlnkno/>
  160. <subcretno/>
  161. <exptmthdfact/>
  162. <lowdrugresnetcfact/>
  163. <diagtestconttestcdspec/>
  164. <drprcpetc1/>
  165. <drprcpetc2/>
  166. <drprcpetc3/>
  167. <drprcpetc4/>
  168. <drprcpetc5/>
  169. <drprcpetc6/>
  170. <drprcpetc7/>
  171. <drprcpetc8/>
  172. <drprcpetc9/>
  173. <drprcpetc10/>
  174. <tempcol1/>
  175. <tempcol2/>
  176. <tempcol3/>
  177. <tempcol4/>
  178. <tempcol5/>
  179. <tempcol6/>
  180. <tempcol7/>
  181. <tempcol8/>
  182. <tempcol9/>
  183. <tempcol10/>
  184. <tempcol11/>
  185. <tempcol12/>
  186. <tempcol13/>
  187. <tempcol14/>
  188. <tempcol15/>
  189. <tempcol16/>
  190. <tempcol17/>
  191. <tempcol18/>
  192. <tempcol19/>
  193. <tempcol20/>
  194. <tempcol21/>
  195. <tempcol22/>
  196. <tempcol23/>
  197. <tempcol24/>
  198. <tempcol25/>
  199. <rgstdeptcd/>
  200. <prcpclassnm/>
  201. </prcplist>
  202. </prcpsrch>
  203. <main>
  204. <patinfo>
  205. <patinfolist>
  206. <pid/>
  207. <hngnm/>
  208. </patinfolist>
  209. </patinfo>
  210. </main>
  211. </root>
  212. </instance>
  213. <submission id="TRMMO00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/diaginfo"/>
  214. <submission id="TRMMO00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/prcpsrch"/>
  215. <submission id="TRMMR00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/resvlist"/>
  216. <script type="javascript" ev:event="xforms-ready">
  217. <![CDATA[
  218. fInit();
  219. ]]>
  220. </script>
  221. <bind id="bnd_prcpgenrflag" ref="/root/prcpsrch/prcplist[prcpkindcd != '' and prcphistcd = 'O']/prcpgenrflag" readonly="1=1"/>
  222. </model>
  223. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  224. <!--script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/-->
  225. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  226. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  227. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  228. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  229. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  230. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMO00100.js"/>
  231. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  232. <script type="javascript" src="../../../emr/medirecweb/js/MMRCommon.js"/>
  233. <script type="javascript" src="../../../emr/medirecweb/js/SPMMR09000.js"/>
  234. </xhtml:head>
  235. <xhtml:body pagewidth="740" pageheight="760">
  236. <shape id="roundrect5" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:710px; height:70px; background-color:#fffbf2; border-color:#ffd799; "/>
  237. <caption id="caption1" class="search_name" style="left:7px; top:41px; width:99px; height:17px; ">등록번호 :</caption>
  238. <select1 id="combo1" ref="/root/main/cond/prcpclsflag" visibility="hidden" appearance="minimal" style="left:424px; top:41px; width:224px; height:19px; ">
  239. <choices>
  240. <item>
  241. <label>전체</label>
  242. <value/>
  243. </item>
  244. <item>
  245. <label>약/주사</label>
  246. <value>1</value>
  247. </item>
  248. <item>
  249. <label>PRN처방</label>
  250. <value>2</value>
  251. </item>
  252. <item>
  253. <label>진단검사</label>
  254. <value>3</value>
  255. </item>
  256. <item>
  257. <label>방사선/핵의학</label>
  258. <value>4</value>
  259. </item>
  260. <item>
  261. <label>수혈</label>
  262. <value>5</value>
  263. </item>
  264. <item>
  265. <label>기능검사</label>
  266. <value>6</value>
  267. </item>
  268. <item>
  269. <label>처치/마취/수술/재료</label>
  270. <value>7</value>
  271. </item>
  272. <item>
  273. <label>식사</label>
  274. <value>8</value>
  275. </item>
  276. <item>
  277. <label>선택한 처방만 조회</label>
  278. <value>10</value>
  279. </item>
  280. <item>
  281. <label>차트형식보기</label>
  282. <value>11</value>
  283. </item>
  284. <item>
  285. <label>지시처방</label>
  286. <value>12</value>
  287. </item>
  288. </choices>
  289. <script type="javascript" ev:event="xforms-value-changed">
  290. <![CDATA[
  291. var prcpclsflag = model.getValue("/root/main/cond/prcpclsflag");
  292. var ordtype = model.getValue("/root/main/cond/ordtype");
  293. if(prcpclsflag == 10){ //선택한 처방만 조회인 경우
  294. combo3.visible = true;
  295. ipt_prcpnm.visible = true;
  296. }else{ //그 이외의 경우는 hidden
  297. combo3.visible = false;
  298. ipt_prcpnm.visible = false;
  299. }
  300. if (model.getValue("/root/hidden/selfholdchk/hardcd/hardcd") == "Y"){
  301. if(prcpclsflag != 1 ){
  302. combo2.disabled = true;
  303. button7.disabled = true;
  304. selfchk.disabled = true;
  305. model.setValue("/root/main/cond/selfchk" ,"N");
  306. model.setValue("/root/main/cond/selfholdflag" ,"");
  307. }else if(prcpclsflag == 1){
  308. combo2.disabled = false;
  309. button7.disabled = false;
  310. selfchk.disabled = false;
  311. model.setValue("/root/main/cond/selfchk" ,"Y");
  312. model.setValue("/root/main/cond/selfholdflag" ,"1");
  313. }
  314. }
  315. model.refresh();
  316. ]]>
  317. </script>
  318. </select1>
  319. <caption id="caption2" class="search_name" visibility="hidden" style="left:317px; top:41px; width:169px; height:17px; ">현재 투약중인 약만 조회</caption>
  320. <caption id="caption3" class="search_name" style="left:317px; top:15px; width:103px; height:17px; ">처방적용일 :</caption>
  321. <input id="ipt_hngnm" ref="/root/send/cond/cond98" class="input_search" style="left:190px; top:41px; width:90px; height:19px; ">
  322. <script type="javascript" ev:event="onkeypress">
  323. <![CDATA[
  324. inputEnterKey("btn_patsrch", "DOMActivate");
  325. ]]>
  326. </script>
  327. </input>
  328. <input id="ipt_todd" ref="/root/send/cond/cond8" class="input_search" inputtype="date" style="left:540px; top:15px; width:97px; height:19px; text-align:center; "/>
  329. <caption id="caption6" style="left:525px; top:15px; width:25px; height:20px; ">~</caption>
  330. <select1 id="radio2" ref="/root/send/cond/cond9" disabled="true" appearance="full" cellspacing="15" cols="3" overflow="visible" style="left:97px; top:15px; width:168px; height:20px; border-style:none; ">
  331. <choices>
  332. <item>
  333. <label>외래</label>
  334. <value>O</value>
  335. </item>
  336. <item>
  337. <label>응급</label>
  338. <value>E</value>
  339. </item>
  340. <item>
  341. <label>입원</label>
  342. <value>I</value>
  343. </item>
  344. </choices>
  345. <script type="javascript" ev:event="xforms-value-changed">
  346. <![CDATA[
  347. /*
  348. var ordtype = model.getValue("/root/main/cond/ordtype");
  349. if (ordtype == "-") {
  350. if (model.getValue("/root/hidden/selfholdchk/hardcd/hardcd") == "Y"){
  351. model.setValue("/root/main/cond/selfchk","Y");
  352. model.setValue("/root/main/cond/selfholdflag", "1");
  353. }
  354. ipt_fromdd.disabled = false;
  355. ipt_todd.disabled = false;
  356. cmb_inpthist.disabled = true;
  357. combo2.disabled = false;
  358. button7.disabled = false;
  359. selfchk.disabled = false;
  360. } else {
  361. if (model.getValue("/root/hidden/selfholdchk/hardcd/hardcd") == "Y"){
  362. model.setValue("/root/main/cond/selfchk","N");
  363. model.setValue("/root/main/cond/selfholdflag", "1");
  364. }
  365. ipt_fromdd.disabled = true;
  366. ipt_todd.disabled = true;
  367. cmb_inpthist.disabled = false;
  368. combo2.disabled = true;
  369. selfchk.disabled = true;
  370. }
  371. var pid = model.getValue("/root/main/cond/pid");
  372. if(pid != ""){
  373. model.removeNodeset("/root/send/reqdata");
  374. model.makeValue("/root/send/reqdata/pid", pid);
  375. model.makeValue("/root/send/reqdata/ordtype", ordtype);
  376. if(submit("TRMMO14902")){
  377. var node = model.instances(0).selectNodes("/root/init/patinfo/patinfo");
  378. if(node.length == 0){
  379. messageBox("환자정보가", "I004");
  380. return;
  381. }
  382. cmb_inpthist.select(0);
  383. }
  384. }
  385. model.refresh();
  386. */
  387. ]]>
  388. </script>
  389. </select1>
  390. <button id="btn_patsrch" class="icon_search" style="left:284px; top:41px; width:16px; height:16px; ">
  391. <caption/>
  392. <script type="javascript" ev:event="DOMActivate">
  393. <![CDATA[
  394. modal("SPPMC02500");
  395. var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
  396. var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  397. model.setValue("/root/send/cond/cond1" , sPid);
  398. model.setValue("/root/send/cond/cond98", sHngnm);
  399. model.refresh();
  400. //btn_reqpatnm.dispatch("DOMActivate");
  401. ]]>
  402. </script>
  403. </button>
  404. <input id="input2" ref="/root/send/cond/cond1" style="left:96px; top:41px; width:92px; height:19px; ">
  405. <script type="javascript" ev:event="onkeypress">
  406. <![CDATA[
  407. //inputEnterKey("btn_reqpatnm", "DOMActivate");
  408. ]]>
  409. </script>
  410. </input>
  411. <caption id="caption7" class="search_name" style="left:7px; top:15px; width:99px; height:17px; ">진료구분 :</caption>
  412. <input id="ipt_fromdd" ref="/root/send/cond/cond2" class="input_search" inputtype="date" style="left:424px; top:15px; width:97px; height:19px; text-align:center; "/>
  413. <button id="btn_req" class="btn1_letter2" style="left:649px; top:38px; width:56px; height:22px; ">
  414. <caption>조회</caption>
  415. <script type="javascript" ev:event="DOMActivate">
  416. <![CDATA[
  417. fGetPrcpList();
  418. ]]>
  419. </script>
  420. </button>
  421. <!--
  422. <datagrid id="grd_prcplist" nodeset="/root/prcpsrch/prcplist[prcpkindcd != '' and prcphistcd != 'C' and prcphistcd != 'L' and prcphistcd != 'E']" caption="선택^처방일자^구분^처방^용법" colsep="^" colwidth="50, 100, 50, 180, 303" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:80px; width:705px; height:620px; ">
  423. -->
  424. <!--
  425. <datagrid id="grd_prcplist" nodeset="/root/prcpsrch/prcplist[prcpkindcd != '' and prcphistcd = 'O']" caption="선택^처방일자^구분^처방^용법" colsep="^" colwidth="50, 100, 50, 180, 303" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:80px; width:705px; height:620px; ">
  426. -->
  427. <datagrid id="grd_prcplist" nodeset="/root/prcpsrch/prcplist" caption="선택^처방일자^구분^처방^용법" colsep="^" colwidth="50, 100, 50, 180, 303" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:80px; width:705px; height:620px; ">
  428. <col checkvalue="Y" ref="chkcol" type="checkbox"/>
  429. <col ref="tempcol3" format="yyyy-mm-dd" style="text-align:center; "/>
  430. <col disabled="true" ref="prcpgenrflag" type="combo" style="text-align:center; ">
  431. <choices>
  432. <item>
  433. <label>입원</label>
  434. <value>I</value>
  435. </item>
  436. <item>
  437. <label>외래</label>
  438. <value>O</value>
  439. </item>
  440. <item>
  441. <label>응급</label>
  442. <value>E</value>
  443. </item>
  444. </choices>
  445. </col>
  446. <col ref="tempcol6"/>
  447. <col ref="tempcol7"/>
  448. <script type="javascript" ev:event="xforms-value-changed">
  449. <![CDATA[
  450. var bEqual = true;
  451. var iRow = grd_prcplist.row;
  452. var bChk = model.getValue(grd_prcplist.nodeset+"["+ iRow+"]/chkcol") == "true"?"true":"false";
  453. var val = model.getValue(grd_prcplist.nodeset+"["+ iRow+"]/pampkspec");
  454. while (bEqual) {
  455. iRow++;
  456. if (val == model.getValue(grd_prcplist.nodeset+"["+ iRow +"]/pampkspec")) {
  457. model.setValue(grd_prcplist.nodeset+"["+ iRow+"]/chkcol", bChk);
  458. } else {
  459. bEqual = false;
  460. break;
  461. }
  462. }
  463. grd_prcplist.refresh();
  464. ]]>
  465. </script>
  466. </datagrid>
  467. <button id="btn_cncl" class="btn2_letter2" style="left:670px; top:705px; width:42px; height:19px; ">
  468. <caption>취소</caption>
  469. <script type="javascript" ev:event="onclick">
  470. <![CDATA[
  471. fCncl();
  472. ]]>
  473. </script>
  474. </button>
  475. <button id="btn_cnfm" class="btn2_letter2" style="left:625px; top:705px; width:42px; height:19px; ">
  476. <caption>확인</caption>
  477. <script type="javascript" ev:event="onclick">
  478. <![CDATA[
  479. fCnfm();
  480. ]]>
  481. </script>
  482. </button>
  483. <bool id="bool1" visibility="hidden" checkvalue="Y" ref="/root/send/cond/bCurr" style="left:495px; top:40px; width:55px; height:20px; ">
  484. <script type="javascript" ev:event="xforms-value-changed">
  485. <![CDATA[
  486. alert(bool1.value);
  487. if (bool1.value != "Y") {
  488. grd_prcplist.nodeset = "/root/prcpsrch/prcplist[prcpkindcd != '' and prcphistcd != 'C' and prcphistcd != 'L' and prcphistcd != 'E']";
  489. } else {
  490. grd_prcplist.nodeset = "/root/prcpsrch/prcplist[prcpkindcd != '' and prcphistcd = 'O']";
  491. }
  492. //grd_prcplist.refresh();
  493. ]]>
  494. </script>
  495. </bool>
  496. </xhtml:body>
  497. </xhtml:html>