SPADC61700_ACS자문의뢰.xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  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>항응고약물(ACS)서비스</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <patinfo>
  11. <pid/>
  12. <sna/>
  13. <hngnm/>
  14. <roomcd/>
  15. <reqdeptnm/>
  16. <requsernm/>
  17. <prcpflag/>
  18. <recvdeptnm/>
  19. <recvusernm/>
  20. </patinfo>
  21. <cnstinfo>
  22. <cnstkind>1</cnstkind>
  23. <cnstseqno/>
  24. <cretno/>
  25. <formrecseq/>
  26. <formcd>0000000964</formcd>
  27. <cnststat/>
  28. <reqdd/>
  29. <reqhm/>
  30. <chosflag/>
  31. <orddd/>
  32. <eryn>N</eryn>
  33. <reqdeptcd/>
  34. <requserid/>
  35. <cnstcnts1/>
  36. <cnstcnts2/>
  37. <cnstcnts3/>
  38. <cnstcnts4/>
  39. <cnstcnts5/>
  40. <cnstcnts6/>
  41. <cnstcnts7/>
  42. <cnstcnts8/>
  43. <cnstflag>3</cnstflag>
  44. <recvdeptcd>3240000000</recvdeptcd>
  45. <cnstcnts30/>
  46. </cnstinfo>
  47. </main>
  48. <send>
  49. <req/>
  50. <srchinfo/>
  51. </send>
  52. <hidden>
  53. <item/>
  54. </hidden>
  55. <paminfo>
  56. </paminfo>
  57. <temp>
  58. <cnstinfo/>
  59. </temp>
  60. </root>
  61. </instance>
  62. <script type="javascript">
  63. <![CDATA[
  64. function finit(){
  65. if(fCnstType()){
  66. model.toggle("case2");
  67. fSetPatinfo();
  68. btn_cnst.disabled = true;
  69. }else{
  70. model.toggle("case1");
  71. var pamInfoCvs = getGlobalVariable("paminfo");
  72. if(!isNull(pamInfoCvs)){ //cvs가 null이 아닌 경우에만 처리함.
  73. model.removeNodeSet ( "/root/paminfo/list" ); //상단화면 정보 초기화
  74. setCSVToNode ( "/root/paminfo", pamInfoCvs );
  75. model.setValue("/root/main/patinfo/pid",model.getValue("/root/paminfo/list/pid"));
  76. var sna = model.getValue("/root/paminfo/list/sex") +"/"+ model.getValue("/root/paminfo/list/age");
  77. model.setValue("/root/main/patinfo/sna", sna);
  78. model.setValue("/root/main/patinfo/hngnm", model.getValue("/root/paminfo/list/hngnm"));
  79. model.setValue("/root/main/patinfo/roomcd", model.getValue("/root/paminfo/list/roomcd"));
  80. model.setValue("/root/main/patinfo/reqdeptnm", getUserInfo("dutplcenm"));
  81. model.setValue("/root/main/cnstinfo/reqdeptcd", getUserInfo("dutplcecd"));
  82. model.setValue("/root/main/patinfo/requsernm", getUserName());
  83. model.setValue("/root/main/cnstinfo/requserid", getUserId());
  84. var prcpflag ="";
  85. var ioflag = model.getValue("/root/paminfo/list/ioflag");
  86. if(ioflag == "O" || ioflag == "S"){
  87. prcpflag = "외래";
  88. model.setValue("/root/main/cnstinfo/orddd", model.getValue("/root/paminfo/list/orddd"));
  89. }else {
  90. prcpflag = "입원";
  91. model.setValue("/root/main/cnstinfo/orddd", model.getValue("/root/paminfo/list/indd"));
  92. }
  93. if(model.getValue("/root/paminfo/list/fsexamflag") == "F"){
  94. prcpflag += "/초진";
  95. }else if(model.getValue("/root/paminfo/list/fsexamflag") =="R"){
  96. prcpflag += "/재진";
  97. }
  98. model.setValue("/root/main/patinfo/prcpflag", prcpflag);
  99. model.setValue("/root/main/cnstinfo/chosflag", model.getValue("/root/paminfo/list/ioflag"));
  100. model.setValue("/root/main/cnstinfo/cretno", model.getValue("/root/paminfo/list/cretno"));
  101. }else{
  102. var msg = messageBox("환자를 ", "C002");
  103. return false;
  104. }
  105. }
  106. model.refresh();
  107. }
  108. function fCnstType(){
  109. if(model.getValue("/root/temp/cnstinfo/formrecseq") == ""){
  110. return false;
  111. }else return true;
  112. }
  113. function fSetPatinfo(){
  114. model.setValue("/root/main/patinfo/pid", model.getValue("/root/temp/cnstinfo/pid"));
  115. model.setValue("/root/main/patinfo/hngnm", model.getValue("/root/temp/cnstinfo/pidnm"));
  116. model.setValue("/root/main/patinfo/reqdeptnm", model.getValue("/root/temp/cnstinfo/reqdeptnm"));
  117. model.setValue("/root/main/patinfo/requsernm", model.getValue("/root/temp/cnstinfo/requsernm"));
  118. model.setValue("/root/main/patinfo/recvdeptnm", model.getValue("/root/temp/cnstinfo/recvdeptnm"));
  119. model.setValue("/root/main/patinfo/recvusernm", model.getValue("/root/temp/cnstinfo/recvusernm"));
  120. model.copyNode("/root/send/srchinfo", "/root/temp/cnstinfo");
  121. submit("TRADC61701");
  122. }
  123. // 현재시간 구하기 : 시간 분
  124. function astgetCurrentTime()
  125. {
  126. var sDate = getNewDate();
  127. rtnTime = (( sDate.getHours() > 9 ) ? sDate.getHours() : "0" + sDate.getHours());
  128. rtnTime = rtnTime.toString() + (( sDate.getMinutes() > 9 ) ? sDate.getMinutes() : "0" + sDate.getMinutes());
  129. return rtnTime;
  130. }
  131. // ACS 자문의뢰 정보 저장
  132. function fSaveCnst(){
  133. if(model.getValue("/root/main/patinfo/pid") != ""){
  134. model.makeNode("/root/main/cnstinfo/pid");
  135. model.setValue("/root/main/cnstinfo/pid", model.getValue("/root/main/patinfo/pid"));
  136. submit("TXADC61701");
  137. model.refresh();
  138. }
  139. }
  140. ]]>
  141. </script>
  142. <script type="javascript" ev:event="xforms-ready">
  143. <![CDATA[
  144. finit();
  145. ]]>
  146. </script>
  147. <submission id="TXADC61701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cnstinfo" replace="instance" resultref="/root/hidden"/>
  148. <submission id="TRADC61701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main"/>
  149. </model>
  150. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  151. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  152. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  153. </xhtml:head>
  154. <xhtml:body pagewidth="490" pageheight="300" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  155. <group id="group1" style="left:0px; top:0px; width:470px; height:255px; ">
  156. <caption id="caption24" class="cell_1" style="left:0px; top:190px; width:130px; height:60px; ">전달사항</caption>
  157. <textarea id="textarea1" ref="/root/main/cnstinfo/cnstcnts30" navindex="5" style="left:135px; top:190px; width:335px; height:60px; "/>
  158. <caption id="caption1" class="tit_2" style="left:5px; top:120px; width:110px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">ACS 자문 의뢰</caption>
  159. <line id="line1" class="line_1" style="x1:0px; y1:140px; x2:470px; y2:140px; "/>
  160. <caption id="caption10" class="cell_1" style="left:0px; top:145px; width:130px; height:20px; ">적응증</caption>
  161. <line id="line2" class="line_2" style="x1:0px; y1:165px; x2:470px; y2:165px; "/>
  162. <caption id="caption11" class="cell_1" style="left:0px; top:167px; width:130px; height:20px; ">Target INR</caption>
  163. <line id="line3" class="line_2" style="x1:0px; y1:187px; x2:470px; y2:187px; "/>
  164. <caption id="caption13" class="cell_1" visibility="hidden" style="left:285px; top:195px; width:130px; height:20px; ">예상복용기간</caption>
  165. <caption id="caption14" class="cell_1" visibility="hidden" style="left:280px; top:200px; width:130px; height:20px; ">관련위험인자</caption>
  166. <caption id="caption8" class="cell_1" visibility="hidden" style="left:155px; top:205px; width:130px; height:20px; ">처방된 항응고제 용량</caption>
  167. <caption id="caption6" visibility="hidden" style="left:275px; top:195px; width:190px; height:15px; ">** Warfarin(COMD or COMD02) (</caption>
  168. <caption id="caption7" visibility="hidden" style="left:365px; top:200px; width:66px; height:15px; ">) mg</caption>
  169. <caption id="caption16" visibility="hidden" style="left:275px; top:195px; width:190px; height:15px; ">Cf) 제안 용량 : 65세 미만 - 5mg</caption>
  170. <caption id="caption17" visibility="hidden" style="left:310px; top:200px; width:90px; height:15px; ">65세 이상 - 2mg</caption>
  171. <input id="ipt_cnstcnts2" ref="/root/main/cnstinfo/cnstcnts2" disabled="true" navindex="2" editable="true" maxlength="33" style="left:290px; top:146px; width:180px; height:19px; ">
  172. <script type="javascript" ev:event="onmaxlength">
  173. <![CDATA[
  174. messageBox("입력가능한 글자수를", "E003");
  175. ]]>
  176. </script>
  177. </input>
  178. <select1 id="cmb_cnstcnts1" ref="/root/main/cnstinfo/cnstcnts1" class="combo_search" navindex="1" appearance="minimal" style="left:135px; top:146px; width:150px; height:19px; ">
  179. <choices>
  180. <item>
  181. <label>Deep vein thrombosis</label>
  182. <value>1</value>
  183. </item>
  184. <item>
  185. <label>Pulmonary embolism</label>
  186. <value>2</value>
  187. </item>
  188. <item>
  189. <label>Recurrent embolism</label>
  190. <value>3</value>
  191. </item>
  192. <item>
  193. <label>Myocardial infarction</label>
  194. <value>4</value>
  195. </item>
  196. <item>
  197. <label>Atrial fibrillation</label>
  198. <value>5</value>
  199. </item>
  200. <item>
  201. <label>Mechanical Prosthetic valve</label>
  202. <value>6</value>
  203. </item>
  204. <item>
  205. <label>Bioprosthetic valve</label>
  206. <value>7</value>
  207. </item>
  208. <item>
  209. <label>PTCA</label>
  210. <value>8</value>
  211. </item>
  212. <item>
  213. <label>Cerebral thrombosis</label>
  214. <value>9</value>
  215. </item>
  216. <item>
  217. <label>Cancer</label>
  218. <value>10</value>
  219. </item>
  220. <item>
  221. <label>Other</label>
  222. <value>11</value>
  223. </item>
  224. </choices>
  225. <script type="javascript" ev:event="xforms-select">
  226. <![CDATA[
  227. if(cmb_cnstcnts1.value == 11){
  228. ipt_cnstcnts2.disabled = false;
  229. }else{
  230. ipt_cnstcnts2.value = "";
  231. ipt_cnstcnts2.disabled = true;
  232. }
  233. ]]>
  234. </script>
  235. </select1>
  236. <select1 id="cmb_cnstcnts3" ref="/root/main/cnstinfo/cnstcnts3" class="combo_search" navindex="3" appearance="minimal" style="left:135px; top:168px; width:150px; height:19px; ">
  237. <choices>
  238. <item>
  239. <label>1.5 - 2.5</label>
  240. <value>1</value>
  241. </item>
  242. <item>
  243. <label>2.0 - 3.0</label>
  244. <value>2</value>
  245. </item>
  246. <item>
  247. <label>2.5 - 3.5</label>
  248. <value>3</value>
  249. </item>
  250. <item>
  251. <label>Other</label>
  252. <value>4</value>
  253. </item>
  254. </choices>
  255. <script type="javascript" ev:event="xforms-select">
  256. <![CDATA[
  257. if(cmb_cnstcnts3.value == 4){
  258. ipt_cnstcnts4.disabled = false;
  259. }else{
  260. ipt_cnstcnts4.value = "";
  261. ipt_cnstcnts4.disabled = true;
  262. }
  263. ]]>
  264. </script>
  265. </select1>
  266. <input id="ipt_cnstcnts4" ref="/root/main/cnstinfo/cnstcnts4" disabled="true" navindex="4" maxlength="33" style="left:290px; top:168px; width:180px; height:19px; ">
  267. <script type="javascript" ev:event="onmaxlength">
  268. <![CDATA[
  269. messageBox("입력가능한 글자수를", "E003");
  270. ]]>
  271. </script>
  272. </input>
  273. <select1 id="cmb_cnstcnts5" ref="/root/main/cnstinfo/cnstcnts5" class="combo_search" visibility="hidden" appearance="minimal" style="left:290px; top:195px; width:150px; height:19px; ">
  274. <choices>
  275. <item>
  276. <label>6주</label>
  277. <value>1</value>
  278. </item>
  279. <item>
  280. <label>3개월</label>
  281. <value>2</value>
  282. </item>
  283. <item>
  284. <label>6개월</label>
  285. <value>3</value>
  286. </item>
  287. <item>
  288. <label>1년</label>
  289. <value>4</value>
  290. </item>
  291. <item>
  292. <label>장기복용</label>
  293. <value>5</value>
  294. </item>
  295. </choices>
  296. </select1>
  297. <select1 id="cmb_cnstcnts6" ref="/root/main/cnstinfo/cnstcnts6" class="combo_search" visibility="hidden" appearance="minimal" style="left:295px; top:195px; width:150px; height:19px; ">
  298. <choices>
  299. <item>
  300. <label>Hypertension</label>
  301. <value>1</value>
  302. </item>
  303. <item>
  304. <label>Diabetes</label>
  305. <value>2</value>
  306. </item>
  307. <item>
  308. <label>Hepatic disease</label>
  309. <value>3</value>
  310. </item>
  311. <item>
  312. <label>Hyperlipidemia</label>
  313. <value>4</value>
  314. </item>
  315. <item>
  316. <label>Hyperthyroidism</label>
  317. <value>5</value>
  318. </item>
  319. <item>
  320. <label>Hypothroidism</label>
  321. <value>6</value>
  322. </item>
  323. <item>
  324. <label>Renal disease</label>
  325. <value>7</value>
  326. </item>
  327. <item>
  328. <label>Other</label>
  329. <value>8</value>
  330. </item>
  331. </choices>
  332. <script type="javascript" ev:event="xforms-select">
  333. <![CDATA[
  334. if(cmb_cnstcnts6.value == 8){
  335. ipt_cnstcnts7.disabled = false;
  336. }else{
  337. ipt_cnstcnts7.value = "";
  338. ipt_cnstcnts7.disabled = true;
  339. }
  340. ]]>
  341. </script>
  342. </select1>
  343. <input id="ipt_cnstcnts7" ref="/root/main/cnstinfo/cnstcnts7" disabled="true" visibility="hidden" maxlength="33" style="left:255px; top:195px; width:180px; height:19px; ">
  344. <script type="javascript" ev:event="onmaxlength">
  345. <![CDATA[
  346. messageBox("입력가능한 글자수를", "E003");
  347. ]]>
  348. </script>
  349. </input>
  350. <input id="ipt_cnstcnts8" ref="/root/main/cnstinfo/cnstcnts8" visibility="hidden" maxlength="10" format="9999999999" style="left:330px; top:195px; width:60px; height:19px; ">
  351. <script type="javascript" ev:event="onmaxlength">
  352. <![CDATA[
  353. messageBox("입력가능한 범위를", "E003");
  354. ]]>
  355. </script>
  356. </input>
  357. <line id="line7" class="line_6" style="x1:0px; y1:251px; x2:470px; y2:251px; "/>
  358. <switch id="switch1" class="sw_no_border" style="left:0px; top:0px; width:470px; height:120px; ">
  359. <case id="case1" selected="true">
  360. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:470px; height:115px; "/>
  361. <output id="output1" ref="/root/main/patinfo/sna" class="output_search" style="left:350px; top:35px; width:110px; height:19px; "/>
  362. <output id="output2" ref="/root/main/patinfo/requsernm" class="output_search" style="left:105px; top:85px; width:110px; height:19px; "/>
  363. <output id="output3" ref="/root/main/patinfo/hngnm" class="output_search" style="left:350px; top:60px; width:110px; height:19px; "/>
  364. <caption id="caption9" class="search_name" style="left:10px; top:35px; width:90px; height:17px; ">병실 :</caption>
  365. <output id="output4" ref="/root/main/patinfo/pid" class="output_search" style="left:350px; top:10px; width:110px; height:19px; "/>
  366. <caption id="caption2" class="search_name" style="left:10px; top:60px; width:90px; height:17px; ">진료과 :</caption>
  367. <caption id="caption3" class="search_name" style="left:10px; top:85px; width:90px; height:17px; ">처방의사 :</caption>
  368. <caption id="caption12" class="search_name" style="left:10px; top:10px; width:90px; height:17px; ">처방구분 :</caption>
  369. <output id="output5" ref="/root/main/patinfo/reqdeptnm" class="output_search" style="left:105px; top:60px; width:110px; height:19px; "/>
  370. <output id="output6" ref="/root/main/patinfo/prcpflag" class="output_search" style="left:105px; top:10px; width:110px; height:19px; "/>
  371. <output id="output7" ref="/root/main/patinfo/roomcd" class="output_search" style="left:105px; top:35px; width:110px; height:19px; "/>
  372. <caption id="caption4" class="search_name" style="left:250px; top:10px; width:90px; height:17px; ">등록번호 :</caption>
  373. <caption id="caption5" class="search_name" style="left:250px; top:35px; width:95px; height:17px; ">성별/나이 :</caption>
  374. <caption id="caption18" class="search_name" style="left:250px; top:60px; width:90px; height:17px; ">이름 :</caption>
  375. </case>
  376. <case id="case2">
  377. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:470px; height:115px; "/>
  378. <output id="output8" ref="/root/temp/cnstinfo/recvdeptnm" class="output_search" style="left:105px; top:60px; width:110px; height:19px; "/>
  379. <output id="output9" ref="/root/temp/cnstinfo/reqdeptnm" class="output_search" style="left:105px; top:10px; width:110px; height:19px; "/>
  380. <output id="output10" ref="/root/temp/cnstinfo/requsernm" class="output_search" style="left:105px; top:35px; width:110px; height:19px; "/>
  381. <caption id="caption15" class="search_name" style="left:10px; top:35px; width:90px; height:17px; ">의뢰자 :</caption>
  382. <caption id="caption19" class="search_name" style="left:10px; top:60px; width:90px; height:17px; ">수신부서 :</caption>
  383. <caption id="caption20" class="search_name" style="left:10px; top:85px; width:90px; height:17px; ">수신자 :</caption>
  384. <caption id="caption21" class="search_name" style="left:10px; top:10px; width:90px; height:17px; ">의뢰부서 :</caption>
  385. <output id="output11" ref="/root/temp/cnstinfo/recvusernm" class="output_search" style="left:105px; top:85px; width:110px; height:19px; "/>
  386. <output id="output12" ref="/root/temp/cnstinfo/pid" class="output_search" style="left:350px; top:10px; width:110px; height:19px; "/>
  387. <caption id="caption22" class="search_name" style="left:250px; top:10px; width:90px; height:17px; ">등록번호 :</caption>
  388. <caption id="caption23" class="search_name" style="left:250px; top:35px; width:95px; height:17px; ">이름 :</caption>
  389. <output id="output13" ref="/root/temp/cnstinfo/pidnm" class="output_search" style="left:350px; top:35px; width:110px; height:19px; "/>
  390. </case>
  391. </switch>
  392. </group>
  393. <group id="group2" style="left:0px; top:255px; width:470px; height:30px; ">
  394. <button id="btn_save" class="btn4_letter2" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:293px; top:5px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  395. <caption>저장</caption>
  396. <script type="javascript" ev:event="DOMActivate">
  397. <![CDATA[
  398. model.setValue("/root/main/cnstinfo/cnststat", "11");
  399. fSaveCnst();
  400. ]]>
  401. </script>
  402. </button>
  403. <button id="btn_close" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:413px; top:5px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  404. <caption>닫기</caption>
  405. <script type="javascript" ev:event="DOMActivate">
  406. <![CDATA[
  407. model.close();
  408. ]]>
  409. </script>
  410. </button>
  411. <button id="btn_cnst" class="btn4_letter2" navindex="6" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:353px; top:5px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  412. <caption>의뢰</caption>
  413. <script type="javascript" ev:event="DOMActivate">
  414. <![CDATA[
  415. if ( messageBox("의뢰내용을","Q002")==6 ){
  416. model.setValue("/root/main/cnstinfo/cnststat", "12");
  417. model.setValue("/root/main/cnstinfo/reqdd", getCurrentDate());
  418. model.setValue("/root/main/cnstinfo/reqhm", astgetCurrentTime());
  419. fSaveCnst();
  420. model.close();
  421. }
  422. ]]>
  423. </script>
  424. </button>
  425. </group>
  426. </xhtml:body>
  427. </xhtml:html>