SPARC02820_HIE뷰어.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title/>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <documentinfo/>
  11. <cdainfo/>
  12. </main>
  13. <send>
  14. <searchcda>
  15. <documentuniqueid/>
  16. <repositoryid/>
  17. </searchcda>
  18. <search>
  19. <fromdd/>
  20. <todd/>
  21. <documentuniqueid/>
  22. <pid/>
  23. <classcode/>
  24. <pidgb/>
  25. </search>
  26. </send>
  27. <init>
  28. <openerparam>
  29. <patientid/>
  30. <documentuniqueid/>
  31. <repositoryid/>
  32. <entryuuid/>
  33. </openerparam>
  34. </init>
  35. <hidden>
  36. <classcodeinfo>
  37. <list>
  38. <value>57133-1</value>
  39. <label>의뢰서</label>
  40. </list>
  41. <list>
  42. <value>11488-4</value>
  43. <label>회신서</label>
  44. </list>
  45. <list>
  46. <value>18761-7</value>
  47. <label>회송서</label>
  48. </list>
  49. <list>
  50. <value>34133-9</value>
  51. <label>요약지</label>
  52. </list>
  53. <list>
  54. <value>57016-8</value>
  55. <label>동의/철회서</label>
  56. </list>
  57. </classcodeinfo>
  58. </hidden>
  59. <tmp/>
  60. </root>
  61. </instance>
  62. <submission id="TRARC02510" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchcda" resultref="/root/main/cdainfo"/>
  63. <submission id="TRARC02514" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/cdainfo"/>
  64. <submission id="TRARC02520" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/documentinfo"/>
  65. <script type="javascript" ev:event="xforms-ready">
  66. <![CDATA[
  67. fInit();
  68. ]]>
  69. </script>
  70. </model>
  71. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  74. <script type="javascript">
  75. <![CDATA[
  76. var chk;
  77. var timerId;
  78. function fInit(){
  79. // 뷰어 초기화
  80. fInitView();
  81. if(checkOpener()){
  82. model.setValue("/root/send/search/pidgb", "MPIID");
  83. model.setValue("/root/send/search/pid", opener.javascript.getParameter("SPARC02820_PARAM1"));
  84. model.setValue("/root/send/searchcda/documentuniqueid", opener.javascript.getParameter("SPARC02820_PARAM2"));
  85. model.setValue("/root/send/searchcda/repositoryid", opener.javascript.getParameter("SPARC02820_PARAM3"));
  86. //model.setValue("/root/init/openerparam/patientid",opener.javascript.getParameter("SPARC02820_PARAM1"));
  87. //model.setValue("/root/init/openerparam/documentuniqueid",opener.javascript.getParameter("SPARC02820_PARAM2"));
  88. //model.setValue("/root/init/openerparam/repositoryid",opener.javascript.getParameter("SPARC02820_PARAM3"));
  89. //model.setValue("/root/init/openerparam/entryuuid",opener.javascript.getParameter("SPARC02820_PARAM4"));
  90. fSearchDocumentList();
  91. var deprecatedyn = opener.javascript.getParameter("SPARC02820_PARAM4");
  92. if(deprecatedyn == "취소"){
  93. messageBox("해당 의뢰서는 취소되었으므로 교류 문서 리스트에 나오지 않습니다.","E999");
  94. }else{
  95. fSearchCDA();
  96. }
  97. }else{
  98. model.setValue("/root/send/search/pidgb", "PID");
  99. // 1개월전으로 초기값 세팅
  100. var fromdd = CurrentDate.toDate().getAddDate(-1,"M").getDateFormat();
  101. model.setValue("/root/send/search/fromdd", fromdd);
  102. var CurrentDate = getCurrentDate();
  103. model.setValue("/root/send/search/todd", CurrentDate);
  104. }
  105. //timerId = window.setInterval("fRecursiveInitLoad()",200);
  106. model.refresh();
  107. }
  108. // 뷰어 초기화
  109. function fInitView(){
  110. object1.Navigate("about:blank","" ,"_self", "", "");
  111. }
  112. function fRecursiveInitLoad(){
  113. if(chk == null) return;
  114. else{
  115. window.clearInterval(timerId);
  116. var documentuniqueid = model.getValue("/root/init/openerparam/documentuniqueid");
  117. var repositoryid = model.getValue("/root/init/openerparam/repositoryid");
  118. model.setValue("/root/send/searchcda/documentuniqueid",documentuniqueid);
  119. model.setValue("/root/send/searchcda/repositoryid",repositoryid);
  120. fSearchCDA();
  121. var entryuuid = model.getValue("/root/init/openerparam/entryuuid");
  122. var patientid = model.getValue("/root/init/openerparam/patientid");
  123. model.setValue("/root/send/searchdocument/entryuuid",entryuuid);
  124. model.setValue("/root/send/searchdocument/patientid",patientid);
  125. fSearchDocumentList();
  126. model.refresh();
  127. }
  128. }
  129. function fSearchCDA(){
  130. if (submit("TRARC02510",false)) {
  131. var cdaxml = model.getValue("/root/main/cdainfo/cda/cdaxml");
  132. fHIEView(cdaxml);
  133. }
  134. }
  135. // 동의서 및 철회서 뷰
  136. function fHIEView(cdaxml){
  137. var doc = object1.Document;
  138. var objDom = doc.body;
  139. objDom.innerHTML = cdaxml;
  140. window.activate();
  141. }
  142. // 교류 문서 리스트 조회
  143. function fSearchDocumentList(){
  144. model.removenode("/root/main/documentinfo");
  145. model.makeNode("/root/main/documentinfo");
  146. submit("TRARC02520",false);
  147. }
  148. ]]>
  149. </script>
  150. </xhtml:head>
  151. <xhtml:body pagewidth="1200" pageheight="900" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  152. <datagrid id="grd_list" nodeset="/root/main/documentinfo/documentlist" caption="생성일^구분^문서생성병원" colsep="^" colwidth="70, 80, 131" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:99px; width:295px; height:786px; ">
  153. <col ref="creationtime" format="yyyy-mm-dd" style="text-align:center; "/>
  154. <col disabled="true" ref="classcode" type="combo" style="text-align:center; ">
  155. <choices>
  156. <itemset nodeset="/root/hidden/classcodeinfo/list">
  157. <label ref="label"/>
  158. <value ref="value"/>
  159. </itemset>
  160. </choices>
  161. </col>
  162. <col ref="authorinstitution_name"/>
  163. <script type="javascript" ev:event="onclick">
  164. <![CDATA[
  165. var row = grd_list.row;
  166. if(row < 1) return;
  167. model.setValue("/root/send/searchcda/documentuniqueid",model.getValue("/root/main/documentinfo/documentlist["+ (row) + "]/documentuniqueid"));
  168. model.setValue("/root/send/searchcda/repositoryid",model.getValue("/root/main/documentinfo/documentlist["+ (row) + "]/repositoryid"));
  169. fSearchCDA();
  170. model.refresh();
  171. ]]>
  172. </script>
  173. </datagrid>
  174. <caption id="caption75" class="tit_2" style="left:10px; top:78px; width:156px; height:13px; ">교류 문서 리스트</caption>
  175. <line id="line102" class="line_1" style="x1:5px; y1:94px; x2:300px; y2:94px; "/>
  176. <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:174px; height:14px; ">HIE 환자별 문서 상세 조회</caption>
  177. <group id="group1" style="left:5px; top:20px; width:1190px; height:55px; vertical-align:top; ">
  178. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1190px; height:55px; "/>
  179. <line id="line8" class="line_4" style="x1:1100px; y1:10px; x2:1100px; y2:45px; "/>
  180. <input id="ipt_fromdd" ref="/root/send/search/fromdd" class="input_search" inputtype="date" style="left:555px; top:18px; width:85px; height:19px; vertical-align:top; "/>
  181. <input id="ipt_todd" ref="/root/send/search/todd" class="input_search" inputtype="date" style="left:654px; top:18px; width:85px; height:19px; vertical-align:top; "/>
  182. <caption id="caption7" class="search_no_b" style="left:641px; top:18px; width:12px; height:17px; ">~</caption>
  183. <caption id="caption9" class="search_name" style="left:470px; top:17px; width:94px; height:17px; ">기 간 :</caption>
  184. <button id="btn_search" class="btn1_letter2" style="left:1120px; top:15px; width:56px; height:22px; ">
  185. <caption>조회</caption>
  186. <script type="javascript" ev:event="DOMActivate">
  187. <![CDATA[
  188. var pid = model.getValue("/root/send/search/pid");
  189. if(isNull(pid)){
  190. messageBox("환자정보는 필수입니다.","E999");
  191. return;
  192. }
  193. // 문서리스트 조회
  194. fSearchDocumentList();
  195. // 뷰어 초기화
  196. fInitView();
  197. model.refresh();
  198. ]]>
  199. </script>
  200. </button>
  201. <input id="ipt_hngnm" ref="/root/send/search/pid" class="input_s_essential" style="left:205px; top:18px; width:215px; height:19px; ">
  202. <script type="javascript" ev:event="onkeydown">
  203. <![CDATA[
  204. if(event.keyCode==13)
  205. {
  206. inputEnterKey("btn_search", "DOMActivate");
  207. }
  208. ]]>
  209. </script>
  210. </input>
  211. <select1 id="cmb_classcode" ref="/root/send/search/classcode" class="combo_default" appearance="minimal" style="left:985px; top:18px; width:80px; height:19px; ">
  212. <choices>
  213. <itemset nodeset="/root/hidden/classcodeinfo/list">
  214. <label ref="label"/>
  215. <value ref="value"/>
  216. </itemset>
  217. </choices>
  218. </select1>
  219. <caption id="caption5" class="search_name" style="left:890px; top:17px; width:86px; height:17px; ">문서구분 :</caption>
  220. <select1 id="radio1" ref="/root/send/search/pidgb" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:20px; top:17px; width:180px; height:20px; border-style:none; ">
  221. <choices>
  222. <item>
  223. <label>환자번호</label>
  224. <value>PID</value>
  225. </item>
  226. <item>
  227. <label>환자번호(GID)</label>
  228. <value>MPIID</value>
  229. </item>
  230. </choices>
  231. <script type="javascript" ev:event="xforms-value-changed">
  232. <![CDATA[
  233. model.resetInstanceNode("/root/send/search/pid");
  234. model.refresh();
  235. ]]>
  236. </script>
  237. </select1>
  238. </group>
  239. <line id="line1" class="line_1" style="x1:305px; y1:94px; x2:1195px; y2:94px; "/>
  240. <caption id="caption1" class="tit_2" style="left:305px; top:78px; width:156px; height:13px; ">문서 보기</caption>
  241. <group id="group4" style="left:305px; top:100px; width:890px; height:785px; background-color:#c0c0c0; ">
  242. <object id="object1" clsid="{8856f961-340a-11d0-a96b-00c04fd705a2}" AddressBar="false" MenuBar="false" StatusBar="false" Resizable="false" style="left:8px; top:10px; width:875px; height:765px; ">
  243. <script type="javascript" ev:event="TitleChange(Text)">
  244. <![CDATA[
  245. /*
  246. if( chk != Text ) {
  247. chk = Text;
  248. if( Text == "about:blank" ) {
  249. alert("2");
  250. var doc = object1.Document;
  251. var objDom = doc.body;
  252. objDom.innerHTML = model.getValue("/root/main/cdainfo/cdalist/cdaxml");
  253. window.activate();
  254. }
  255. }
  256. */
  257. ]]>
  258. </script>
  259. <script type="javascript" ev:event="NavigateComplete2(pDisp, URL)">
  260. <![CDATA[
  261. //fSearch();
  262. ]]>
  263. </script>
  264. </object>
  265. </group>
  266. </xhtml:body>
  267. </xhtml:html>