SPPIJ04000_KDRG상세정보.xrw 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SMPID23300_KDRG상세정보 .xrw
  4. * 수정이력
  5. -->
  6. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  7. <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">
  8. <xhtml:head>
  9. <xhtml:title>KDRG상세정보</xhtml:title>
  10. <model id="model1">
  11. <instance id="instance1">
  12. <root xmlns="">
  13. <main>
  14. <drginfo>
  15. <seqno/>
  16. <ordfromdd/>
  17. <indd/>
  18. <pid/>
  19. <instcd/>
  20. <histstat/>
  21. <proccorpcd/>
  22. <rrgstno1/>
  23. <rrgstno2/>
  24. <chosindayno/>
  25. <ordrsltcd/>
  26. <age/>
  27. <diagcd1/>
  28. <diagcd2/>
  29. <diagcd3/>
  30. <diagcd4/>
  31. <diagcd5/>
  32. <diagcd6/>
  33. <diagcd7/>
  34. <diagcd8/>
  35. <diagcd9/>
  36. <diagcd10/>
  37. <opcd1/>
  38. <opcd2/>
  39. <opcd3/>
  40. <opcd4/>
  41. <opcd5/>
  42. <opcd6/>
  43. <opcd7/>
  44. <opcd8/>
  45. <opcd9/>
  46. <opcd10/>
  47. <excd1/>
  48. <excd2/>
  49. <excd3/>
  50. <excd4/>
  51. <excd5/>
  52. <rgcd1/>
  53. <rgcd2/>
  54. <rgcd3/>
  55. <rgcd4/>
  56. <rgcd5/>
  57. <ibcd1/>
  58. <ibcd2/>
  59. <ibcd3/>
  60. <ibcd4/>
  61. <ibcd5/>
  62. <arcd1/>
  63. <arcd2/>
  64. <arcd3/>
  65. <arcd4/>
  66. <arcd5/>
  67. <ncvcd/>
  68. <detailcd1/>
  69. <detailcd2/>
  70. <detailcd3/>
  71. <detailcd4/>
  72. <detailcd5/>
  73. <bw/>
  74. <vtl/>
  75. <mdcno/>
  76. <pccl/>
  77. <drgno/>
  78. <version/>
  79. <adrg/>
  80. <drgnm/>
  81. <nightflag/>
  82. <totalamt/>
  83. <nopyamt/>
  84. <allownbamt/>
  85. <payamt/>
  86. <specamt/>
  87. <totownbamt/>
  88. <payownbamt/>
  89. <payinsubamt/>
  90. <drgnopyamt/>
  91. <drgpayamt/>
  92. <drgeatamt/>
  93. <drggsaddamt/>
  94. <drgtotalamt/>
  95. <drgownbamt/>
  96. <drginsubamt/>
  97. <drggapamt/>
  98. <grupgbn/>
  99. <tdrgno/>
  100. <tdrgnm/>
  101. <insukind/>
  102. <suppkind/>
  103. <hngnm/>
  104. <orddeptcd/>
  105. <drgeatownbamt/>
  106. <drgeatinsubamt/>
  107. <drggsaddownbamt/>
  108. <drggsaddinsubamt/>
  109. <drgpaydiscamt/>
  110. <drgnopydiscamt/>
  111. <drgspecdiscamt/>
  112. <drgeatdiscamt/>
  113. <drggsadddiscamt/>
  114. <drgnm/>
  115. <drgallownbamt/>
  116. <drgoverpayinsubamt/>
  117. <drgoverpayamt/>
  118. <drgoverpayownbamt/>
  119. <accnopyamt/>
  120. <obgaaddyn/>
  121. <drgaccpayamt/>
  122. <drgaccpayownbamt/>
  123. <drgaccpayinsubamt/>
  124. <drgaccpaydiscamt/>
  125. <drgpayownbamt/>
  126. <accnopygapamt/>
  127. <robotyn/>
  128. <drgtype/>
  129. </drginfo>
  130. </main>
  131. <send>
  132. <filepath/>
  133. <attach>
  134. <file/>
  135. </attach>
  136. <drginfo>
  137. <seqno/>
  138. <ordfromdd/>
  139. <indd/>
  140. <pid/>
  141. <instcd/>
  142. <histstat/>
  143. <proccorpcd/>
  144. <rrgstno1/>
  145. <rrgstno2/>
  146. <chosindayno/>
  147. <ordrsltcd/>
  148. <age/>
  149. <diagcd1/>
  150. <diagcd2/>
  151. <diagcd3/>
  152. <diagcd4/>
  153. <diagcd5/>
  154. <diagcd6/>
  155. <diagcd7/>
  156. <diagcd8/>
  157. <diagcd9/>
  158. <diagcd10/>
  159. <opcd1/>
  160. <opcd2/>
  161. <opcd3/>
  162. <opcd4/>
  163. <opcd5/>
  164. <opcd6/>
  165. <opcd7/>
  166. <opcd8/>
  167. <opcd9/>
  168. <opcd10/>
  169. <excd1/>
  170. <excd2/>
  171. <excd3/>
  172. <excd4/>
  173. <excd5/>
  174. <rgcd1/>
  175. <rgcd2/>
  176. <rgcd3/>
  177. <rgcd4/>
  178. <rgcd5/>
  179. <ibcd1/>
  180. <ibcd2/>
  181. <ibcd3/>
  182. <ibcd4/>
  183. <ibcd5/>
  184. <arcd1/>
  185. <arcd2/>
  186. <arcd3/>
  187. <arcd4/>
  188. <arcd5/>
  189. <ncvcd/>
  190. <detailcd1/>
  191. <detailcd2/>
  192. <detailcd3/>
  193. <detailcd4/>
  194. <detailcd5/>
  195. <bw/>
  196. <vtl/>
  197. <mdcno/>
  198. <pccl/>
  199. <drgno/>
  200. <version/>
  201. <adrg/>
  202. <cretno/>
  203. <drggbn/>
  204. <drgmstat/>
  205. <robotyn/>
  206. </drginfo>
  207. </send>
  208. <init>
  209. <item1>
  210. <clamym/>
  211. <clamdg/>
  212. <pid/>
  213. <pidsn/>
  214. <patnm/>
  215. <insukind/>
  216. <suppkind/>
  217. <orddeptcd/>
  218. <indd/>
  219. </item1>
  220. <!-- 보험유형 -->
  221. <P0008list>
  222. <P0008>
  223. <cdnm/>
  224. <cdid/>
  225. </P0008>
  226. </P0008list>
  227. <!-- 보조유형 -->
  228. <P0010list>
  229. <P0010>
  230. <cdnm/>
  231. <cdid/>
  232. </P0010>
  233. </P0010list>
  234. <!-- 진료결과 -->
  235. <P0110list>
  236. <P0110>
  237. <cdnm/>
  238. <cdid/>
  239. </P0110>
  240. </P0110list>
  241. <orddeptcd2/>
  242. <PAM>
  243. <PK015list/>
  244. <PK016list/>
  245. <PK054list/>
  246. <PK055list/>
  247. </PAM>
  248. </init>
  249. <hidden>
  250. <drginfo/>
  251. <bind>
  252. <sum1/>
  253. <sum2/>
  254. <sum3/>
  255. <accnopay_sum/>
  256. <etcnopay_sum/>
  257. <drggapamt_sum/>
  258. </bind>
  259. <list/>
  260. </hidden>
  261. </root>
  262. </instance>
  263. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  264. <submission id="TRPID20309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1/ioflag" resultref="root/hidden/tmp"/>
  265. <script type="javascript" ev:event="xforms-ready">
  266. <![CDATA[
  267. // ---------------------------------------------------------------
  268. // 공통코드를 조회한다.
  269. // (ZBC001.js) com.ZBCMCODE 에서 기초코드 값 Get
  270. // ---------------------------------------------------------------
  271. zbcfGetCodeList(
  272. new Array("P0008" // 보험유형
  273. ,"P0010" // 보조유형
  274. ,"P0110" // 진료결과
  275. ),
  276. new Array("/root/init/P0008list"
  277. ,"/root/init/P0010list"
  278. ,"/root/init/P0110list"
  279. ) );
  280. // 2013.02.19 - 부가코드 원무공통코드조회
  281. pamfGetCodeList(new Array(
  282. "PK015"
  283. ,"PK016"
  284. ,"PK054"
  285. ,"PK055"
  286. ),
  287. new Array("/root/init/PAM/PK015list"
  288. ,"/root/init/PAM/PK016list"
  289. ,"/root/init/PAM/PK054list"
  290. ,"/root/init/PAM/PK055list"
  291. ));
  292. addComboItem("cmb_ncvcd", " ","", "above");
  293. addComboItem("cmb_detailcd1", " ","", "above");
  294. // ---------------------------------------------------------------
  295. // 진료과 초기화
  296. // ---------------------------------------------------------------
  297. submit("TRPID20309", false);
  298. model.copyNode("/root/init/orddeptcd2", "/root/hidden/tmp/orddeptcd2");
  299. model.removeNodeset("/root/hidden/tmp/orddeptcd");
  300. model.removeNodeset("/root/hidden/tmp/orddeptcd2");
  301. model.removeNodeset("/root/hidden/tmp/orddrid");
  302. model.removeNodeset("/root/hidden/tmp/orddrid2");
  303. fInitialize();
  304. ]]>
  305. </script>
  306. <script type="javascript" ev:event="xforms-close">
  307. <![CDATA[
  308. if (model.getValue("/root/send/drginfo/drggbn") == "Y" || model.getValue("/root/send/drginfo/drggbn") == "X") {
  309. opener.model.makeValue("/root/main/item11/drginfo/rslt","true");
  310. } else {
  311. opener.model.makeValue("/root/main/item11/drginfo/rslt","false");
  312. }
  313. ]]>
  314. </script>
  315. <submission id="TXPIJ04000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/drginfo" resultref="/root/rslt"/>
  316. <submission id="TXPIJ03201" mediatype="multipart/form-data" method="form-data-post" ref="/root/send"/>
  317. <submission id="TXPIJ04002" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/main"/>
  318. <submission id="TRPIJ03200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  319. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  320. <submission id="TXPIJ03208" mediatype="multipart/form-data" method="form-data-post"/>
  321. </model>
  322. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  323. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  324. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  325. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  326. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  327. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  328. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  329. <script type="javascript">
  330. <![CDATA[
  331. function fInitialize() {
  332. var pid = opener.javascript.getParameter("pid");
  333. var indd = opener.javascript.getParameter("indd");
  334. var ordfromdd = opener.javascript.getParameter("ordfromdd");
  335. var cretno = opener.javascript.getParameter("cretno");
  336. var drgmstat = opener.javascript.getParameter("drgmstat");
  337. model.setValue("/root/send/drginfo/pid", pid );
  338. model.setValue("/root/send/drginfo/indd", indd);
  339. model.setValue("/root/send/drginfo/ordfromdd", ordfromdd);
  340. model.setValue("/root/send/drginfo/cretno", cretno);
  341. model.setValue("/root/send/drginfo/drgmstat", drgmstat);
  342. fGetdrgDetail();
  343. model.refresh();
  344. }
  345. function fGetdrgDetail() {
  346. submit("TRPIJ03200");
  347. //진료결과 체크 - 중간청구인경우 : 계속, 퇴원인경우 : 퇴원
  348. var dschnotiyn = model.getValue("/root/main/drginfo/dschnotiyn");
  349. var ordrslt = model.getValue("/root/main/drginfo/ordrsltcd");
  350. if(dschnotiyn == "Y"){
  351. if(ordrslt == "" || ordrslt == "-" || ordrslt == "1"){
  352. if(ordrslt != "4"){
  353. model.setValue("/root/main/drginfo/ordrsltcd","9");
  354. }
  355. }
  356. }else{
  357. if(ordrslt == "" || ordrslt == "-"){
  358. model.setValue("/root/main/drginfo/ordrsltcd","1");
  359. }
  360. }
  361. fGetdrgChk();
  362. }
  363. function fGetdrgChk() {
  364. var chosindayno = parseInt(model.getValue("/root/main/drginfo/chosindayno"));
  365. var insukind = model.getValue("/root/main/drginfo/insukind");
  366. var diagcd1 = model.getValue("/root/main/drginfo/diagcd1");
  367. var opcd1 = model.getValue("/root/main/drginfo/opcd1");
  368. var drggbn = model.getValue("/root/main/drginfo/drggbn");
  369. var drgmstat = model.getValue("/root/send/drginfo/drgmstat");
  370. if (drggbn == "Y") {
  371. button4.visible = false;
  372. } else {
  373. button4.visible = true;
  374. }
  375. }
  376. function fSleep(filenm) {
  377. var now = new Date();
  378. var exitTime = now.getTime() + 3000;
  379. var fldr = model.getValue("/root/init/PAM/PK054list/PK054[cdid='01']/cdnm");//"C:/Program Files/himed/components/KDRG/";
  380. var infile = model.getValue("/root/init/PAM/PK054list/PK054[cdid='02']/cdnm");//"kdrg33.in";
  381. var outfile = model.getValue("/root/init/PAM/PK054list/PK054[cdid='03']/cdnm");//"kdrg33.out";
  382. var fso = new ActiveXObject("Scripting.FileSystemObject");
  383. while (true) {
  384. now = new Date();
  385. //3초동안 파일이 있는지 체크한다. 생성되었으면 루프를 나온다.
  386. if (fso.FileExists(fldr+filenm) && fso.GetFile(fldr+filenm).Size > "0") { break; }
  387. //3초동안 파일이 없으면 빠져나온다.
  388. if (now.getTime() > exitTime) { break; }
  389. }
  390. }
  391. ]]>
  392. </script>
  393. </xhtml:head>
  394. <xhtml:body pagewidth="800" pageheight="550" guideline="1,1143;" style="margin-left:5; margin-top:0; margin-right:5; margin-bottom:0; ">
  395. <group id="grp_tle" style="left:0px; top:0px; width:785px; height:13px; ">
  396. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:195px; height:15px; ">KDRG 상세정보</caption>
  397. </group>
  398. <group id="group1" scroll="auto" style="left:0px; top:15px; width:790px; height:520px; ">
  399. <caption id="caption1" class="tit_2" style="left:5px; top:77px; width:230px; height:13px; ">적용내역</caption>
  400. <line id="line1" class="line_1" style="x1:0px; y1:92px; x2:778px; y2:92px; "/>
  401. <group id="group2" style="left:0px; top:4px; width:365px; height:58px; vertical-align:top; ">
  402. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:365px; height:58px; "/>
  403. <caption id="caption2" class="search_name" style="left:90px; top:8px; width:85px; height:17px; ">등록번호</caption>
  404. <input id="input1" ref="/root/main/drginfo/pid" disabled="true" style="left:170px; top:7px; width:75px; height:19px; text-align:center; "/>
  405. <input id="input2" ref="/root/main/drginfo/hngnm" disabled="true" editable="false" style="left:250px; top:6px; width:78px; height:19px; text-align:center; "/>
  406. <caption id="caption3" class="tit_2" style="left:10px; top:10px; width:75px; height:13px; ">기본정보</caption>
  407. </group>
  408. <group id="group3" style="left:372px; top:4px; width:408px; height:58px; vertical-align:top; ">
  409. <shape id="roundrect2" appearance="roundrect" style="left:0px; top:0px; width:405px; height:58px; "/>
  410. <select1 id="combo1" ref="/root/main/drginfo/suppkind" class="combo_search" disabled="true" navindex="9" appearance="minimal" style="left:277px; top:33px; width:120px; height:19px; ">
  411. <choices>
  412. <itemset nodeset="/root/init/P0010list/P0010">
  413. <label ref="cdnm"/>
  414. <value ref="cdid"/>
  415. </itemset>
  416. </choices>
  417. </select1>
  418. <caption id="caption4" class="search_name" style="left:192px; top:8px; width:86px; height:17px; ">보험유형</caption>
  419. <caption id="caption5" class="search_name" style="left:5px; top:35px; width:80px; height:17px; ">진료과</caption>
  420. <select1 id="combo2" ref="/root/main/drginfo/insukind" class="combo_search" disabled="true" navindex="9" appearance="minimal" style="left:277px; top:7px; width:120px; height:19px; ">
  421. <choices>
  422. <itemset nodeset="/root/init/P0008list/P0008">
  423. <label ref="cdnm"/>
  424. <value ref="cdid"/>
  425. </itemset>
  426. </choices>
  427. </select1>
  428. <select1 id="combo3" ref="/root/main/drginfo/orddeptcd" class="combo_search" disabled="true" navindex="3" appearance="minimal" style="left:76px; top:34px; width:109px; height:19px; ">
  429. <choices>
  430. <itemset nodeset="/root/init/orddeptcd2/orddeptcdlist">
  431. <label ref="nm"/>
  432. <value ref="cd"/>
  433. </itemset>
  434. </choices>
  435. </select1>
  436. <caption id="caption6" class="search_name" style="left:192px; top:34px; width:86px; height:17px; ">보조유형</caption>
  437. <caption id="caption7" class="search_name" style="left:6px; top:9px; width:80px; height:17px; ">입원일</caption>
  438. <input id="input3" ref="/root/send/drginfo/indd" class="input_default" disabled="true" navindex="3" format="yyyy-mm-dd" appearance="minimal" style="left:75px; top:8px; width:109px; height:19px; "/>
  439. </group>
  440. <caption id="caption8" class="tit_2" style="left:5px; top:381px; width:170px; height:13px; ">분류결과</caption>
  441. <line id="line2" class="line_1" style="x1:0px; y1:399px; x2:778px; y2:400px; "/>
  442. <button id="button3" class="btn4_letter2" style="left:719px; top:485px; width:56px; height:22px; ">
  443. <caption>종료</caption>
  444. <script type="javascript" ev:event="DOMActivate">
  445. <![CDATA[
  446. model.dispatch("xforms-close");
  447. ]]>
  448. </script>
  449. </button>
  450. <caption id="caption9" class="search_name" style="left:11px; top:407px; width:119px; height:17px; ">DRG번호</caption>
  451. <input id="input4" ref="/root/main/drginfo/drgno" class="input_default" disabled="true" editable="false" appearance="minimal" style="left:140px; top:406px; width:75px; height:39px; "/>
  452. <caption id="caption10" class="search_name" style="left:10px; top:452px; width:69px; height:17px; ">MDC</caption>
  453. <input id="input6" ref="/root/main/drginfo/mdcno" class="input_default" disabled="true" editable="false" appearance="minimal" style="left:139px; top:451px; width:75px; height:19px; "/>
  454. <caption id="caption11" class="search_name" style="left:11px; top:105px; width:119px; height:17px; ">진료개시일</caption>
  455. <input id="input7" ref="/root/send/drginfo/ordfromdd" class="input_default" disabled="false" visibility="visible" format="yyyy-mm-dd" appearance="minimal" style="left:140px; top:105px; width:80px; height:19px; "/>
  456. <caption id="caption12" class="search_name" style="left:291px; top:105px; width:84px; height:17px; ">입원일수</caption>
  457. <input id="input8" ref="/root/main/drginfo/chosindayno" class="input_default" disabled="false" visibility="visible" format="###" appearance="minimal" style="left:390px; top:105px; width:50px; height:19px; "/>
  458. <caption id="caption13" class="search_name" style="left:501px; top:105px; width:84px; height:17px; ">진료결과</caption>
  459. <select1 id="combo7" ref="/root/main/drginfo/ordrsltcd" class="combo_search" disabled="false" visibility="visible" appearance="minimal" style="left:600px; top:105px; width:90px; height:19px; ">
  460. <choices>
  461. <itemset nodeset="/root/init/P0110list/P0110">
  462. <label ref="cdnm"/>
  463. <value ref="cdid"/>
  464. </itemset>
  465. </choices>
  466. </select1>
  467. <caption id="caption14" class="search_name" style="left:11px; top:133px; width:119px; height:17px; ">진단</caption>
  468. <input id="input9" ref="/root/main/drginfo/diagcd1" class="input_default" disabled="false" visibility="visible" maxlength="5" _chartype="upper" appearance="minimal" style="left:140px; top:133px; width:50px; height:19px; "/>
  469. <input id="input10" ref="/root/main/drginfo/diagcd2" class="input_default" disabled="false" visibility="visible" maxlength="5" _chartype="upper" appearance="minimal" style="left:196px; top:133px; width:50px; height:19px; "/>
  470. <input id="input11" ref="/root/main/drginfo/diagcd3" class="input_default" disabled="false" visibility="visible" maxlength="5" _chartype="upper" appearance="minimal" style="left:252px; top:133px; width:50px; height:19px; "/>
  471. <input id="input12" ref="/root/main/drginfo/diagcd4" class="input_default" disabled="false" visibility="visible" maxlength="5" _chartype="upper" appearance="minimal" style="left:308px; top:133px; width:50px; height:19px; "/>
  472. <input id="input13" ref="/root/main/drginfo/diagcd5" class="input_default" disabled="false" visibility="visible" maxlength="5" _chartype="upper" appearance="minimal" style="left:364px; top:133px; width:50px; height:19px; "/>
  473. <input id="input14" ref="/root/main/drginfo/diagcd6" class="input_default" disabled="false" visibility="visible" maxlength="5" _chartype="upper" appearance="minimal" style="left:420px; top:133px; width:50px; height:19px; "/>
  474. <input id="input15" ref="/root/main/drginfo/diagcd7" class="input_default" disabled="false" visibility="visible" maxlength="5" _chartype="upper" appearance="minimal" style="left:477px; top:133px; width:50px; height:19px; "/>
  475. <input id="input16" ref="/root/main/drginfo/diagcd8" class="input_default" disabled="false" visibility="visible" maxlength="5" _chartype="upper" appearance="minimal" style="left:533px; top:133px; width:50px; height:19px; "/>
  476. <input id="input17" ref="/root/main/drginfo/diagcd9" class="input_default" disabled="false" visibility="visible" maxlength="5" _chartype="upper" appearance="minimal" style="left:589px; top:133px; width:50px; height:19px; "/>
  477. <input id="input18" ref="/root/main/drginfo/diagcd10" class="input_default" disabled="false" visibility="visible" maxlength="5" _chartype="upper" appearance="minimal" style="left:645px; top:133px; width:50px; height:19px; "/>
  478. <caption id="caption15" class="search_name" style="left:11px; top:161px; width:119px; height:17px; ">수술처치</caption>
  479. <input id="input19" ref="/root/main/drginfo/opcd1" class="input_default" disabled="false" visibility="visible" maxlength="5" _chartype="upper" appearance="minimal" style="left:140px; top:161px; width:50px; height:19px; "/>
  480. <input id="input20" ref="/root/main/drginfo/opcd2" class="input_default" disabled="false" visibility="visible" maxlength="5" _chartype="upper" appearance="minimal" style="left:196px; top:161px; width:50px; height:19px; "/>
  481. <input id="input21" ref="/root/main/drginfo/opcd3" class="input_default" disabled="false" visibility="visible" maxlength="5" _chartype="upper" appearance="minimal" style="left:252px; top:161px; width:50px; height:19px; "/>
  482. <input id="input22" ref="/root/main/drginfo/opcd4" class="input_default" disabled="false" visibility="visible" maxlength="5" _chartype="upper" appearance="minimal" style="left:308px; top:161px; width:50px; height:19px; "/>
  483. <input id="input23" ref="/root/main/drginfo/opcd5" class="input_default" disabled="false" visibility="visible" maxlength="5" _chartype="upper" appearance="minimal" style="left:364px; top:161px; width:50px; height:19px; "/>
  484. <input id="input24" ref="/root/main/drginfo/opcd6" class="input_default" disabled="false" visibility="visible" maxlength="5" _chartype="upper" appearance="minimal" style="left:420px; top:161px; width:50px; height:19px; "/>
  485. <input id="input25" ref="/root/main/drginfo/opcd7" class="input_default" disabled="false" visibility="visible" maxlength="5" _chartype="upper" appearance="minimal" style="left:477px; top:161px; width:50px; height:19px; "/>
  486. <input id="input26" ref="/root/main/drginfo/opcd8" class="input_default" disabled="false" visibility="visible" maxlength="5" _chartype="upper" appearance="minimal" style="left:533px; top:161px; width:50px; height:19px; "/>
  487. <input id="input27" ref="/root/main/drginfo/opcd9" class="input_default" disabled="false" visibility="visible" maxlength="5" _chartype="upper" appearance="minimal" style="left:589px; top:161px; width:50px; height:19px; "/>
  488. <input id="input28" ref="/root/main/drginfo/opcd10" class="input_default" disabled="false" visibility="visible" maxlength="5" _chartype="upper" appearance="minimal" style="left:645px; top:161px; width:50px; height:19px; "/>
  489. <caption id="caption16" class="search_name" style="left:11px; top:189px; width:119px; height:17px; ">검사</caption>
  490. <input id="input29" ref="/root/main/drginfo/excd1" class="input_default" disabled="false" maxlength="5" _chartype="upper" appearance="minimal" style="left:140px; top:189px; width:50px; height:19px; "/>
  491. <input id="input30" ref="/root/main/drginfo/excd2" class="input_default" disabled="false" maxlength="5" _chartype="upper" appearance="minimal" style="left:196px; top:189px; width:50px; height:19px; "/>
  492. <input id="input31" ref="/root/main/drginfo/excd3" class="input_default" disabled="false" maxlength="5" _chartype="upper" appearance="minimal" style="left:252px; top:189px; width:50px; height:19px; "/>
  493. <input id="input32" ref="/root/main/drginfo/excd4" class="input_default" disabled="false" maxlength="5" _chartype="upper" appearance="minimal" style="left:308px; top:189px; width:50px; height:19px; "/>
  494. <input id="input33" ref="/root/main/drginfo/excd5" class="input_default" disabled="false" maxlength="5" _chartype="upper" appearance="minimal" style="left:364px; top:189px; width:50px; height:19px; "/>
  495. <caption id="caption17" class="search_name" style="left:11px; top:216px; width:119px; height:17px; ">방사선</caption>
  496. <input id="input34" ref="/root/main/drginfo/rgcd1" class="input_default" disabled="false" maxlength="5" _chartype="upper" appearance="minimal" style="left:140px; top:216px; width:50px; height:19px; "/>
  497. <input id="input35" ref="/root/main/drginfo/rgcd2" class="input_default" disabled="false" maxlength="5" _chartype="upper" appearance="minimal" style="left:196px; top:216px; width:50px; height:19px; "/>
  498. <input id="input36" ref="/root/main/drginfo/rgcd3" class="input_default" disabled="false" maxlength="5" _chartype="upper" appearance="minimal" style="left:252px; top:216px; width:50px; height:19px; "/>
  499. <input id="input37" ref="/root/main/drginfo/rgcd4" class="input_default" disabled="false" maxlength="5" _chartype="upper" appearance="minimal" style="left:308px; top:216px; width:50px; height:19px; "/>
  500. <input id="input38" ref="/root/main/drginfo/rgcd5" class="input_default" disabled="false" maxlength="5" _chartype="upper" appearance="minimal" style="left:364px; top:216px; width:50px; height:19px; "/>
  501. <caption id="caption18" class="search_name" style="left:11px; top:243px; width:119px; height:17px; ">주사및혈액제제</caption>
  502. <input id="input39" ref="/root/main/drginfo/ibcd1" class="input_default" disabled="false" maxlength="5" _chartype="upper" appearance="minimal" style="left:140px; top:243px; width:50px; height:19px; "/>
  503. <input id="input40" ref="/root/main/drginfo/ibcd2" class="input_default" disabled="false" maxlength="5" _chartype="upper" appearance="minimal" style="left:196px; top:243px; width:50px; height:19px; "/>
  504. <input id="input41" ref="/root/main/drginfo/ibcd3" class="input_default" disabled="false" maxlength="5" _chartype="upper" appearance="minimal" style="left:252px; top:243px; width:50px; height:19px; "/>
  505. <input id="input42" ref="/root/main/drginfo/ibcd4" class="input_default" disabled="false" maxlength="5" _chartype="upper" appearance="minimal" style="left:308px; top:243px; width:50px; height:19px; "/>
  506. <input id="input43" ref="/root/main/drginfo/ibcd5" class="input_default" disabled="false" maxlength="5" _chartype="upper" appearance="minimal" style="left:364px; top:243px; width:50px; height:19px; "/>
  507. <caption id="caption19" class="search_name" style="left:11px; top:271px; width:119px; height:17px; ">마취및호흡치료</caption>
  508. <input id="input44" ref="/root/main/drginfo/arcd1" class="input_default" disabled="false" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:140px; top:271px; width:50px; height:19px; "/>
  509. <input id="input45" ref="/root/main/drginfo/arcd2" class="input_default" disabled="false" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:196px; top:271px; width:50px; height:19px; "/>
  510. <input id="input46" ref="/root/main/drginfo/arcd3" class="input_default" disabled="false" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:252px; top:271px; width:50px; height:19px; "/>
  511. <input id="input47" ref="/root/main/drginfo/arcd4" class="input_default" disabled="false" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:308px; top:271px; width:50px; height:19px; "/>
  512. <input id="input48" ref="/root/main/drginfo/arcd5" class="input_default" disabled="false" imemode="disabled" maxlength="5" _chartype="upper" appearance="minimal" style="left:364px; top:271px; width:50px; height:19px; "/>
  513. <caption id="caption20" class="search_name" style="left:11px; top:356px; width:119px; height:17px; ">입원시체중(g)</caption>
  514. <input id="input49" ref="/root/main/drginfo/bw" class="input_default" maxlength="4" _chartype="upper" appearance="minimal" style="left:140px; top:356px; width:50px; height:19px; "/>
  515. <caption id="caption21" class="search_name" style="left:270px; top:356px; width:145px; height:17px; ">인공호흡시간(hour)</caption>
  516. <input id="input50" ref="/root/main/drginfo/vtl" class="input_default" maxlength="4" _chartype="upper" appearance="minimal" style="left:424px; top:356px; width:50px; height:19px; "/>
  517. <button id="button4" class="btn4_letter6" style="left:675px; top:68px; width:104px; height:22px; ">
  518. <caption>DRG번호생성</caption>
  519. <script type="javascript" ev:event="DOMActivate">
  520. <![CDATA[
  521. var fldr = model.getValue("/root/init/PAM/PK054list/PK054[cdid='01']/cdnm");//"C:/Program Files/himed/components/KDRG/";
  522. var infile = model.getValue("/root/init/PAM/PK054list/PK054[cdid='02']/cdnm");//"kdrg33.in";
  523. var outfile = model.getValue("/root/init/PAM/PK054list/PK054[cdid='03']/cdnm");//"kdrg33.out";
  524. var exefile = model.getValue("/root/init/PAM/PK054list/PK054[cdid='04']/cdnm");//"kdrg33.exe";
  525. var updfileyn = model.getValue("/root/init/PAM/PK054list/PK054[cdid='05']/cdnm");//"번호생성프로그램 사용 유무
  526. var age = model.getValue("/root/main/drginfo/age");// 1세미만환자는 체중과 시간은 필수입력 체크
  527. var bw = model.getValue("/root/main/drginfo/bw");
  528. var vtl = model.getValue("/root/main/drginfo/vtl");
  529. var fso;
  530. var nofile = "";
  531. if (age < "1" ) {
  532. if (bw.length == 0 && vtl.length ==0 ){
  533. messageBox("1세미만 환자입니다. 입원체중, 호홉시간은 ","I003");
  534. //return false;
  535. }
  536. }
  537. model.setValue("/root/send/attach/file",fldr+outfile);
  538. fso = new ActiveXObject("Scripting.FileSystemObject");
  539. if (fso.FolderExists(fldr)){
  540. var files = new Array();
  541. var filecnt = model.getXPathValue("count(/root/init/PAM/PK055list/PK055)");
  542. for (var i=1; i <= filecnt; i++) {
  543. files.push(model.getValue("/root/init/PAM/PK055list/PK055["+ i +"]/cdnm"));
  544. }
  545. var updfilechk = true;
  546. for (var i=0; i < files.length; i++) {
  547. var updfilesize = model.getValue("/root/init/PAM/PK055list/PK055[cdnm='"+ files[i] +"']/dispseq");
  548. var updfilepath = model.getValue("/root/init/PAM/PK055list/PK055[cdnm='"+ files[i] +"']/detl");
  549. if (fso.FileExists(fldr+files[i])){
  550. if (updfileyn == "Y") {
  551. var nowfilesize = fso.GetFile(fldr+files[i]).Size;
  552. if (updfilesize != nowfilesize && updfilepath.length > 0 )
  553. {
  554. //model.download(getActionURL("TXPIJ03208") + "&attfilepath=" + updfilepath + "&filepathcolnm=attfilepath", fldr+files[i], false);
  555. download("TXPIJ03208", "&attfilepath=" + updfilepath + "&filepathcolnm=attfilepath", fldr+files[i], false);
  556. updfilechk = false;
  557. }
  558. }
  559. } else {
  560. if (updfileyn == "Y") {
  561. //model.download(getActionURL("TXPIJ03208") + "&attfilepath=" + updfilepath + "&filepathcolnm=attfilepath", fldr+files[i], false);
  562. download("TXPIJ03208", "&attfilepath=" + updfilepath + "&filepathcolnm=attfilepath", fldr+files[i], false);
  563. updfilechk = false;
  564. } else {
  565. nofile += files[i]+"의 구성요서가 없습니다.! 다운로드 하세요.\n";
  566. }
  567. }
  568. }
  569. if (!updfilechk) {
  570. alert("파일이 업데이트 되었습니다. 다시 시도 해주세요." );
  571. return false;
  572. }
  573. if (nofile.length>0) {
  574. alert(nofile);
  575. return false;
  576. } else {
  577. //기존파일 삭제
  578. if (fso.FileExists(fldr + infile)){ fso.DeleteFile(fldr + infile); }
  579. if (fso.FileExists(fldr + outfile)){ fso.DeleteFile(fldr + outfile); }
  580. //1in파일 생성 및 다운로드
  581. var pid = model.getValue("/root/send/drginfo/pid");
  582. var indd = model.getValue("/root/send/drginfo/indd");
  583. var ordfromdd = model.getValue("/root/send/drginfo/ordfromdd");
  584. var cretno = model.getValue("/root/send/drginfo/cretno");
  585. //화면에있는 내용으로 마스터테이블에 저장후 in 파일을 다운로드한다.
  586. submit("TXPIJ04000",false);
  587. download("TXPIJ03201", "&pid=" + pid +
  588. "&ordfromdd=" + ordfromdd +
  589. "&indd=" + indd +
  590. "&cretno=" + cretno +
  591. "&infilenm=" + infile
  592. ,fldr + infile
  593. ,false);
  594. fSleep(infile);
  595. model.refresh();
  596. //2in파일이 다운로드되었으면 exe파일실행.
  597. if (fso.FileExists(fldr + infile)) {
  598. window.exec(fldr + exefile, fldr + infile, fldr);
  599. fSleep(outfile);
  600. model.refresh();
  601. if (fso.FileExists(fldr+outfile)) {
  602. upload2.refresh();
  603. if (submit("TXPIJ04002")) {
  604. //완료되었습니다.
  605. messageBox("DRG번호생성이","I002");
  606. } else {
  607. //실패하였습니다.
  608. messageBox("DRG번호생성을","E009");
  609. }
  610. //생성파일 삭제
  611. if (fso.FileExists(fldr + infile)){ fso.DeleteFile(fldr + infile); }
  612. if (fso.FileExists(fldr + outfile)){ fso.DeleteFile(fldr + outfile); }
  613. } else {
  614. messageBox("out 파일이 존재 하지 않습니다.","E");
  615. }
  616. } else {
  617. messageBox("in 파일이 존재 하지 않습니다.","E");
  618. }
  619. }
  620. } else {
  621. //폴더가 없으면 다운로드 한다.
  622. fso.CreateFolder(fldr);
  623. messageBox("KDRG 번호생성 프로그램을 다운로드하거나 다시 시도 ","I008");
  624. }
  625. ]]>
  626. </script>
  627. </button>
  628. <upload id="upload2" nodeset="/root/send/attach/file" style="left:260px; top:65px; width:100px; height:20px; "/>
  629. <caption id="caption22" class="search_name" style="left:11px; top:328px; width:119px; height:17px; ">부가코드</caption>
  630. <select1 id="cmb_detailcd1" ref="/root/main/drginfo/detailcd1" appearance="minimal" style="left:140px; top:328px; width:105px; height:19px; ">
  631. <choices>
  632. <itemset nodeset="/root/init/PAM/PK015list/PK015">
  633. <label ref="cdnm"/>
  634. <value ref="cdid"/>
  635. </itemset>
  636. </choices>
  637. </select1>
  638. <select1 id="cmb_detailcd2" ref="/root/main/drginfo/detailcd2" appearance="minimal" style="left:250px; top:329px; width:105px; height:19px; ">
  639. <choices>
  640. <itemset nodeset="/root/init/PAM/PK015list/PK015">
  641. <label ref="cdnm"/>
  642. <value ref="cdid"/>
  643. </itemset>
  644. </choices>
  645. </select1>
  646. <select1 id="cmb_detailcd3" ref="/root/main/drginfo/detailcd3" appearance="minimal" style="left:360px; top:329px; width:105px; height:19px; ">
  647. <choices>
  648. <itemset nodeset="/root/init/PAM/PK015list/PK015">
  649. <label ref="cdnm"/>
  650. <value ref="cdid"/>
  651. </itemset>
  652. </choices>
  653. </select1>
  654. <select1 id="cmb_detailcd4" ref="/root/main/drginfo/detailcd4" appearance="minimal" style="left:470px; top:329px; width:105px; height:19px; ">
  655. <choices>
  656. <itemset nodeset="/root/init/PAM/PK015list/PK015">
  657. <label ref="cdnm"/>
  658. <value ref="cdid"/>
  659. </itemset>
  660. </choices>
  661. </select1>
  662. <select1 id="cmb_detailcd5" ref="/root/main/drginfo/detailcd5" appearance="minimal" style="left:580px; top:329px; width:105px; height:19px; ">
  663. <choices>
  664. <itemset nodeset="/root/init/PAM/PK015list/PK015">
  665. <label ref="cdnm"/>
  666. <value ref="cdid"/>
  667. </itemset>
  668. </choices>
  669. </select1>
  670. <caption id="caption23" class="search_name" style="left:10px; top:299px; width:167px; height:17px; ">알콜및약물중독재활치료</caption>
  671. <select1 id="cmb_ncvcd" ref="/root/main/drginfo/ncvcd" appearance="minimal" style="left:195px; top:300px; width:105px; height:19px; ">
  672. <choices>
  673. <itemset nodeset="/root/init/PAM/PK016list/PK016">
  674. <label ref="cdnm"/>
  675. <value ref="cdid"/>
  676. </itemset>
  677. </choices>
  678. </select1>
  679. <caption id="caption24" class="search_name" style="left:230px; top:450px; width:69px; height:17px; ">ADRG</caption>
  680. <input id="input51" ref="/root/main/drginfo/adrg" class="input_default" disabled="true" editable="false" appearance="minimal" style="left:310px; top:450px; width:75px; height:19px; "/>
  681. <input id="input52" ref="/root/main/drginfo/pccl" class="input_default" disabled="true" editable="false" appearance="minimal" style="left:484px; top:450px; width:75px; height:19px; "/>
  682. <caption id="caption25" class="search_name" style="left:410px; top:450px; width:69px; height:17px; ">PCCL</caption>
  683. <input id="input53" ref="/root/main/drginfo/version" class="input_default" disabled="true" editable="false" appearance="minimal" style="left:670px; top:450px; width:75px; height:19px; "/>
  684. <caption id="caption26" class="search_name" style="left:580px; top:450px; width:90px; height:17px; ">Version</caption>
  685. <caption id="caption66" class="search_name" style="left:536px; top:358px; width:145px; height:17px; ">야간,공휴가산</caption>
  686. <textarea id="textarea1" ref="/root/main/drginfo/drgnm" disabled="true" scroll="auto" style="left:221px; top:406px; width:549px; height:39px; "/>
  687. <caption id="caption28" class="search_name" style="left:360px; top:300px; width:144px; height:17px; ">산부인과가산 유무</caption>
  688. <bool id="bool1" checkvalue="Y,N" ref="/root/main/drginfo/obgaaddyn" style="left:495px; top:300px; width:20px; height:15px; "/>
  689. <button id="button2" accesskey="ctrl+f5" class="btn4_letter2" disabled="true" visibility="hidden" style="left:605px; top:485px; width:56px; height:22px; ">
  690. <caption>배포</caption>
  691. <script type="javascript" ev:event="DOMActivate">
  692. <![CDATA[
  693. open("SPPIJ03202");
  694. ]]>
  695. </script>
  696. </button>
  697. <bool id="bool2" checkvalue="Y,N" ref="/root/main/drginfo/nightflag" style="left:645px; top:360px; width:20px; height:15px; "/>
  698. <bool id="bool3" checkvalue="Y,N" ref="/root/main/drginfo/robotyn" style="left:635px; top:300px; width:20px; height:15px; ">
  699. <script type="javascript" ev:event="xforms-value-changed">
  700. <![CDATA[
  701. if (bool3.value == "Y") {
  702. bool1.disabled = true;
  703. bool2.disabled = true;
  704. bool1.value = "N";
  705. bool2.value = "N";
  706. } else {
  707. bool1.disabled = false;
  708. bool2.disabled = false;
  709. }
  710. ]]>
  711. </script>
  712. </bool>
  713. <caption id="caption31" class="search_name" style="left:530px; top:300px; width:105px; height:17px; ">로봇수술유무</caption>
  714. <caption id="caption32" class="search_name" style="left:10px; top:475px; width:90px; height:17px; ">대분류</caption>
  715. <input id="input5" ref="/root/main/drginfo/drgtype" class="input_default" disabled="true" editable="false" appearance="minimal" style="left:139px; top:475px; width:75px; height:19px; "/>
  716. <button id="button1" class="btn3_letter4" visibility="visible" style="left:700px; top:375px; width:80px; height:22px; ">
  717. <caption>분류조회</caption>
  718. <script type="javascript" ev:event="DOMActivate">
  719. <![CDATA[
  720. open("SPPIJ04400");
  721. ]]>
  722. </script>
  723. </button>
  724. </group>
  725. </xhtml:body>
  726. </xhtml:html>