123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title/>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <documentinfo/>
- <cdainfo/>
- </main>
- <send>
- <searchcda>
- <documentuniqueid/>
- <repositoryid/>
- </searchcda>
- <search>
- <fromdd/>
- <todd/>
- <documentuniqueid/>
- <pid/>
- <classcode/>
- <pidgb/>
- </search>
- </send>
- <init>
- <openerparam>
- <patientid/>
- <documentuniqueid/>
- <repositoryid/>
- <entryuuid/>
- </openerparam>
- </init>
- <hidden>
- <classcodeinfo>
- <list>
- <value>57133-1</value>
- <label>의뢰서</label>
- </list>
- <list>
- <value>11488-4</value>
- <label>회신서</label>
- </list>
- <list>
- <value>18761-7</value>
- <label>회송서</label>
- </list>
- <list>
- <value>34133-9</value>
- <label>요약지</label>
- </list>
- <list>
- <value>57016-8</value>
- <label>동의/철회서</label>
- </list>
- </classcodeinfo>
- </hidden>
- <tmp/>
- </root>
- </instance>
- <submission id="TRARC02510" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchcda" resultref="/root/main/cdainfo"/>
- <submission id="TRARC02514" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/cdainfo"/>
- <submission id="TRARC02520" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/documentinfo"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fInit();
-
-
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- var chk;
- var timerId;
-
- function fInit(){
-
- // 뷰어 초기화
- fInitView();
-
- if(checkOpener()){
- model.setValue("/root/send/search/pidgb", "MPIID");
- model.setValue("/root/send/search/pid", opener.javascript.getParameter("SPARC02820_PARAM1"));
-
- model.setValue("/root/send/searchcda/documentuniqueid", opener.javascript.getParameter("SPARC02820_PARAM2"));
- model.setValue("/root/send/searchcda/repositoryid", opener.javascript.getParameter("SPARC02820_PARAM3"));
-
- //model.setValue("/root/init/openerparam/patientid",opener.javascript.getParameter("SPARC02820_PARAM1"));
- //model.setValue("/root/init/openerparam/documentuniqueid",opener.javascript.getParameter("SPARC02820_PARAM2"));
- //model.setValue("/root/init/openerparam/repositoryid",opener.javascript.getParameter("SPARC02820_PARAM3"));
- //model.setValue("/root/init/openerparam/entryuuid",opener.javascript.getParameter("SPARC02820_PARAM4"));
-
- fSearchDocumentList();
-
- var deprecatedyn = opener.javascript.getParameter("SPARC02820_PARAM4");
- if(deprecatedyn == "취소"){
- messageBox("해당 의뢰서는 취소되었으므로 교류 문서 리스트에 나오지 않습니다.","E999");
- }else{
- fSearchCDA();
- }
-
- }else{
- model.setValue("/root/send/search/pidgb", "PID");
-
- // 1개월전으로 초기값 세팅
- var fromdd = CurrentDate.toDate().getAddDate(-1,"M").getDateFormat();
- model.setValue("/root/send/search/fromdd", fromdd);
-
- var CurrentDate = getCurrentDate();
- model.setValue("/root/send/search/todd", CurrentDate);
-
- }
-
-
- //timerId = window.setInterval("fRecursiveInitLoad()",200);
- model.refresh();
-
- }
-
- // 뷰어 초기화
- function fInitView(){
- object1.Navigate("about:blank","" ,"_self", "", "");
- }
-
- function fRecursiveInitLoad(){
- if(chk == null) return;
- else{
- window.clearInterval(timerId);
-
- var documentuniqueid = model.getValue("/root/init/openerparam/documentuniqueid");
- var repositoryid = model.getValue("/root/init/openerparam/repositoryid");
- model.setValue("/root/send/searchcda/documentuniqueid",documentuniqueid);
- model.setValue("/root/send/searchcda/repositoryid",repositoryid);
- fSearchCDA();
-
- var entryuuid = model.getValue("/root/init/openerparam/entryuuid");
- var patientid = model.getValue("/root/init/openerparam/patientid");
- model.setValue("/root/send/searchdocument/entryuuid",entryuuid);
- model.setValue("/root/send/searchdocument/patientid",patientid);
- fSearchDocumentList();
-
-
- model.refresh();
- }
- }
-
-
- function fSearchCDA(){
-
- if (submit("TRARC02510",false)) {
-
- var cdaxml = model.getValue("/root/main/cdainfo/cda/cdaxml");
-
- fHIEView(cdaxml);
-
- }
- }
-
- // 동의서 및 철회서 뷰
- function fHIEView(cdaxml){
- var doc = object1.Document;
- var objDom = doc.body;
- objDom.innerHTML = cdaxml;
- window.activate();
-
- }
-
- // 교류 문서 리스트 조회
- function fSearchDocumentList(){
-
- model.removenode("/root/main/documentinfo");
- model.makeNode("/root/main/documentinfo");
- submit("TRARC02520",false);
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1200" pageheight="900" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
- <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; ">
- <col ref="creationtime" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="classcode" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/classcodeinfo/list">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="authorinstitution_name"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var row = grd_list.row;
- if(row < 1) return;
-
- model.setValue("/root/send/searchcda/documentuniqueid",model.getValue("/root/main/documentinfo/documentlist["+ (row) + "]/documentuniqueid"));
- model.setValue("/root/send/searchcda/repositoryid",model.getValue("/root/main/documentinfo/documentlist["+ (row) + "]/repositoryid"));
-
- fSearchCDA();
-
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <caption id="caption75" class="tit_2" style="left:10px; top:78px; width:156px; height:13px; ">교류 문서 리스트</caption>
- <line id="line102" class="line_1" style="x1:5px; y1:94px; x2:300px; y2:94px; "/>
- <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:174px; height:14px; ">HIE 환자별 문서 상세 조회</caption>
- <group id="group1" style="left:5px; top:20px; width:1190px; height:55px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1190px; height:55px; "/>
- <line id="line8" class="line_4" style="x1:1100px; y1:10px; x2:1100px; y2:45px; "/>
- <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; "/>
- <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; "/>
- <caption id="caption7" class="search_no_b" style="left:641px; top:18px; width:12px; height:17px; ">~</caption>
- <caption id="caption9" class="search_name" style="left:470px; top:17px; width:94px; height:17px; ">기 간 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1120px; top:15px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/send/search/pid");
- if(isNull(pid)){
- messageBox("환자정보는 필수입니다.","E999");
- return;
- }
-
- // 문서리스트 조회
- fSearchDocumentList();
-
- // 뷰어 초기화
- fInitView();
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <input id="ipt_hngnm" ref="/root/send/search/pid" class="input_s_essential" style="left:205px; top:18px; width:215px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode==13)
- {
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_classcode" ref="/root/send/search/classcode" class="combo_default" appearance="minimal" style="left:985px; top:18px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/classcodeinfo/list">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" style="left:890px; top:17px; width:86px; height:17px; ">문서구분 :</caption>
- <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; ">
- <choices>
- <item>
- <label>환자번호</label>
- <value>PID</value>
- </item>
- <item>
- <label>환자번호(GID)</label>
- <value>MPIID</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.resetInstanceNode("/root/send/search/pid");
- model.refresh();
- ]]>
- </script>
- </select1>
- </group>
- <line id="line1" class="line_1" style="x1:305px; y1:94px; x2:1195px; y2:94px; "/>
- <caption id="caption1" class="tit_2" style="left:305px; top:78px; width:156px; height:13px; ">문서 보기</caption>
- <group id="group4" style="left:305px; top:100px; width:890px; height:785px; background-color:#c0c0c0; ">
- <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; ">
- <script type="javascript" ev:event="TitleChange(Text)">
- <![CDATA[
- /*
- if( chk != Text ) {
- chk = Text;
-
- if( Text == "about:blank" ) {
- alert("2");
- var doc = object1.Document;
- var objDom = doc.body;
- objDom.innerHTML = model.getValue("/root/main/cdainfo/cdalist/cdaxml");
-
- window.activate();
- }
- }
- */
- ]]>
- </script>
- <script type="javascript" ev:event="NavigateComplete2(pDisp, URL)">
- <![CDATA[
- //fSearch();
- ]]>
- </script>
- </object>
- </group>
- </xhtml:body>
- </xhtml:html>
|