123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575 |
- <?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:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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>의뢰환자찾기</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <search>
- <patientname/>
- <startdd/>
- <enddd/>
- <hospnm/>
- <drnm/>
- <patflag/>
- <hospgrade/>
- <saveflag/>
- <replflag/>
- <cptype/>
- <reqagntype/>
- <qreplflag/>
- <refereeorgid>1.2.410.200050.582.2.1.1:H</refereeorgid>
- <taskstatuscd/>
- <mpphonno/>
- <rrgstno/>
- <referrerOrganizationName/>
- <indelyn/>
- <referraldocument_documentuniqueid/>
- <referraldocument_repositoryid/>
- <transfermode/>
- </search>
- <reqdata>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <orddeptcd/>
- <orddrid/>
- <fromdd/>
- <todd/>
- <coophospnm/>
- <drnm/>
- <patflag/>
- <hospgrade/>
- <saveflag/>
- <replflag/>
- <qreplflag/>
- </reqdata>
- <doctor/>
- <cond>
- <pid/>
- </cond>
- <req/>
- </send>
- <main>
- <list>
- <rqstlist>
- <orddd/>
- <pid/>
- <hngnm/>
- <patflag/>
- <saveflag/>
- <recdd/>
- <orddeptnm/>
- <orddrnm/>
- <cptype/>
- <reqdd/>
- <coophospnm/>
- <drnm/>
- <cretno/>
- <seqno/>
- <orddeptcd/>
- <orddrid/>
- <reqdd/>
- <coophospnm/>
- <drnm/>
- <clsmatyn/>
- <gradyear/>
- <telno/>
- <faxno/>
- <coopflag/>
- <emailid/>
- <emailaddr/>
- <qreplflag/>
- <reqseqno/>
- </rqstlist>
- <cntinfo>
- <reqcnt/>
- <replcnt/>
- </cntinfo>
- <newElement/>
- </list>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <popupendflag/>
- <patient>
- <patinfo>
- <patyn/>
- </patinfo>
- </patient>
- <hielist/>
- <rrgstnoinfo/>
- </main>
- <init>
- <dept>
- <dept>
- </dept>
- </dept>
- <doctlist>
- <medispcl>
- <doctid/>
- <doctnm/>
- </medispcl>
- </doctlist>
- <hospgrade>
- <A0429>
- </A0429>
- </hospgrade>
- <saveflag>
- <A0497/>
- </saveflag>
- <patflag>
- </patflag>
- <openeryn/>
- <replflag/>
- <repltype>
- <A0423/>
- </repltype>
- <cptype>
- <A0420/>
- </cptype>
- <condcptype>
- <A0420/>
- </condcptype>
- <reqagntype>
- <A0583/>
- </reqagntype>
- <qreplflag>
- <A0636/>
- </qreplflag>
- <hardcd/>
- <wincloseyn>N</wincloseyn>
- <taskstatuscdlist>
- <list>
- <label>전체</label>
- <value/>
- </list>
- <list>
- <label>의뢰/회송</label>
- <value>REQUEST/TRANSFER</value>
- </list>
- <list>
- <label>예약</label>
- <value>SCHEDULE</value>
- </list>
- <list>
- <label>진료</label>
- <value>PERFORM</value>
- </list>
- <list>
- <label>의뢰</label>
- <value>REQUEST</value>
- </list>
- <list>
- <label>회송</label>
- <value>TRANSFER</value>
- </list>
- </taskstatuscdlist>
- <tasklist>
- <list>
- <label>의뢰</label>
- <value>REQUEST</value>
- </list>
- <list>
- <label>예약</label>
- <value>SCHEDULE</value>
- </list>
- <list>
- <label>진료</label>
- <value>PERFORM</value>
- </list>
- <list>
- <label>회송</label>
- <value>TRANSFER</value>
- </list>
- </tasklist>
- <statuslist>
- <list>
- <label>완료</label>
- <value>COMPLETED</value>
- </list>
- <list>
- <label>읽음</label>
- <value>CONFIRMED</value>
- </list>
- <list>
- <label>실패</label>
- <value>FAILED</value>
- </list>
- <list>
- <label>진행중</label>
- <value>IN_PROGRESS</value>
- </list>
- <list>
- <label>회신함</label>
- <value>IN_PROGRESS_WITH_REPLY</value>
- </list>
- <list>
- <label>회신완료</label>
- <value>IN_PROGRESS_WITH_REPLY_COMPLETED</value>
- </list>
- <list>
- <label>회신읽음</label>
- <value>IN_PROGRESS_WITH_REPLY_CONFIRMED</value>
- </list>
- <list>
- <label>방문</label>
- <value>VISITED</value>
- </list>
- <list>
- <label>종료</label>
- <value>CLOSED</value>
- </list>
- <list>
- <label>문서취소</label>
- <value>DEPRECATED</value>
- </list>
- </statuslist>
- <deptlist/>
- </init>
- <temp>
- <hardcode/>
- </temp>
- <tmp/>
- <hidden/>
- </root>
- </instance>
- <submission id="TRARC00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/hielist"/>
- <submission id="TRARC00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/rrgstno"/>
- <submission id="TRARC00108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden"/>
- <submission id="TRARC00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/init/deptlist"/>
- <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/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/common.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../ast/soclworkweb/js/AWMCommon.js"/>
- <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript">
- <![CDATA[
- // 초기값
- function fInit()
- {
- // 조회기간을 한달로 설정
- var CurrentDate = getCurrentDate();
- model.setValue("/root/send/search/enddd", CurrentDate);
-
- var fromdd = CurrentDate.toDate().getAddDate(-1,"M").getDateFormat();
- model.setValue("/root/send/search/startdd", fromdd);
-
- model.setValue("/root/send/search/taskstatuscd", "REQUEST/TRANSFER");
- model.setValue("/root/send/search/transfermode","RECEIVE");
-
- btn_received.selected = true;
-
- submit("TRARC00109");
-
- fGetHIEList();
-
- model.refresh();
- }
- function fGetHIEList() {
- submit("TRARC00105");
-
- var NodeCnt = getNodesetCount("/root/main/hielist");
- for(var i = 1; i <= NodeCnt; i++){
- if( model.getValue("/root/main/hielist["+i+"]/deprecatedyn") == "취소" ){
- grd_list.cellstyle("background-color", i+1, 1, i+1, grd_list.cols-1) ="#999999";
- }
- }
- //grd_list.refresh();
- }
-
- function fHIEReferView(row) {
- var documentuniqueid = model.getValue("/root/main/hielist["+(row-1)+"]/documentuniqueid");
- var repositoryid = model.getValue("/root/main/hielist["+(row-1)+"]/repositoryid");
- var patientid = model.getValue("/root/main/hielist["+(row-1)+"]/patientid");
- var deprecatedyn = model.getValue("/root/main/hielist["+(row-1)+"]/deprecatedyn");
- //var entryuuid = model.getValue("/root/main/hielist["+(row-1)+"]/referraldocument_entryuuid");
-
- setParameter("SPARC02820_PARAM1",patientid);
- setParameter("SPARC02820_PARAM2",documentuniqueid);
- setParameter("SPARC02820_PARAM3",repositoryid);
- setParameter("SPARC02820_PARAM4",deprecatedyn);
-
- modal("SPARC02820");
-
- /*
- var documentuniqueid = model.getValue("/root/main/hielist["+(row-1)+"]/documentuniqueid");
- var repositoryid = model.getValue("/root/main/hielist["+(row-1)+"]/repositoryid");
- var globalid = model.getValue("/root/main/hielist["+(row-1)+"]/globalid");
-
- model.makeValue("/root/send/search/documentuniqueid",documentuniqueid);
- model.makeValue("/root/send/search/repositoryid",repositoryid);
-
- //debugger;
- if (submit("TRARC02510")) {
-
- var cdaxml = model.getValue("/root/tmp/reqinfo/reqinfo/cdaxml");
- cdaxml = cdaxml.substr(cdaxml.indexOf("<ClinicalDocument"));
-
- //var sysMessgeObj = getViewer("sysMessage");
- //sysMessgeObj.window.javascript.fHieViewerPopup(cdaxml);
- setParameter("SPARC02820_PARAM1",cdaxml);
- setParameter("SPARC02820_PARAM2",globalid);
- setParameter("SPARC02820_PARAM3",documentuniqueid);
-
- modal("SPARC02820");
-
- }
- */
-
-
-
-
-
- }
-
- /*
- 화면 접기/펼치기 (u: 펼치기, f: 접기)
- */
- function fViewChange(flag){
- if(flag == "u"){
- grd_list.attribute("width") = "987px";
- }else if(flag == "f"){
- grd_list.attribute("width") = "987px";
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1200" pageheight="700" guideline="1,17;500,500;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:1172px; height:685px; ">
- <group id="grp_tle" style="left:0px; top:0px; width:860px; height:13px; ">
- <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:297px; height:14px; ">HIE 의뢰환자리스트(의료정보교류대상환자)</caption>
- </group>
- <group id="group1" style="left:0px; top:25px; width:1157px; height:55px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1157px; height:55px; "/>
- <line id="line8" class="line_4" style="x1:970px; y1:10px; x2:970px; y2:45px; "/>
- <input id="ipt_fromdd" ref="/root/send/search/startdd" class="input_search" inputtype="date" style="left:100px; top:18px; width:85px; height:19px; vertical-align:top; "/>
- <input id="ipt_todd" ref="/root/send/search/enddd" class="input_search" inputtype="date" style="left:199px; top:18px; width:85px; height:19px; vertical-align:top; "/>
- <caption id="caption7" class="search_no_b" style="left:186px; top:18px; width:12px; height:17px; ">~</caption>
- <caption id="caption9" class="search_name" style="left:15px; top:17px; width:94px; height:17px; ">조회기간 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:980px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fromdd = model.getValue("/root/send/search/startdd");
- var enddd = model.getValue("/root/send/search/enddd");
- if(isNull(fromdd) || isNull(enddd)){
- messageBox("의뢰일자는 필수입니다.","E999");
- return;
- }
-
- fGetHIEList();
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <input id="ipt_hngnm" ref="/root/send/search/patientname" style="left:600px; top:17px; width:75px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode==13)
- {
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" style="left:515px; top:17px; width:94px; height:17px; ">환자명 :</caption>
- <select1 id="cmb_taskstatuscd" ref="/root/send/search/taskstatuscd" class="combo_default" appearance="minimal" style="left:825px; top:18px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/taskstatuscdlist/list">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="search_name" style="left:295px; top:17px; width:95px; height:17px; ">병원명:</caption>
- <caption id="caption5" class="search_name" style="left:715px; top:17px; width:105px; height:17px; ">진행상태 :</caption>
- <input id="input2" ref="/root/send/search/hospnm" style="left:390px; top:17px; width:105px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode==13)
- {
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="button1" class="btn1_letter4" style="left:1045px; top:17px; width:80px; height:22px; ">
- <caption>상세조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_list.row;
- if(row < 2){
- messageBox("조회할 대상이 선택되지 않았습니다","I");
- return;
- }
-
-
- /*
- var taskstatusnm = model.getValue("/root/main/hielist["+row+"]/currenttaskstatusnm");
- if(taskstatusnm == "의뢰" ){
- messageBox("의뢰상태인 경우 조회가 불가합니다","E");
- return;
- }
- */
- fHIEReferView(row);
-
- ]]>
- </script>
- </button>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:106px; x2:1157px; y2:106px; "/>
- <datagrid id="grd_list" nodeset="/root/main/hielist" caption="referraldocumentuniqueid^ entryuuid^sender_organization_identifier^repositoryid^documentuniqueid^globalid^intendedrecipientoid^intendedrecipientdeptid^transfermode^reqinstitutedept^reqinstitute^referralstatus_referralstatusid^referralstatus_referralstatusinstanceid^referralstatus_referraldocumentuniqueid^referralstatus_repositoryid^referralstatus_mpiid^referralstatus_patientname^referralstatus_status^상태^성명^생년월일^환자전화번호^의뢰자^의뢰자^의뢰자^의뢰자^수신자^수신자^수신자^세부상태^취소여부^예약희망일시^생성시간|referraldocumentuniqueid^ entryuuid^sender_organization_identifier^repositoryid^documentuniqueid^globalid^intendedrecipientoid^intendedrecipientdeptid^transfermode^reqinstitutedept^reqinstitute^referralstatus_referralstatusid^referralstatus_referralstatusinstanceid^referralstatus_referraldocumentuniqueid^referralstatus_repositoryid^referralstatus_mpiid^referralstatus_patientname^referralstatus_status^상태^성명^생년월일^환자전화번호^요양기호^의뢰병원^진료과^진료의사^수신병원^진료과^진료의사^세부상태^취소여부^예약희망일시^생성시간" colsep="^" colwidth="9, 7, 7, 18, 13, 11, 6, 7, 6, 9, 7, 9, 7, 9, 8, 9, 9, 11, 54, 55, 57, 87, 68, 105, 86, 54, 100, 91, 55, 59, 33, 99, 103" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:110px; width:1157px; height:565px; ">
- <col ref="documentuniqueid" visibility="hidden"/>
- <col ref="patientid" visibility="hidden"/>
- <col ref="doctype" visibility="hidden"/>
- <col ref="repositoryid" visibility="hidden"/>
- <col ref="uniqueid" visibility="hidden"/>
- <col ref="intendedrecipientid" visibility="hidden"/>
- <col ref="intendedrecipientoid" visibility="hidden"/>
- <col ref="intendedrecipientdeptid" visibility="hidden"/>
- <col ref="transfermode" visibility="hidden"/>
- <col ref="reqinstitutedept" visibility="hidden"/>
- <col ref="reqinstitute" visibility="hidden"/>
- <col ref="referralstatus_referralstatusid" visibility="hidden"/>
- <col ref="referralstatus_referralstatusinstanceid" visibility="hidden"/>
- <col ref="referralstatus_referraldocumentuniqueid" visibility="hidden"/>
- <col ref="referralstatus_repositoryid" visibility="hidden"/>
- <col ref="referralstatus_mpiid" visibility="hidden"/>
- <col ref="referralstatus_patientname" visibility="hidden"/>
- <col ref="referralstatus_status" visibility="hidden"/>
- <col ref="currenttaskvalue" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/tasklist/list">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="ptname" style="text-align:center; "/>
- <col ref="referralstatus_patientbirthday" style="text-align:center; "/>
- <col ref="pttelecom" style="text-align:center; "/>
- <col ref="hospid" style="text-align:center; "/>
- <col ref="reqinstitutenm" style="text-align:center; "/>
- <col ref="reqinstitutedept" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/deptlist">
- <label ref="comn_cd_nm"/>
- <value ref="comn_cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="reqdrnm" style="text-align:center; "/>
- <col ref="intendedrecipientonm" style="text-align:center; "/>
- <col ref="intendedrecipientdeptnm" style="text-align:center; "/>
- <col ref="intendedrecipientnm" style="text-align:center; "/>
- <col ref="currentstatusvalue" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/statuslist/list">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="deprecatedyn" style="text-align:center; "/>
- <col ref="intendedrsvdate" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="regdate" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var row = grd_list.row;
- if(row < 2 ) return;
- /*
- var taskstatusnm = model.getValue("/root/main/hielist["+row+"]/taskstatusnm");
- if(taskstatusnm == "삭제"){
- messageBox("이미 삭제된 데이터","I009");
- return;
- }
- */
-
- opener.model.makeNode("/root/main/hiepat");
-
- opener.model.copyNode("/root/main/hiepat",grd_list.getNode( row ));
- // opener.model.copyNode("/root/main/hiepat",datagrid1.getNode(1));
- //alert(grd_list.getNode( row ));
- // model.copyNode("/root/send/req/hospid","/root/send/search");
- model.makeValue("/root/send/req/hospid",opener.model.getValue("/root/main/hiepat/hospid"));
- submit("TRARC00108");
-
- var rgstyn = model.getValue("/root/hidden/hospinfo/rgstyn");
- if (rgstyn == "N") {
- messageBox("해당 요양기관번호로 등록된 병원이 없습니다 등록 후 진행하시기 바랍니다","I");
- return;
- }
-
- // 주민번호 가져와서 세팅
- model.makeValue("/root/send/req/gid",model.getValue("/root/main/hielist["+(row-1)+"]/patientid"));
- submit("TRARC00107");
- var ssn = model.getValue("/root/main/rrgstno/ssn");
- var gender = model.getValue("/root/main/rrgstno/gender");
- opener.model.makeValue("/root/main/hiepat/hie_rrgstno1",ssn.substr(0,6));
- opener.model.makeValue("/root/main/hiepat/hie_rrgstno2",ssn.substr(6,7));
- opener.model.makeValue("/root/main/hiepat/gender",gender);
-
- opener.model.refresh();
-
- window.close();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_list.gridToInstance();
-
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (grd_list.col == grd_list.colRef("hospid")) {
- grd_list.editCell();
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_sent" class="btn_sw" group="tab" selected="false" style="left:90px; top:84px; width:89px; height:22px; ">
- <caption>보낸내역</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/search/transfermode","SEND");
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_received" class="btn_sw" group="tab" selected="true" style="left:1px; top:84px; width:89px; height:22px; ">
- <caption>받은내역</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/search/transfermode","RECEIVE");
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|