SPMMR05500_환자수진이력.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  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. <pathistlist>
  11. <pid/>
  12. <instcd/>
  13. <hngnm/>
  14. <engnm/>
  15. <chinm/>
  16. <rrgstno1/>
  17. <rrgstno2/>
  18. <orddd/>
  19. <orddeptnm/>
  20. <brthdd/>
  21. <sex/>
  22. <age/>
  23. <addr/>
  24. <btype/>
  25. <rh/>
  26. <forgeryn/>
  27. <nati/>
  28. <psptno/>
  29. <tabtype/>
  30. <issamt/>
  31. <testdd/>
  32. <tranflagyn/>
  33. <silsiamt/>
  34. </pathistlist>
  35. <opinfo>
  36. <oprsrvno/>
  37. <instcd/>
  38. <pid/>
  39. <opcnfmdd/>
  40. <orddeptcd/>
  41. <orddeptnm/>
  42. <perfdeptcd/>
  43. <perfdeptnm/>
  44. <perfdrid/>
  45. <perfdrnm/>
  46. <diagcd/>
  47. <diagengnm/>
  48. <diaghngnm/>
  49. <opcd/>
  50. <opengnm/>
  51. <ophngnm/>
  52. <subopcd/>
  53. <subopengnm/>
  54. <subophngnm/>
  55. <indd/>
  56. <dschdd/>
  57. </opinfo>
  58. <mselect>M</mselect>
  59. <orddeptcd/>
  60. <ordtype>A</ordtype>
  61. <examrsltlist>
  62. <examrsltlist/>
  63. </examrsltlist>
  64. <checkflag/>
  65. <ordddfr/>
  66. <ordddto/>
  67. <amtyn/>
  68. </main>
  69. <send>
  70. <patinfo>
  71. <pid/>
  72. <cretno/>
  73. <orddd/>
  74. <orddeptcd/>
  75. <ordtype/>
  76. <nopay/>
  77. <ordddfr/>
  78. <ordddto/>
  79. <amtyn/>
  80. <daykijun/>
  81. </patinfo>
  82. </send>
  83. <init>
  84. <orddept>
  85. <dept>
  86. <depthngnm/>
  87. <deptcd/>
  88. </dept>
  89. </orddept>
  90. <checkpathist/>
  91. <checkophist/>
  92. <item>
  93. </item>
  94. </init>
  95. </root>
  96. </instance>
  97. <script type="javascript" ev:event="xforms-ready">
  98. <![CDATA[
  99. model.removeNodeset(grd_patinfo.nodeset);
  100. model.removeNodeset(grd_oplist.nodeset);
  101. model.refresh();
  102. fInitialize();
  103. ]]>
  104. </script>
  105. <submission id="TRMMR05501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/patinfo" resultref="/root/main/pathistlist"/>
  106. <submission id="TRMMR05502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/patinfo" resultref="/root/main/opinfo"/>
  107. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  108. <submission id="TRMMR05503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/examrsltlist"/>
  109. <submission id="TRMRF01217" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptcd" resultref="/root/main/deptinfo"/>
  110. </model>
  111. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  112. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  113. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  114. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  115. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  116. <script type="javascript" src="../../../emr/medirecweb/js/SPMMR05500.js"/>
  117. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  118. <script type="javascript">
  119. <![CDATA[
  120. var examrsltflag = "N";
  121. ]]>
  122. </script>
  123. </xhtml:head>
  124. <xhtml:body pagewidth="672" pageheight="600" guideline="1,655;2,580;1,672;2,576;2,549;2,400;1,672;2,420;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  125. <button id="btn_confirm" class="btn4_letter2" navindex="8" style="left:539px; top:542px; width:56px; height:22px; ">
  126. <caption>확인</caption>
  127. <script type="javascript" ev:event="DOMActivate">
  128. <![CDATA[
  129. var formcd = opener.javascript.getParameter("SPMMR05500_formcd");
  130. if(formcd == "0000001457"){ //수술확인서인 경우, 수술내역 select정보 처리
  131. fSelectOpInfo();
  132. }else{
  133. fSelectPatInfo();
  134. }
  135. ]]>
  136. </script>
  137. </button>
  138. <select1 id="rdo_ordtype" ref="/root/main/ordtype" appearance="full" cols="3" overflow="visible" style="left:71px; top:5px; width:135px; height:20px; border-style:none; ">
  139. <choices>
  140. <item>
  141. <label>전체</label>
  142. <value>A</value>
  143. </item>
  144. <item>
  145. <label>외래</label>
  146. <value>O</value>
  147. </item>
  148. <item>
  149. <label>입원</label>
  150. <value>I</value>
  151. </item>
  152. </choices>
  153. <script type="javascript" ev:event="xforms-value-changed">
  154. <![CDATA[
  155. fGetPatHist();
  156. ]]>
  157. </script>
  158. </select1>
  159. <button id="btn_srch" class="btn2_letter2" navindex="7" visibility="visible" style="left:610px; top:4px; width:42px; height:19px; ">
  160. <caption>조회</caption>
  161. <script type="javascript" ev:event="onclick">
  162. <![CDATA[
  163. fGetPatHist();
  164. ]]>
  165. </script>
  166. </button>
  167. <datagrid id="grd_patinfo" nodeset="/root/main/pathistlist" caption="^주유형^보조유형^환자성명^등록번호^생성번호^기관코드^영문이름^한문이름^주민등록번호^주민등록번호^내원구분^진료과^담당의사^진료(입원)일^퇴원일^생년월일^성별^나이^주소^혈액형^RH혈액형^외국인여부^국적^여권번호^tabtype" colsep="^" colwidth="30, 54, 54, 72, 75, 75, 55, 65, 65, 50, 50, 56, 85, 66, 92, 82, 75, 36, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" navindex="7" style="left:0px; top:29px; width:655px; height:300px; ">
  168. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  169. <col disabled="true" ref="insukind" type="combo" style="text-align:left; ">
  170. <choices>
  171. <itemset nodeset="/root/init/item/P0008">
  172. <label ref="cdnm"/>
  173. <value ref="cdid"/>
  174. </itemset>
  175. </choices>
  176. </col>
  177. <col disabled="true" ref="suppkind" type="combo" style="text-align:left; ">
  178. <choices>
  179. <itemset nodeset="/root/init/item/P0010">
  180. <label ref="cdnm"/>
  181. <value ref="cdid"/>
  182. </itemset>
  183. </choices>
  184. </col>
  185. <col ref="hngnm" style="text-align:center; "/>
  186. <col ref="pid" style="text-align:center; "/>
  187. <col ref="cretno" visibility="hidden"/>
  188. <col ref="instcd" visibility="hidden"/>
  189. <col ref="engnm" visibility="hidden"/>
  190. <col ref="chinm" visibility="hidden"/>
  191. <col ref="rrgstno1" visibility="hidden"/>
  192. <col ref="rrgstno2" visibility="hidden"/>
  193. <col ref="ordtypenm" style="text-align:center; "/>
  194. <col ref="orddeptnm"/>
  195. <col ref="orddrnm" style="text-align:center; "/>
  196. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  197. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  198. <col ref="brthdd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  199. <col ref="sex" style="text-align:center; "/>
  200. <col ref="age" visibility="hidden"/>
  201. <col ref="addr" visibility="hidden"/>
  202. <col ref="btype" visibility="hidden"/>
  203. <col ref="rh" visibility="hidden"/>
  204. <col ref="forgeryn" visibility="hidden"/>
  205. <col ref="nati" visibility="hidden"/>
  206. <col ref="psptno" visibility="hidden"/>
  207. <col ref="tabtype" visibility="hidden"/>
  208. <col ref="issamt" visibility="hidden"/>
  209. <col ref="testdd" visibility="hidden"/>
  210. <col ref="tranflagyn" visibility="hidden"/>
  211. <col ref="silsiamt" visibility="hidden"/>
  212. <script type="javascript" ev:event="onkeypress">
  213. <![CDATA[
  214. if(event.keyCode == 13){
  215. btn_confirm.dispatch("DOMActivate");
  216. }
  217. ]]>
  218. </script>
  219. <script type="javascript" ev:event="onclick">
  220. <![CDATA[
  221. //수술확인서인 경우, 수술내역을 조회한다.
  222. if(isDataCell()){
  223. if(grd_patinfo.col != grd_patinfo.colRef("chk")){
  224. var checkflag = model.getValue(grd_patinfo.attribute("nodeset") + "[" + grd_patinfo.row + "]/chk");
  225. if(checkflag == "Y"){
  226. model.setValue(grd_patinfo.attribute("nodeset") + "[" + grd_patinfo.row + "]/chk", "N");
  227. }else{
  228. model.setValue(grd_patinfo.attribute("nodeset") + "[" + grd_patinfo.row + "]/chk", "Y");
  229. }
  230. }
  231. if(checkflag != "Y"){
  232. var formcd = opener.javascript.getParameter("SPMMR05500_formcd");
  233. if(formcd == "0000001457"){
  234. var pid = model.getValue(grd_patinfo.attribute("nodeset") + "[" + grd_patinfo.row + "]/pid");
  235. var orddd = model.getValue(grd_patinfo.attribute("nodeset") + "[" + grd_patinfo.row + "]/orddd");
  236. var cretno = model.getValue(grd_patinfo.attribute("nodeset") + "[" + grd_patinfo.row + "]/cretno");
  237. var tabtype = model.getValue(grd_patinfo.attribute("nodeset") + "[" + grd_patinfo.row + "]/tabtype");
  238. model.removeNodeset("/root/main/opinfo");
  239. model.setValue("/root/send/patinfo/pid" , pid);
  240. model.setValue("/root/send/patinfo/orddd" , orddd);
  241. model.setValue("/root/send/patinfo/cretno" , cretno);
  242. model.makeValue("/root/send/patinfo/tabtype" , tabtype);
  243. model.makeValue("/root/send/patinfo/srchmode", "only");//수진이력별 수술이력 (all - 모든 수술이력)
  244. if(submit("TRMMR05502")){
  245. }
  246. }
  247. }
  248. }
  249. ]]>
  250. </script>
  251. </datagrid>
  252. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:655px; y2:25px; "/>
  253. <select1 id="combo6" ref="/root/main/orddeptcd" class="combo_search" navindex="4" appearance="minimal" style="left:314px; top:4px; width:110px; height:19px; ">
  254. <choices>
  255. <itemset nodeset="/root/init/orddept/dept">
  256. <label ref="depthngnm"/>
  257. <value ref="deptcd"/>
  258. </itemset>
  259. </choices>
  260. <script type="javascript" ev:event="xforms-value-changed">
  261. <![CDATA[
  262. fGetPatHist();
  263. ]]>
  264. </script>
  265. </select1>
  266. <caption id="caption2" class="tit_2" style="left:5px; top:335px; width:95px; height:13px; ">수술내역</caption>
  267. <datagrid id="grd_oplist" nodeset="/root/main/opinfo" caption="^예약번호^기관코드^등록번호^수술일자^수술코드^수술명^부수술명^집도과코드^집도과^집도의ID^집도의^진료과코드^진료과^진단코드^진단영문명^입원일^퇴원일" colsep="^" colwidth="31, 100, 100, 100, 70, 100, 100, 100, 100, 90, 100, 60, 100, 90, 100, 100, 70, 70" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:355px; width:655px; height:185px; ">
  268. <col checkvalue="Y,N" ref="checkflag" type="checkbox"/>
  269. <col ref="oprsrvno" visibility="hidden"/>
  270. <col ref="instcd" visibility="hidden"/>
  271. <col ref="pid" visibility="hidden"/>
  272. <col ref="opcnfmdd" format="yyyy-mm-dd"/>
  273. <col ref="opcd" visibility="hidden"/>
  274. <col ref="ophngnm"/>
  275. <col ref="subopengnm" visibility="hidden"/>
  276. <col ref="perfdeptcd" visibility="hidden"/>
  277. <col ref="perfdeptnm"/>
  278. <col ref="perfdrid" visibility="hidden"/>
  279. <col ref="perfdrnm"/>
  280. <col ref="orddeptcd" visibility="hidden"/>
  281. <col ref="orddeptnm"/>
  282. <col ref="diagcd" visibility="hidden"/>
  283. <col ref="diagengnm"/>
  284. <col ref="indd" format="yyyy-mm-dd"/>
  285. <col ref="dschdd" format="yyyy-mm-dd"/>
  286. <script type="javascript" ev:event="ondblclick">
  287. <![CDATA[
  288. ]]>
  289. </script>
  290. <script type="javascript" ev:event="onclick">
  291. <![CDATA[
  292. if(isDataCell()){
  293. if(grd_oplist.col != grd_oplist.colRef("checkflag")){
  294. var checkflag = model.getValue(grd_oplist.nodeset + "[" + grd_oplist.row + "]/checkflag");
  295. if(checkflag == "Y"){
  296. model.setValue(grd_oplist.nodeset + "[" + grd_oplist.row + "]/checkflag", "N");
  297. }else{
  298. model.setValue(grd_oplist.nodeset + "[" + grd_oplist.row + "]/checkflag", "Y");
  299. }
  300. }
  301. }
  302. ]]>
  303. </script>
  304. </datagrid>
  305. <line id="line2" class="line_1" style="x1:0px; y1:350px; x2:655px; y2:350px; "/>
  306. <button id="btn_cncl" class="btn4_letter2" navindex="8" style="left:597px; top:542px; width:56px; height:22px; ">
  307. <caption>취소</caption>
  308. <script type="javascript" ev:event="DOMActivate">
  309. <![CDATA[
  310. opener.javascript.setParameter("SPMMR05500_useyn", "N");
  311. window.close();
  312. ]]>
  313. </script>
  314. </button>
  315. <bool id="bool1" checkvalue="Y,N" ref="/root/init/checkpathist" style="left:3px; top:30px; width:25px; height:25px; ">
  316. <script type="javascript" ev:event="xforms-value-changed">
  317. <![CDATA[
  318. if(bool1.value == "Y"){
  319. for(var i = 1 ; i < grd_patinfo.rows; i++){
  320. model.setValue(grd_patinfo.nodeset + "[" + i + "]/chk", "Y");
  321. }
  322. }else{
  323. for(var i = 1 ; i < grd_patinfo.rows; i++){
  324. model.setValue(grd_patinfo.nodeset + "[" + i + "]/chk", "N");
  325. }
  326. }
  327. model.refresh();
  328. ]]>
  329. </script>
  330. </bool>
  331. <bool id="bool2" checkvalue="Y,N" ref="/root/init/checkophist" style="left:3px; top:355px; width:25px; height:25px; ">
  332. <script type="javascript" ev:event="xforms-value-changed">
  333. <![CDATA[
  334. if(bool2.value == "Y"){
  335. for(var i = 1 ; i < grd_oplist.rows; i++){
  336. model.setValue(grd_oplist.nodeset + "[" + i + "]/checkflag", "Y");
  337. }
  338. }else{
  339. for(var i = 1 ; i < grd_oplist.rows; i++){
  340. model.setValue(grd_oplist.nodeset + "[" + i + "]/checkflag", "N");
  341. }
  342. }
  343. model.refresh();
  344. ]]>
  345. </script>
  346. </bool>
  347. <datagrid id="grd_examrsltlist" nodeset="/root/main/examrsltlist/examrsltlist" visibility="hidden" caption="검사일자" colsep="^" colwidth="86" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:565px; top:29px; width:90px; height:300px; ">
  348. <col ref="execdd" format="yyyy-mm-dd"/>
  349. </datagrid>
  350. <bool id="bool3" ref="/root/main/checkflag" style="left:0px; top:3px; width:25px; height:20px; ">
  351. <script type="javascript" ev:event="xforms-value-changed">
  352. <![CDATA[
  353. grd_examrsltlist.visible = !grd_examrsltlist.visible;
  354. if(examrsltflag == "N"){
  355. var pid = opener.javascript.getParameter("SPMMR05500_pid");
  356. model.removeNodeset("/root/send/reqdata");
  357. model.makeValue("/root/send/reqdata/pid" , pid);
  358. if(submit("TRMMR05503")){
  359. }
  360. examrsltflag = "Y";
  361. }
  362. ]]>
  363. </script>
  364. </bool>
  365. <caption id="caption3" style="left:19px; top:4px; width:55px; height:20px; ">
  366. <![CDATA[검사결과]]>
  367. <script type="javascript" ev:event="onclick">
  368. <![CDATA[
  369. bool3.selected = !bool3.selected;
  370. ]]>
  371. </script>
  372. </caption>
  373. <caption id="caption4" style="left:510px; top:7px; width:15px; height:15px; font-weight:bold; ">~</caption>
  374. <input id="ipt_ordddto" ref="/root/main/ordddto" class="input_search" navindex="6" inputtype="date" style="left:522px; top:4px; width:85px; height:19px; "/>
  375. <input id="ipt_ordddfr" ref="/root/main/ordddfr" class="input_search" navindex="5" inputtype="date" style="left:425px; top:4px; width:85px; height:19px; "/>
  376. <select1 id="daykijun" ref="/root/send/patinfo/daykijun" appearance="full" cols="3" overflow="visible" style="left:204px; top:5px; width:110px; height:20px; border-style:none; ">
  377. <choices>
  378. <item>
  379. <label>수납</label>
  380. <value>0</value>
  381. </item>
  382. <item>
  383. <label>실시</label>
  384. <value>1</value>
  385. </item>
  386. </choices>
  387. </select1>
  388. </xhtml:body>
  389. </xhtml:html>