123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <ptno/>
- <dtbe/>
- <dten/>
- <iemr>
- <pid/>
- <orddeptcd/>
- <indd/>
- <docucd/>
- <ioflag/>
- </iemr>
- </send>
- <main>
- <patientinfo>
- <ptjn/>
- <ptsx/>
- <ptnm/>
- </patientinfo>
- <treatinfo>
- <oyrae>
- <clcd/>
- <clnm/>
- <indt/>
- <urcd/>
- <trty/>
- <pgto/>
- <datachojin/>
- </oyrae>
- <ibwon>
- <clcd/>
- <clnm/>
- <indt/>
- <fmcd/>
- <fmnm/>
- <trty/>
- <pgto/>
- </ibwon>
- <form>
- <clcd/>
- <clnm/>
- <indt/>
- <fmcd/>
- <fmnm/>
- <trty/>
- <pgto/>
- </form>
- </treatinfo>
- </main>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var today = new Date();
- //var prevm = new Date(today - (1000 * 60 * 60 * 24 * 90)); // today의 90일전
- //model.setValue("/root/send/dtbe", convDate2String(prevm));
- model.setValue("/root/send/dten", convDate2String(today));
- model.refresh();
-
- model.setFocus("inputPtno");
- ]]>
- </script>
- <submission id="TRMPL03101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/patientinfo"/>
- <submission id="TRMPL03102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/treatinfo/oyrae"/>
- <submission id="TRMPL03103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/treatinfo/ibwon"/>
- <submission id="TRMPL03104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/treatinfo/form"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 입력한 Date 날짜를 String YYYYMMDD 로 반환한다.
- function convDate2String(value)
- {
- var year = value.getYear();
- var month = value.getMonth() + 1;
- var day = value.getDate();
-
- return "" + year +
- ((("" + month).length == 1) ? "0" + month : month) +
- ((("" + day).length == 1) ? "0" + day : day);
- }
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- // tree를 구성한다.
- function makeTreeNode(label, value, depth, count)
- {
- model.makeNode("/root/main/item[" + count + "]/label");
- model.makeNode("/root/main/item[" + count + "]/value");
- model.makeNode("/root/main/item[" + count + "]/depth");
- model.setValue("/root/main/item[" + count + "]/label", label);
- model.setValue("/root/main/item[" + count + "]/value", value);
- model.setValue("/root/main/item[" + count + "]/depth", depth);
- }
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- </xhtml:head>
- <xhtml:body>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1165px; y2:25px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:52px; x2:209px; y2:52px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:77px; x2:209px; y2:77px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:102px; x2:209px; y2:102px; "/>
- <line id="line5" class="line_3" style="x1:0px; y1:128px; x2:213px; y2:128px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:160px; height:13px; ">CMR_BitnixViewer_M</caption>
- <caption id="caption2" class="cell_1" style="left:0px; top:30px; width:103px; height:23px; text-align:right; vertical-align:middle; ">환자번호</caption>
- <caption id="caption3" class="cell_1" style="left:0px; top:55px; width:103px; height:23px; text-align:right; vertical-align:middle; ">이름</caption>
- <caption id="caption4" class="cell_1" style="left:0px; top:80px; width:103px; height:23px; text-align:right; vertical-align:middle; ">주민번호</caption>
- <caption id="caption5" class="cell_1" style="left:0px; top:105px; width:103px; height:23px; text-align:right; vertical-align:middle; ">성별</caption>
- <input id="inputPtno" ref="/root/send/ptno" class="input_s_essential" maxlength="10" inputMode="number" style="left:106px; top:31px; width:105px; height:19px; text-align:center; vertical-align:middle; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == 13){
- model.setValue("root/send/ptno", inputPtno.currentText);
-
- // 정보를 초기화 한다.
- model.resetInstanceNode("/root/main/oyrae");
- model.resetInstanceNode("/root/main/ibwon");
- model.resetInstanceNode("/root/main/form");
- // 환자정보를 얻는다.
- submit("TRMPL03101");
-
- // 환자의 외래 내원력 정보를 얻는다.
- submit("TRMPL03102");
-
- // 환자의 입원 내원력 정보를 얻는다.
- submit("TRMPL03103");
-
- // 환자의 서식별 내원력 정보를 얻는다.
- submit("TRMPL03104");
- }
- ]]>
- </script>
- </input>
- <output id="outputPtnm" ref="/root/main/patientinfo/ptnm" style="left:106px; top:56px; width:105px; height:19px; text-align:center; vertical-align:middle; "/>
- <output id="outputPtjn" ref="/root/main/patientinfo/ptjn" style="left:106px; top:81px; width:105px; height:19px; text-align:center; vertical-align:middle; "/>
- <output id="outputPtsx" ref="/root/main/patientinfo/ptsx" style="left:106px; top:106px; width:105px; height:19px; text-align:center; vertical-align:middle; "/>
- <button id="button1" class="btn_sw" group="grpSearchMode" style="left:0px; top:209px; width:48px; height:22px; font-size:9pt; ">
- <caption>외래</caption>
- <toggle case="swSearchMode_case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("swSearchMode_case1");
- model.resetInstanceNode("/root/main/item");
- var srccount = 1;
- var destcount = 1;
- var tempindt = "";
- var tempclnm = "";
- var indt = "";
- while(model.getValue("/root/main/treatinfo/oyrae[" + srccount + "]/clnm") != null && model.getValue("/root/main/treatinfo/oyrae[" + srccount + "]/clnm") != ""){
- if (model.getValue("/root/main/treatinfo/oyrae[" + srccount + "]/clnm") != tempclnm){
- makeTreeNode(model.getValue("/root/main/treatinfo/oyrae[" + srccount + "]/clnm"), 0, 1, destcount);
- destcount++;
- tempindt = "";
- }
- if (model.getValue("/root/main/treatinfo/oyrae[" + srccount + "]/indt") != tempindt){
- indt = model.getValue("/root/main/treatinfo/oyrae[" + srccount + "]/indt");
- indt = indt.substr(0, 4) + "년" + indt.substr(4, 2) + "월" + indt.substr(6, 2) + "일" + " (" + model.getValue("/root/main/treatinfo/oyrae[" + srccount + "]/pgto") + ")";
- makeTreeNode(indt, srccount, 2, destcount);
- // makeTreeNode(model.getValue("/root/main/treatinfo/oyrae[" + srccount + "]/indt"), srccount, 2, destcount);
- destcount++;
- }
- tempindt = model.getValue("/root/main/treatinfo/oyrae[" + srccount + "]/clnm");
- tempclnm = model.getValue("/root/main/treatinfo/oyrae[" + srccount + "]/indt");
- srccount++;
- }
- treeviewOyRae.refresh();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn_sw" group="grpSearchMode" style="left:48px; top:209px; width:48px; height:22px; font-size:9pt; ">
- <caption>입원</caption>
- <toggle case="swSearchMode_case2" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("swSearchMode_case2");
- model.resetInstanceNode("/root/main/item");
- var srccount = 1;
- var destcount = 1;
- var tempindt = "";
- var tempclnm = "";
- var tempfmnm = "";
- var indt = "";
- var fmnm = "";
- while(model.getValue("/root/main/treatinfo/ibwon[" + srccount + "]/indt") != null && model.getValue("/root/main/treatinfo/ibwon[" + srccount + "]/indt") != ""){
- if (model.getValue("/root/main/treatinfo/ibwon[" + srccount + "]/indt") != tempindt){
- indt = model.getValue("/root/main/treatinfo/ibwon[" + srccount + "]/indt");
- indt = indt.substr(0, 4) + "년" + indt.substr(4, 2) + "월" + indt.substr(6, 2) + "일"
- makeTreeNode(indt, 0, 1, destcount);
- // makeTreeNode(model.getValue("/root/main/treatinfo/ibwon[" + srccount + "]/indt"), 0, 1, destcount);
- destcount++;
- tempclnm = "";
- tempfmnm = "";
- }
- if (model.getValue("/root/main/treatinfo/ibwon[" + srccount + "]/clnm") != tempclnm){
- makeTreeNode(model.getValue("/root/main/treatinfo/ibwon[" + srccount + "]/clnm"), 0, 2, destcount);
- destcount++;
- tempfmnm = "";
- }
- if (model.getValue("/root/main/treatinfo/ibwon[" + srccount + "]/fmnm") != tempfmnm){
- makeTreeNode(model.getValue("/root/main/treatinfo/ibwon[" + srccount + "]/fmnm") + " (" + model.getValue("/root/main/treatinfo/ibwon[" + srccount + "]/pgto") + ")", srccount, 3, destcount);
- destcount++;
- }
- tempindt = model.getValue("/root/main/treatinfo/ibwon[" + srccount + "]/indt");
- tempclnm = model.getValue("/root/main/treatinfo/ibwon[" + srccount + "]/clnm");
- tempfmnm = model.getValue("/root/main/treatinfo/ibwon[" + srccount + "]/fmnm");
- srccount++;
- }
- treeviewIbWon.refresh();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn_sw" group="grpSearchMode" style="left:96px; top:209px; width:48px; height:22px; ">
- <caption>서식별</caption>
- <toggle case="swSearchMode_case3" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("swSearchMode_case3");
- var srccount = 1;
- var destcount = 1;
- var tempindt = "";
- var tempclnm = "";
- var tempfmnm = "";
- var indt = "";
- model.resetInstanceNode("/root/main/item");
- while(model.getValue("/root/main/treatinfo/form[" + srccount + "]/fmnm") != null && model.getValue("/root/main/treatinfo/form[" + srccount + "]/fmnm") != ""){
- if (model.getValue("/root/main/treatinfo/form[" + srccount + "]/fmnm") != tempfmnm){
- makeTreeNode(model.getValue("/root/main/treatinfo/form[" + srccount + "]/fmnm"), 0, 1, destcount);
- destcount++;
- tempclnm = "";
- }
- if (model.getValue("/root/main/treatinfo/form[" + srccount + "]/indt") != tempclnm){
- indt = model.getValue("/root/main/treatinfo/form[" + srccount + "]/indt");
- indt = indt.substr(0, 4) + "년" + indt.substr(4, 2) + "월" + indt.substr(6, 2) + "일" + " (" + model.getValue("/root/main/treatinfo/form[" + srccount + "]/pgto") + ")";
- makeTreeNode(indt, srccount, 2, destcount);
- // makeTreeNode(model.getValue("/root/main/treatinfo/form[" + srccount + "]/indt"), srccount, 2, destcount);
- destcount++;
- }
- tempindt = model.getValue("/root/main/treatinfo/form[" + srccount + "]/indt");
- tempfmnm = model.getValue("/root/main/treatinfo/form[" + srccount + "]/fmnm");
- srccount++;
- }
- treeviewForm.refresh();
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:0px; top:230px; width:210px; height:500px; ">
- <case id="swSearchMode_case1" selected="true" style="left:0px; top:0px; width:208px; height:500px; ">
- <treeview id="treeviewOyRae" itemsettype="depth" depth="10" style="left:0px; top:0px; width:210px; height:480px; border-style:none; ">
- <itemset nodeset="/root/main/item">
- <label ref="label"/>
- <value ref="value"/>
- <depth ref="depth"/>
- </itemset>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (treeviewOyRae.value != 0){
- // var formTreeNode = instance1.selectSingleNode("/root/main/treatinfo/form[" + treeviewForm.value + "]").cloneNode(true);
- // var formSendNode = instance1.selectSingleNode("/root/send").cloneNode(true);
- // var sTemp = formSendNode;
- // model.duplicate(sTemp, formTreeNode);
- model.resetInstanceNode("/root/send/iemr");
- model.setValue("/root/send/iemr/pid", model.getValue("/root/send/ptno"));
- model.setValue("/root/send/iemr/orddeptcd", model.getValue("/root/main/treatinfo/oyrae[" + treeviewOyRae.value + "]/clcd"));
- model.setValue("/root/send/iemr/indd", model.getValue("/root/main/treatinfo/oyrae[" + treeviewOyRae.value + "]/indt"));
- // model.setValue("/root/send/iemr/fmcd", model.getValue("/root/main/treatinfo/oyrae[" + treeviewOyRae.value + "]/fmcd"));
- model.setValue("/root/send/iemr/ioflag", model.getValue("/root/main/treatinfo/oyrae[" + treeviewOyRae.value + "]/trty"));
- var iemrNode = instance1.selectSingleNode("/root/send/iemr").cloneNode(true);
- searchChart(iemrNode);
- downloadChart();
- setupChart("ChartView");
- }
- ]]>
- </script>
- </treeview>
- </case>
- <case id="swSearchMode_case2" style="left:0px; top:0px; width:208px; height:500px; ">
- <treeview id="treeviewIbWon" itemsettype="depth" depth="10" style="left:0px; top:0px; width:210px; height:480px; border-style:none; ">
- <itemset nodeset="/root/main/item">
- <label ref="label"/>
- <value ref="value"/>
- <depth ref="depth"/>
- </itemset>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- alert("1");
- alert(treeviewIbWon.value);
- if (treeviewIbWon.value != 0){
- // var ibwonTreeNode = instance1.selectSingleNode("/root/main/treatinfo/ibwon[" + treeviewIbWon.value + "]").cloneNode(true);
- // var ibwonSendNode = instance1.selectSingleNode("/root/send").cloneNode(true);
- // var iemrNode = ibwonSendNode;
- // model.duplicate(iemrNode, ibwonTreeNode);
- alert("1");
- model.resetInstanceNode("/root/send/iemr");
- model.setValue("/root/send/iemr/pid", model.getValue("/root/send/ptno"));
- model.setValue("/root/send/iemr/orddeptcd", model.getValue("/root/main/treatinfo/ibwon[" + treeviewIbWon.value + "]/clcd"));
- model.setValue("/root/send/iemr/indd", model.getValue("/root/main/treatinfo/ibwon[" + treeviewIbWon.value + "]/indt"));
- model.setValue("/root/send/iemr/docucd", model.getValue("/root/main/treatinfo/ibwon[" + treeviewIbWon.value + "]/fmcd"));
- model.setValue("/root/send/iemr/ioflag", model.getValue("/root/main/treatinfo/ibwon[" + treeviewIbWon.value + "]/trty"));
- var iemrNode = instance1.selectSingleNode("/root/send/iemr").cloneNode(true);
- alert("1");
- searchChart(iemrNode);
- downloadChart();
- setupChart("ChartView");
- }
- ]]>
- </script>
- </treeview>
- </case>
- <case id="swSearchMode_case3" style="left:0px; top:0px; width:208px; height:500px; ">
- <treeview id="treeviewForm" itemsettype="depth" depth="10" style="left:0px; top:0px; width:210px; height:480px; vertical-align:middle; border-style:none; ">
- <itemset nodeset="/root/main/item">
- <label ref="label"/>
- <value ref="value"/>
- <depth ref="depth"/>
- </itemset>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (treeviewForm.value != 0){
- // var formTreeNode = instance1.selectSingleNode("/root/main/treatinfo/form[" + treeviewForm.value + "]").cloneNode(true);
- // var formSendNode = instance1.selectSingleNode("/root/send").cloneNode(true);
- // var sTemp = formSendNode;
- // model.duplicate(sTemp, formTreeNode);
- model.resetInstanceNode("/root/send/iemr");
- model.setValue("/root/send/iemr/pid", model.getValue("/root/send/ptno"));
- model.setValue("/root/send/iemr/orddeptcd", model.getValue("/root/main/treatinfo/form[" + treeviewForm.value + "]/clcd"));
- model.setValue("/root/send/iemr/indd", model.getValue("/root/main/treatinfo/form[" + treeviewForm.value + "]/indt"));
- model.setValue("/root/send/iemr/docucd", model.getValue("/root/main/treatinfo/form[" + treeviewForm.value + "]/fmcd"));
- model.setValue("/root/send/iemr/ioflag", model.getValue("/root/main/treatinfo/form[" + treeviewForm.value + "]/trty"));
- var iemrNode = instance1.selectSingleNode("/root/send/iemr").cloneNode(true);
- searchChart(iemrNode);
- downloadChart();
- setupChart("ChartView");
- }
- ]]>
- </script>
- </treeview>
- </case>
- </switch>
- <import id="importIemr" overflow="hidden" src="C:\CMCProject\application\webapps\emr\imgemrweb\xrw\SSMRC03100.xrw" style="left:215px; top:30px; width:720px; height:700px; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:152px; x2:209px; y2:152px; "/>
- <line id="line7" class="line_2" style="x1:0px; y1:177px; x2:209px; y2:177px; "/>
- <line id="line8" class="line_3" style="x1:0px; y1:203px; x2:213px; y2:203px; "/>
- <caption id="caption8" class="cell_1" style="left:0px; top:130px; width:103px; height:23px; text-align:right; vertical-align:middle; ">조회 시작</caption>
- <caption id="caption6" class="cell_1" style="left:0px; top:155px; width:103px; height:23px; text-align:right; vertical-align:middle; ">조회 끝</caption>
- <caption id="caption7" class="cell_1" style="left:0px; top:180px; width:103px; height:23px; text-align:right; vertical-align:middle; ">초진일자</caption>
- <input id="inputDateBegin" ref="/root/send/dtbe" class="input_default" style="left:106px; top:132px; width:105px; height:19px; vertical-align:middle; "/>
- <input id="inputDateEnd" ref="/root/send/dten" class="input_default" style="left:106px; top:157px; width:105px; height:19px; vertical-align:middle; "/>
- <output id="outputDateChoJin" ref="/root/main/treatinfo/oyrae/datachojin" style="left:106px; top:182px; width:105px; height:19px; vertical-align:middle; "/>
- <button id="btnPrint" style="left:215px; top:3px; width:65px; height:20px; text-align:center; vertical-align:middle; background-color:#cce8ff; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- printChart(objThumbView.ShowIndex);
- ]]>
- </script>
- <caption>차트 출력</caption>
- </button>
- </xhtml:body>
- </xhtml:html>
|