SMADS02200_임상부작용통계.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  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. <xhtml:head>
  5. <xhtml:title>임상부작용 통계</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <statslist>
  11. <item>
  12. <title/>
  13. <inreplcnt/>
  14. <inreplpatcnt/>
  15. <innonreplcnt/>
  16. <innonreplpatcnt/>
  17. <inexeccnt/>
  18. <inpatcnt/>
  19. <inprcpcnt/>
  20. <outreplcnt/>
  21. <outreplpatcnt/>
  22. <outnonreplcnt/>
  23. <outnonreplpatcnt/>
  24. <outexeccnt/>
  25. <outpatcnt/>
  26. <outprcpcnt/>
  27. </item>
  28. </statslist>
  29. </main>
  30. <send>
  31. <srchfromdd/>
  32. <srchtodd/>
  33. <srchioflag>A</srchioflag>
  34. <srchwardcd/>
  35. <wardcd/>
  36. <wardnm/>
  37. <drugcd/>
  38. <drugnm/>
  39. <sympcnts/>
  40. <symp/>
  41. <casrslt/>
  42. <serigrde/>
  43. <sympmnftgrde/>
  44. <comflag/>
  45. <comdesc/>
  46. <comnm/>
  47. <prodcmpycd/>
  48. <prodcmpynm/>
  49. <totscr/>
  50. <naranjocmt/>
  51. </send>
  52. <init>
  53. <baseinfo>
  54. <tmedcnst>
  55. <A0036/>
  56. </tmedcnst>
  57. </baseinfo>
  58. </init>
  59. <hidden>
  60. <srchinfo>
  61. <srchfromdd/>
  62. <srchtodd/>
  63. <wardcd/>
  64. <wardnm/>
  65. <drugcd/>
  66. <drugnm/>
  67. <sympcnts/>
  68. <casrslt/>
  69. <serigrde/>
  70. <sympmnftgrde/>
  71. <comflag/>
  72. <comdesc/>
  73. <prodcmpycd/>
  74. <prodcmpynm/>
  75. <totscr/>
  76. <naranjocmt/>
  77. </srchinfo>
  78. </hidden>
  79. <temp>
  80. <srchgrupid>
  81. <drugcd/>
  82. <comflag/>
  83. </srchgrupid>
  84. <srchinfo>
  85. <ward/>
  86. </srchinfo>
  87. <receivedata>
  88. <receiveref/>
  89. <srchflag/>
  90. <srchcnts/>
  91. <drugkind/>
  92. <receivedrugpnm/>
  93. <receivedrugflag/>
  94. <receivedrugcom/>
  95. </receivedata>
  96. <drugcd/>
  97. <drugcdlist>
  98. <drugcdlist>
  99. <drugcd/>
  100. <drugnm/>
  101. <comdesc/>
  102. <prodcmpycd/>
  103. <prodcmpynm/>
  104. </drugcdlist>
  105. </drugcdlist>
  106. </temp>
  107. <popdata1/>
  108. </root>
  109. </instance>
  110. <submission id="TRADC00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/srchgrupid" replace="instance" resultref="/root/temp/drugcdlist"/>
  111. <submission id="TRADS02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/statslist"/>
  112. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  113. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  114. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  115. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  116. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  117. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  118. <script type="javascript" src="../../../ast/pharmacybaseweb/js/pharmacycombolist.js"/>
  119. <script type="javascript">
  120. <![CDATA[
  121. function fInit() {
  122. var rexObj = makeReportPreview(0,106,1195,634);
  123. // 날짜 초기화
  124. var d = new Date();
  125. ipt_fromdd.value = d.getAddDate(-7).getDateFormat();
  126. ipt_todd.value = getCurrentDate();
  127. }
  128. ]]>
  129. </script>
  130. <script type="javascript" ev:event="xforms-ready">
  131. <![CDATA[
  132. //do something
  133. fInit();
  134. ]]>
  135. </script>
  136. </model>
  137. </xhtml:head>
  138. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  139. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  140. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:13px; ">약물부작용 통계</caption>
  141. </group>
  142. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  143. <line id="line1" class="line_1" style="x1:0px; y1:100px; x2:1195px; y2:100px; "/>
  144. <group id="group1" style="left:0px; top:10px; width:1195px; height:85px; vertical-align:top; ">
  145. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:80px; background-color:#fffbf2; border-color:#ffd799; "/>
  146. <line id="line2" class="line_4" style="x1:1110px; y1:6px; x2:1110px; y2:76px; "/>
  147. <button id="btn_sea" class="btn1_letter2" navindex="15" style="left:1120px; top:29px; width:56px; height:22px; ">
  148. <caption>조회</caption>
  149. <script type="javascript" ev:event="DOMActivate">
  150. <![CDATA[
  151. if (submit("TRADS02201")) {
  152. exeReportPreview("RPADS01714", "XMLSTR", "/root/main/statslist/item");
  153. }
  154. ]]>
  155. </script>
  156. </button>
  157. <caption id="caption2" class="search_name" style="left:15px; top:15px; width:97px; height:17px; ">회신일자 :</caption>
  158. <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_default" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:115px; top:15px; width:100px; height:19px; "/>
  159. <input id="ipt_todd" ref="/root/send/srchtodd" class="input_default" navindex="3" inputtype="date" format="yyyy-mm-dd" style="left:233px; top:15px; width:100px; height:19px; "/>
  160. <caption id="caption5" class="search_no_b" style="left:218px; top:15px; width:12px; height:17px; ">~</caption>
  161. <caption id="caption3" class="search_name" style="left:15px; top:55px; width:86px; height:17px; ">유해증상 :</caption>
  162. <caption id="caption4" class="search_name" style="left:620px; top:15px; width:86px; height:17px; ">처방코드 :</caption>
  163. <caption id="caption10" class="search_name" style="left:345px; top:55px; width:86px; height:17px; ">인과관계 :</caption>
  164. <caption id="caption12" class="search_name" style="left:620px; top:55px; width:85px; height:17px; ">심각도 :</caption>
  165. <caption id="caption13" class="search_name" style="left:845px; top:55px; width:111px; height:17px; ">증상발현정도 :</caption>
  166. <select1 id="cmb_serigrde" ref="/root/send/serigrde" class="combo_search" navindex="13" appearance="minimal" style="left:705px; top:55px; width:130px; height:19px; ">
  167. <choices>
  168. <item>
  169. <label>전체</label>
  170. <value></value>
  171. </item>
  172. <item>
  173. <label>serious</label>
  174. <value>S</value>
  175. </item>
  176. <item>
  177. <label>non-serious</label>
  178. <value>N</value>
  179. </item>
  180. </choices>
  181. </select1>
  182. <select1 id="chk_ioflag" ref="/root/send/srchioflag" class="radio_search" navindex="4" appearance="full" cols="3" overflow="visible" sep="," style="left:415px; top:15px; width:140px; height:20px; border-style:none; ">
  183. <choices>
  184. <item>
  185. <label>전체</label>
  186. <value>A</value>
  187. </item>
  188. <item>
  189. <label>입원</label>
  190. <value>I</value>
  191. </item>
  192. <item>
  193. <label>외래</label>
  194. <value>O</value>
  195. </item>
  196. </choices>
  197. </select1>
  198. <caption id="caption7" class="search_name" style="left:346px; top:15px; width:70px; height:17px; ">구 분 :</caption>
  199. <input id="ipt_drugnm" ref="/root/send/drugnm" class="input_search" navindex="7" style="left:965px; top:15px; width:140px; height:19px; "/>
  200. <input id="ipt_drugcd" ref="/root/send/drugcd" class="input_search" navindex="5" style="left:715px; top:15px; width:140px; height:19px; ">
  201. <script type="javascript" ev:event="xforms-value-changed">
  202. <![CDATA[
  203. if (ipt_drugcd.value == "") {
  204. ipt_drugnm.value = "";
  205. }
  206. ]]>
  207. </script>
  208. </input>
  209. <button id="btn_drugcd" class="icon_search" navindex="6" style="left:859px; top:15px; width:16px; height:16px; ">
  210. <caption/>
  211. <script type="javascript" ev:event="DOMActivate">
  212. <![CDATA[
  213. //DIF검색
  214. model.makeValue("/root/temp/reqdata/send/receiveref", "/root/temp/receivedata/receiveref");
  215. model.makeValue("/root/temp/reqdata/send/receivedrugpnm", "/root/temp/receivedata/receivedrugpnm");
  216. model.makeValue("/root/temp/reqdata/send/receivedrugflag", "/root/temp/receivedata/receivedrugflag");
  217. model.makeValue("/root/temp/reqdata/send/receivedrugcom", "/root/temp/receivedata/receivedrugcom");
  218. model.makeValue("/root/temp/reqdata/send/reqpid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
  219. model.resetInstanceNode("/root/temp/receivedata");
  220. modal("SPMMD03400",0,100,150,"SPMMD03400","/root/temp/reqdata/send","/root/temp/receivedata");
  221. //modal("SPMMD03400",0,100,150,"SPMMD03400","/root/temp/receivedata","/root/temp/receivedata");
  222. if( instance1.selectSingleNode("/root/temp/receivedata/receiveref") ){
  223. if( !isNull(model.getValue("/root/temp/receivedata/receiveref")) ){
  224. var drugcd = model.getValue("/root/temp/receivedata/receiveref");
  225. var drugcdnm = model.getValue("/root/temp/receivedata/receivedrugpnm");
  226. var sReceivedrugflag = model.getValue("/root/temp/receivedata/receivedrugflag");
  227. if(sReceivedrugflag != "") {
  228. model.setValue("/root/send/comflag", sReceivedrugflag);
  229. } else {
  230. model.setValue("/root/send/comflag", "C");
  231. }
  232. model.setValue("/root/send/drugcd", drugcd);
  233. if(model.getValue("/root/send/comflag") != "O") {
  234. model.setValue("/root/temp/srchgrupid/drugcd", drugcd);
  235. model.setValue("/root/temp/srchgrupid/comflag", model.getValue("/root/send/comflag"));
  236. submit("TRADC00604");
  237. model.setValue("/root/send/drugnm" , model.getValue("/root/temp/drugcdlist/drugcdlist/drugnm"));
  238. model.setValue("/root/send/comnm" , model.getValue("/root/temp/drugcdlist/drugcdlist/comdesc"));
  239. model.setValue("/root/send/prodcmpycd" , model.getValue("/root/temp/drugcdlist/drugcdlist/prodcmpycd"));
  240. model.setValue("/root/send/prodcmpynm" , model.getValue("/root/temp/drugcdlist/drugcdlist/prodcmpynm"));
  241. } else {
  242. model.setValue("/root/send/drugnm" , drugcdnm);
  243. }
  244. model.refresh();
  245. }
  246. }
  247. ]]>
  248. </script>
  249. </button>
  250. <caption id="caption1" class="search_name" style="left:885px; top:15px; width:86px; height:17px; ">약물명 :</caption>
  251. <select1 id="cmb_sympmnftgrde" ref="/root/send/sympmnftgrde" class="combo_search" navindex="14" appearance="minimal" style="left:965px; top:55px; width:130px; height:19px; ">
  252. <choices>
  253. <item>
  254. <label>전체</label>
  255. <value></value>
  256. </item>
  257. <item>
  258. <label>경증</label>
  259. <value>1</value>
  260. </item>
  261. <item>
  262. <label>중등증</label>
  263. <value>2</value>
  264. </item>
  265. <item>
  266. <label>중증</label>
  267. <value>3</value>
  268. </item>
  269. </choices>
  270. </select1>
  271. <button id="btn_sympcnts" class="icon_search" navindex="9" style="left:314px; top:55px; width:16px; height:16px; ">
  272. <caption/>
  273. <script type="javascript" ev:event="DOMActivate">
  274. <![CDATA[
  275. modal("SPADC62901",0,100,150,"SPADC62901","/root/temp/tempsymp","/root/hidden/tempsymp");
  276. //팝어창에서 정상적으로 확인을 하였을 경우만 set 한다.(닫기 버튼 눌렀을 경우 제외)
  277. if(model.getValue("/root/temp/returnsymp/cnfmyn") == "Y"){
  278. if(model.getValue("/root/temp/returnsymp/symp") == "" || model.getValue("/root/temp/returnsymp/sympcnts") == "") {
  279. model.setValue("/root/send/symp", "");
  280. model.makeValue("/root/send/sympcnts", "");
  281. model.makeValue("/root/send/sympno", "");
  282. } else {
  283. model.setValue("/root/send/symp", model.getValue("/root/temp/returnsymp/symp") + "^" + model.getValue("/root/temp/returnsymp/sympcnts"));
  284. model.makeValue("/root/send/sympcnts", model.getValue("/root/temp/returnsymp/sympcnts"));
  285. model.makeValue("/root/send/sympno", model.getValue("/root/temp/returnsymp/symp") );
  286. }
  287. model.refresh();
  288. }
  289. ]]>
  290. </script>
  291. </button>
  292. <input id="ipt_sympcnts" ref="/root/send/sympcnts" class="input_search" disabled="true" navindex="8" style="left:115px; top:55px; width:195px; height:19px; "/>
  293. <button id="casrsltbtn" class="icon_search" navindex="11" style="left:579px; top:55px; width:16px; height:16px; ">
  294. <caption/>
  295. <script type="javascript" ev:event="DOMActivate">
  296. <![CDATA[
  297. //Naranjo Algorithm
  298. model.makeValue("/root/hidden/casrslt","");
  299. model.makeValue("/root/hidden/totscr","");
  300. model.makeValue("/root/hidden/naranjocmt","");
  301. modal("SPADC62600",0,200,300,"SPADC62600","/root/popdata1","/root/popdata");
  302. if ( model.getValue("/root/hidden/casrslt") != ""){
  303. model.setValue( "/root/send/casrslt" , model.getValue("/root/hidden/casrslt") );
  304. //model.setValue( "/root/send/totscr" , model.getValue("/root/hidden/totscr") );
  305. model.setValue( "/root/send/naranjocmt" , model.getValue("/root/hidden/naranjocmt") );
  306. model.refresh();
  307. }
  308. ]]>
  309. </script>
  310. </button>
  311. <select1 id="cmb_casrslt" ref="/root/send/casrslt" class="combo_search" navindex="10" appearance="minimal" style="left:435px; top:55px; width:140px; height:19px; ">
  312. <choices>
  313. <item>
  314. <label>전체</label>
  315. <value></value>
  316. </item>
  317. <item>
  318. <label>DDefault</label>
  319. <value>0</value>
  320. </item>
  321. <item>
  322. <label>Possible</label>
  323. <value>1</value>
  324. </item>
  325. <item>
  326. <label>Probable</label>
  327. <value>2</value>
  328. </item>
  329. <item>
  330. <label>Definite</label>
  331. <value>3</value>
  332. </item>
  333. <item>
  334. <label>Certain</label>
  335. <value>4</value>
  336. </item>
  337. <item>
  338. <label>probable/likely</label>
  339. <value>5</value>
  340. </item>
  341. <item>
  342. <label>possible</label>
  343. <value>6</value>
  344. </item>
  345. <item>
  346. <label>unlikely</label>
  347. <value>7</value>
  348. </item>
  349. <item>
  350. <label>conditional/unclassified</label>
  351. <value>8</value>
  352. </item>
  353. <item>
  354. <label>unassessible/unclassifiable</label>
  355. <value>9</value>
  356. </item>
  357. </choices>
  358. </select1>
  359. <!--
  360. <button id="btn_koralgo" class="icon_search" navindex="12" style="left:599px; top:55px; width:16px; height:16px; ">
  361. <caption/>
  362. <script type="javascript" ev:event="DOMActivate">
  363. <![CDATA[
  364. model.makeValue("/root/hidden/koralgo", model.getValue("/root/send/koralgo"));
  365. model.makeValue("/root/hidden/totscr", model.getValue("/root/send/totscr"));
  366. model.makeValue("/root/popdata1/koralgo", model.getValue("/root/send/koralgo"));
  367. modal("SPADC62800",0,200,300,"SPADC62800","/root/popdata1","/root/popdata");
  368. model.setValue( "/root/hidden/srchinfo/koralgo" , model.getValue("/root/hidden/koralgo") );
  369. model.setValue( "/root/send/totscr" , model.getValue("/root/hidden/totscr") );
  370. ]]>
  371. </script>
  372. </button>
  373. -->
  374. </group>
  375. <select id="chk_ward" ref="/root/send/srchwardcd" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="8" direction="downacross" sep="," style="left:360px; top:40px; width:205px; height:15px; background-color:#e5eae9; border-style:none; ">
  376. <choices>
  377. <itemset nodeset="/root/hidden/deptlist/ward">
  378. <label ref="wardnm"/>
  379. <value ref="wardcd"/>
  380. </itemset>
  381. </choices>
  382. <script type="javascript" ev:event="onclick">
  383. <![CDATA[
  384. var tmpVal = model.getValue("/root/send/srchwardcd");
  385. var wardCode = "";
  386. if(chk_ward.mouseRow == 0 && chk_ward.mouseCol == 0 ){
  387. if (tmpVal.indexOf("T") > -1) {
  388. var wardCnt = model.getXPathValue("count(/root/hidden/deptlist/ward)");
  389. for (var i = 1; i <= wardCnt; i++) {
  390. wardCode += model.getValue("/root/hidden/deptlist/ward["+i+"]/wardcd")+",";
  391. }
  392. }
  393. model.setValue("/root/send/srchwardcd", wardCode);
  394. chk_ward.refresh();
  395. }
  396. if (tmpVal.indexOf("T") > -1 ){
  397. ipt_wardnm.value = chk_ward.label.substr(3,chk_ward.label.length);
  398. } else {
  399. ipt_wardnm.value = chk_ward.label;
  400. }
  401. // if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
  402. ]]>
  403. </script>
  404. </select>
  405. </group>
  406. </xhtml:body>
  407. </xhtml:html>