SPPIZ01200_분만신생아정보관리.xrw 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670
  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. <script type="javascript">
  5. <![CDATA[
  6. // 화면 전체 초기화
  7. function fInitialize()
  8. {
  9. model.resetInstanceNode("/root/main/patinfo/patinfolist");
  10. model.resetInstanceNode("/root/main/drnt");
  11. model.removeNodeset("/root/main/list1");
  12. model.makeNode("/root/main/list1");
  13. model.removeNodeset("/root/main/list3");
  14. model.makeNode("/root/main/list3");
  15. btn_discnt.disabled = false;
  16. //btn_nondiscnt.disabled = false;
  17. model.refresh();
  18. }
  19. // 산모 정보 조회
  20. function fPatInfoRef()
  21. {
  22. if ( model.getValue("/root/main/popupendflag") == "ok" ) {
  23. model.setValue("/root/send/data1/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  24. } else if ( model.getValue("/root/main/popupendflag") == "pass" ) {
  25. model.setValue("/root/send/data1/pid", model.getValue("/root/main/drnt/drnt_pid"));
  26. } else {
  27. model.resetInstanceNode("/root/main/patinfo/patinfolist");
  28. model.resetInstanceNode("/root/main/drnt");
  29. model.refresh();
  30. return false;
  31. }
  32. if (submit("TRPIZ01202")) {
  33. model.resetInstanceNode("/root/main/drnt");
  34. model.refresh();
  35. var pidcnt = getNodesetCount("/root/hidden/rcv/drnt/drnt_pid");
  36. var listcnt = getNodesetCount("/root/hidden/rcv/list2/inddlist");
  37. if (pidcnt > 0) {
  38. copyNodeType("/root/main/drnt","/root/hidden/rcv/drnt","replace");
  39. }
  40. if (listcnt == 1) {
  41. copyNodeType("/root/main/list2/inddlist","/root/hidden/rcv/list2/inddlist","replace");
  42. model.setValue("/root/send/data1/indd",model.getValue("/root/main/list2/inddlist/value"));
  43. cmb_drnt_indd.value = model.getValue("/root/send/data1/indd");
  44. // 산모정보, 신생아정보 조회
  45. fPartrtnInfoRef();
  46. } else if (listcnt > 1) {
  47. copyNodeType("/root/main/list2/inddlist","/root/hidden/rcv/list2/inddlist","replace");
  48. cmb_drnt_indd.value = model.getValue("/root/main/list2/inddlist/value");
  49. cmb_drnt_indd.disabled = false;
  50. }
  51. model.refresh();
  52. }
  53. }
  54. // 산모정보, 신생아정보 조회
  55. function fPartrtnInfoRef() {
  56. model.resetInstanceNode("/root/main/drnt");
  57. model.removeNodeset("/root/main/list1");
  58. model.makeNode("/root/main/list1");
  59. model.removeNodeset("/root/main/list3");
  60. model.makeNode("/root/main/list3");
  61. if(submit("TRPIZ01201")) {
  62. // 산모 정보
  63. copyNodeType("/root/main/drnt","/root/hidden/rcv/drnt","replace");
  64. model.setValue("/root/main/list2/inddlist/label", model.getValue("/root/main/drnt/drnt_inddlabel"));
  65. model.setValue("/root/main/list2/inddlist/value", model.getValue("/root/main/drnt/drnt_indd"));
  66. // 2008.02.12 박지욱 추가 (재원일이 3일 이내면 적용기간을 입원일부터로 하고 3일 넘는경우는 분만일 부터 적용일이 되도록 함)
  67. var maxdd = getCurrentDate().toDate().getAddDate(-3,"D").getDateFormat("YYYYMMDD");
  68. var indd = model.getValue("/root/main/drnt/drnt_indd");
  69. if (indd > maxdd) {
  70. model.setValue("/root/main/drnt/drnt_fromdd", model.getValue("/root/main/drnt/drnt_indd"));
  71. }
  72. // 분만전처치 정보
  73. var listcnt = getNodesetCount("/root/hidden/rcv/list3/iscllist");
  74. if (listcnt > 0) {
  75. copyNodeType("/root/main/list3","/root/hidden/rcv/list3","replace");
  76. }
  77. // 신생아 정보
  78. var listcnt = getNodesetCount("/root/hidden/rcv/list1/drntlist");
  79. if (listcnt > 0) {
  80. copyNodeType("/root/main/list1","/root/hidden/rcv/list1","replace");
  81. }
  82. model.refresh();
  83. for(var i = 0; i <= datagrid1.rows; i++){
  84. var edicode = model.getValue("/root/main/list3/iscllist["+ i + "]/insuedicd");
  85. //제왕절개인경우는 적용요율을 타지 않도록 한다.
  86. if( edicode == "R4517"
  87. ||edicode == "R4518"
  88. ||edicode == "R4514"
  89. ||edicode == "R4519"
  90. ||edicode == "R4520"
  91. ||edicode == "R4516"
  92. ||edicode == "R4507"
  93. ||edicode == "R4508"
  94. ||edicode == "R4509"
  95. ||edicode == "R4510"
  96. ||edicode == "R5001"
  97. ||edicode == "R5002" ){
  98. model.setValue("/root/main/drnt/drnt_ownbexmptn", "N");
  99. }
  100. }
  101. ownbexmptn = model.getValue("/root/main/drnt/drnt_ownbexmptn");
  102. if (ownbexmptn == "N") {
  103. cmb_drnt_ownbexmptn.disabled = true;
  104. } else {
  105. cmb_drnt_ownbexmptn.disabled = false;
  106. }
  107. model.refresh();
  108. }
  109. }
  110. //유형적용 완료후 소급처리 한다.
  111. function fReCalc() {
  112. // 입원일 부터 현재까지 계산한다(일일단위로 loop)
  113. var fromdd = model.getValue("/root/main/drnt/drnt_indd");
  114. var curdd = getCurrentDate();
  115. var period = getDateInterval(fromdd, curdd);
  116. // model.setValue("/root/hidden/sppiz01200/cond/calcbasedd");
  117. // fromdd부터 currentdate까지 loop
  118. for (i=1; i<= period + 1; i++) {
  119. model.setValue("/root/hidden/sppiz01200/cond/calcbasedd" , fromdd);
  120. var rslt = submit("TXPIJ00205");
  121. // fromdd를 증가시킨다(하루씩)
  122. fromdd = fromdd.toDate("YYYYMMDD");
  123. fromdd = fromdd.getAddDate(1);
  124. fromdd = fromdd.getDateFormat();
  125. }
  126. }
  127. ]]>
  128. </script>
  129. <xhtml:head>
  130. <xhtml:title>분만신생아정보관리</xhtml:title>
  131. <model id="model1">
  132. <instance id="instance1">
  133. <root xmlns="">
  134. <send>
  135. <data1>
  136. <pid/>
  137. <indd/>
  138. <cretno/>
  139. <seqno/>
  140. <insukind/>
  141. <suppkind/>
  142. <saveyn/>
  143. <dschnotidt/>
  144. <dschnotiyn/>
  145. </data1>
  146. <data2>
  147. <srchcond/>
  148. <pid/>
  149. <hngnm/>
  150. <rrgstno1/>
  151. <rrgstno2/>
  152. <autoflag/>
  153. </data2>
  154. <data3>
  155. <list>
  156. <pid/>
  157. <indd/>
  158. <hngnm/>
  159. <cretno/>
  160. <wardcd/>
  161. <roomcd/>
  162. <indschacptstat/>
  163. </list>
  164. </data3>
  165. </send>
  166. <main>
  167. <popupendflag/>
  168. <patinfo>
  169. <patinfolist/>
  170. </patinfo>
  171. <drnt>
  172. <drnt_pid/>
  173. <drnt_hngnm/>
  174. <drnt_age/>
  175. <drnt_indd/>
  176. <drnt_inddlabel/>
  177. <drnt_cretno/>
  178. <drnt_instcd/>
  179. <drnt_dlivdd/>
  180. <drnt_dlivdt/>
  181. <drnt_prgweekcnt/>
  182. <drnt_atdoctid/>
  183. <drnt_atdoctnm/>
  184. <drnt_entrid/>
  185. <drnt_entrnm/>
  186. <drnt_avulsionspec/>
  187. <drnt_dlivkindcd/>
  188. <drnt_dlivkindetcspec/>
  189. <drnt_babycnt/>
  190. <drnt_ownbexmptn/>
  191. <drnt_fromdd/>
  192. <drnt_todd/>
  193. <drnt_seqno/>
  194. <drnt_mskind/>
  195. <drnt_insukind/>
  196. <drnt_dschnotidt/>
  197. <drnt_wardcd/>
  198. <drnt_roomcd/>
  199. <drnt_indschacptstat/>
  200. </drnt>
  201. <list1>
  202. <drntlist/>
  203. </list1>
  204. <list2>
  205. <inddlist>
  206. <label/>
  207. <value/>
  208. </inddlist>
  209. </list2>
  210. <list3>
  211. <iscllist/>
  212. </list3>
  213. </main>
  214. <hidden>
  215. <rcv>
  216. </rcv>
  217. <currentDate/>
  218. <popup>
  219. <pid/>
  220. <srchcond/>
  221. <hngnm/>
  222. <rrgstno1/>
  223. <rrgstno2/>
  224. </popup>
  225. <sppiz01200>
  226. <cond>
  227. <pid/>
  228. <indd/>
  229. <cretno/>
  230. <mskind/>
  231. <calcbasedd/>
  232. <seqno/>
  233. <saveyn/>
  234. <dschnotidt/>
  235. <dschnotiyn/>
  236. <cfe/>
  237. </cond>
  238. </sppiz01200>
  239. <item2>
  240. <insuchange>
  241. <iphs_status/>
  242. <iphs_pid/>
  243. <iphs_indd/>
  244. <iphs_cretno/>
  245. <iphs_mskind/>
  246. <iphs_fromdd/>
  247. <iphs_seqno/>
  248. <iphs_todd/>
  249. <iphs_instcd/>
  250. <iphs_insukind/>
  251. <iphs_suppkind/>
  252. </insuchange>
  253. <rslt/>
  254. </item2>
  255. </hidden>
  256. </root>
  257. </instance>
  258. <submission id="TRPIZ01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/hidden/rcv"/>
  259. <submission id="TRPIZ01202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/hidden/rcv"/>
  260. <submission id="TXPIJ00305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/item2/insuchange" resultref="/root/hidden/item2/rslt"/>
  261. <script type="javascript" ev:event="xforms-ready">
  262. <![CDATA[
  263. fInitialize(); // 기본데이터 초기화
  264. var pid = model.getValue("/root/hidden/sppiz01200/cond/pid");
  265. if (pid != "") {
  266. copyNodeType("/root/send/data1","/root/hidden/sppiz01200/cond","replace");
  267. // 산모정보, 신생아정보 조회
  268. fPartrtnInfoRef();
  269. }
  270. // 이미 면제기간 적용된 경우, 버튼을 비활성화 시키고, 적용된 fromdd, todd 를 넣어준다. (2008.01.29 박지욱 추가)
  271. var disyn = model.getValue("/root/send/data1/disyn");
  272. if (disyn == "Y") {
  273. // 면제기간적용된 환자
  274. model.setValue("/root/main/drnt/drnt_fromdd", model.getValue("/root/send/data1/fromdd"));
  275. model.setValue("/root/main/drnt/drnt_todd", model.getValue("/root/send/data1/todd"));
  276. btn_discnt.disabled = true;
  277. btn_nondiscnt.disabled = false;
  278. } else if (disyn == "N") {
  279. // 면제기간적용안된 환자
  280. btn_discnt.disabled = false;
  281. btn_nondiscnt.disabled = true;
  282. }
  283. // 심사마감이나 퇴원이 되었을때는 면제기간적용해제를 할 수 없게 한다. - 20080924 박창원
  284. var saveyn = model.getValue("/root/hidden/sppiz01200/cond/saveyn");
  285. if (saveyn == "Y") {
  286. messageBox("마감이나 퇴원한 환자입니다. 조작은 할 수","E001");
  287. btn_discnt.disabled = true;
  288. btn_nondiscnt.disabled = true;
  289. }
  290. model.refresh();
  291. ]]>
  292. </script>
  293. <submission id="TXPIJ01903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/list4" resultref="/root/hidden/list4/rslt"/>
  294. <submission id="TXPIJ00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/sppiz01200/cond"/>
  295. <submission id="TXPIJ01904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/item2/insuchange" resultref="/root/hidden/list2/rslt"/>
  296. </model>
  297. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  298. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  299. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  300. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  301. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  302. <script type="javascript" src="../../../pam/opatmngtweb/js/PMO001.js"/>
  303. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  304. <script type="javascript" ev:event="xforms-ready">
  305. <![CDATA[
  306. ]]>
  307. </script>
  308. </xhtml:head>
  309. <xhtml:body pagewidth="810" pageheight="575" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  310. <group id="group1" style="left:0px; top:0px; width:790px; height:13px; ">
  311. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:155px; height:13px; ">분만신생아정보관리</caption>
  312. </group>
  313. <group id="group5" style="left:0px; top:526px; width:790px; height:27px; ">
  314. <button id="btn_init" class="btn4_letter3" navindex="32" style="left:662px; top:5px; width:68px; height:22px; ">
  315. <caption>초기화</caption>
  316. <script type="javascript" ev:event="DOMActivate">
  317. <![CDATA[
  318. fInitialize(); // 기본데이터 초기화
  319. ]]>
  320. </script>
  321. </button>
  322. <button id="btn_close" class="btn4_letter2" navindex="32" style="left:733px; top:5px; width:56px; height:22px; ">
  323. <caption>닫기</caption>
  324. <script type="javascript" ev:event="DOMActivate">
  325. <![CDATA[
  326. window.close(); // F5 실행시 IE를 종료시킨다.
  327. ]]>
  328. </script>
  329. </button>
  330. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:785px; y2:0px; "/>
  331. </group>
  332. <group id="group2" style="left:0px; top:15px; width:790px; height:510px; ">
  333. <line id="line2" class="line_2" style="x1:0px; y1:75px; x2:788px; y2:75px; "/>
  334. <caption id="caption31" class="tit_2" style="left:5px; top:245px; width:88px; height:13px; font-family:돋움; vertical-align:middle; ">신생아정보</caption>
  335. <output id="output15" ref="/root/main/drnt/drnt_age" class="output_fix" appearance="output" style="left:231px; top:55px; width:45px; height:19px; text-align:right; "/>
  336. <caption id="caption32" class="cell_1" style="left:128px; top:30px; width:100px; height:23px; text-align:center; vertical-align:middle; ">환자성명</caption>
  337. <caption id="caption33" class="tit_2" style="left:5px; top:10px; width:170px; height:14px; font-family:돋움; vertical-align:middle; ">산모정보</caption>
  338. <input id="input2" ref="/root/main/drnt/drnt_pid" class="input_s_essential" navindex="1" maxlength="10" appearance="input" style="left:0px; top:55px; width:105px; height:19px; ">
  339. <script type="javascript" ev:event="onkeypress">
  340. <![CDATA[
  341. if (event.keyCode=='13') {
  342. // popup open 없이 조회로 변경
  343. model.setFocus("btn_drntpid");
  344. model.makeNode("/root/main/popupendflag");
  345. model.setValue("/root/main/popupendflag","pass");
  346. fPatInfoRef();
  347. }
  348. ]]>
  349. </script>
  350. </input>
  351. <caption id="caption34" class="cell_1" style="left:0px; top:30px; width:125px; height:23px; text-align:center; vertical-align:middle; ">등록번호</caption>
  352. <caption id="caption46" class="cell_1" style="left:231px; top:30px; width:45px; height:23px; text-align:center; vertical-align:middle; ">나이</caption>
  353. <line id="line23" class="line_1" style="x1:0px; y1:25px; x2:788px; y2:25px; "/>
  354. <line id="line24" class="line_1" style="x1:0px; y1:260px; x2:788px; y2:260px; "/>
  355. <line id="line28" class="line_3" style="x1:0px; y1:123px; x2:788px; y2:123px; "/>
  356. <caption id="caption1" class="tit_2" style="left:5px; top:130px; width:88px; height:13px; font-family:돋움; vertical-align:middle; ">처방정보</caption>
  357. <line id="line1" class="line_1" style="x1:0px; y1:144px; x2:788px; y2:144px; "/>
  358. <button id="btn_drntpid" class="icon_search" style="left:110px; top:55px; width:16px; height:16px; ">
  359. <caption/>
  360. <script type="javascript" ev:event="DOMActivate">
  361. <![CDATA[
  362. /* */
  363. var drnt_pid = model.getValue("/root/main/drnt/drnt_pid");
  364. if (drnt_pid == null || drnt_pid ==" " || drnt_pid == "") {
  365. model.resetInstanceNode("/root/send/data2");
  366. } else {
  367. model.setValue("/root/send/data2/pid",drnt_pid);
  368. model.setValue("/root/send/data2/srchcond","1");
  369. }
  370. modal("../../../pam/patinfomngtweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data2", "/root/send", "", "");
  371. model.resetInstanceNode("/root/send/data2");
  372. fPatInfoRef();
  373. ]]>
  374. </script>
  375. </button>
  376. <datagrid id="datagrid1" nodeset="/root/main/list3/iscllist" caption="분만코드^EDI코드^처방명^처방일시^처방일시" colsep="^" colwidth="100, 100, 330, 100, 100" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:149px; width:788px; height:91px; ">
  377. <col ref="snglcalcscorcd" style="text-align:left; "/>
  378. <col ref="insuedicd" style="text-align:left; "/>
  379. <col ref="hngnm" style="text-align:left; "/>
  380. <col ref="rgstdd" format="yyyy-mm-dd" style="text-align:center; "/>
  381. <col ref="rgsttm" format="hh:nn:ss" style="text-align:center; "/>
  382. </datagrid>
  383. <button id="button7" class="btn2_letter6" style="left:525px; top:5px; width:86px; height:19px; ">
  384. <caption>분만간호기록</caption>
  385. <script type="javascript" ev:event="DOMActivate">
  386. <![CDATA[
  387. var drnt_pid = model.getValue("/root/main/drnt/drnt_pid");
  388. if (drnt_pid == null || drnt_pid == " " || drnt_pid == "" ) {
  389. model.resetInstanceNode("/root/send/data3");
  390. } else {
  391. model.setValue("/root/send/data3/list/pid",drnt_pid);
  392. model.setValue("/root/send/data3/list/hngnm",model.getValue("/root/main/drnt/drnt_hngnm"));
  393. model.setValue("/root/send/data3/list/indd",model.getValue("/root/main/drnt/drnt_indd"));
  394. model.setValue("/root/send/data3/list/cretno",model.getValue("/root/main/drnt/drnt_cretno"));
  395. model.setValue("/root/send/data3/list/wardcd",model.getValue("/root/main/drnt/drnt_wardcd"));
  396. model.setValue("/root/send/data3/list/roomcd",model.getValue("/root/main/drnt/drnt_roomcd"));
  397. model.setValue("/root/send/data3/list/indschacptstat",model.getValue("/root/main/drnt/drnt_indschacptstat"));
  398. var reqnode = instance1.selectNodes("/root/send/data3/list");
  399. var csv = getNodeListCSV(reqnode);
  400. setGlobalVariable("paminfo",csv);
  401. }
  402. //modal("../../../emr/partrtnnbabyweb/xrw/SMMNN00700", "1","100", "100", "SMMNN00700", "/root/send/data3", "/root/init/paminfo");
  403. modal("../../../emr/partrtnnbabyweb/xrw/SMMNN00700", "1","100", "100", "SMMNN00700", "", "", "", "");
  404. ]]>
  405. </script>
  406. </button>
  407. <caption id="caption63" class="cell_1" style="left:279px; top:30px; width:89px; height:23px; text-align:center; vertical-align:middle; ">입원일자</caption>
  408. <caption id="caption65" class="cell_1" style="left:371px; top:30px; width:85px; height:23px; text-align:center; vertical-align:middle; ">분만일자</caption>
  409. <caption id="caption66" class="cell_1" style="left:459px; top:30px; width:80px; height:23px; text-align:center; vertical-align:middle; ">분만일시</caption>
  410. <caption id="caption67" class="cell_1" style="left:542px; top:30px; width:80px; height:23px; text-align:center; vertical-align:middle; ">임신주수</caption>
  411. <caption id="caption68" class="cell_1" style="left:625px; top:30px; width:80px; height:23px; text-align:center; vertical-align:middle; ">전문의</caption>
  412. <caption id="caption69" class="cell_1" style="left:708px; top:30px; width:80px; height:23px; text-align:center; vertical-align:middle; ">분만의</caption>
  413. <caption id="caption70" class="cell_1" style="left:279px; top:78px; width:89px; height:23px; text-align:center; vertical-align:middle; ">아기수</caption>
  414. <caption id="caption71" class="cell_1" style="left:128px; top:78px; width:148px; height:23px; text-align:center; vertical-align:middle; ">분만형태</caption>
  415. <caption id="caption72" class="cell_1" style="left:459px; top:78px; width:163px; height:23px; text-align:center; vertical-align:middle; ">From</caption>
  416. <caption id="caption73" class="cell_1" style="left:625px; top:78px; width:163px; height:23px; text-align:center; vertical-align:middle; ">To</caption>
  417. <caption id="caption74" class="cell_1" style="left:0px; top:78px; width:125px; height:23px; text-align:center; vertical-align:middle; ">산과력</caption>
  418. <caption id="caption75" class="cell_1" style="left:371px; top:78px; width:85px; height:23px; text-align:center; vertical-align:middle; ">본인부담면제</caption>
  419. <output id="output18" ref="/root/main/drnt/drnt_dlivdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:371px; top:55px; width:85px; height:19px; text-align:center; "/>
  420. <output id="output19" ref="/root/main/drnt/drnt_dlivdt" class="output_fix" format="hh:nn" appearance="output" style="left:459px; top:55px; width:80px; height:19px; text-align:center; "/>
  421. <output id="output20" ref="/root/main/drnt/drnt_prgweekcnt" class="output_fix" appearance="output" style="left:542px; top:55px; width:80px; height:19px; text-align:center; "/>
  422. <output id="output21" ref="/root/main/drnt/drnt_atdoctnm" class="output_fix" appearance="output" style="left:625px; top:55px; width:80px; height:19px; text-align:center; "/>
  423. <output id="output22" ref="/root/main/drnt/drnt_entrnm" class="output_fix" appearance="output" style="left:708px; top:55px; width:80px; height:19px; text-align:center; "/>
  424. <output id="output23" ref="/root/main/drnt/drnt_avulsionspec" class="output_fix" appearance="output" style="left:0px; top:103px; width:125px; height:19px; "/>
  425. <output id="output24" ref="/root/main/drnt/drnt_dlivkindetcspec" class="output_fix" appearance="output" style="left:128px; top:103px; width:100px; height:19px; text-align:left; "/>
  426. <output id="output25" ref="/root/main/drnt/drnt_dlivkindcd" class="output_fix" appearance="output" style="left:231px; top:103px; width:45px; height:19px; text-align:center; "/>
  427. <output id="output26" ref="/root/main/drnt/drnt_babycnt" class="output_fix" appearance="output" style="left:279px; top:103px; width:89px; height:19px; text-align:center; "/>
  428. <input id="ipt_drnt_from" ref="/root/main/drnt/drnt_fromdd" class="input_default" inputtype="date" appearance="input" style="left:459px; top:103px; width:163px; height:19px; text-align:center; "/>
  429. <input id="ipt_drnt_to" ref="/root/main/drnt/drnt_todd" class="input_default" inputtype="date" appearance="input" style="left:625px; top:103px; width:163px; height:19px; text-align:center; "/>
  430. <button id="btn_discnt" class="btn2_letter6" style="left:614px; top:5px; width:86px; height:19px; ">
  431. <caption>면제기간적용</caption>
  432. <script type="javascript" ev:event="DOMActivate">
  433. <![CDATA[
  434. var ownbexmptn = model.getValue("/root/main/drnt/drnt_ownbexmptn");
  435. if (ownbexmptn == "Y") {
  436. // 2008.02.12 박지욱 추가 (메세지 확인 후 적용 처리하도록 함)
  437. var fromdd = model.getValue("/root/main/drnt/drnt_fromdd");
  438. var todd = model.getValue("/root/main/drnt/drnt_todd");
  439. var dschnotidt = model.getValue("/root/send/data1/dschnotidt");
  440. var dschnotiyn = model.getValue("/root/send/data1/dschnotiyn");
  441. var curdd = getCurrentDate();
  442. // 퇴원확정시 퇴원확정일 이후로 todd를 지정하면 block - 20090114 박창원
  443. dschnotidt = dschnotidt.substr(0, 8);
  444. if ((todd > dschnotidt) && dschnotiyn == "Y") {
  445. messageBox("퇴원확정일 이후로 종료일자를 적용","E001");
  446. return;
  447. }
  448. if (todd == "99991231") {
  449. model.setValue("/root/main/drnt/drnt_todd",curdd);
  450. todd = model.getValue("/root/main/drnt/drnt_todd");
  451. }
  452. fromdd = fromdd.toDate().getDateFormat("YYYY년 MM월 DD일");
  453. todd = todd.toDate().getDateFormat("YYYY년 MM월 DD일");
  454. var ret = messageBox(fromdd + " 부터 " + todd + " 까지 본인부담 면제기간 적용을", "Q004");
  455. if(ret == 6){
  456. var pid = model.getValue("root/main/drnt/drnt_pid");
  457. var indd = model.getValue("root/main/drnt/drnt_indd");
  458. var cretno = model.getValue("root/main/drnt/drnt_cretno");
  459. var mskind = model.getValue("/root/hidden/sppiz01200/cond/mskind");
  460. var fromdd = model.getValue("/root/main/drnt/drnt_fromdd");
  461. var seqno = model.getValue("root/main/drnt/drnt_seqno");
  462. var todd = model.getValue("/root/main/drnt/drnt_todd");
  463. var insukind = model.getValue("/root/main/drnt/drnt_insukind");
  464. var suppkind = model.getValue("root/main/drnt/drnt_suppkind");
  465. var instcd = model.getValue("root/main/drnt/drnt_instcd");
  466. var cfe = model.getValue("/root/hidden/sppiz01200/cond/cfe");
  467. model.setValue("/root/hidden/item2/insuchange/iphs_status","B");
  468. model.setValue("/root/hidden/item2/insuchange/iphs_pid",pid);
  469. model.setValue("/root/hidden/item2/insuchange/iphs_indd",indd);
  470. model.setValue("/root/hidden/item2/insuchange/iphs_cretno",cretno);
  471. model.setValue("/root/hidden/item2/insuchange/iphs_mskind",mskind);
  472. model.setValue("/root/hidden/item2/insuchange/iphs_fromdd",fromdd);
  473. model.setValue("/root/hidden/item2/insuchange/iphs_seqno",seqno);
  474. model.setValue("/root/hidden/item2/insuchange/iphs_todd",todd);
  475. model.setValue("/root/hidden/item2/insuchange/iphs_insukind",insukind);
  476. // 20090325 차상위 2종적용 - 박창원
  477. if (cfe == "E" | cfe == "F") {
  478. model.setValue("/root/hidden/item2/insuchange/iphs_suppkind","42"); //자연분만으로 셋팅
  479. } else {
  480. model.setValue("/root/hidden/item2/insuchange/iphs_suppkind","09"); //자연분만으로 셋팅
  481. }
  482. model.setValue("/root/hidden/item2/insuchange/iphs_instcd",instcd);
  483. model.removenode("/root/hidden/insuchange/rslt");
  484. if(submit("TXPIJ00305")){
  485. var ret = messageBox("유형변경이 완료 되었습니다. 변경된 내역의 소급처리를", "Q004");
  486. if(ret == 6){
  487. var sWindowMsg = "수가계산중입니다...";
  488. callLoadingWindow(sWindowMsg);
  489. fReCalc() ;
  490. removeLoadingWindow();
  491. }
  492. opener.javascript.fGetItemInfo();
  493. opener.model.refresh();
  494. activateOpener(); // (common.js)에서 제공하는 함수로 opener를 activate한다.
  495. window.close(); // F5 실행시 IE를 종료시킨다.
  496. }
  497. }else{
  498. return;
  499. }
  500. }else{
  501. messageBox("면제기간 적용 대상이 아니므로 적용","E001");
  502. }
  503. ]]>
  504. </script>
  505. </button>
  506. <select1 id="cmb_drnt_indd" ref="/root/main/drnt/drnt_indd" disabled="true" appearance="minimal" style="left:279px; top:55px; width:89px; height:19px; text-align:center; ">
  507. <choices>
  508. <itemset nodeset="/root/main/list2/inddlist">
  509. <label ref="label"/>
  510. <value ref="value"/>
  511. </itemset>
  512. </choices>
  513. <script type="javascript" ev:event="xforms-value-changed">
  514. <![CDATA[
  515. model.setValue("/root/send/data1/pid",model.getValue("/root/main/drnt/drnt_pid"));
  516. model.setValue("/root/send/data1/indd",model.getValue("root/main/drnt/drnt_indd"));
  517. // 산모정보, 신생아정보 조회
  518. fPartrtnInfoRef();
  519. ]]>
  520. </script>
  521. </select1>
  522. <output id="opt_drnt_hngnm" ref="/root/main/drnt/drnt_hngnm" class="output_fix" appearance="output" style="left:128px; top:55px; width:100px; height:19px; "/>
  523. <select1 id="cmb_drnt_ownbexmptn" ref="/root/main/drnt/drnt_ownbexmptn" appearance="minimal" style="left:371px; top:103px; width:85px; height:19px; text-align:center; ">
  524. <choices>
  525. <item>
  526. <label>Y</label>
  527. <value>Y</value>
  528. </item>
  529. <item>
  530. <label>N</label>
  531. <value>N</value>
  532. </item>
  533. </choices>
  534. </select1>
  535. <datagrid id="grd_drntlist" nodeset="/root/main/list1/drntlist" caption="등록번호^아기성명^성별^출생시체중(g)^생사여부^A/S^병실" colsep="^" colwidth="100, 100, 110, 110, 110, 100, 100" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:265px; width:788px; height:243px; ">
  536. <col ref="babyno"/>
  537. <col ref="babynm" style="text-align:left; "/>
  538. <col ref="gndr" style="text-align:center; "/>
  539. <col ref="weig" style="text-align:right; "/>
  540. <col ref="deathyn" style="text-align:center; "/>
  541. <col ref="apgarscore" style="text-align:center; "/>
  542. <col ref="dlivplcecd" style="text-align:center; "/>
  543. </datagrid>
  544. <button id="btn_nondiscnt" class="btn2_letter6" style="left:702px; top:5px; width:86px; height:19px; ">
  545. <caption>면제기간해제</caption>
  546. <script type="javascript" ev:event="DOMActivate">
  547. <![CDATA[
  548. var pid = model.getValue("/root/main/drnt/drnt_pid");
  549. var indd = model.getValue("/root/main/drnt/drnt_indd");
  550. var cretno = model.getValue("/root/main/drnt/drnt_cretno");
  551. var mskind = model.getValue("/root/main/drnt/drnt_mskind");
  552. var fromdd = model.getValue("/root/main/drnt/drnt_fromdd");
  553. var seqno = model.getValue("/root/hidden/sppiz01200/cond/seqno");
  554. if (seqno == "") {
  555. seqno = "1"
  556. }
  557. var todd = model.getValue("/root/main/drnt/drnt_todd");
  558. var insukind = model.getValue("/root/main/drnt/drnt_insukind");
  559. var instcd = model.getValue("/root/main/drnt/drnt_instcd");
  560. model.setValue("/root/hidden/item2/insuchange/iphs_status","B");
  561. model.setValue("/root/hidden/item2/insuchange/iphs_pid",pid);
  562. model.setValue("/root/hidden/item2/insuchange/iphs_indd",indd);
  563. model.setValue("/root/hidden/item2/insuchange/iphs_cretno",cretno);
  564. model.setValue("/root/hidden/item2/insuchange/iphs_mskind",mskind);
  565. model.setValue("/root/hidden/item2/insuchange/iphs_fromdd",fromdd);
  566. model.setValue("/root/hidden/item2/insuchange/iphs_seqno",seqno);
  567. model.setValue("/root/hidden/item2/insuchange/iphs_todd",todd);
  568. model.setValue("/root/hidden/item2/insuchange/iphs_insukind",insukind);
  569. var cfe = model.getValue("/root/hidden/sppiz01200/cond/cfe");
  570. if (cfe == "E" || cfe == "F") {
  571. model.setValue("/root/hidden/item2/insuchange/iphs_suppkind","33"); //차상위2종정상으로 셋팅
  572. } else {
  573. model.setValue("/root/hidden/item2/insuchange/iphs_suppkind","00"); //정상으로 셋팅
  574. }
  575. model.setValue("/root/hidden/item2/insuchange/iphs_instcd",instcd);
  576. model.removenode("/root/hidden/insuchange/rslt");
  577. if(submit("TXPIJ00305")){
  578. var fromdd = model.getValue("/root/main/drnt/drnt_indd");
  579. var todd = 99991231;
  580. model.setValue("/root/hidden/item2/insuchange/iphs_fromdd",fromdd);
  581. model.setValue("/root/hidden/item2/insuchange/iphs_todd",todd);
  582. if (submit("TXPIJ01904")) {
  583. if(messageBox("면제기간이 해제되었습니다. 변경된 내역의 소급처리를", "Q004") == 6){
  584. var sWindowMsg = "수가계산중입니다...";
  585. callLoadingWindow(sWindowMsg);
  586. fReCalc() ;
  587. removeLoadingWindow();
  588. messageBox("소급계산이","I001");
  589. }
  590. }
  591. }
  592. opener.model.refresh();
  593. opener.javascript.fGetItemInfo();
  594. activateOpener(); // (common.js)에서 제공하는 함수로 opener를 activate한다.
  595. window.close(); // F5 실행시 IE를 종료시킨다.
  596. ]]>
  597. </script>
  598. </button>
  599. </group>
  600. </xhtml:body>
  601. </xhtml:html>