SPMMO21700_산정특례체크.xfdl 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMO21700" position="absolute 0 0 800 759" titletext="산정특례 확인" oninit="SPMMO21700_oninit" onload="SPMMO21700_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_srch" taborder="1" position="absolute 0 26 800 61" class="div_SA"/>
  8. <Shape position="absolute 0 376 800 430" id="roundrect2" type="roundrectangle"/>
  9. <Grid position="absolute 0 543 800 758" id="grd_prcplist" binddataset="ds_grd_prcplist" autofittype="col">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="90"/>
  14. <Column size="80"/>
  15. <Column size="80"/>
  16. <Column size="80"/>
  17. <Column size="80"/>
  18. <Column size="349"/>
  19. </Columns>
  20. <Rows>
  21. <Row size="24" band="head"/>
  22. <Row size="24"/>
  23. </Rows>
  24. <Band id="head">
  25. <Cell text="처방발행여부"/>
  26. <Cell col="1" text="시작상병"/>
  27. <Cell col="2" text="종료상병"/>
  28. <Cell col="3" text="EDI코드"/>
  29. <Cell col="4" text="처방코드"/>
  30. <Cell col="5" text="처방명"/>
  31. </Band>
  32. <Band id="body">
  33. <Cell text="bind:prcpyn"/>
  34. <Cell col="1" text="bind:diagcdfrom"/>
  35. <Cell col="2" text="bind:diagcdto"/>
  36. <Cell col="3" style="align:left;" text="bind:insuedicd"/>
  37. <Cell col="4" style="align:left;" text="bind:prcpcd"/>
  38. <Cell col="5" style="align:left;" text="bind:prcpnm"/>
  39. </Band>
  40. </Format>
  41. </Formats>
  42. </Grid>
  43. <Static text="외래 진료 산정특례 확인" position="absolute 0 0 200 26" align="align:center middle;" id="caption9" class="tit_1" onclick="caption9_onclick"/>
  44. <Static text="등록번호 :" position="absolute 375 36 470 53" align="align:center middle;" id="caption10" class="search_name"/>
  45. <Static text="이름 :" position="absolute 570 36 635 53" align="align:center middle;" id="caption11" class="search_name"/>
  46. <Grid position="absolute 0 432 800 521" id="grd_essclist" binddataset="ds_grd_essclist" oncellclick="grd_essclist_oncellclick" autofittype="col">
  47. <Formats>
  48. <Format id="default">
  49. <Columns>
  50. <Column size="55"/>
  51. <Column size="0"/>
  52. <Column size="94"/>
  53. <Column size="0"/>
  54. <Column size="65"/>
  55. <Column size="0"/>
  56. <Column size="83"/>
  57. <Column size="0"/>
  58. <Column size="80"/>
  59. <Column size="401"/>
  60. <Column size="0"/>
  61. <Column size="0"/>
  62. <Column size="0"/>
  63. <Column size="0"/>
  64. </Columns>
  65. <Rows>
  66. <Row size="24" band="head"/>
  67. <Row size="24"/>
  68. </Rows>
  69. <Band id="head">
  70. <Cell text="특례코드"/>
  71. <Cell col="1" text="구분"/>
  72. <Cell col="2" text="구분"/>
  73. <Cell col="3" text="보험유형"/>
  74. <Cell col="4" text="보험유형"/>
  75. <Cell col="5" text="보조유형"/>
  76. <Cell col="6" text="보조유형"/>
  77. <Cell col="7" text="산정특례구분"/>
  78. <Cell col="8" text="산정특례구분"/>
  79. <Cell col="9" text="내용"/>
  80. <Cell col="10" text="ioflag"/>
  81. <Cell col="11" text="todd"/>
  82. <Cell col="12" text="diagcdfrom"/>
  83. <Cell col="13" text="diagcdto"/>
  84. </Band>
  85. <Band id="body">
  86. <Cell text="bind:spclcd"/>
  87. <Cell col="1" text="bind:srchflag"/>
  88. <Cell col="2" text="bind:srchflagnm"/>
  89. <Cell col="3" text="bind:insukind"/>
  90. <Cell col="4" text="bind:insukindnm"/>
  91. <Cell col="5" text="bind:suppkindflag"/>
  92. <Cell col="6" text="bind:suppkindnm"/>
  93. <Cell col="7" text="bind:spclflag"/>
  94. <Cell col="8" text="bind:spclflagnm"/>
  95. <Cell col="9" text="bind:spclnm"/>
  96. <Cell col="10" text="bind:ioflag"/>
  97. <Cell col="11" text="bind:todd"/>
  98. <Cell col="12" text="bind:diagcdfrom"/>
  99. <Cell col="13" text="bind:diagcdto"/>
  100. </Band>
  101. </Format>
  102. </Formats>
  103. </Grid>
  104. <Edit position="absolute 470 35 535 54" id="input1" onkeydown="input1_onkeydown"/>
  105. <Edit position="absolute 635 35 710 54" id="input2" enable="false" oneditclick="input2_oneditclick"/>
  106. <Static text="진료일의 주진단, 보험유형으로 특례 적용 여부를 체크하여 특례코드를 조회 합니다. 코드가 없으면 적용 되지 않는 진단입니다.&#13;&#10;환자의 보험유형이 &quot;건강보험&quot;, &quot;의료급여&quot; 인 경우만 적용가능하며, 차상위 환자는 차상위 적용 혜택이 더 크기 때문에 특례 적용되지 않습니다.&#13;&#10;환자의 수급절차가 &quot;해당없음&quot;, &quot;급여가능&quot; 인 경우만 보조유형이 적용 됩니다." position="absolute 5 376 788 429" align="align:center middle;" id="caption6" style="linespace:3;"/>
  107. <Grid position="absolute 0 239 800 354" id="grd_ordlist" binddataset="ds_grd_ordlist" oncellclick="grd_ordlist_oncellclick" autofittype="col">
  108. <Formats>
  109. <Format id="default">
  110. <Columns>
  111. <Column size="50"/>
  112. <Column size="69"/>
  113. <Column size="0"/>
  114. <Column size="100"/>
  115. <Column size="0"/>
  116. <Column size="50"/>
  117. <Column size="75"/>
  118. <Column size="0"/>
  119. <Column size="75"/>
  120. <Column size="0"/>
  121. <Column size="90"/>
  122. <Column size="0"/>
  123. <Column size="55"/>
  124. <Column size="30"/>
  125. <Column size="90"/>
  126. <Column size="110"/>
  127. </Columns>
  128. <Rows>
  129. <Row size="24" band="head"/>
  130. <Row size="24"/>
  131. </Rows>
  132. <Band id="head">
  133. <Cell text="특례코드"/>
  134. <Cell col="1" text="진료일"/>
  135. <Cell col="2" text="진료과코드"/>
  136. <Cell col="3" text="진료과"/>
  137. <Cell col="4" text="진료의"/>
  138. <Cell col="5" text="진료의"/>
  139. <Cell col="6" text="예약구분"/>
  140. <Cell col="7" text="보험유형"/>
  141. <Cell col="8" text="보험유형"/>
  142. <Cell col="9" text="보조유형"/>
  143. <Cell col="10" text="보조유형"/>
  144. <Cell col="11" text="수급절차"/>
  145. <Cell col="12" text="수급절차"/>
  146. <Cell col="13" text="종류"/>
  147. <Cell col="14" text="진단"/>
  148. <Cell col="15" text="진단명"/>
  149. </Band>
  150. <Band id="body">
  151. <Cell text="bind:spclcd"/>
  152. <Cell col="1" text="bind:orddd" mask="####-##-##"/>
  153. <Cell col="2" text="bind:orddeptcd"/>
  154. <Cell col="3" style="align:left;" text="bind:orddeptnm"/>
  155. <Cell col="4" text="bind:orddrid"/>
  156. <Cell col="5" text="bind:orddrnm"/>
  157. <Cell col="6" style="align:left;" text="bind:rsrvflag"/>
  158. <Cell col="7" text="bind:insukind"/>
  159. <Cell col="8" text="bind:insukindnm"/>
  160. <Cell col="9" text="bind:suppkind"/>
  161. <Cell col="10" style="align:left;" text="bind:suppkindnm"/>
  162. <Cell col="11" text="bind:ordreqformflag"/>
  163. <Cell col="12" text="bind:ordreqformflagnm"/>
  164. <Cell col="13" text="bind:diagkindcdflag"/>
  165. <Cell col="14" text="bind:diagcd"/>
  166. <Cell col="15" style="align:left;" text="bind:diagnm"/>
  167. </Band>
  168. </Format>
  169. </Formats>
  170. </Grid>
  171. <Grid position="absolute 0 85 800 220" id="grd_speclist" binddataset="ds_grd_speclist" onselectchanged="grd_speclist_onselectchanged" ondropdown="grd_speclist_ondropdown" onenteredit="grd_speclist_onenteredit" autoupdatetype="itemselect" autofittype="col" oncelldblclick="grd_speclist_oncelldblclick">
  172. <Formats>
  173. <Format id="default">
  174. <Columns>
  175. <Column size="25"/>
  176. <Column size="90"/>
  177. <Column size="80"/>
  178. <Column size="40"/>
  179. <Column size="0"/>
  180. <Column size="70"/>
  181. <Column size="90"/>
  182. <Column size="74"/>
  183. <Column size="75"/>
  184. <Column size="95"/>
  185. <Column size="45"/>
  186. <Column size="60"/>
  187. <Column size="40"/>
  188. <Column size="0"/>
  189. <Column size="0"/>
  190. <Column size="0"/>
  191. <Column size="0"/>
  192. </Columns>
  193. <Rows>
  194. <Row size="24" band="head"/>
  195. <Row size="24"/>
  196. </Rows>
  197. <Band id="head">
  198. <Cell/>
  199. <Cell col="1" text="구분"/>
  200. <Cell col="2" text="등록진단"/>
  201. <Cell col="3" text="입/외"/>
  202. <Cell col="4" text="보험유형"/>
  203. <Cell col="5" text="보험유형"/>
  204. <Cell col="6" text="진단확정일"/>
  205. <Cell col="7" text="시작일"/>
  206. <Cell col="8" text="종료일"/>
  207. <Cell col="9" text="특례번호"/>
  208. <Cell col="10" text="연장"/>
  209. <Cell col="11" text="중증화상"/>
  210. <Cell col="12" text="타병원"/>
  211. <Cell col="13" text="rgstkindcd"/>
  212. <Cell col="14" text="genrdd"/>
  213. <Cell col="15" text="genrno"/>
  214. <Cell col="16" text="histno"/>
  215. </Band>
  216. <Band id="body">
  217. <Cell celltype="none"/>
  218. <Cell col="1" text="bind:flag"/>
  219. <Cell col="2" text="bind:maindiagcd"/>
  220. <Cell col="3" displaytype="combo" edittype="combo" style="align:center;" text="bind:genrflagcd" combodataset="ds_init_genrflagcd" combocodecol="value" combodatacol="label"/>
  221. <Cell col="4" text="bind:insukind"/>
  222. <Cell col="5" text="bind:insukindnm"/>
  223. <Cell col="6" displaytype="date" edittype="date" style="padding:0 0 0 0;" text="bind:cncrdiagcnfmdd"/>
  224. <Cell col="7" text="bind:serdiagfromdd" mask="####-##-##"/>
  225. <Cell col="8" text="bind:serdiagtodd" mask="####-##-##"/>
  226. <Cell col="9" text="bind:serdiagno"/>
  227. <Cell col="10" displaytype="combo" edittype="combo" style="align:center;" text="bind:continueflag" combodataset="ds_init_continueflag" combocodecol="value" combodatacol="label"/>
  228. <Cell col="11" text="bind:burnicd10desc"/>
  229. <Cell col="12" style="align:center;" text="bind:anohosprgstflag"/>
  230. <Cell col="13" text="bind:rgstkindcd"/>
  231. <Cell col="14" text="bind:genrdd"/>
  232. <Cell col="15" text="bind:genrno"/>
  233. <Cell col="16" text="bind:histno"/>
  234. </Band>
  235. </Format>
  236. </Formats>
  237. </Grid>
  238. <Button position="absolute 540 36 556 52" id="btn_patsrch" class="icon_search" text="" onclick="btn_patsrch_onclick"/>
  239. <Button position="absolute 735 34 791 56" id="btn_req" class="btn1" text="조회" onclick="btn_req_onclick"/>
  240. <Shape position="absolute 717 29 723 59" linetype="vertical" id="line3"/>
  241. <Static text="산정특례 등록리스트" position="absolute 0 68 156 85" align="align:center middle;" id="caption14" class="tit_2" onclick="caption14_onclick"/>
  242. <Button position="absolute 758 64 800 83" id="btn_modify" class="btn2" text="저장" onclick="btn_modify_onclick"/>
  243. <Button position="absolute 714 64 756 83" id="btn_delete" class="btn2" text="삭제" onclick="btn_delete_onclick"/>
  244. <Static text="진료일별 산정특례 적용" position="absolute 0 222 296 238" align="align:center middle;" id="caption15" class="tit_2"/>
  245. <Static text="진료일(진단)별 적용가능 특례코드" position="absolute 0 359 307 375" align="align:center middle;" id="caption16" class="tit_2"/>
  246. <Static text="처방 체크 산정특례시 처방 발행여부" position="absolute 0 526 263 543" align="align:center middle;" id="caption1" class="tit_2"/>
  247. <Static text="조회기간 :" position="absolute 15 36 110 53" align="align:center middle;" id="caption2" class="search_name"/>
  248. <Calendar position="absolute 106 35 191 54" id="input4" class="input"/>
  249. <Static text="~" position="absolute 193 35 208 55" id="caption3"/>
  250. <Calendar position="absolute 208 35 293 54" id="input3" class="input"/>
  251. <Combo position="absolute 295 35 350 54" id="cmb_prid" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="cmb_prid_onitemchanged">
  252. <Dataset id="innerdataset">
  253. <ColumnInfo>
  254. <Column id="codecolumn"/>
  255. <Column id="datacolumn"/>
  256. </ColumnInfo>
  257. <Rows>
  258. <Row>
  259. <Col id="codecolumn">3M</Col>
  260. <Col id="datacolumn">3개월</Col>
  261. </Row>
  262. <Row>
  263. <Col id="codecolumn">6M</Col>
  264. <Col id="datacolumn">6개월</Col>
  265. </Row>
  266. <Row>
  267. <Col id="codecolumn">9M</Col>
  268. <Col id="datacolumn">9개월</Col>
  269. </Row>
  270. <Row>
  271. <Col id="codecolumn">1Y</Col>
  272. <Col id="datacolumn">1년</Col>
  273. </Row>
  274. <Row>
  275. <Col id="codecolumn">2Y</Col>
  276. <Col id="datacolumn">2년</Col>
  277. </Row>
  278. </Rows>
  279. </Dataset>
  280. </Combo>
  281. <Button id="btn_soda" taborder="2" text="중증 신청서" class="btn2" position="absolute 411 64 490 83" onclick="btn_soda_onclick"/>
  282. <Button id="btn_rooa02" taborder="3" text="화상/결핵 신청서" class="btn2" position="absolute 299 64 408 83" onclick="btn_rooa02_onclick"/>
  283. <Button id="btn_rooa12" taborder="4" text="희귀/난치/치매 신청서" class="btn2" position="absolute 155 64 296 83" onclick="btn_rooa12_onclick"/>
  284. <Button id="btn_rooatest" taborder="5" text="화상/결핵 테스트" class="btn2" position="absolute 203 3 312 22" onclick="btn_rooatest_onclick" visible="false"/>
  285. <Button id="btn_sodatest" taborder="6" text="중증 테스트" class="btn2" position="absolute 315 3 398 22" onclick="btn_sodatest_onclick" visible="false"/>
  286. <Button id="btn_close_refusal" taborder="7" text="등록거부 종료" class="btn2" position="absolute 619 64 712 83" onclick="btn_close_refusal_onclick"/>
  287. </Layout>
  288. </Layouts>
  289. <Objects>
  290. <Dataset id="ds_grd_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  291. <ColumnInfo>
  292. <Column id="prcpyn" type="STRING"/>
  293. <Column id="diagcdfrom" type="STRING"/>
  294. <Column id="diagcdto" type="STRING"/>
  295. <Column id="insuedicd" type="STRING"/>
  296. <Column id="prcpcd" type="STRING"/>
  297. <Column id="prcpnm" type="STRING"/>
  298. </ColumnInfo>
  299. </Dataset>
  300. <Dataset id="ds_grd_essclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  301. <ColumnInfo>
  302. <Column id="srchflag" type="STRING" size="256" sumtext="구분"/>
  303. <Column id="srchflagnm" type="STRING" size="256" sumtext="구분"/>
  304. <Column id="spclcd" type="STRING" size="256" sumtext="특례코드"/>
  305. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  306. <Column id="insukindnm" type="STRING" size="256" sumtext="보험유형"/>
  307. <Column id="suppkindflag" type="STRING" size="256" sumtext="보조유형"/>
  308. <Column id="suppkindnm" type="STRING" size="256" sumtext="보조유형"/>
  309. <Column id="spclflag" type="STRING" size="256" sumtext="산정특례구분"/>
  310. <Column id="spclflagnm" type="STRING" size="256" sumtext="산정특례그분"/>
  311. <Column id="spclnm" type="STRING" size="256" sumtext="특정기호명칭"/>
  312. <Column id="ioflag" type="STRING" size="256" sumtext="ioflag"/>
  313. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  314. <Column id="diagcdfrom" type="STRING" size="256" sumtext="시작진단"/>
  315. <Column id="diagcdto" type="STRING" size="256" sumtext="종료진단"/>
  316. </ColumnInfo>
  317. </Dataset>
  318. <Dataset id="ds_grd_ordlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  319. <ColumnInfo>
  320. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
  321. <Column id="orddd" type="STRING" size="256" sumtext="진료일"/>
  322. <Column id="orddrid" type="STRING" size="256" sumtext="진료의"/>
  323. <Column id="orddrnm" type="STRING" size="256" sumtext="진료의"/>
  324. <Column id="rsrvflag" type="STRING" size="256" sumtext="예약구분"/>
  325. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  326. <Column id="insukindnm" type="STRING" size="256" sumtext="보험유형명"/>
  327. <Column id="suppkind" type="STRING" size="256" sumtext="보조유형"/>
  328. <Column id="suppkindnm" type="STRING" size="256" sumtext="보조유형명"/>
  329. <Column id="ordreqformflag" type="STRING" size="256" sumtext="수급절차"/>
  330. <Column id="ordreqformflagnm" type="STRING" size="256" sumtext="수급절차명"/>
  331. <Column id="spclcd" type="STRING" size="256" sumtext="특례기호"/>
  332. <Column id="diagcd" type="STRING" size="256" sumtext="진단코드"/>
  333. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  334. <Column id="cretno" type="STRING" size="256" sumtext="원무생성번호"/>
  335. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과명"/>
  336. <Column id="diagnm" type="STRING" size="256" sumtext="진단명"/>
  337. <Column id="diagkindcdflag" type="STRING" size="256" sumtext="진단종류(주, 부)"/>
  338. </ColumnInfo>
  339. </Dataset>
  340. <Dataset id="ds_grd_speclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_grd_speclist_oncolumnchanged">
  341. <ColumnInfo>
  342. <Column id="flag" type="STRING" size="256" sumtext="구분"/>
  343. <Column id="rgstkindcd" type="STRING" size="256" sumtext="등록구분"/>
  344. <Column id="genrdd" type="STRING" size="256" sumtext="발행일자"/>
  345. <Column id="genrno" type="STRING" size="256" sumtext="발행번호"/>
  346. <Column id="histno" type="STRING" size="256" sumtext="이력번호"/>
  347. <Column id="maindiagcd" type="STRING" size="256" sumtext="주진단코드"/>
  348. <Column id="genrflagcd" type="STRING" size="256" sumtext="발생구분"/>
  349. <Column id="genrflagnm" type="STRING" size="256" sumtext="발생구분"/>
  350. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  351. <Column id="insukindnm" type="STRING" size="256" sumtext="보험유형"/>
  352. <Column id="cncrdiagcnfmdd" type="DATE" size="256" sumtext="진단확정일"/>
  353. <Column id="serdiagfromdd" type="STRING" size="256" sumtext="특례시작일"/>
  354. <Column id="serdiagtodd" type="STRING" size="256" sumtext="특례종료일"/>
  355. <Column id="serdiagno" type="STRING" size="256" sumtext="특례번호"/>
  356. <Column id="continueflag" type="STRING" size="256" sumtext="중증계속진행여부"/>
  357. <Column id="burnicd10desc" type="STRING" size="256" sumtext="중증화상코드"/>
  358. <Column id="anohosprgstflag" type="STRING" size="256" sumtext="타병원등록여부"/>
  359. <Column id="signyn" type="STRING" size="256" sumtext="싸인여부"/>
  360. <Column id="prntyn" type="STRING" size="256" sumtext="출력여부"/>
  361. </ColumnInfo>
  362. </Dataset>
  363. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  364. <ColumnInfo>
  365. <Column id="fromdd" type="STRING" size="256"/>
  366. <Column id="todd" type="STRING" size="256"/>
  367. <Column id="pid" type="STRING" size="256"/>
  368. <Column id="hngnm" type="STRING" size="256"/>
  369. <Column id="prid" type="STRING" size="256"/>
  370. </ColumnInfo>
  371. <Rows>
  372. <Row/>
  373. </Rows>
  374. </Dataset>
  375. <Dataset id="ds_init_patnm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  376. <ColumnInfo>
  377. <Column id="patnm" type="STRING" size="256"/>
  378. </ColumnInfo>
  379. <Rows>
  380. <Row/>
  381. </Rows>
  382. </Dataset>
  383. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  384. <ColumnInfo>
  385. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  386. <Column id="orddd" type="STRING" size="256" sumtext="진료일"/>
  387. <Column id="cretno" type="STRING" size="256" sumtext="원무생성번호"/>
  388. <Column id="srchflag" type="STRING" size="256" sumtext="검색구분"/>
  389. <Column id="spclcd" type="STRING" size="256" sumtext="특정기호"/>
  390. <Column id="spclflag" type="STRING" size="256" sumtext="특정기호"/>
  391. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  392. <Column id="ioflag" type="STRING" size="256" sumtext="내원형태"/>
  393. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  394. <Column id="suppkindflag" type="STRING" size="256" sumtext="보조유형"/>
  395. <Column id="diagcdfrom" type="STRING" size="256" sumtext="시작상병코드"/>
  396. <Column id="diagcdto" type="STRING" size="256" sumtext="종료상병코드"/>
  397. <Column id="diagcd" type="STRING" size="256"/>
  398. </ColumnInfo>
  399. <Rows>
  400. <Row/>
  401. </Rows>
  402. </Dataset>
  403. <Dataset id="ds_init_genrflagcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  404. <ColumnInfo>
  405. <Column id="label" type="STRING" size="256"/>
  406. <Column id="value" type="STRING" size="256"/>
  407. </ColumnInfo>
  408. <Rows>
  409. <Row>
  410. <Col id="label">입원</Col>
  411. <Col id="value">I</Col>
  412. </Row>
  413. <Row>
  414. <Col id="label">외래</Col>
  415. <Col id="value">O</Col>
  416. </Row>
  417. </Rows>
  418. </Dataset>
  419. <Dataset id="ds_init_continueflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  420. <ColumnInfo>
  421. <Column id="label" type="STRING" size="256"/>
  422. <Column id="value" type="STRING" size="256"/>
  423. </ColumnInfo>
  424. <Rows>
  425. <Row>
  426. <Col id="label">-</Col>
  427. <Col id="value">-</Col>
  428. </Row>
  429. <Row>
  430. <Col id="label">N</Col>
  431. <Col id="value">N</Col>
  432. </Row>
  433. </Rows>
  434. </Dataset>
  435. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  436. <Dataset id="ds_send_closerefusal" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  437. <ColumnInfo>
  438. <Column id="genrdd" type="STRING" size="256"/>
  439. <Column id="genrno" type="STRING" size="256"/>
  440. <Column id="histno" type="STRING" size="256"/>
  441. </ColumnInfo>
  442. <Rows>
  443. <Row/>
  444. </Rows>
  445. </Dataset>
  446. <Dataset id="ds_hard_741" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  447. </Objects>
  448. <Bind>
  449. <BindItem id="item0" compid="input4" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  450. <BindItem id="item1" compid="input3" propid="value" datasetid="ds_main_cond" columnid="todd"/>
  451. <BindItem id="item2" compid="input1" propid="value" datasetid="ds_main_cond" columnid="pid"/>
  452. <BindItem id="item3" compid="input2" propid="value" datasetid="ds_main_cond" columnid="hngnm"/>
  453. <BindItem id="item4" compid="cmb_prid" propid="value" datasetid="ds_main_cond" columnid="prid"/>
  454. </Bind>
  455. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  456. * System Name :
  457. * Job Name :
  458. * Creator :
  459. * Make Date : 2015-02-10
  460. * Description :
  461. *---------------------------------------------------------------------------------------
  462. * Modify Date Modifier Modify Description
  463. *---------------------------------------------------------------------------------------
  464. * 2015-02-10 Live Converter TF->XP
  465. *
  466. *---------------------------------------------------------------------------------------
  467. ****************************************************************************************/
  468. include "com_commonxp::comm_main.xjs";
  469. include "emr_prcpmngtxp::MMOCommon.xjs"
  470. include "emr_prcpmngtxp::MMO001.xjs";
  471. var iClickNum = 0;
  472. function SPMMO21700_oninit(obj:Form, e:InitEventInfo)
  473. {
  474. frmf_initForm(obj);
  475. }
  476. function SPMMO21700_onload(obj:Form, e:LoadEventInfo)
  477. {
  478. grdf_initGrid(grd_essclist);
  479. grdf_initGrid(grd_ordlist);
  480. grdf_initGrid(grd_prcplist);
  481. grdf_setToolTipBind(grd_essclist);
  482. grdf_setToolTipBind(grd_ordlist);
  483. grdf_setToolTipBind(grd_prcplist);
  484. grdf_setRowTypeIcon(grd_speclist,0);
  485. ds_main_cond.setColumn(0,"prid", "6M");
  486. ds_main_cond.setColumn(0,"fromdd",((utlf_getCurrentDate().toDate()).getAddDate(-6,"M")).getDateFormat());//시작일자는 6개월 전
  487. ds_main_cond.setColumn(0,"todd", utlf_getCurrentDate());//종료일자는 현재일자
  488. var sPid = appf_getPatientInfo("pid");
  489. //20200130 고영민 원무화면에서 open 시 연계
  490. if(frmf_checkOpener() && opener.frmf_getScreenID() == "SMPAO00100"){
  491. sPid = opener.frmf_getParameter("SPMMO21700_pid");
  492. }
  493. if(!utlf_isNull(sPid) ) {
  494. ds_main_cond.setColumn(0,"pid", sPid);
  495. ds_main_cond.setColumn(0,"hngnm", appf_getPatientInfo("pname"));
  496. var ev = new ClickEventInfo;
  497. frmf_inputEnterKey("btn_req", "onclick", ev );
  498. }
  499. if(utlf_getCurrentDate() < "20190101") {
  500. btn_rooa02.visible = false;
  501. btn_rooa12.visible = false;
  502. } else {
  503. //20191022 이돈희 : 신청서 화면 비활성화
  504. lf_getHardCDList("N", "741", null, ds_hard_741);
  505. if(ds_hard_741.getColumn(0, "hardcd") == "N"){
  506. btn_rooa12.visible = false;
  507. btn_soda.visible = false;
  508. btn_rooa02.visible = false;
  509. }
  510. }
  511. }
  512. function btn_req_onclick(obj:Button, e:ClickEventInfo)
  513. {
  514. var pid = utlf_trim(input1.value);
  515. if(utlf_isNull(pid)){
  516. sysf_messageBox("조회 하실 환자번호를", "C001");
  517. return;
  518. }
  519. if(lf_reqPatInfo(ds_init_patnm, "pid", "ptbs", pid)==true){
  520. var hngnm = ds_init_patnm.getColumn(0,"hngnm");
  521. ds_main_cond.setColumn(0,"hngnm",hngnm);
  522. fReqGetOrdList();
  523. }
  524. }
  525. function fReqGetOrdList() {
  526. ds_grd_essclist.clearData();
  527. ds_grd_prcplist.clearData();
  528. var oParam = {};
  529. oParam.id = "TRMMO21701";
  530. oParam.service = "prcpmngtapp.PatDiagMngt";
  531. oParam.method = "reqGetSpecPatInfo";
  532. oParam.inds = "req=ds_main_cond";
  533. oParam.outds = "ds_grd_speclist=speclist ds_grd_ordlist=ordlist";
  534. oParam.async = false;
  535. tranf_submit(oParam);
  536. }
  537. function grd_essclist_oncellclick(obj:Grid, e:GridClickEventInfo)
  538. {
  539. ds_grd_prcplist.clearData();
  540. ds_send_reqdata.clearData();
  541. ds_send_reqdata.addRow();
  542. var crow = ds_grd_essclist.rowposition;
  543. var prow = ds_grd_ordlist.rowposition;
  544. // 처방 체크 하는 산정특례일 경우는 처방을 체크한다.
  545. if (ds_grd_essclist.getColumn(crow, "srchflag") == "B" ||
  546. ds_grd_essclist.getColumn(crow, "srchflag") == "D" ||
  547. ds_grd_essclist.getColumn(crow, "srchflag") == "E" ||
  548. ds_grd_essclist.getColumn(crow, "srchflag") == "F" ) {
  549. ds_send_reqdata.clearData();
  550. ds_send_reqdata.addRow();
  551. ds_send_reqdata.copyRow(0,ds_grd_essclist,crow);
  552. ds_send_reqdata.setColumn(0,"pid",ds_grd_ordlist.getColumn(prow,"pid"));
  553. ds_send_reqdata.setColumn(0,"orddd",ds_grd_ordlist.getColumn(prow,"orddd"));
  554. ds_send_reqdata.setColumn(0,"cretno",ds_grd_ordlist.getColumn(prow,"cretno"));
  555. var oParam = {};
  556. oParam.id = "TRMMO21703";
  557. oParam.service = "prcpmngtapp.PatDiagMngt";
  558. oParam.method = "reqGetEsscPrcpList";
  559. oParam.inds = "req=ds_send_reqdata";
  560. oParam.outds = "ds_grd_prcplist=prcplist";
  561. oParam.async = false;
  562. tranf_submit(oParam);
  563. }
  564. }
  565. function input1_onkeydown(obj:Edit, e:KeyEventInfo)
  566. {
  567. if(e.keycode == 13) {
  568. input1.updateToDataset();
  569. var ev = new ClickEventInfo;
  570. frmf_inputEnterKey("btn_req", "onclick", ev );
  571. }
  572. }
  573. function ds_grd_speclist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  574. {
  575. var nRow = e.row;
  576. var sSerDiagNo = ds_grd_speclist.getColumn(nRow, "serdiagno");
  577. var sSignYn = ds_grd_speclist.getColumn(nRow, "signyn");
  578. var sPrntYn = ds_grd_speclist.getColumn(nRow, "prntyn");
  579. if ( e.columnid == "continueflag") { // 재등록 여부 수정시
  580. if(utlf_isNull(sSerDiagNo) || sSerDiagNo == "-") {
  581. ds_grd_speclist.setColumn(nRow,"continueflag", e.oldvalue);
  582. ds_grd_speclist.preload
  583. sysf_messageBox("특례번호가 발급되지 않아 연장여부를 수정 할수 없습니다.", "I999" );
  584. }
  585. } else { // 그외 진단일, 입/외 변경시
  586. if( (!utlf_isNull(sSerDiagNo) && sSerDiagNo != "-") || sSignYn == "Y" || sPrntYn == "Y") {
  587. if ( e.columnid == "genrflagcd") {
  588. ds_grd_speclist.setColumn(nRow,"genrflagcd", e.oldvalue);
  589. } else if ( e.columnid == "cncrdiagcnfmdd") {
  590. ds_grd_speclist.setColumn(nRow,"cncrdiagcnfmdd", e.oldvalue);
  591. }
  592. if(!utlf_isNull(sSerDiagNo) && sSerDiagNo != "-") {
  593. sysf_messageBox("특례번호가 발급되어 수정 할수 없습니다.", "I999" );
  594. grd_speclist.setEditText(e.oldvalue);
  595. grd_speclist.setEditSelectedText(e.oldvalue);
  596. } else {
  597. sysf_messageBox("신청서가 싸인 또는 출력 되어 수정 할수 없습니다.\n원무팀에 확인 하세요.", "I999" );
  598. }
  599. } else if ( e.columnid == "cncrdiagcnfmdd") {
  600. //var sChkDate = (new Date()).getAddDate(-1, "M").getDateFormat("YYYYMMDD");
  601. //if(e.newvalue < sChkDate) {
  602. // ds_grd_speclist.setColumn(nRow,"cncrdiagcnfmdd", e.oldvalue);
  603. // sysf_messageBox("진단확정일은 최대 한달 이전일까지 가능합니다.", "I999" );
  604. //}
  605. }
  606. }
  607. }
  608. function btn_patsrch_onclick(obj:Button, e:ClickEventInfo)
  609. {
  610. frmf_modal("SPPMC02500", "SPPMC02500", null, null, null, null, null, null, null, null, null, null, "M");
  611. if(!utlf_isNull(this.objects["ds_patinfolist"])) {
  612. var sPid = ds_patinfolist.getColumn(0, "pid");
  613. var sHngnm = ds_patinfolist.getColumn(0, "hngnm");
  614. ds_main_cond.setColumn(0, "pid", sPid);
  615. ds_main_cond.setColumn(0, "hngnm", sHngnm);
  616. }
  617. }
  618. function btn_modify_onclick(obj:Button, e:ClickEventInfo)
  619. {
  620. var oDsUpdate = grdf_getGridUpdateData(grd_speclist);
  621. grdf_setStatusColumn(oDsUpdate,"gubun");
  622. ds_send_savedata.copyData(oDsUpdate, true);
  623. var oParam = {};
  624. oParam.id = "TXMMO21701";
  625. oParam.service = "prcpmngtapp.PatDiagMngt";
  626. oParam.method = "reqExeSpecRgstInfo";
  627. oParam.inds = "req=ds_send_savedata";
  628. oParam.outds = "null";
  629. oParam.async = false;
  630. oParam.callback = "cf_TXMMO21701";
  631. tranf_submit(oParam);
  632. }
  633. function cf_TXMMO21701(sSvcId, nErrorCode, sErrorMsg) {
  634. if(nErrorCode < 0) {
  635. sysf_messageBox("신청서 수정에 실패 하였습니다.", "E999" );
  636. return;
  637. }
  638. fReqGetOrdList();
  639. }
  640. function btn_delete_onclick(obj:Button, e:ClickEventInfo)
  641. {
  642. var nRow = ds_grd_speclist.rowposition;
  643. if(nRow < 0) {
  644. sysf_messageBox("삭제 하실 등록 리스트를 선택 하세요.", "I999");
  645. return;
  646. }
  647. var sSerDiagNo = ds_grd_speclist.getColumn(nRow,"serdiagno");
  648. //20190719 이돈희 : 등록거부 신청서를 삭제하는 경우 한번 더 확인함
  649. if(!utlf_isNull(sSerDiagNo) && sSerDiagNo == "등록거부") {
  650. if(sysf_messageBox("등록거부 신청서를 삭제하시겠습니까?", "Q" ) != "6" ){
  651. return;
  652. }
  653. } else if(!utlf_isNull(sSerDiagNo) && sSerDiagNo != "-") {
  654. sysf_messageBox("특례번호가 발급되어 삭제 할수 없습니다.", "I999" );
  655. return;
  656. }
  657. grdf_setStatus(grd_speclist, "D", grdf_getSelectedRows(grd_speclist));
  658. }
  659. function cmb_prid_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  660. {
  661. var today = utlf_getCurrentDate();
  662. var idate = new Date();
  663. var prid = ds_main_cond.getColumn(0, "prid");
  664. if (prid =="3M") {
  665. var sixMDate = idate.getAddDate(-3, "M");
  666. ds_main_cond.setColumn(0, "todd", today);
  667. ds_main_cond.setColumn(0, "fromdd", sixMDate.getDateFormat());
  668. } else if (prid =="6M") {
  669. var nineMDate = idate.getAddDate(-6, "M");
  670. ds_main_cond.setColumn(0, "todd", today);
  671. ds_main_cond.setColumn(0, "fromdd", nineMDate.getDateFormat());
  672. } else if (prid =="9M") {
  673. var oneYDate = idate.getAddDate(-9, "M");
  674. ds_main_cond.setColumn(0, "todd", today);
  675. ds_main_cond.setColumn(0, "fromdd", oneYDate.getDateFormat());
  676. } else if (prid =="1Y") {
  677. var twoYDate = idate.getAddDate(-1, "Y");
  678. ds_main_cond.setColumn(0, "todd", today);
  679. ds_main_cond.setColumn(0, "fromdd", twoYDate.getDateFormat());
  680. } else if (prid =="2Y") {
  681. var twoYDate = idate.getAddDate(-2, "Y");
  682. ds_main_cond.setColumn(0, "todd", today);
  683. ds_main_cond.setColumn(0, "fromdd", twoYDate.getDateFormat());
  684. }
  685. }
  686. function grd_ordlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  687. {
  688. ds_grd_essclist.clearData();
  689. ds_grd_prcplist.clearData();
  690. ds_send_reqdata.clearData();
  691. ds_send_reqdata.addRow();
  692. var prow = ds_grd_ordlist.rowposition;
  693. ds_send_reqdata.copyRow(0,ds_grd_ordlist,prow);
  694. var oParam = {};
  695. oParam.id = "TRMMO21701";
  696. oParam.service = "prcpmngtapp.PatDiagMngt";
  697. oParam.method = "reqGetEsscInfoList";
  698. oParam.inds = "req=ds_send_reqdata";
  699. oParam.outds = "ds_grd_essclist=essclist";
  700. oParam.async = false;
  701. tranf_submit(oParam);
  702. }
  703. //중증신청서 버튼
  704. function btn_soda_onclick(obj:Button, e:ClickEventInfo)
  705. {
  706. var sTopPid = appf_getPatientInfo("pid"); // 상단화면 PID
  707. var sPid = ds_main_cond.getColumn(0, "pid")
  708. if(sTopPid != sPid) {
  709. sysf_messageBox("상단정보와 화면의 환자번호가 서로 다릅니다.", "I999" );
  710. return;
  711. } else {
  712. if(utlf_getCurrentDate() < "20190301" ) { // 20190301 이전
  713. frmf_modal("SPMMO11500", "SPMMO11500", null, null, null, null, null, null, null, null, null, null, "M");
  714. } else {
  715. frmf_modal("SPMMO11510", "SPMMO11510", null, null, null, null, null, null, null, null, null, null, "M");
  716. }
  717. }
  718. }
  719. function grd_speclist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  720. {
  721. var nRow = e.row;
  722. var sRgstKindCd = ds_grd_speclist.getColumn(nRow, "rgstkindcd");
  723. var sSerDiagNo = ds_grd_speclist.getColumn(nRow, "serdiagno");
  724. var sSignYn = ds_grd_speclist.getColumn(nRow, "signyn");
  725. var sPrntYn = ds_grd_speclist.getColumn(nRow, "prntyn");
  726. var sGenrDd = ds_grd_speclist.getColumn(nRow, "genrdd");
  727. var sGenrNo = ds_grd_speclist.getColumn(nRow, "genrno");
  728. var sHistNo = ds_grd_speclist.getColumn(nRow, "histno");
  729. if( (!utlf_isNull(sSerDiagNo) && sSerDiagNo != "-") || sSignYn == "Y" || sPrntYn == "Y") {
  730. if(!utlf_isNull(sSerDiagNo) && sSerDiagNo != "-") {
  731. sysf_messageBox("특례번호가 발급되어 수정 할수 없습니다.", "I999" );
  732. } else {
  733. sysf_messageBox("신청서가 싸인 또는 출력 되어 수정 할수 없습니다.\n원무팀에 확인 하세요.", "I999" );
  734. }
  735. if(sysf_getUserId() != "EMR"){
  736. return;
  737. }
  738. }
  739. if(sRgstKindCd == "00") { // 중증
  740. frmf_setParameter("SPMMO11500_genrdd", sGenrDd);
  741. frmf_setParameter("SPMMO11500_genrno", sGenrNo);
  742. frmf_setParameter("SPMMO11500_histno", sHistNo);
  743. if(sGenrDd < "20190301" ) { // 20190301 이전
  744. frmf_modal("SPMMO11500", "SPMMO11500", null, null, null, null, null, null, null, null, null, null, "M");
  745. }
  746. else{ // 20190228 이돈희 : 2019년 3월 1일 부터 신규 중증암 적용
  747. frmf_modal("SPMMO11510", "SPMMO11510", null, null, null, null, null, null, null, null, null, null, "M");
  748. }
  749. frmf_clearParameter("SPMMO11500_genrdd");
  750. frmf_clearParameter("SPMMO11500_genrno");
  751. frmf_clearParameter("SPMMO11500_histno");
  752. } else { // 희귀난치
  753. frmf_setParameter("SPMMO20000_genrdd", sGenrDd);
  754. frmf_setParameter("SPMMO20000_genrno", sGenrNo);
  755. frmf_setParameter("SPMMO20000_histno", sHistNo);
  756. frmf_setParameter("SPMMO20000_rgstkindcd", sRgstKindCd);
  757. if(sGenrDd < "20190101" ) { // 20190101 이전
  758. frmf_modal("SPMMO20002", "SPMMO20002", null, null, null, null, null, null, null, null, null, null, "M");
  759. } else {
  760. if(sRgstKindCd == "02" || sRgstKindCd == "09") { // 02 중증화상, 09 결핵
  761. if(sGenrDd < "20190301" ) { // 20190301 이전
  762. frmf_modal("SPMMO20002", "SPMMO20002", null, null, null, null, null, null, null, null, null, null, "M");
  763. } else { // 20190228 이돈희 : 2019년 3월 1일 부터 신규 결핵, 중증화상 적용
  764. frmf_modal("SPMMO20004", "SPMMO20004", null, null, null, null, null, null, null, null, null, null, "M");
  765. }
  766. } else { // 07 극희귀, 08 상세불명, 10 중증치매V800, 11 중증치매V810, 12 희귀질환, 13 중증난치, 14 기타염색체
  767. frmf_modal("SPMMO20003", "SPMMO20003", null, null, null, null, null, null, null, null, null, null, "M");
  768. }
  769. }
  770. frmf_clearParameter("SPMMO20000_genrdd");
  771. frmf_clearParameter("SPMMO20000_genrno");
  772. frmf_clearParameter("SPMMO20000_histno");
  773. frmf_clearParameter("SPMMO20000_rgstkindcd");
  774. }
  775. }
  776. //화상/결핵 신청서 버튼
  777. function btn_rooa02_onclick(obj:Button, e:ClickEventInfo)
  778. {
  779. var sTopPid = appf_getPatientInfo("pid"); // 상단화면 PID
  780. var sPid = ds_main_cond.getColumn(0, "pid")
  781. if(sTopPid != sPid) {
  782. sysf_messageBox("상단정보와 화면의 환자번호가 서로 다릅니다.", "I999" );
  783. return;
  784. } else {
  785. if(utlf_getCurrentDate() < "20190301" ) { // 20190301 이전
  786. frmf_modal("SPMMO20002", "SPMMO20002", null, null, null, null, null, null, null, null, null, null, "M");
  787. } else {
  788. frmf_modal("SPMMO20004", "SPMMO20004", null, null, null, null, null, null, null, null, null, null, "M");
  789. }
  790. }
  791. }
  792. //희귀/난치/치매 신청서 버튼
  793. function btn_rooa12_onclick(obj:Button, e:ClickEventInfo)
  794. {
  795. var sTopPid = appf_getPatientInfo("pid"); // 상단화면 PID
  796. var sPid = ds_main_cond.getColumn(0, "pid")
  797. if(sTopPid != sPid) {
  798. sysf_messageBox("상단정보와 화면의 환자번호가 서로 다릅니다.", "I999" );
  799. return;
  800. } else {
  801. frmf_modal("SPMMO20003", "SPMMO20003", null, null, null, null, null, null, null, null, null, null, "M");
  802. }
  803. }
  804. function btn_rooatest_onclick(obj:Button, e:ClickEventInfo)
  805. {
  806. var sTopPid = appf_getPatientInfo("pid"); // 상단화면 PID
  807. var sPid = ds_main_cond.getColumn(0, "pid")
  808. if(sTopPid != sPid) {
  809. sysf_messageBox("상단정보와 화면의 환자번호가 서로 다릅니다.", "I999" );
  810. return;
  811. } else {
  812. frmf_modal("SPMMO20004", "SPMMO20004", null, null, null, null, null, null, null, null, null, null, "M");
  813. }
  814. }
  815. function btn_sodatest_onclick(obj:Button, e:ClickEventInfo)
  816. {
  817. var sTopPid = appf_getPatientInfo("pid"); // 상단화면 PID
  818. var sPid = ds_main_cond.getColumn(0, "pid")
  819. if(sTopPid != sPid) {
  820. sysf_messageBox("상단정보와 화면의 환자번호가 서로 다릅니다.", "I999" );
  821. return;
  822. } else {
  823. frmf_modal("SPMMO11510", "SPMMO11510", null, null, null, null, null, null, null, null, null, null, "M");
  824. }
  825. }
  826. //20190906 이돈희 : 등록거부 종료 기능 추가
  827. function btn_close_refusal_onclick(obj:Button, e:ClickEventInfo)
  828. {
  829. var nRow = ds_grd_speclist.rowposition;
  830. if(nRow < 0) {
  831. sysf_messageBox("등록거부를 종료할 등록 리스트를 선택 하세요.", "I999");
  832. return;
  833. }
  834. var sSerDiagNo = ds_grd_speclist.getColumn(nRow,"serdiagno");
  835. if(utlf_isNull(sSerDiagNo) || sSerDiagNo != "등록거부"){
  836. sysf_messageBox("특례번호가 등록거부인 등록 리스트를 선택 하세요.", "I999");
  837. return;
  838. }
  839. if(!utlf_isNull(sSerDiagNo) && sSerDiagNo == "등록거부") {
  840. if(sysf_messageBox("등록거부 신청서를 종료하시겠습니까?", "Q" ) == "6" ){
  841. ds_send_closerefusal.setColumn(0, "genrdd", ds_grd_speclist.getColumn(nRow, "genrdd"));
  842. ds_send_closerefusal.setColumn(0, "genrno", ds_grd_speclist.getColumn(nRow, "genrno"));
  843. ds_send_closerefusal.setColumn(0, "histno", ds_grd_speclist.getColumn(nRow, "histno"));
  844. var oParam = {};
  845. oParam.id = "TXMMO21702";
  846. oParam.service = "prcpmngtapp.PatDiagMngt";
  847. oParam.method = "reqExeCloseEsscCancerRefusal";
  848. oParam.inds = "req=ds_send_closerefusal";
  849. oParam.outds = "null";
  850. oParam.async = false;
  851. var bSaved = tranf_submit(oParam);
  852. if(bSaved){
  853. sysf_messageBox("종료일을 변경하였습니다.", "E999");
  854. }
  855. }
  856. }
  857. }
  858. function caption9_onclick(obj:Static, e:ClickEventInfo)
  859. {
  860. //20191023 이돈희 : 외래 진료 산정특례 확인을 10번 클릭시 버튼 visible 처리
  861. iClickNum = iClickNum + 1;
  862. if(iClickNum >= 10) {
  863. btn_rooa12.visible = true;
  864. btn_soda.visible = true;
  865. btn_rooa02.visible = true;
  866. }
  867. }
  868. ]]></Script>
  869. </Form>
  870. </FDL>