SMPMB03800_질환군분류정보조회.xfdl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPMB03800" classname="SMPMB03800_질환군분류정보조회" inheritanceid="" position="absolute 0 0 1195 768" titletext="질환군분류정보조회" onload="SMPMB03800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="cap_title" text="질환군 분류 정보 조회" onclick="group3_cap_title_onclick" class="tit_1" position="absolute 0 0 180 25"/>
  8. <Div id="grp_srch" taborder="1" position="absolute 0 25 1194 65" class="div_SA" anchor="left top right">
  9. <Layouts>
  10. <Layout>
  11. <Static id="caption5" text="진료과 :" class="search_name" position="absolute 15 12 90 29" anchor="default"/>
  12. <Static id="caption00" text="주상병 :" class="search_name" position="absolute 375 12 450 29" anchor="default"/>
  13. <Combo id="cmb_orddeptcd" taborder="1" innerdataset="ds_init_orddeptcdlist" codecolumn="cd" datacolumn="nm" onitemchanged="group3_group4_cmb_orddeptcd_onitemchanged" class="combo_essential" position="absolute 91 10 326 29" anchor="default"/>
  14. <Edit id="ipt_srch_diagcd_m" taborder="2" position="absolute 454 10 538 30" anchor="default" onkeyup="grp_srch_ipt_srch_diagcd_m_onkeyup" inputmode="upper" imemode="alpha"/>
  15. <Edit id="ipt_srch_diagnm_mt" taborder="3" position="absolute 561 10 901 30" anchor="default"/>
  16. <Shape id="line2" linetype="vertical" class="line_4" position="absolute 1103 9 1109 31" anchor="top right"/>
  17. <Button id="btn_search" taborder="4" text="조회" class="btn1" position="absolute 1122 9 1178 31" anchor="top right" onclick="grp_srch_btn_search_onclick"/>
  18. <Button id="btn_dutplcecd" taborder="5" onclick="group2_btn_dutplcecd_onclick" class="icon_search" position="absolute 541 12 557 28" anchor="default"/>
  19. </Layout>
  20. </Layouts>
  21. </Div>
  22. <Static id="caption4" text="현재 주상병으로 적용 가능한 질환군 분류" class="tit_2" position="absolute 0 73 315 95"/>
  23. <Shape id="line3" class="line_10" position="absolute 0 89 1194 95" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
  24. <Grid id="grd_pmbmdrgb1" taborder="2" useinputpanel="false" position="absolute 0 94 1194 224" autosizingtype="row" extendsizetype="row" binddataset="ds_main_pmbmdrgb1">
  25. <Formats>
  26. <Format id="default">
  27. <Columns>
  28. <Column size="60"/>
  29. <Column size="60"/>
  30. <Column size="130"/>
  31. <Column size="80"/>
  32. <Column size="130"/>
  33. <Column size="80"/>
  34. <Column size="150"/>
  35. <Column size="80"/>
  36. <Column size="130"/>
  37. <Column size="80"/>
  38. <Column size="80"/>
  39. <Column size="150"/>
  40. <Column size="100"/>
  41. </Columns>
  42. <Rows>
  43. <Row size="24" band="head"/>
  44. <Row size="24"/>
  45. </Rows>
  46. <Band id="head">
  47. <Cell colspan="3" text="주상병" taborder="undefined"/>
  48. <Cell col="3" colspan="2" text="제1부상병" taborder="undefined"/>
  49. <Cell col="5" text="처치코드1" taborder="undefined"/>
  50. <Cell col="6" text="처치명1" taborder="undefined"/>
  51. <Cell col="7" text="처치코드2"/>
  52. <Cell col="8" text="처치명2"/>
  53. <Cell col="9" text="질환군분류"/>
  54. <Cell col="10" text="DRG분류번호"/>
  55. <Cell col="11" text="DRG명"/>
  56. <Cell col="12" text="비고"/>
  57. </Band>
  58. <Band id="body">
  59. <Cell text="bind:diagcd_mf"/>
  60. <Cell col="1" text="bind:diagcd_mt"/>
  61. <Cell col="2" displaytype="text" text="bind:diagnm_m" wordwrap="word" autosizerow="limitmin"/>
  62. <Cell col="3" text="bind:diagcd_s"/>
  63. <Cell col="4" displaytype="text" text="bind:diagnm_s" wordwrap="word" autosizerow="limitmin"/>
  64. <Cell col="5" text="bind:edicd1"/>
  65. <Cell col="6" displaytype="text" text="bind:edinm1" wordwrap="word" autosizerow="limitmin"/>
  66. <Cell col="7" text="bind:edicd2"/>
  67. <Cell col="8" displaytype="text" text="bind:edinm2" wordwrap="word" autosizerow="limitmin"/>
  68. <Cell col="9" text="bind:drgtype"/>
  69. <Cell col="10" text="bind:drgno"/>
  70. <Cell col="11" displaytype="text" text="bind:drgnm" wordwrap="word" autosizerow="limitmin"/>
  71. <Cell col="12" displaytype="text" text="bind:bigo" wordwrap="word" autosizerow="limitmin"/>
  72. </Band>
  73. </Format>
  74. </Formats>
  75. </Grid>
  76. <Shape id="line00" class="line_10" position="absolute 0 254 1194 260" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
  77. <Grid id="grd_pmbmdrgb2" taborder="7" useinputpanel="false" extendsizetype="row" autosizingtype="row" position="absolute 0 259 1194 738" binddataset="ds_main_pmbmdrgb2" treeusecheckbox="false" scrollpixel="all" treeuseimage="true" oncelldblclick="grd_pmbmdrgb2_oncelldblclick">
  78. <Formats>
  79. <Format id="default">
  80. <Columns>
  81. <Column size="120"/>
  82. <Column size="100"/>
  83. <Column size="130"/>
  84. <Column size="80"/>
  85. <Column size="130"/>
  86. <Column size="80"/>
  87. <Column size="150"/>
  88. <Column size="80"/>
  89. <Column size="130"/>
  90. <Column size="80"/>
  91. <Column size="80"/>
  92. <Column size="150"/>
  93. <Column size="100"/>
  94. </Columns>
  95. <Rows>
  96. <Row size="24" band="head"/>
  97. <Row size="24"/>
  98. </Rows>
  99. <Band id="head">
  100. <Cell colspan="3" text="주상병" taborder="undefined"/>
  101. <Cell col="3" colspan="2" text="제1부상병" taborder="undefined"/>
  102. <Cell col="5" text="처치코드1" taborder="undefined"/>
  103. <Cell col="6" text="처치명1" taborder="undefined"/>
  104. <Cell col="7" text="처치코드2"/>
  105. <Cell col="8" text="처치명2"/>
  106. <Cell col="9" text="질환군분류"/>
  107. <Cell col="10" text="DRG분류번호"/>
  108. <Cell col="11" text="DRG명"/>
  109. <Cell col="12" text="비고"/>
  110. </Band>
  111. <Band id="body">
  112. <Cell displaytype="tree" edittype="tree" style="align:left;padding:0 3 0 3;" text="bind:diagcd_mf" suppress="0" treelevel="bind:treelvl"/>
  113. <Cell col="1" displaytype="text" text="bind:diagcd_mt" suppress="0"/>
  114. <Cell col="2" displaytype="text" text="bind:diagnm_m" wordwrap="word" suppress="0" autosizerow="limitmin"/>
  115. <Cell col="3" displaytype="text" text="bind:diagcd_s" suppress="0"/>
  116. <Cell col="4" displaytype="text" text="bind:diagnm_s" wordwrap="word" suppress="0" autosizerow="limitmin"/>
  117. <Cell col="5" displaytype="text" text="bind:edicd1" suppress="0"/>
  118. <Cell col="6" displaytype="text" text="bind:edinm1" wordwrap="word" suppress="0" autosizerow="limitmin"/>
  119. <Cell col="7" displaytype="text" text="bind:edicd2" suppress="0"/>
  120. <Cell col="8" displaytype="text" text="bind:edinm2" wordwrap="word" suppress="0" autosizerow="limitmin"/>
  121. <Cell col="9" text="bind:drgtype" suppress="0"/>
  122. <Cell col="10" text="bind:drgno" suppress="0"/>
  123. <Cell col="11" displaytype="text" text="bind:drgnm" wordwrap="word" suppress="0" autosizerow="limitmin"/>
  124. <Cell col="12" displaytype="text" text="bind:bigo" wordwrap="word" suppress="0" autosizerow="limitmin"/>
  125. </Band>
  126. </Format>
  127. </Formats>
  128. </Grid>
  129. <Static id="caption1" text="주상병" class="cell_1" position="absolute 0 232 119 254" anchor="left bottom"/>
  130. <Static id="caption2" text="제1부상병" class="cell_1" position="absolute 350 232 429 254" anchor="left bottom"/>
  131. <Static id="caption3" text="처치코드1" class="cell_1" position="absolute 560 232 639 254" anchor="left bottom"/>
  132. <Edit id="ipt_diagnm_m" taborder="8" position="absolute 120 232 349 254" onkeyup="common_onkeyup"/>
  133. <Edit id="ipt_diagnm_s" taborder="9" onkeyup="common_onkeyup" position="absolute 430 232 559 254"/>
  134. <Edit id="ipt_edinm1" taborder="10" onkeyup="common_onkeyup" position="absolute 640 232 789 254"/>
  135. <Static id="cap_lastupdtdt" position="absolute 882 234 1190 256" style="color:red;align:right middle;font:Dotum,10,bold;"/>
  136. <Button id="btn_close" taborder="11" text="닫기" onclick="btn_close_onclick" class="btn4" position="absolute 1141 743 1194 763"/>
  137. </Layout>
  138. </Layouts>
  139. <Bind>
  140. <BindItem id="item0" compid="grp_srch.cmb_orddeptcd" propid="value" datasetid="ds_send_srch" columnid="orddeptcd"/>
  141. <BindItem id="item3" compid="grp_srch.ipt_srch_diagcd_m" propid="value" datasetid="ds_send_srch" columnid="diagcd_m"/>
  142. <BindItem id="item4" compid="grp_srch.ipt_srch_diagnm_mt" propid="value" datasetid="ds_send_srch" columnid="diagnm_m"/>
  143. <BindItem id="item5" compid="ipt_diagnm_m" propid="value" datasetid="ds_send_srch" columnid="diagnm_m"/>
  144. <BindItem id="item6" compid="ipt_diagnm_s" propid="value" datasetid="ds_send_srch" columnid="diagnm_s"/>
  145. <BindItem id="item7" compid="ipt_edinm1" propid="value" datasetid="ds_send_srch" columnid="edinm"/>
  146. </Bind>
  147. <Objects>
  148. <Dataset id="ds_send_srch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  149. <ColumnInfo>
  150. <Column id="orddeptcd" type="STRING" size="256"/>
  151. <Column id="diagcd_m" type="STRING" size="256"/>
  152. <Column id="diagnm_m" type="STRING" size="256"/>
  153. <Column id="diagnm_s" type="STRING" size="256"/>
  154. <Column id="edinm" type="STRING" size="256"/>
  155. </ColumnInfo>
  156. <Rows>
  157. <Row>
  158. <Col id="diagnm_m"/>
  159. <Col id="diagcd_m"/>
  160. <Col id="orddeptcd"/>
  161. <Col id="diagnm_s"/>
  162. <Col id="diagnm_m"/>
  163. </Row>
  164. </Rows>
  165. </Dataset>
  166. <Dataset id="ds_main_pmbmdrgb1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  167. <ColumnInfo>
  168. <Column id="diagcd_mf" type="STRING" size="256"/>
  169. <Column id="diagcd_mt" type="STRING" size="256"/>
  170. <Column id="diagnm_m" type="STRING" size="256"/>
  171. <Column id="diagcd_s" type="STRING" size="256"/>
  172. <Column id="diagnm_s" type="STRING" size="256"/>
  173. <Column id="edicd1" type="STRING" size="256"/>
  174. <Column id="edinm1" type="STRING" size="256"/>
  175. <Column id="edicd2" type="STRING" size="256"/>
  176. <Column id="edinm2" type="STRING" size="256"/>
  177. <Column id="drgtype" type="STRING" size="256"/>
  178. <Column id="drgno" type="STRING" size="256"/>
  179. <Column id="drgnm" type="STRING" size="256"/>
  180. <Column id="bigo" type="STRING" size="256"/>
  181. <Column id="fromdd" type="STRING" size="256"/>
  182. </ColumnInfo>
  183. </Dataset>
  184. <Dataset id="ds_main_pmbmdrgb2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  185. <ColumnInfo>
  186. <Column id="diagcd_mf" type="STRING" size="256"/>
  187. <Column id="diagcd_mt" type="STRING" size="256"/>
  188. <Column id="diagnm_m" type="STRING" size="256"/>
  189. <Column id="diagcd_s" type="STRING" size="256"/>
  190. <Column id="diagnm_s" type="STRING" size="256"/>
  191. <Column id="edicd1" type="STRING" size="256"/>
  192. <Column id="edinm1" type="STRING" size="256"/>
  193. <Column id="edicd2" type="STRING" size="256"/>
  194. <Column id="edinm2" type="STRING" size="256"/>
  195. <Column id="drgtype" type="STRING" size="256"/>
  196. <Column id="drgno" type="STRING" size="256"/>
  197. <Column id="drgnm" type="STRING" size="256"/>
  198. <Column id="bigo" type="STRING" size="256"/>
  199. <Column id="fromdd" type="STRING" size="256"/>
  200. <Column id="termcd" type="STRING" size="256"/>
  201. <Column id="termengnm" type="STRING" size="256"/>
  202. <Column id="treelvl" type="STRING" size="256"/>
  203. </ColumnInfo>
  204. <Rows>
  205. <Row/>
  206. </Rows>
  207. </Dataset>
  208. <Dataset id="ds_init_orddeptcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  209. <ColumnInfo>
  210. <Column id="cd" type="STRING" size="256"/>
  211. <Column id="nm" type="STRING" size="256"/>
  212. </ColumnInfo>
  213. <Rows>
  214. <Row/>
  215. </Rows>
  216. </Dataset>
  217. <Dataset id="ds_tmp_srch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  218. </Objects>
  219. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
  220. include "pam_pamcomnxp::PAM.xjs";
  221. // 화면초기화
  222. function SMPMB03800_onload(obj:Form, e:LoadEventInfo)
  223. {
  224. frmf_initForm(obj);
  225. if(frmf_isPopup()) {
  226. try{
  227. ds_tmp_srch.copyData(arg_ds_tmp_srch);
  228. }catch(e){}
  229. if(!utlf_isNull(ds_tmp_srch.getColumn(0, "orddeptcd"))) {
  230. ds_send_srch.setColumn(0, "orddeptcd", ds_tmp_srch.getColumn(0, "orddeptcd"));
  231. ds_send_srch.setColumn(0, "diagcd_m", ds_tmp_srch.getColumn(0, "diagcd_m"));
  232. var closeyn = ds_tmp_srch.getColumn(0, "closeyn");
  233. grp_srch.btn_search.click();
  234. if(closeyn == "Y" && ds_main_pmbmdrgb1.rowcount == 0) this.close(); //자동조회후 상병조건 결과 없을경우 자동닫기(입원의뢰서)
  235. }
  236. }
  237. pamGetDeptCDDrIDList();
  238. ds_init_orddeptcdlist.insertRow(0);
  239. }
  240. // 조회버튼 클릭
  241. function grp_srch_btn_search_onclick(obj:Button, e:ClickEventInfo)
  242. {
  243. fGetPmbmdrgbList();
  244. }
  245. // 질환군 분류정보 조회
  246. function fGetPmbmdrgbList() {
  247. if(utlf_isNull(ds_send_srch.getColumn(0, "orddeptcd"))) {
  248. sysf_messageBox("진료과를 선택하세요.", "");
  249. return;
  250. }
  251. ds_main_pmbmdrgb1.clearData();
  252. ds_main_pmbmdrgb2.clearData();
  253. var oParam = {};
  254. oParam.id = "TRPMB03801";
  255. oParam.service = "pambaseinfomngtapp.SickCd";
  256. oParam.method = "reqGetPmbmdrgbList";
  257. oParam.inds = "req=ds_send_srch";
  258. oParam.outds = "ds_main_pmbmdrgb1=item1 ds_main_pmbmdrgb2=item2";
  259. oParam.async = false;
  260. tranf_submit(oParam);
  261. if(ds_main_pmbmdrgb2.rowcount != 0) {
  262. var lastdt = ds_main_pmbmdrgb2.getColumn(0,"lastupdtdt");
  263. cap_lastupdtdt.text = "*최신정보수정일 : " + lastdt.substr(0,4)+"."+lastdt.substr(4,2)+"."+lastdt.substr(6,2)+".";
  264. }
  265. }
  266. // 진료과별 질환군 조회
  267. function fSrchList() {
  268. var oParam = {};
  269. oParam.id = "TRPMB03802";
  270. oParam.service = "pambaseinfomngtapp.SickCd";
  271. oParam.method = "reqGetPmbmdrgbListDetail";
  272. oParam.inds = "req=ds_send_srch";
  273. oParam.outds = "ds_main_pmbmdrgb2=item2";
  274. oParam.async = false;
  275. tranf_submit(oParam);
  276. if(ds_main_pmbmdrgb2.rowcount != 0) {
  277. var lastdt = ds_main_pmbmdrgb2.getColumn(0,"lastupdtdt");
  278. cap_lastupdtdt.text = "*최신정보수정일 : " + lastdt.substr(0,4)+"."+lastdt.substr(4,2)+"."+lastdt.substr(6,2)+".";
  279. }
  280. }
  281. // 상세조회 상병명등으로 조회
  282. function common_onkeyup(obj:Edit, e:KeyEventInfo)
  283. {
  284. if(e.keycode == 13) {
  285. obj.updateToDataset();
  286. fSrchList()
  287. }
  288. }
  289. // 상병코드 입력 조회
  290. function grp_srch_ipt_srch_diagcd_m_onkeyup(obj:Edit, e:KeyEventInfo)
  291. {
  292. if(e.keycode == 13) {
  293. obj.updateToDataset();
  294. fGetPmbmdrgbList();
  295. }
  296. }
  297. function grd_pmbmdrgb2_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  298. {
  299. if(utlf_isNull(ds_main_pmbmdrgb2.getColumn(e.row, "termcd"))) {
  300. if(grd_pmbmdrgb2.getTreeStatus(obj.currentrow)==0) {
  301. grd_pmbmdrgb2.setTreeStatus(obj.currentrow, true);
  302. } else {
  303. grd_pmbmdrgb2.setTreeStatus(obj.currentrow, false);
  304. }
  305. } else {
  306. if(opener.frmf_getScreenID() == "SPMMO00100") {
  307. var icd10cd = ds_main_pmbmdrgb2.getColumn(e.row, "diagcd_mf");
  308. var diagcd = ds_main_pmbmdrgb2.getColumn(e.row, "termcd");
  309. var diagengnm = ds_main_pmbmdrgb2.getColumn(e.row, "termengnm");
  310. var diaghngnm = ds_main_pmbmdrgb2.getColumn(e.row, "termhngnm");
  311. if(opener.ds_diagcdlist.findRow("diagcd", diagcd) > -1) {
  312. sysf_messageBox("이미 선택된 상병입니다.", "");
  313. return;
  314. }
  315. var currow = opener.ds_diagcdlist.rowcount -1;
  316. opener.ds_diagcdlist.setColumn(currow,"status" ,"i");
  317. opener.ds_diagcdlist.setColumn(currow,"diagdd" ,utlf_getCurrentDate());
  318. opener.ds_diagcdlist.setColumn(currow,"diagtypecd","R");
  319. opener.ds_diagcdlist.setColumn(currow,"icd10cd" ,icd10cd);
  320. opener.ds_diagcdlist.setColumn(currow,"diagcd" ,diagcd);
  321. opener.ds_diagcdlist.setColumn(currow,"diagengnm" ,diagengnm);
  322. opener.ds_diagcdlist.setColumn(currow,"diaghngnm" ,diaghngnm);
  323. opener.ds_diagcdlist.setColumn(currow,"orddd" ,opener.ds_inreqfrminfo.getColumn(0,"inhopedd")); //진단일자는 입원예정일
  324. opener.ds_diagcdlist.setColumn(currow,"pid" ,opener.ds_inreqfrminfo.getColumn(0,"pid"));
  325. opener.ds_diagcdlist.setColumn(currow,"cretno" ,0);
  326. opener.ds_diagcdlist.setColumn(currow,"orddeptcd" ,opener.ds_inreqfrminfo.getColumn(0,"orddeptcd"));
  327. opener.ds_diagcdlist.setColumn(currow,"orddrid" ,opener.ds_inreqfrminfo.getColumn(0,"orddrid"));
  328. opener.ds_diagcdlist.addRow();
  329. this.close();
  330. }
  331. }
  332. }
  333. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  334. {
  335. this.close();
  336. }
  337. ]]></Script>
  338. </Form>
  339. </FDL>