123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?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>NEDIS 재검토 내역 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <patlist/>
- </main>
- <cond>
- <sdate/>
- <edate/>
- </cond>
- <send>
- <patlist/>
- </send>
- <temp/>
- <init/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRMNE09501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" resultref="/root/main/patlist"/>
- <submission id="TRMNE09502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" resultref="/root/cond/emcdinfo"/>
- <submission id="TRMNE09503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/patnfo"/>
- <submission id="TXMNE09501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
- <script type="javascript">
- <![CDATA[
-
- function fInit() {
-
- var workdd = getCurrentDate();
- model.setValue("/root/cond/sdate", workdd);
- model.setValue("/root/cond/edate", workdd);
-
- submit("TRMNE09502");
-
- model.refresh();
- }
-
- function fSearch() {
-
- model.removeNodeset("/root/send/srchdata");
- model.makeValue("/root/send/srchdata/emcd", model.getValue("/root/cond/emcdinfo/emcd"));
- model.makeValue("/root/send/srchdata/sdate", model.getValue("/root/cond/sdate"));
- model.makeValue("/root/send/srchdata/edate", model.getValue("/root/cond/edate"));
-
- submit("TRMNE09501");
-
- model.refresh();
- }
-
- function fSend() {
-
- model.removeNodeset("/root/send/savedata");
-
- var cnt = getNodesetCnt(model, "/root/main/patlist");
-
- var sHeader = "ptmiemcd▦ptmiidno▦ptmiindt▦ptmiintm▦ptmistat▦sendstat▩";
- var sData = "";
- var ptmiemcd = model.getValue("/root/cond/emcdinfo/emcd");
- var ptmiidno, ptmiindt, ptmiintm, ptmistat, sendstat;
-
- for(var i = 1; i <= cnt; i++) {
- if (model.getValue("/root/main/patlist[" + i + "]/chk") == "Y") {
-
- ptmiidno = model.getValue("/root/main/patlist[" + i + "]/ptmiidno");
- ptmiindt = model.getValue("/root/main/patlist[" + i + "]/ptmiindt");
- ptmiintm = model.getValue("/root/main/patlist[" + i + "]/ptmiintm");
- ptmistat = model.getValue("/root/main/patlist[" + i + "]/ptmistat");
- sendstat = "O";
-
- sData += ptmiemcd + "▦"
- + ptmiidno + "▦"
- + ptmiindt + "▦"
- + ptmiintm + "▦"
- + ptmistat + "▦"
- + sendstat + "▩";
- }
- }
-
- model.makeValue("/root/send/savedata", sHeader + sData);
-
- if (submit("TXMNE09501")) {
- fSearch();
- } else {
- messageBox("전송에 실패하였습니다", "E999");
- }
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="950" pageheight="800" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:15px; ">NEDIS 재검토 내역 관리</caption>
- <group id="group1" style="left:0px; top:62px; width:930px; height:700px; ">
- <datagrid id="grd_patlist" nodeset="/root/main/patlist" class="datagrid2" caption="^환자번호^내원일시^내원일시^전송상태^퇴실일시^퇴실일시^응급진료결과^퇴원일시^퇴원일시^퇴원결과" colsep="^" colwidth="30, 65, 75, 45, 130, 75, 45, 220, 75, 45, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:930px; height:700px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="ptmiidno"/>
- <col ref="ptmiindt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="ptmiintm" format="hh:nn" style="text-align:center; "/>
- <col ref="ptmistat" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>재검토필요(퇴실후)</label>
- <value>B</value>
- </item>
- <item>
- <label>재검토필요(퇴원후)</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="ptmiotdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="ptmiottm" format="hh:nn" style="text-align:center; "/>
- <col ref="ptmiemrt" type="combo">
- <choices>
- <item>
- <label>증상이 호전되어 귀가</label>
- <value>11</value>
- </item>
- <item>
- <label>말기질환으로 귀가(가정간호 등)</label>
- <value>12</value>
- </item>
- <item>
- <label>가망 없는 퇴원(hopeless discharge)</label>
- <value>13</value>
- </item>
- <item>
- <label>자의 퇴원</label>
- <value>14</value>
- </item>
- <item>
- <label>외래방문 후 귀가</label>
- <value>15</value>
- </item>
- <item>
- <label>기타 다른 상태로 귀가</label>
- <value>18</value>
- </item>
- <item>
- <label>병실부족 전원</label>
- <value>21</value>
- </item>
- <item>
- <label>중환자실 부족 전원</label>
- <value>22</value>
- </item>
- <item>
- <label>당장 응급 수술/처치 불가 전원</label>
- <value>23</value>
- </item>
- <item>
- <label>전문 응급의료를 요하여 상급병원 전원</label>
- <value>24</value>
- </item>
- <item>
- <label>경증으로 1,2차 의료기관 전원</label>
- <value>25</value>
- </item>
- <item>
- <label>장기 시설로 전원</label>
- <value>26</value>
- </item>
- <item>
- <label>환자 사정으로 전원</label>
- <value>27</value>
- </item>
- <item>
- <label>기타 다른 사유로 전원</label>
- <value>28</value>
- </item>
- <item>
- <label>일반병실로 입원</label>
- <value>31</value>
- </item>
- <item>
- <label>중환자실로 입원</label>
- <value>32</value>
- </item>
- <item>
- <label>수술실로 간 후 병실로 입원</label>
- <value>33</value>
- </item>
- <item>
- <label>수술실로 간 후 중환자실로 입원</label>
- <value>34</value>
- </item>
- <item>
- <label>기타 다른 사유로 입원</label>
- <value>38</value>
- </item>
- <item>
- <label>내원 시 이미 사망한 상태(DOA)</label>
- <value>41</value>
- </item>
- <item>
- <label>응급실에서 DNR로 사망</label>
- <value>42</value>
- </item>
- <item>
- <label>응급실에서 CPR 후 사망</label>
- <value>43</value>
- </item>
- <item>
- <label>기타 다른 사유로 사망</label>
- <value>48</value>
- </item>
- <item>
- <label>기타</label>
- <value>88</value>
- </item>
- <item>
- <label>미상</label>
- <value>99</value>
- </item>
- </choices>
- </col>
- <col ref="ptmidcdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="ptmidctm" format="hh:nn" style="text-align:center; "/>
- <col ref="ptmidcrt" type="combo">
- <choices>
- <item>
- <label>정상퇴원</label>
- <value>1</value>
- </item>
- <item>
- <label>자의퇴원</label>
- <value>2</value>
- </item>
- <item>
- <label>전원</label>
- <value>3</value>
- </item>
- <item>
- <label>사망</label>
- <value>4</value>
- </item>
- <item>
- <label>탈원</label>
- <value>5</value>
- </item>
- <item>
- <label>가망없는 퇴원</label>
- <value>6</value>
- </item>
- <item>
- <label>기타</label>
- <value>8</value>
- </item>
- </choices>
- </col>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- var iRow = grd_patlist.row;
-
- if(iRow < 1){
- return;
- }
-
- var pid = model.getValue("/root/main/patlist[" + iRow + "]/ptmiidno");
- var orddd = model.getValue("/root/main/patlist[" + iRow + "]/ptmiindt");
-
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/pid", pid);
- model.makeValue("/root/send/reqdata/orddd", orddd);
-
- if (submit("TRMNE09503")) {
-
- var paramstr = model.getValue("/root/temp/patinfo/pid") + "▦" +
- model.getValue("/root/temp/patinfo/orddd") + "▦" +
- model.getValue("/root/temp/patinfo/cretno") + "▦" +
- model.getValue("/root/temp/patinfo/sex") + "▦" +
- model.getValue("/root/temp/patinfo/age") + "▦" +
- "▦" +
- model.getValue("/root/temp/patinfo/patnm") + "▦" +
- model.getValue("/root/temp/patinfo/orddeptcd") + "▦" +
- model.getValue("/root/temp/patinfo/orddeptnm") + "▦" +
- model.getValue("/root/temp/patinfo/orddrid") ;
-
- setParameter("SPMNE04400_param", paramstr);
- modal("SPMNE04400");
-
- setParameter("SPMNE04400_param", "");
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group3" style="left:0px; top:20px; width:930px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:930px; height:35px; "/>
- <button id="btn_srchindxcd" class="btn1_letter2" navindex="5" style="left:696px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <line id="line27" class="line_4" style="x1:683px; y1:7px; x2:683px; y2:29px; "/>
- <caption id="caption1" class="search_name" style="left:19px; top:8px; width:86px; height:17px; vertical-align:middle; ">기 간:</caption>
- <input id="input1" ref="/root/cond/sdate" class="input_s_essential" navindex="1" inputtype="date" style="left:90px; top:9px; width:105px; height:19px; font-weight:bold; text-align:center; "/>
- <button id="btn_save" class="btn1_letter10" style="left:753px; top:7px; width:152px; height:22px; ">
- <caption>수정 없는 재검토 확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSend();
- ]]>
- </script>
- </button>
- <input id="input2" ref="/root/cond/edate" class="input_s_essential" navindex="1" inputtype="date" style="left:220px; top:9px; width:105px; height:19px; font-weight:bold; text-align:center; "/>
- <caption id="caption3" style="left:200px; top:10px; width:15px; height:20px; ">~</caption>
- </group>
- <line id="line13" class="line_1" style="x1:0px; y1:57px; x2:930px; y2:57px; "/>
- </xhtml:body>
- </xhtml:html>
|