SMMRD02300_암환자통계배치.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <xhtml:head>
  5. <xhtml:title>암환자통계배치</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <srchcncrpat>
  11. <ordtype/>
  12. <fromdd/>
  13. <todd/>
  14. <deptinfo/>
  15. <drinfo/>
  16. <pid/>
  17. <patnm/>
  18. <chkcncr/>
  19. </srchcncrpat>
  20. <cncrrgstpatlist>
  21. <list>
  22. <instcd/>
  23. <cncrno/>
  24. <cncrhistno/>
  25. <seqno/>
  26. <pid/>
  27. <cretno/>
  28. <orddd/>
  29. <orddeptcd/>
  30. <orddrid/>
  31. <orddrnm/>
  32. <depthngnm/>
  33. <indg/>
  34. <totinhospdayno/>
  35. <dschdd/>
  36. <dschdeptcd/>
  37. <dschdrid/>
  38. <dschdrnm/>
  39. <depthngnm/>
  40. <ordtype/>
  41. <hngnm/>
  42. <disp_orddeptcd/>
  43. <disp_orddeptnm/>
  44. <disp_orddd/>
  45. <disp_orddrid/>
  46. <disp_orddrnm/>
  47. <rrgstno1/>
  48. <rrgstno2/>
  49. <epoch/>
  50. <sex/>
  51. <age/>
  52. <hometel/>
  53. <mpphontel/>
  54. <zipcd1/>
  55. <zipcd2/>
  56. <addr/>
  57. <detaddr/>
  58. <maryflag/>
  59. <forgneryn/>
  60. <jobcd1/>
  61. <jobcd2/>
  62. <etcjob/>
  63. <reluserhngnm/>
  64. <relation/>
  65. <relzipcd1/>
  66. <relzipcd2/>
  67. <reladdr/>
  68. <reldetaddr/>
  69. <relmpphontel/>
  70. <relhometel/>
  71. <wandereryn/>
  72. <prmycncryn/>
  73. <sickstatcd/>
  74. <cureopendd/>
  75. <dethplcecd/>
  76. <dethdd/>
  77. <dethcause/>
  78. <yearcnt/>
  79. <monthcnt/>
  80. <diagdd/>
  81. <diaghospcd/>
  82. <diagdrid/>
  83. <diagdrnm/>
  84. <lastdiagmthdcd/>
  85. <clinical/>
  86. <etcclinical/>
  87. <tophcd/>
  88. <tophseqno/>
  89. <morphcd1/>
  90. <morphseqno1/>
  91. <morphcd2/>
  92. <morphseqno2/>
  93. <icd10cd/>
  94. <difrntgrdecd/>
  95. <seer/>
  96. <t/>
  97. <n/>
  98. <m/>
  99. <stagingcd/>
  100. <etcstagflagcd/>
  101. <etcstagcnts/>
  102. <rerntmetstaspartcd1/>
  103. <rerntmetstaspartcd2/>
  104. <rerntmetstaspartcd3/>
  105. <rerntmetstaspartcd4/>
  106. <rerntmetstaspartseq1/>
  107. <rerntmetstaspartseq2/>
  108. <rerntmetstaspartseq3/>
  109. <rerntmetstaspartseq4/>
  110. <ecog/>
  111. <regimen1/>
  112. <regimen2/>
  113. <validyn/>
  114. <mig/>
  115. <etcdiaghospnm/>
  116. <disp_cncrhistno/>
  117. <disp_icd10cd/>
  118. <serdiagno/>
  119. </list>
  120. </cncrrgstpatlist>
  121. <common>
  122. <com/>
  123. </common>
  124. <cond>
  125. <patsearflag/>
  126. </cond>
  127. </main>
  128. <send>
  129. <reqdata/>
  130. </send>
  131. <init>
  132. <srchcncrrgst>
  133. <deptinfo/>
  134. <drinfo/>
  135. </srchcncrrgst>
  136. <instcd/>
  137. </init>
  138. <patientgrup>
  139. <patientgruplist/>
  140. </patientgrup>
  141. </root>
  142. </instance>
  143. <script type="javascript" ev:event="xforms-ready">
  144. <![CDATA[
  145. model.addLog("===================시작");
  146. var rgstfromdd = ((getCurrentDate()).toDate()).getAddDate(-30, "D");
  147. model.makeValue("/root/main/srchcncrpat/fromdd" , rgstfromdd.getDateFormat());
  148. model.makeValue("/root/main/srchcncrpat/todd" , getCurrentDate());
  149. model.addLog(getCurrentTime());
  150. rdo_ordtype.select(0);
  151. zbcfGetCodeList( new Array("C0048"), new Array("/root/init/instcd"));
  152. // zsdfGetInOutOrdDeptList(getUserInfo("dutplceinstcd")
  153. // , "/root/main/common/com", "depthngnm", "asc");//전체 진료과 조회
  154. // copyNodeset("/root/init/srchcncrrgst/deptinfo", "/root/main/common/com/dept", "replace");
  155. // addComboItem("cmb_srchcncrrgst", "전체", "", "above");
  156. // model.setValue("/root/main/srchcncrpat/deptinfo", "");
  157. // addComboItem("cmb_drinfo", "전체", "", "above");
  158. // model.setValue("/root/main/srchcncrpat/drinfo", "");
  159. cncryn = "Y";
  160. model.refresh();
  161. model.addLog("===================종료");
  162. ]]>
  163. </script>
  164. <script type="javascript">
  165. <![CDATA[
  166. function fChngSrchCond(){
  167. model.removeNodeset("/root/send/reqdata");
  168. model.makeValue("/root/send/reqdata/orddeptcd", model.getValue("/root/main/srchcncrpat/deptinfo"));
  169. model.makeValue("/root/send/reqdata/queryflag", "total");
  170. submit("TRMRF02303", true, "/root/send/reqdata", "/root/main/common/drlist");
  171. copyNodeset("/root/init/srchcncrrgst/drinfo", "/root/main/common/drlist");
  172. model.setValue("/root/init/srchcncrrgst/drinfo/drid[0]", "");
  173. model.setValue("/root/main/srchcncrpat/drinfo", "");
  174. cmb_drinfo.select(0);
  175. model.refresh();
  176. }
  177. function fSrchCncrPatRgst(){
  178. model.makeValue("/root/send/reqdata/ordtype", model.getValue("/root/main/srchcncrpat/ordtype"));
  179. model.makeValue("/root/send/reqdata/fromdd", model.getValue("/root/main/srchcncrpat/fromdd"));
  180. model.makeValue("/root/send/reqdata/todd", model.getValue("/root/main/srchcncrpat/todd"));
  181. model.makeValue("/root/send/reqdata/orddeptcd", model.getValue("/root/main/srchcncrpat/deptinfo"));
  182. model.makeValue("/root/send/reqdata/orddrid", model.getValue("/root/main/srchcncrpat/drinfo"));
  183. model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/srchcncrpat/pid"));
  184. model.makeValue("/root/send/reqdata/chkcncr", model.getValue("/root/main/srchcncrpat/chkcncr"));
  185. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  186. model.makeValue("/root/send/reqdata/userid", getUserId());
  187. submit("TRMRD02301");
  188. model.removeNodeset("/root/send/reqdata");
  189. }
  190. function fExecBatch() {
  191. model.makeValue("/root/send/reqdata/ordtype", model.getValue("/root/main/srchcncrpat/ordtype"));
  192. model.makeValue("/root/send/reqdata/fromdd", model.getValue("/root/main/srchcncrpat/fromdd"));
  193. model.makeValue("/root/send/reqdata/todd", model.getValue("/root/main/srchcncrpat/todd"));
  194. model.makeValue("/root/send/reqdata/orddeptcd", model.getValue("/root/main/srchcncrpat/deptinfo"));
  195. model.makeValue("/root/send/reqdata/orddrid", model.getValue("/root/main/srchcncrpat/drinfo"));
  196. model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/srchcncrpat/pid"));
  197. model.makeValue("/root/send/reqdata/chkcncr", model.getValue("/root/main/srchcncrpat/chkcncr"));
  198. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  199. model.makeValue("/root/send/reqdata/userid", getUserId());
  200. if ( submit("TRMRD02302") ) {
  201. messageBox("배치실행이", "I001", "실행시간이 오래 걸릴수 있으니 '암환자배치기록' 화면에서 확인하세요");
  202. }
  203. model.removeNodeset("/root/send/reqdata");
  204. }
  205. ]]>
  206. </script>
  207. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  208. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  209. <submission id="TRMRF02303" mediatype="application/x-www-form-urlencoded" method="post"/>
  210. <submission id="TRMRD02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/cncrrgstpatlist"/>
  211. <submission id="TRMRD02302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata"/>
  212. </model>
  213. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  214. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  215. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  216. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  217. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  218. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  219. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  220. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  221. </xhtml:head>
  222. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  223. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1185px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  224. <caption id="cap_orddept" class="search_name" visibility="hidden" style="left:20px; top:40px; width:88px; height:17px; ">진료과 :</caption>
  225. <button id="button2" class="btn1_letter2" style="left:1105px; top:10px; width:56px; height:22px; ">
  226. <caption>조회</caption>
  227. <script type="javascript" ev:event="DOMActivate">
  228. <![CDATA[
  229. fSrchCncrPatRgst();
  230. ]]>
  231. </script>
  232. </button>
  233. <select1 id="cmb_srchcncrrgst" ref="/root/main/srchcncrpat/deptinfo" class="combo_search" visibility="hidden" appearance="minimal" itemcount="30" style="left:97px; top:40px; width:140px; height:19px; ">
  234. <choices>
  235. <itemset nodeset="/root/init/srchcncrrgst/deptinfo">
  236. <label ref="depthngnm"/>
  237. <value ref="deptcd"/>
  238. </itemset>
  239. </choices>
  240. <script type="javascript" ev:event="xforms-value-changed">
  241. <![CDATA[
  242. fChngSrchCond();
  243. ]]>
  244. </script>
  245. </select1>
  246. <select1 id="cmb_drinfo" ref="/root/main/srchcncrpat/drinfo" class="combo_search" visibility="hidden" appearance="minimal" style="left:360px; top:39px; width:75px; height:19px; ">
  247. <choices>
  248. <itemset nodeset="/root/init/srchcncrrgst/drinfo">
  249. <label ref="drnm"/>
  250. <value ref="drid"/>
  251. </itemset>
  252. </choices>
  253. </select1>
  254. <input id="input13" ref="/root/main/srchcncrpat/fromdd" class="input_search" inputtype="date" style="left:125px; top:14px; width:90px; height:19px; "/>
  255. <caption id="caption56" class="search_name" visibility="hidden" style="left:470px; top:40px; width:86px; height:17px; ">내원구분 :</caption>
  256. <input id="input14" ref="/root/main/srchcncrpat/todd" class="input_search" inputtype="date" style="left:230px; top:14px; width:90px; height:19px; "/>
  257. <caption id="cap_orddd" class="search_name" style="left:20px; top:15px; width:105px; height:17px; ">진료/퇴원일:</caption>
  258. <caption id="caption59" class="search_name" visibility="hidden" style="left:285px; top:40px; width:86px; height:17px; ">주치의 :</caption>
  259. <select1 id="rdo_ordtype" ref="/root/main/srchcncrpat/ordtype" class="radio_search" visibility="hidden" appearance="full" cols="3" rows="1" overflow="visible" style="left:557px; top:40px; width:138px; height:20px; border-style:none; ">
  260. <choices>
  261. <item>
  262. <label>전체</label>
  263. <value/>
  264. </item>
  265. <item>
  266. <label>외래</label>
  267. <value>O</value>
  268. </item>
  269. <item>
  270. <label>퇴원</label>
  271. <value>I</value>
  272. </item>
  273. </choices>
  274. <script type="javascript" ev:event="xforms-value-changed">
  275. <![CDATA[
  276. model.removeNodeset("/root/main/common/com/dept");
  277. if(rdo_ordtype.value == ""){
  278. cap_orddd.attribute("text") = "진료일자 :";
  279. cap_orddept.attribute("text") = "진료과 :";
  280. model.resetInstanceNode("/root/main/common/com/dept");
  281. zsdfGetInOutOrdDeptList(getUserInfo("dutplceinstcd"), "/root/main/common/com", "depthngnm", "asc");
  282. } else if(rdo_ordtype.value == "O"){
  283. cap_orddd.attribute("text") = "진료일자 :";
  284. cap_orddept.attribute("text") = "진료과 :";
  285. model.resetInstanceNode("/root/main/common/com/dept");
  286. zsdfGetOutOrdDeptList(getUserInfo("dutplceinstcd"), "/root/main/common/com", "depthngnm", "asc");
  287. } else if(rdo_ordtype.value == "I"){
  288. cap_orddd.attribute("text") = "퇴원일자 :";
  289. cap_orddept.attribute("text") = "퇴원과 :";
  290. model.resetInstanceNode("/root/main/common/com/dept");
  291. zsdfGetInOrdDeptList(getUserInfo("dutplceinstcd"), "/root/main/common/com", "depthngnm", "asc");
  292. }
  293. copyNodeset("/root/init/srchcncrrgst/deptinfo", "/root/main/common/com/dept", "replace");
  294. addComboItem("cmb_srchcncrrgst", "전체", "", "above");
  295. model.setValue("/root/main/srchcncrpat/deptinfo", "");
  296. model.removeNodeset("/root/init/srchcncrrgst/drinfo");
  297. addComboItem("cmb_drinfo", "전체", "", "above");
  298. model.setValue("/root/main/srchcncrpat/drinfo", "");
  299. model.refresh();
  300. ]]>
  301. </script>
  302. </select1>
  303. <line id="line4" class="line_4" style="x1:1080px; y1:10px; x2:1080px; y2:36px; "/>
  304. <datagrid id="grd_cncrrgstlist" nodeset="/root/main/cncrrgstpatlist/list" caption="기관명^암등록번호^등록번호^환자이름^주민번호 앞자리^성별^내원구분^내원일자^진료과코드^진료과명^진료의ID^진료의명^진단일자^진단병원코드^진단의사ID^진단의사명^연고자우편번호앞자리" colsep="^" colwidth="108, 80, 82, 70, 94, 41, 66, 82, 70, 109, 67, 67, 78, 108, 74, 70, 127" dataheight="25" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:70px; width:1185px; height:670px; ">
  305. <col disabled="true" ref="instcd" type="combo">
  306. <choices>
  307. <itemset nodeset="/root/init/instcd/C0048">
  308. <label ref="cdnm"/>
  309. <value ref="cdid"/>
  310. </itemset>
  311. </choices>
  312. </col>
  313. <col ref="cncrno" style="text-align:center; "/>
  314. <col ref="pid" style="text-align:center; "/>
  315. <col ref="hngnm" style="text-align:center; "/>
  316. <col ref="rrgstno1" style="text-align:center; "/>
  317. <col ref="sex" style="text-align:center; "/>
  318. <col disabled="true" ref="ordtype" type="combo" style="text-align:center; ">
  319. <choices>
  320. <item>
  321. <label>내원</label>
  322. <value>O</value>
  323. </item>
  324. <item>
  325. <label>입원</label>
  326. <value>I</value>
  327. </item>
  328. </choices>
  329. </col>
  330. <col ref="disp_orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  331. <col ref="disp_orddeptcd" style="text-align:center; "/>
  332. <col ref="disp_orddeptnm"/>
  333. <col ref="disp_orddrid" style="text-align:center; "/>
  334. <col ref="disp_orddrnm" style="text-align:center; "/>
  335. <col ref="diagdd" format="yyyy-mm-dd" style="text-align:center; "/>
  336. <col disabled="true" ref="diaghospcd" type="combo">
  337. <choices>
  338. <itemset nodeset="/root/init/instcd/C0048">
  339. <label ref="cdnm"/>
  340. <value ref="cdid"/>
  341. </itemset>
  342. </choices>
  343. </col>
  344. <col ref="diagdrid" style="text-align:center; "/>
  345. <col ref="diagdrnm" style="text-align:center; "/>
  346. <col ref="zipcd1" style="text-align:center; "/>
  347. <script type="javascript" ev:event="onaftersort">
  348. <![CDATA[
  349. grd_cncrrgstlist.gridToInstance();
  350. ]]>
  351. </script>
  352. </datagrid>
  353. <caption id="caption60" class="search_no_b" style="left:216px; top:15px; width:12px; height:17px; ">~</caption>
  354. <button id="button16" class="btn4_letter4" style="left:1092px; top:47px; width:80px; height:22px; ">
  355. <caption>배치실행</caption>
  356. <script type="javascript" ev:event="DOMActivate">
  357. <![CDATA[
  358. fExecBatch();
  359. ]]>
  360. </script>
  361. </button>
  362. <select id="checkbox1" ref="/root/main/srchcncrpat/chkcncr" overflow="visible" appearance="full" style="left:330px; top:15px; width:100px; height:20px; border-style:none; ">
  363. <choices>
  364. <item>
  365. <label>암등록일</label>
  366. <value>1</value>
  367. </item>
  368. </choices>
  369. <script type="javascript" ev:event="xforms-select">
  370. <![CDATA[
  371. cap_orddd.attribute("text") = "암등록일자 :";
  372. ]]>
  373. </script>
  374. <script type="javascript" ev:event="xforms-deselect">
  375. <![CDATA[
  376. if ( rdo_ordtype.value == "I" )
  377. cap_orddd.attribute("text") = "퇴원일자 :";
  378. else
  379. cap_orddd.attribute("text") = "진료/퇴원일:";
  380. ]]>
  381. </script>
  382. </select>
  383. <button id="btn_patsear" class="icon_search" style="left:730px; top:15px; width:16px; height:16px; ">
  384. <caption/>
  385. <script type="javascript" ev:event="DOMActivate">
  386. <![CDATA[
  387. var refCond = model.getValue("/root/main/srchcncrpat/pid");
  388. if( refCond.isNumber() ) {//숫자이면 등록번호, 아니면 환자명 체크
  389. model.setValue("/root/main/cond/patsearflag", "2");
  390. }else {
  391. model.setValue("/root/main/cond/patsearflag", "1");
  392. }
  393. setParameter("refnm", refCond);
  394. modal("SMMNB00700" ,"", "400", "150", "SMMNB00700", "/root/main/cond/patsearflag", "/root/main/cond/refflag");
  395. var getData = model.getValue("/root/properties/parameters/SendData/SendDatavalue");
  396. var getDataTemp = getData.split("|");
  397. if( getData == "" ) {
  398. return;
  399. }else {
  400. model.setValue("/root/main/srchcncrpat/pid", getDataTemp[0]);
  401. model.setValue("/root/main/srchcncrpat/patnm", getDataTemp[1]);
  402. // model.setValue("/root/main/cond/dept", getDataTemp[9]);
  403. // model.setValue("/root/main/cond/roomcd", getDataTemp[10]);
  404. // model.setValue("/root/main/cond/patsearflag", getDataTemp[11]);
  405. model.refresh();
  406. }
  407. ]]>
  408. </script>
  409. </button>
  410. <input id="input1" ref="/root/main/srchcncrpat/pid" class="input_search" disabled="false" imemode="hangul" style="left:645px; top:15px; width:79px; height:19px; ">
  411. <script type="javascript" ev:event="onkeyup">
  412. <![CDATA[
  413. inputEnterKey("button2", "DOMActivate");
  414. ]]>
  415. </script>
  416. </input>
  417. <caption id="caption1" class="search_name" style="left:470px; top:15px; width:86px; height:17px; ">등록번호 :</caption>
  418. <input id="ipt_patnm" ref="/root/main/srchcncrpat/patnm" class="input_search" disabled="true" imemode="hangul" style="left:560px; top:15px; width:81px; height:19px; "/>
  419. </xhtml:body>
  420. </xhtml:html>