SMPID23500_동일과진료일중복명세서조회.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SMPID23500_중복 명세서조회.xrw
  4. * 수정이력
  5. * - 2012.07.19 / 최초작성 / 이경민
  6. -->
  7. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  8. <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">
  9. <xhtml:head>
  10. <xhtml:title>중복 명세서조회</xhtml:title>
  11. <model id="model1">
  12. <instance id="instance1">
  13. <root xmlns="">
  14. <main>
  15. <list1>
  16. <clbs/>
  17. </list1>
  18. </main>
  19. <send>
  20. <item1>
  21. <clamym/>
  22. <pid/>
  23. <pidsn/>
  24. <ordym/>
  25. <judgrid/>
  26. <ioflag>O</ioflag>
  27. <ordfildcdyn/>
  28. <searchgb>SD</searchgb>
  29. <diagcd/>
  30. <stsioflag/>
  31. </item1>
  32. <list1>
  33. <clbs>
  34. </clbs>
  35. </list1>
  36. </send>
  37. <init>
  38. <!-- 진료분야 -->
  39. <P0291list>
  40. <P0291>
  41. <cdnm/>
  42. <cdid/>
  43. </P0291>
  44. </P0291list>
  45. <!-- 청구구분 -->
  46. <P0155list>
  47. <P0155>
  48. <cdnm/>
  49. <cdid/>
  50. </P0155>
  51. </P0155list>
  52. <P0008list>
  53. <P0008>
  54. <cdnm/>
  55. <cdid/>
  56. </P0008>
  57. </P0008list>
  58. <PAM>
  59. <PK108list/>
  60. <PK109list/>
  61. <PK110list/>
  62. </PAM>
  63. </init>
  64. <hidden>
  65. <item1>
  66. <clamym/>
  67. <clamdg/>
  68. <pid/>
  69. <pidsn/>
  70. <ordym/>
  71. </item1>
  72. <sppmc02500>
  73. <cond>
  74. <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
  75. <srchcond/>
  76. <pid/>
  77. <hngnm/>
  78. <rrgstno1/>
  79. <rrgstno2/>
  80. </cond>
  81. </sppmc02500>
  82. <item1>
  83. <maxclamdg/>
  84. </item1>
  85. <smpid20400>
  86. <rslt>
  87. <oldPid/>
  88. </rslt>
  89. <cond>
  90. <pid/>
  91. </cond>
  92. </smpid20400>
  93. </hidden>
  94. </root>
  95. </instance>
  96. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  97. <submission id="TRPID20309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1/ioflag" resultref="root/hidden/tmp"/>
  98. <submission id="TRPID20201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/init/tmp"/>
  99. <submission id="TRPID20407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/init/clamdg"/>
  100. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  101. <script type="javascript" ev:event="xforms-ready">
  102. <![CDATA[
  103. // 화면을 초기화한다.
  104. fInitialize();
  105. ]]>
  106. </script>
  107. <submission id="TRPID23501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/main"/>
  108. </model>
  109. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  110. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  111. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  112. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  113. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  114. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  115. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  116. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  117. <script type="javascript">
  118. <![CDATA[
  119. var gToday = new Date();
  120. var gBaseyear = gToday.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
  121. var gBasemonth = gToday.getDateFormat("MM");
  122. var gBaseday = gToday.getDateFormat("DD");
  123. var gCurrentdd = gBaseyear + gBasemonth + gBaseday;
  124. var gCurrentym = gBaseyear + gBasemonth;
  125. // -----------------------
  126. // ▶ 화면초기화
  127. // -----------------------
  128. function fInitialize() {
  129. // ---------------------------------------------------------------
  130. // 공통코드를 조회한다.
  131. // (ZBC001.js) com.ZBCMCODE 에서 기초코드 값 Get
  132. // ---------------------------------------------------------------
  133. zbcfGetCodeList(
  134. new Array( "P0291","P0008"
  135. ),
  136. new Array("/root/init/P0291list","/root/init/P0008list"
  137. ) );
  138. pamfGetCodeList(new Array(
  139. "PK108"
  140. ,"PK109"
  141. ,"PK110"
  142. ),
  143. new Array("/root/init/PAM/PK108list"
  144. ,"/root/init/PAM/PK109list"
  145. ,"/root/init/PAM/PK110list"
  146. ));
  147. var lv_date = gCurrentym.toDate("YYYYMM" + "01");
  148. lv_date = lv_date.getAddDate(-1, "M")
  149. gCurrentym = lv_date.getDateFormat("YYYYMM")
  150. model.setValue("/root/send/item1/clamym", gCurrentym);
  151. model.setValue("/root/send/item1/ordym", gCurrentym);
  152. // ---------------------------------------------------------------
  153. // 청구과, 심사자, 진료과, 주치의, 청구차수, 삼시자선택 초기화
  154. // ---------------------------------------------------------------
  155. model.refresh();
  156. submit("TRPID20201",false);
  157. }
  158. // ----------------------------------------------------------------------
  159. // ▶ 동일진료일 명세서조회
  160. // ----------------------------------------------------------------------
  161. function fGetDocuList() {
  162. grd_clbsmast.colType(3) = "combo";
  163. grd_clbsmast.colType(4) = "combo";
  164. grd_clbsmast.colType(5) = "combo";
  165. grd_clbsmast.colType(6) = "combo";
  166. grd_clbsmast.colType(7) = "combo";
  167. model.refresh();
  168. var chk = true;
  169. if (model.getValue("/root/send/item1/clamym") == "") {
  170. chk = false;
  171. messageBox("청구년월은", "I003"); //I003=필수입력입니다.
  172. model.setFocus("ipt_clamym");
  173. } else if (model.getValue("/root/send/item1/ioflag") == "") {
  174. chk = false;
  175. messageBox("내원구분", "I003"); //I003=필수입력입니다.
  176. model.setFocus("cmb_ioflag");
  177. }
  178. var searchgb = model.getValue("/root/send/item1/searchgb");
  179. if (chk == true) {
  180. model.setValue("/root/send/item1/diagcd", model.getValue("/root/init/PAM/PK108list/PK108[cdid='"+searchgb+"']/cdnm"));
  181. submit("TRPID23501");
  182. }
  183. if (searchgb == "G2"){
  184. grd_clbsmast.valueMatrix(0,1) = "한글명" ;
  185. grd_clbsmast.valueMatrix(0,2) = "수가코드" ;
  186. grd_clbsmast.valueMatrix(0,3) = "EDI코드" ;
  187. grd_clbsmast.valueMatrix(0,4) = "대분류" ;
  188. grd_clbsmast.valueMatrix(0,5) = "중분류" ;
  189. grd_clbsmast.valueMatrix(0,6) = "소분류" ;
  190. grd_clbsmast.valueMatrix(0,7) = "적용일자" ;
  191. grd_clbsmast.valueMatrix(0,8) = "수가메모" ;
  192. grd_clbsmast.valueMatrix(0,10) = "수가메세지" ;
  193. grd_clbsmast.valueMatrix(0,11) = "" ;
  194. grd_clbsmast.valueMatrix(0,12) = "" ;
  195. grd_clbsmast.colType(3) = "output";
  196. grd_clbsmast.colType(4) = "output";
  197. grd_clbsmast.colType(5) = "output";
  198. grd_clbsmast.colType(6) = "output";
  199. grd_clbsmast.colType(7) = "output";
  200. grd_clbsmast.colAttribute(7, "format") = "yyyy-mm-dd";
  201. }
  202. }
  203. // ----------------------------------------------------------------------
  204. // ▶ 환자조회
  205. // ----------------------------------------------------------------------
  206. ]]>
  207. </script>
  208. </xhtml:head>
  209. <xhtml:body pagewidth="1030" pageheight="750" guideline="1,1163;2,720;2,739;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  210. <group id="grp_tle" style="left:0px; top:0px; width:865px; height:13px; ">
  211. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:216px; height:15px; ">중복 명세서조회</caption>
  212. </group>
  213. <group id="grp_biz" scroll="auto" style="left:0px; top:15px; width:1005px; height:705px; ">
  214. <datagrid id="grd_clbsmast" nodeset="/root/main/list1/clbs" class="datagrid2" autoresize="true" caption="등록번호^환자명^진료분야^보험유형^청구과^진료과^진료의^진료개시일^청구년월^출장시작일&#xA;(사망일)^출장종료일^(상병,처방)&#xA;코드^내원&#xA;구분" colsep="^" colwidth="74, 67, 69, 79, 114, 114, 72, 81, 72, 67, 69, 70, 42" dataheight="23" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:225px; width:995px; height:477px; ">
  215. <col ref="pid" style="text-align:center; "/>
  216. <col ref="patnm" style="left:332px; top:32px; width:53px; height:23px; text-align:center; "/>
  217. <col disabled="true" ref="ordfildcd" type="combo" style="text-align:center; ">
  218. <choices>
  219. <itemset nodeset="/root/init/P0291list/P0291">
  220. <label ref="cdnm"/>
  221. <value ref="cdid"/>
  222. </itemset>
  223. </choices>
  224. </col>
  225. <col ref="insukind" type="combo">
  226. <choices>
  227. <itemset nodeset="/root/init/P0008list/P0008">
  228. <label ref="cdnm"/>
  229. <value ref="cdid"/>
  230. </itemset>
  231. </choices>
  232. </col>
  233. <col disabled="true" ref="clamdeptcd" type="combo" style="text-align:center; ">
  234. <choices>
  235. <itemset nodeset="/root/init/tmp/clamdept/clamdeptlist">
  236. <label ref="cdnm"/>
  237. <value ref="cdid"/>
  238. </itemset>
  239. </choices>
  240. </col>
  241. <col disabled="true" ref="orddeptcd" type="combo" style="text-align:center; ">
  242. <choices>
  243. <itemset nodeset="/root/init/tmp/orddeptcd/orddeptcdlist">
  244. <label ref="nm"/>
  245. <value ref="cd"/>
  246. </itemset>
  247. </choices>
  248. </col>
  249. <col disabled="true" ref="orddrid" type="combo" style="text-align:center; ">
  250. <choices>
  251. <itemset nodeset="/root/init/tmp/orddrid2/orddridlist">
  252. <label ref="nm"/>
  253. <value ref="cd"/>
  254. </itemset>
  255. </choices>
  256. </col>
  257. <col ref="ordfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  258. <col ref="clamym" visibility="hidden" format="yyyy-mm" style="text-align:center; "/>
  259. <col ref="holi_f" format="yyyy-mm-dd"/>
  260. <col ref="holi_t" format="yyyy-mm-dd"/>
  261. <col ref="diagcd"/>
  262. <col ref="ioflag" type="combo">
  263. <choices>
  264. <item>
  265. <label>입원</label>
  266. <value>I</value>
  267. </item>
  268. <item>
  269. <label>외래</label>
  270. <value>O</value>
  271. </item>
  272. </choices>
  273. </col>
  274. <script type="javascript" ev:event="oncopy">
  275. <![CDATA[
  276. // 그리드 내용 복사
  277. if (grd_clbsmast.selectedRows == 1) { // 한줄
  278. var row = grd_clbsmast.row;
  279. var col = grd_clbsmast.col;
  280. //if (col == grd_clbsmast.colRef("pid") || col == grd_clbsmast.colRef("patnm")) {
  281. // 상병코드/상병명
  282. var clip = grd_clbsmast.labelMatrix(row, col);
  283. window.clipBoardData = clip;
  284. //}
  285. }
  286. ]]>
  287. </script>
  288. </datagrid>
  289. <caption id="cap_judgtrgtman" class="tit_2" style="left:4px; top:201px; width:126px; height:13px; ">대상자조회</caption>
  290. <line id="line1" class="line_1" style="x1:0px; y1:220px; x2:995px; y2:220px; "/>
  291. <group id="group1" style="left:0px; top:5px; width:1000px; height:190px; vertical-align:top; ">
  292. <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:998px; height:188px; "/>
  293. <caption id="caption30" class="search_name" style="left:8px; top:11px; width:87px; height:17px; ">청구년월 :</caption>
  294. <input id="ipt_clamym" ref="/root/send/item1/clamym" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" style="left:97px; top:13px; width:69px; height:19px; text-align:center; "/>
  295. <!-- 기존 ID : 1214 => P0235 => P0291 -->
  296. <!-- 기존 : /root/InitData2/comccodem => P0287 확인해볼 것 -->
  297. <button id="btn_select" class="btn1_letter2" navindex="32" style="left:935px; top:69px; width:56px; height:22px; ">
  298. <caption>조회</caption>
  299. <script type="javascript" ev:event="DOMActivate">
  300. <![CDATA[
  301. fGetDocuList();
  302. ]]>
  303. </script>
  304. </button>
  305. <line id="line3" class="line_4" style="x1:925px; y1:9px; x2:925px; y2:185px; "/>
  306. <select1 id="rdo_searchgb" ref="/root/send/item1/searchgb" appearance="full" cols="3" overflow="visible" style="left:97px; top:39px; width:823px; height:146px; border-style:none; ">
  307. <choices>
  308. <item>
  309. <label>동일과/일자 외래중복 조회</label>
  310. <value>SD</value>
  311. </item>
  312. <item>
  313. <label>입원/외래 중복 명세조회</label>
  314. <value>IO</value>
  315. </item>
  316. <item>
  317. <label>개시일 종료일 불일치 조회</label>
  318. <value>NS</value>
  319. </item>
  320. <item>
  321. <label>경증환자 특정내역 검증 조회</label>
  322. <value>CP</value>
  323. </item>
  324. <item>
  325. <label>건강보험 자격확인</label>
  326. <value>MT</value>
  327. </item>
  328. <item>
  329. <label>급여 혈액투석 당일 내과중복 조회</label>
  330. <value>HM</value>
  331. </item>
  332. <item>
  333. <label>동일일자 동일상병 외래중복 조회</label>
  334. <value>DI</value>
  335. </item>
  336. <item>
  337. <label>의사출장 진찰료 조회</label>
  338. <value>DB</value>
  339. </item>
  340. <item>
  341. <label>MT014 있고 중증번호 없는 명세서 조회</label>
  342. <value>MR</value>
  343. </item>
  344. <item>
  345. <label>상병코드 앞 3자리 동일상병 조회</label>
  346. <value>D3</value>
  347. </item>
  348. <item>
  349. <label>재원/외래 중복 명세조회</label>
  350. <value>JO</value>
  351. </item>
  352. <item>
  353. <label>상병 30개 이상 명세서 조회</label>
  354. <value>DC</value>
  355. </item>
  356. <item>
  357. <label>사망 후 진료 명세서 조회</label>
  358. <value>DE</value>
  359. </item>
  360. <item>
  361. <label>급여 본인부담면제 환자 Vcode 조회</label>
  362. <value>MV</value>
  363. </item>
  364. <item>
  365. <label>진찰료 중복 명세서 조회</label>
  366. <value>G1</value>
  367. </item>
  368. <item>
  369. <label>급여 신규 약제</label>
  370. <value>G2</value>
  371. </item>
  372. <item>
  373. <label>자료수집 시행월을 포함한 KTAS 4-5등급의 재원환자 현황</label>
  374. <value>KP</value>
  375. </item>
  376. <item>
  377. <label>주진단으로 사용할 수 없는 질병코드</label>
  378. <value>DN</value>
  379. </item>
  380. <item>
  381. <label>당뇨병 관련 병용코딩</label>
  382. <value>DY</value>
  383. </item>
  384. <item>
  385. <label>요통 관련 병용코딩</label>
  386. <value>DX</value>
  387. </item>
  388. </choices>
  389. <script type="javascript" ev:event="xforms-value-changed">
  390. <![CDATA[
  391. fGetDocuList();
  392. ]]>
  393. </script>
  394. </select1>
  395. <caption id="caption1" class="search_name" style="left:8px; top:36px; width:86px; height:17px; ">조회구분 :</caption>
  396. <select1 id="combo1" ref="/root/send/item1/stsioflag" appearance="minimal" style="left:270px; top:13px; width:110px; height:19px; ">
  397. <choices>
  398. <item>
  399. <label>전체</label>
  400. <value/>
  401. </item>
  402. <item>
  403. <label>DSC/CHEMO</label>
  404. <value>D</value>
  405. </item>
  406. <item>
  407. <label>응급</label>
  408. <value>E</value>
  409. </item>
  410. </choices>
  411. </select1>
  412. <caption id="caption3" class="search_name" style="left:180px; top:11px; width:87px; height:17px; ">내원유형 :</caption>
  413. </group>
  414. <button id="btn_excelsave" class="btn2_letter4" _auth="P" style="left:931px; top:197px; width:64px; height:19px; ">
  415. <caption>엑셀저장</caption>
  416. <script type="javascript" ev:event="DOMActivate">
  417. <![CDATA[
  418. grd_clbsmast.gridToInstance();
  419. if (grd_clbsmast.rows > 1) {
  420. var fileName = window.fileDialog("save", "", false, "중복 명세서조회", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  421. if (fileName != "") {
  422. grd_clbsmast.saveExcel(fileName, "sheetname:;colhiddenextend:true;rowhiddenextend:false;col_3:label;col_4:label;col_5:label;col_6:label;", true, true, "", "", true);
  423. }
  424. } else {
  425. messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
  426. }
  427. ]]>
  428. </script>
  429. </button>
  430. <caption id="caption2" style="left:348px; top:201px; width:285px; height:14px; font-weight:bold; color:#ff0000; background-color:#ccffcc; ">외래상기도감염 항생제 처방조회는 하셨습니까?</caption>
  431. <button id="button1" class="btn2_letter15" _auth="P" style="left:636px; top:197px; width:185px; height:19px; ">
  432. <caption>외래상기도감염 항생제 처방조회</caption>
  433. <script type="javascript" ev:event="DOMActivate">
  434. <![CDATA[
  435. open("SMPIS01000", "1", "20", "80" ,"", "", "");
  436. ]]>
  437. </script>
  438. </button>
  439. <button id="button2" class="btn2_letter8" visibility="hidden" _auth="P" style="left:822px; top:197px; width:108px; height:19px; ">
  440. <caption>재정산 내역 조회</caption>
  441. <script type="javascript" ev:event="DOMActivate">
  442. <![CDATA[
  443. open("SMPID23600", "1", "20", "80" ,"", "", "");
  444. ]]>
  445. </script>
  446. </button>
  447. </group>
  448. <button id="btn_cancel" class="btn4_letter2" style="left:940px; top:725px; width:56px; height:22px; ">
  449. <caption>종료</caption>
  450. <close ev:event="DOMActivate"/>
  451. </button>
  452. </xhtml:body>
  453. </xhtml:html>