SPMMO33900_환자별처방조회.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  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. <pid/>
  12. <hngnm/>
  13. <prid>1M</prid>
  14. <fromdd/>
  15. <todd/>
  16. <orddeptcd/>
  17. <ordgubun>T</ordgubun>
  18. <orddrid/>
  19. <prcpclscd/>
  20. <prcpkindcd/>
  21. <spcldrug/>
  22. <prcpstatcd/>
  23. <prcpcd/>
  24. <prcpnm/>
  25. </cond>
  26. <prcpinfo>
  27. <prcplist/>
  28. </prcpinfo>
  29. <patinfo>
  30. <patinfolist/>
  31. </patinfo>
  32. </main>
  33. <send>
  34. <reqdata/>
  35. </send>
  36. <init>
  37. <orddept/>
  38. <prcpkindcd/>
  39. <prcpclscd/>
  40. <spcldrug/>
  41. <prcpstatcd/>
  42. <orddrlist/>
  43. </init>
  44. <hidden/>
  45. </root>
  46. </instance>
  47. <script type="javascript">
  48. <![CDATA[
  49. function fReqGetPrcpList() {
  50. model.resetInstanceNode("/root/main/prcpinfo/prcplist");
  51. model.refresh(); // 트리가 접힌 상태에서 재조회 하면 그리드에 접힌 수만큼 조회 되지 않는 오류 수정.
  52. submit("TRMMO33901");
  53. setTree(datagrid1, datagrid1.colRef("execprcplevel"), datagrid1.colRef("prcpnm") , true);
  54. }
  55. ]]>
  56. </script>
  57. <submission id="TRMMO33901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/prcpinfo"/>
  58. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  59. <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
  60. <script type="javascript" ev:event="xforms-ready">
  61. <![CDATA[
  62. model.setValue("/root/main/cond/fromdd" ,((getCurrentDate().toDate()).getAddDate(-1,"M")).getDateFormat()); //시작일자는 1개월 전
  63. model.setValue("/root/main/cond/todd" , getCurrentDate()); //종료일자는 현재일자
  64. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept" , "A"); //부서코드 콤보
  65. zbcfGetCodeList(new Array( "M0003"
  66. , "M0005"
  67. , "M0011"
  68. , "A0006"),
  69. new Array( "/root/init/prcpkindcd"
  70. , "/root/init/prcpclscd"
  71. , "/root/init/prcpstatcd"
  72. ,"/root/init/spcldrug"));
  73. addComboInstance("/root/init/orddept", "deptcd^depthngnm", "-^전체", "dept"); //진료과 전체항목 추가
  74. cmb_orddept.select(0);
  75. model.makeNode("/root/init/orddrlist/usercombo");
  76. addComboInstance("/root/init/orddrlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  77. cmb_orddrid.select(0);
  78. addComboInstance("/root/init/prcpstatcd", "cdid^cdnm", "-^전체", "M0011"); //진행상태 전체항목 추가
  79. com_prcpstatcd.select(0);
  80. addComboInstance("/root/init/prcpkindcd", "cdid^cdnm", "-^전체", "M0003"); //처방종류 전체항목 추가
  81. com_prcpkindcd.select(0);
  82. addComboInstance("/root/init/prcpclscd", "cdid^cdnm", "-^전체", "M0005"); //처방분류 전체항목 추가
  83. com_prcpclscd.select(0);
  84. addComboInstance("/root/init/spcldrug", "cdid^cdnm", "-^전체", "A0006"); //특별약품 전체항목 추가
  85. com_spcldrug.select(0);
  86. model.refresh();
  87. var sPid = getPatientInfo("pid");
  88. if(!isNull(sPid) ) {
  89. model.setValue("/root/main/cond/pid", sPid);
  90. model.setValue("/root/main/cond/hngnm", getPatientInfo("pname"));
  91. btn_req.dispatch("DOMActivate");
  92. }
  93. ]]>
  94. </script>
  95. </model>
  96. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  97. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  99. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  100. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  101. </xhtml:head>
  102. <xhtml:body pagewidth="1030" pageheight="750" guideline="1,1009;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  103. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1010px; height:110px; background-color:#fffbf2; border-color:#ffd799; "/>
  104. <caption id="caption9" class="tit_1" style="left:0px; top:0px; width:160px; height:14px; vertical-align:middle; ">환자별 처방조회</caption>
  105. <caption id="caption2" class="search_name" style="left:270px; top:30px; width:95px; height:17px; vertical-align:middle; ">처방일자 :</caption>
  106. <input id="input4" ref="/root/main/cond/fromdd" class="input" inputtype="date" style="left:357px; top:30px; width:85px; height:19px; "/>
  107. <caption id="caption3" style="left:445px; top:30px; width:15px; height:20px; ">~</caption>
  108. <input id="input3" ref="/root/main/cond/todd" class="input" inputtype="date" style="left:458px; top:30px; width:85px; height:19px; "/>
  109. <select1 id="cmb_prid" ref="/root/main/cond/prid" appearance="minimal" style="left:545px; top:30px; width:55px; height:19px; ">
  110. <choices>
  111. <item>
  112. <label>1개월</label>
  113. <value>1M</value>
  114. </item>
  115. <item>
  116. <label>3개월</label>
  117. <value>3M</value>
  118. </item>
  119. <item>
  120. <label>6개월</label>
  121. <value>6M</value>
  122. </item>
  123. <item>
  124. <label>9개월</label>
  125. <value>9M</value>
  126. </item>
  127. <item>
  128. <label>1년</label>
  129. <value>1Y</value>
  130. </item>
  131. <item>
  132. <label>2년</label>
  133. <value>2Y</value>
  134. </item>
  135. </choices>
  136. <script type="javascript" ev:event="xforms-value-changed">
  137. <![CDATA[
  138. var today = getCurrentDate();
  139. var idate = new Date();
  140. var prid = model.getValue("/root/main/cond/prid");
  141. // model.makeValue("/root/send/cond/fromdd", peveDate.getDateFormat());
  142. // model.makeValue("/root/send/cond/todd", today);
  143. if (prid =="3M") {
  144. var threeMDate = idate.getAddDate(-3, "M");
  145. model.setValue("/root/main/cond/fromdd", threeMDate.getDateFormat());
  146. model.setValue("/root/main/cond/todd", today);
  147. } else if (prid =="6M") {
  148. var sixMDate = idate.getAddDate(-6, "M");
  149. model.setValue("/root/main/cond/fromdd", sixMDate.getDateFormat());
  150. model.setValue("/root/main/cond/todd", today);
  151. } else if (prid =="9M") {
  152. var nineMDate = idate.getAddDate(-9, "M");
  153. model.setValue("/root/main/cond/fromdd", nineMDate.getDateFormat());
  154. model.setValue("/root/main/cond/todd", today);
  155. } else if (prid =="1Y") {
  156. var oneYDate = idate.getAddDate(-1, "Y");
  157. model.setValue("/root/main/cond/fromdd", oneYDate.getDateFormat());
  158. model.setValue("/root/main/cond/todd", today);
  159. } else if (prid =="2Y") {
  160. var twoYDate = idate.getAddDate(-2, "Y");
  161. model.setValue("/root/main/cond/fromdd", twoYDate.getDateFormat());
  162. model.setValue("/root/main/cond/todd", today);
  163. }
  164. model.refresh();
  165. ]]>
  166. </script>
  167. </select1>
  168. <caption id="caption10" class="search_name" style="left:610px; top:30px; width:101px; height:17px; vertical-align:middle; ">등록번호:</caption>
  169. <input id="input1" ref="/root/main/cond/pid" style="left:695px; top:30px; width:80px; height:19px; ">
  170. <script type="javascript" ev:event="onkeypress">
  171. <![CDATA[
  172. inputEnterKey("btn_req", "DOMActivate");
  173. ]]>
  174. </script>
  175. </input>
  176. <button id="btn_patsrch" class="icon_search" style="left:879px; top:30px; width:16px; height:16px; ">
  177. <caption/>
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. modal("SPPMC02500");
  181. var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
  182. var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  183. model.setValue("/root/main/cond/pid", sPid);
  184. model.setValue("/root/main/cond/hngnm", sHngnm);
  185. model.refresh();
  186. ]]>
  187. </script>
  188. </button>
  189. <input id="input2" ref="/root/main/cond/hngnm" disabled="true" style="left:780px; top:30px; width:95px; height:19px; "/>
  190. <caption id="caption1" class="search_name" style="left:6px; top:55px; width:95px; height:17px; vertical-align:middle; ">진 료 과 :</caption>
  191. <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_default" appearance="minimal" editmode="search" style="left:95px; top:55px; width:166px; height:19px; ">
  192. <choices>
  193. <itemset nodeset="/root/init/orddept/dept">
  194. <label ref="depthngnm"/>
  195. <value ref="deptcd"/>
  196. </itemset>
  197. </choices>
  198. <script type="javascript" ev:event="xforms-value-changed">
  199. <![CDATA[
  200. if(cmb_orddept.value != "-") {
  201. model.removeNodeset("/root/init/orddrlist");
  202. model.makeNode("/root/init/orddrlist/usercombo");
  203. mmbfGetUserComboList("/root/send/reqdata", "/root/init/orddrlist", cmb_orddept.value, "0330");
  204. addComboInstance("/root/init/orddrlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  205. cmb_orddrid.select(0);
  206. model.refresh();
  207. }
  208. ]]>
  209. </script>
  210. </select1>
  211. <line id="line3" style="x1:930px; y1:30px; x2:930px; y2:120px; border-color:#ffe4bb; border-left-style:solid; "/>
  212. <button id="btn_req" class="btn1_letter2" style="left:945px; top:40px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  213. <caption>조회</caption>
  214. <script type="javascript" ev:event="DOMActivate">
  215. <![CDATA[
  216. fPidTrim("/root/main/cond/pid")
  217. var pid = model.getValue("/root/main/cond/pid");
  218. if(pid == ""){
  219. messageBox("조회 하실 환자번호를", "C001");
  220. return;
  221. }
  222. if(reqPatInfo("pid", "ptbs", pid)==true){
  223. var hngnm = model.getValue("/root/init/patnm/patnm/hngnm");
  224. model.setValue("/root/main/cond/hngnm", hngnm);
  225. input2.refresh();
  226. fReqGetPrcpList();
  227. }
  228. ]]>
  229. </script>
  230. </button>
  231. <button id="button3" class="btn3_letter6" style="left:795px; top:134px; width:104px; height:22px; ">
  232. <caption>통합기록조회</caption>
  233. <script type="javascript" ev:event="DOMActivate">
  234. <![CDATA[
  235. var pid = model.getValue("/root/main/cond/pid");
  236. if(pid == ""){
  237. messageBox("통합기록조회를 검색할 환자를", "C002");
  238. return;
  239. }
  240. var wndobj = getOpenWindow("SMMRI00400");
  241. if(wndobj != null){
  242. setParameter("SMMRI00400_param_pid", pid);
  243. wndobj.javascript.fInitalize();
  244. }else{
  245. setParameter("SMMRI00400_param_pid", pid);
  246. open("SMMRI00400", 2, 0, 0);
  247. }
  248. ]]>
  249. </script>
  250. </button>
  251. <button id="button5" class="btn3_letter6" style="left:904px; top:134px; width:104px; height:22px; ">
  252. <caption>통합결과조회</caption>
  253. <script type="javascript" ev:event="DOMActivate">
  254. <![CDATA[
  255. var pid = model.getValue("/root/main/cond/pid");
  256. model.makeValue("/root/source/pid", pid);
  257. if(pid == ""){
  258. messageBox("통합결과조회를 검색할 환자를", "C002");
  259. return;
  260. }
  261. curExamRsltObj = getOpenWindow("SMAER00800"); //활성화된 검사결과 화면 object loading
  262. if(curExamRsltObj != null){
  263. //curExamRsltObj.javascript.model.dispatch("xforms-ready");
  264. curExamRsltObj.model.setvalue("/root/send/data/singdata/srchpid", pid );
  265. curExamRsltObj.javascript.btn_srch.dispatch("DOMActivate");
  266. } else {
  267. open("SMAER00800", "", "", "", "SMAER00800", "/root/source/pid", "/root/send/data/singdata/srchpid");
  268. }
  269. ]]>
  270. </script>
  271. </button>
  272. <line id="line1" class="line_1" style="x1:0px; y1:160px; x2:1009px; y2:161px; "/>
  273. <datagrid id="datagrid1" nodeset="/root/main/prcpinfo/prcplist" caption="입/외^처방적용일^처방번호^액팅처방번호^액팅처방레벨^믹스번호^히스토리번호^진료과코드^진료과^진료의아이디^진료의^급비^종류^분류^처방코드^처방명^1회용량^1회용량^1회수량^1회수량^횟수^일수^진행상태^검사결과^검사결과^시행일^선택^선택진료의^처방입력자^처방입력시간" colsep="^" colwidth="40, 75, 100, 100, 100, 100, 100, 100, 84, 100, 55, 50, 40, 40, 70, 184, 35, 35, 35, 35, 30, 30, 60, 45, 50, 70, 35, 70, 70, 120" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:165px; width:1009px; height:585px; ">
  274. <col ref="ordgubun" style="text-align:center; "/>
  275. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  276. <col ref="prcpno" visibility="hidden"/>
  277. <col ref="execprcpno" visibility="hidden"/>
  278. <col ref="execprcplevel" visibility="hidden"/>
  279. <col ref="prcpmixno" visibility="hidden"/>
  280. <col ref="prcphistno" visibility="hidden"/>
  281. <col ref="orddeptcd" visibility="hidden" style="left:615px; top:23px; width:100px; height:23px; "/>
  282. <col ref="orddeptnm" style="left:715px; top:23px; width:84px; height:23px; "/>
  283. <col ref="orddrid" visibility="hidden"/>
  284. <col ref="orddrnm" style="text-align:center; "/>
  285. <col ref="payflagcd" style="text-align:center; "/>
  286. <col ref="prcpkindcd" style="text-align:center; "/>
  287. <col ref="prcpclscd" style="text-align:center; "/>
  288. <col ref="prcpcd"/>
  289. <col ref="prcpnm"/>
  290. <col ref="drprcpetc7" style="text-align:center; "/>
  291. <col ref="prcpvolunitnm" style="text-align:center; "/>
  292. <col ref="drprcpetc8" style="text-align:center; "/>
  293. <col ref="prcpqtyunitnm" style="text-align:center; "/>
  294. <col ref="prcptims" style="text-align:center; "/>
  295. <col ref="prcpdayno" style="text-align:center; "/>
  296. <col ref="execprcpstatcd" style="text-align:center; "/>
  297. <col ref="testrsltcnts" style="text-align:center; "/>
  298. <col ref="testrsltunit" style="text-align:center; "/>
  299. <col ref="execdd" format="yyyy-mm-dd" style="text-align:center; "/>
  300. <col ref="choiordflag" style="text-align:center; "/>
  301. <col ref="specdrnm" style="text-align:center; "/>
  302. <col ref="rgstrnm" style="text-align:center; "/>
  303. <col ref="rgsttime" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  304. </datagrid>
  305. <caption id="caption4" class="search_name" style="left:6px; top:30px; width:95px; height:17px; vertical-align:middle; ">진료구분 :</caption>
  306. <select1 id="radio1" ref="/root/main/cond/ordgubun" appearance="full" cellspacing="15" cols="4" rows="1" overflow="visible" style="left:95px; top:30px; width:165px; height:20px; border-style:none; ">
  307. <choices>
  308. <item>
  309. <label>전체</label>
  310. <value>T</value>
  311. </item>
  312. <item>
  313. <label>외래</label>
  314. <value>O</value>
  315. </item>
  316. <item>
  317. <label>입원</label>
  318. <value>I</value>
  319. </item>
  320. </choices>
  321. </select1>
  322. <caption id="caption5" class="search_name" style="left:270px; top:55px; width:95px; height:17px; vertical-align:middle; ">진 료 의 :</caption>
  323. <caption id="caption7" class="search_name" style="left:610px; top:80px; width:95px; height:17px; vertical-align:middle; ">특별약품:</caption>
  324. <select1 id="cmb_orddrid" ref="/root/main/cond/orddrid" class="combo_default" appearance="minimal" itemcount="30" style="left:357px; top:55px; width:133px; height:19px; ">
  325. <choices>
  326. <itemset nodeset="/root/init/orddrlist/usercombo">
  327. <label ref="usernm"/>
  328. <value ref="userid"/>
  329. </itemset>
  330. </choices>
  331. </select1>
  332. <caption id="caption6" class="search_name" style="left:6px; top:80px; width:95px; height:17px; vertical-align:middle; ">처방종류:</caption>
  333. <select1 id="com_prcpkindcd" ref="/root/main/cond/prcpkindcd" class="combo_default" appearance="minimal" editmode="search" style="left:95px; top:80px; width:115px; height:19px; ">
  334. <choices>
  335. <itemset nodeset="/root/init/prcpkindcd/M0003">
  336. <label ref="cdnm"/>
  337. <value ref="cdid"/>
  338. </itemset>
  339. </choices>
  340. </select1>
  341. <select1 id="com_prcpclscd" ref="/root/main/cond/prcpclscd" class="combo_default" appearance="minimal" editmode="search" style="left:357px; top:80px; width:133px; height:19px; ">
  342. <choices>
  343. <itemset nodeset="/root/init/prcpclscd/M0005">
  344. <label ref="cdnm"/>
  345. <value ref="cdid"/>
  346. </itemset>
  347. </choices>
  348. </select1>
  349. <caption id="caption8" class="search_name" style="left:270px; top:80px; width:95px; height:17px; vertical-align:middle; ">처방분류:</caption>
  350. <select1 id="com_spcldrug" ref="/root/main/cond/spcldrug" class="combo_default" appearance="minimal" editmode="search" style="left:695px; top:80px; width:166px; height:19px; ">
  351. <choices>
  352. <itemset nodeset="/root/init/spcldrug/A0006">
  353. <label ref="cdnm"/>
  354. <value ref="cdid"/>
  355. </itemset>
  356. </choices>
  357. </select1>
  358. <select1 id="com_prcpstatcd" ref="/root/main/cond/prcpstatcd" class="combo_default" appearance="minimal" editmode="search" style="left:695px; top:55px; width:166px; height:19px; ">
  359. <choices>
  360. <itemset nodeset="/root/init/prcpstatcd/M0011">
  361. <label ref="cdnm"/>
  362. <value ref="cdid"/>
  363. </itemset>
  364. </choices>
  365. </select1>
  366. <caption id="caption11" class="search_name" style="left:610px; top:55px; width:95px; height:17px; vertical-align:middle; ">진행상태:</caption>
  367. <caption id="caption12" class="search_name" style="left:6px; top:103px; width:95px; height:17px; vertical-align:middle; ">처방코드:</caption>
  368. <input id="input5" ref="/root/main/cond/prcpcd" style="left:95px; top:103px; width:165px; height:19px; ">
  369. <script type="javascript" ev:event="onkeypress">
  370. <![CDATA[
  371. inputEnterKey("btn_req", "DOMActivate");
  372. ]]>
  373. </script>
  374. </input>
  375. <caption id="caption13" class="search_name" style="left:270px; top:103px; width:95px; height:17px; vertical-align:middle; ">처방명:</caption>
  376. <input id="input6" ref="/root/main/cond/prcpnm" style="left:357px; top:103px; width:165px; height:19px; ">
  377. <script type="javascript" ev:event="onkeypress">
  378. <![CDATA[
  379. inputEnterKey("btn_req", "DOMActivate");
  380. ]]>
  381. </script>
  382. </input>
  383. </xhtml:body>
  384. </xhtml:html>