123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422 |
- <?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>신생아실병실료산정</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <patinfo>
- <patlist>
- <pid/>
- <hngnm/>
- <indd/>
- <wardnm/>
- <roomcd/>
- <grdeflag/>
- <cretno/>
- <wardcd/>
- </patlist>
- </patinfo>
- <cond>
- <pid/>
- <hngnm/>
- <indd/>
- <wardnm/>
- <roomcd/>
- <grdeflag>G</grdeflag>
- <cretno/>
- <wardcd/>
- <grde/>
- <str/>
- </cond>
- <paminfo>
- </paminfo>
- </main>
- <send>
- <req/>
- </send>
- <init>
- </init>
- <hidden>
- <zsd>
- <resultref/>
- </zsd>
- </hidden>
- <code>
- <codeinfo>
- <codelist/>
- </codeinfo>
- </code>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- var sPath = "/root/main/paminfo";
-
- var gDeptcd;
- var gGrde1;
- var gGrde2;
- var gType1;
- var gType2;
-
- function fInitialize()
- {
-
- var pCode = "'T38', 'T39', 'T54'"; // 조회할 CdGrupID 코드정보 T38:신생아중환자실코드, T39:병상grade코드, T54: 병상type코드
-
- var pDate = getCurrentDate(); //조회기준일자
- fGetNursHardCdInfo(pCode, pDate);
-
- gDeptcd = model.getValue("/root/code/codeinfo/codelist[cdgrupid='T38']/cdid");
- gGrde1 = model.getValue("/root/code/codeinfo/codelist[cdgrupid='T39' and cdid='01']/cdnm");
- gGrde2 = model.getValue("/root/code/codeinfo/codelist[cdgrupid='T39' and cdid='02']/cdnm");
- gType1 = model.getValue("/root/code/codeinfo/codelist[cdgrupid='T54' and cdid='01']/cdnm");
- gType2 = model.getValue("/root/code/codeinfo/codelist[cdgrupid='T54' and cdid='02']/cdnm");
-
- // 환자정보 조회
- var sPamInfo = getGlobalVariable("paminfo");
- setCSVToNode(sPath,sPamInfo,"pamlist");
- pPath = sPath + "/pamlist";
-
- var pid;
- var hngnm;
- var indd;
- var cretno;
- var wardcd;
- var wardnm;
- var roomcd;
-
- if(sPamInfo != ""){
- pid = model.getValue(pPath + "/pid");
- hngnm = model.getValue(pPath + "/hngnm");
- indd = model.getValue(pPath + "/indd");
- cretno = model.getValue(pPath + "/cretno");
- wardnm = model.getValue(pPath + "/wardnm");
- roomcd = model.getValue(pPath + "/roomcd");
- wardcd = model.getValue(pPath + "/wardcd");
- //ipt_rsvdd.value = model.getValue("/root/main/paminfo/pamlist/indd");
-
- model.setValue(ipt_pid.attribute("ref"), pid);
- model.setValue(opt_hngnm.attribute("ref"), hngnm);
- model.setValue(ipt_indd.attribute("ref"), indd);
- model.setValue(ipt_cretno.attribute("ref"), cretno);
- model.setValue(ipt_wardcd.attribute("ref"), wardcd);
- model.setValue(ipt_wardnm.attribute("ref"), wardnm);
- model.setValue(ipt_roomcd.attribute("ref"), roomcd);
-
-
- ipt_pid.refresh();
- opt_hngnm.refresh();
- ipt_indd.refresh();
- ipt_cretno.refresh();
- ipt_wardcd.refresh()
- ipt_wardnm.refresh();
- ipt_roomcd.refresh();
-
-
- fSearch(); //환자및 사망정보 조회
-
- } else {
- model.setfocus("ipt_pid");
- }
-
- }
- function fSearch()
- {
- model.makeNode("/root/send/req");
- model.copynode("/root/send/req", "/root/main/cond");
-
- var pid;
- var hngnm;
- var indd;
- var cretno;
- var wardcd;
- var wardnm;
- var roomcd;
- var grde;
- var fromdd;
- var str = "";
- var grdenm;
-
- if (submit("TRMNN02601")) {
-
- iRow = grd_patlist.rows - grd_patlist.fixedRows;
- if(grd_patlist.rows > grd_patlist.fixedRows) {
-
- pid = grd_patlist.valueMatrix(iRow, grd_patlist.colRef("pid"));
- hngnm = grd_patlist.valueMatrix(iRow, grd_patlist.colRef("hngnm"));
- indd = grd_patlist.valueMatrix(iRow, grd_patlist.colRef("indd"));
- cretno = grd_patlist.valueMatrix(iRow, grd_patlist.colRef("cretno"));
- wardcd = grd_patlist.valueMatrix(iRow, grd_patlist.colRef("wardcd"));
- wardnm = grd_patlist.valueMatrix(iRow, grd_patlist.colRef("wardnm"));
- roomcd = grd_patlist.valueMatrix(iRow, grd_patlist.colRef("roomcd"));
- grde = grd_patlist.valueMatrix(iRow, grd_patlist.colRef("grde"));
- fromdd = grd_patlist.valueMatrix(iRow, grd_patlist.colRef("fromdd"));
-
-
-
- //ipt_rsvdd.value = model.getValue("/root/main/paminfo/pamlist/indd");
-
- model.setValue(ipt_pid.attribute("ref"), pid);
- model.setValue(opt_hngnm.attribute("ref"), hngnm);
- model.setValue(ipt_indd.attribute("ref"), indd);
- model.setValue(ipt_cretno.attribute("ref"), cretno);
- model.setValue(ipt_wardcd.attribute("ref"), wardcd);
- model.setValue(ipt_wardnm.attribute("ref"), wardnm);
- model.setValue(ipt_roomcd.attribute("ref"), roomcd);
- model.setValue(ipt_grde.attribute("ref"), grde);
-
- ipt_pid.refresh();
- opt_hngnm.refresh();
- ipt_indd.refresh();
- ipt_cretno.refresh();
- ipt_wardcd.refresh()
- ipt_wardnm.refresh();
- ipt_roomcd.refresh();
- ipt_grde.refresh();
-
-
- str = "";
- if(grde == "G") {
- grdenm = "일반병실료";
-
- } else {
- grdenm = "중환자병실료";
- }
-
- model.setValue(rdo_grdeflag.attribute("ref"), grde);
- rdo_grdeflag.refresh();
-
- if(wardcd == gDeptcd) {
- rdo_grdeflag.disabled = false;
- btn_save.disabled = false;
- str = " " + hngnm + " 환자분은 " + fromdd.substr(0,4) + "년 " + fromdd.substr(4,2) + "월 " + fromdd.substr(6,2) + "일부로 " + grdenm+ "가 적용";
- } else {
- rdo_grdeflag.disabled = true;
- btn_save.disabled = true;
- str = " " + hngnm + " 환자분은 " + "신생아 중환자실 환자가 아닙니다.";
- }
-
-
-
- model.setValue(cap_str.attribute("ref"), str);
- cap_str.refresh();
-
-
- } else {
- messageBox("재원중인 환자가 존재하지않습니다.", "E");
- rdo_grdeflag.disabled = true;
- btn_save.disabled = true;
-
- model.resetInstanceNode(ipt_pid.attribute("ref"));
- model.resetInstanceNode(opt_hngnm.attribute("ref"));
- model.resetInstanceNode(ipt_indd.attribute("ref"));
- model.resetInstanceNode(ipt_cretno.attribute("ref"));
- model.resetInstanceNode(ipt_wardnm.attribute("ref"));
- model.resetInstanceNode(ipt_roomcd.attribute("ref"));
- model.resetInstanceNode(ipt_grde.attribute("ref"));
- model.resetInstanceNode(cap_str.attribute("ref"));
-
- ipt_pid.refresh();
- opt_hngnm.refresh();
- ipt_indd.refresh();
- ipt_cretno.refresh();
- ipt_wardcd.refresh()
- ipt_wardnm.refresh();
- ipt_roomcd.refresh();
- ipt_grde.refresh();
- cap_str.refresh();
-
- return;
- }
- }
- model.refresh();
- }
- function fSave() {
-
- var grdeflag = model.getValue(rdo_grdeflag.attribute("ref"));
- var grde = model.getValue(ipt_grde.attribute("ref"));
-
-
-
- if(grdeflag == grde) {
- messageBox("현재 병실등급과 바꾸려는 병실등급이 동일합니다.", "I");
- return;
- }
-
- var rtn = messageBox("병실등급 변경을 하시겠습니까?", "Q");
-
- if(rtn == "6") {
-
- model.makeValue("/root/send/savedata/pid" , model.getValue(ipt_pid.attribute("ref")));
- model.makeValue("/root/send/savedata/indd" , model.getValue(ipt_indd.attribute("ref")));
- model.makeValue("/root/send/savedata/cretno" , model.getValue(ipt_cretno.attribute("ref")));
- model.makeValue("/root/send/savedata/grdeflag", model.getValue(rdo_grdeflag.attribute("ref")));
- //병실구분이 일반이면 일반병실등급, 그렇지 않으면 중환자실 병실등급.
- if(grdeflag == "G") {
- model.makeValue("/root/send/savedata/grde", gGrde1);
- model.makeValue("/root/send/savedata/type", gType1);
- } else {
- model.makeValue("/root/send/savedata/grde", gGrde2);
- model.makeValue("/root/send/savedata/type", gType2);
- }
-
- if(submit("TXMNN02601")) {
- messageBox("저장되었습니다.", "I");
- if(model.getValue("/root/main/cond/grdeflag") == "G"){
- model.makeValue("/root/main/cond/today", getCurrentDate());
- //exeReportPreview("RPMNN02600", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); // OCR서식으로 변경
- group1.visible = true;
- }
- fSearch();
- }
- } else {
-
- }
- }
-
- function fPrint(elecflag){
-
- var left = event.screenX;
- var top = event.screenY;
-
- var pInstcd = getUserInfo("dutplceinstcd");
- var pPid = model.getValue("/root/main/cond/pid");
- var pIndd = model.getValue("/root/main/cond/indd");
- var pCretno = model.getValue("/root/main/cond/cretno");
- var pOrdtype = "I";
- var formcd = "1400014928";
-
- if (elecflag == "Y") {
- fElecPrint(pPid, pCretno, pIndd, pInstcd, formcd, "", "G") ;
- }else{
- setParameter("formcd",formcd);
- setParameter("pid", pPid);
- setParameter("orddd", pIndd);
- setParameter("cretno", pCretno);
- setParameter("ordtype", pOrdtype);
- open("SSMRF03700",1,left,top);
- }
- group1.visible = false;
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRMNN02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/patinfo"/>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/code/codelist"/>
- <submission id="TXMNN02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/retinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../emr/wardcareweb/js/SMMNW03.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="318" pageheight="195" guideline="1,0;2,0;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:301px; height:160px; ">
- <datagrid id="grd_patlist" nodeset="/root/main/patinfo/patlist" visibility="hidden" caption="caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:55px; top:85px; width:175px; height:70px; ">
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="indd"/>
- <col ref="wardnm"/>
- <col ref="roomcd"/>
- <col ref="grde"/>
- <col ref="cretno"/>
- <col ref="wardcd"/>
- <col ref="fromdd"/>
- </datagrid>
- <caption id="cap_str" ref="/root/main/cond/str" style="left:5px; top:130px; width:290px; height:30px; font-family:돋움; font-size:14pxptptptpt; font-weight:bold; vertical-align:top; "/>
- <caption id="caption7" class="tit_2" style="left:8px; top:10px; width:144px; height:14px; ">신생아실 병실료 산정</caption>
- <line id="line1" class="line_2" style="x1:0px; y1:76px; x2:300px; y2:76px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:52px; x2:300px; y2:52px; "/>
- <line id="line5" class="line_1" style="x1:0px; y1:25px; x2:300px; y2:25px; "/>
- <input id="ipt_indd" ref="/root/main/cond/indd" class="input_search" disabled="true" navindex="2" format="yyyy-mm-dd" style="left:76px; top:55px; width:96px; height:19px; "/>
- <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" navindex="1" maxlength="10" style="left:76px; top:31px; width:96px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13"){
- model.setvalue("/root/main/cond/pid", ipt_pid.currentText);
- fSearch(); //환자및 사망정보 조회
- }
- ]]>
- </script>
- </input>
- <output id="opt_hngnm" ref="/root/main/cond/hngnm" class="output_fix" style="left:175px; top:31px; width:123px; height:19px; "/>
- <caption id="caption1" class="cell_1" style="left:0px; top:54px; width:74px; height:23px; text-align:center; vertical-align:middle; ">입원일자</caption>
- <caption id="caption3" class="cell_1" style="left:0px; top:102px; width:74px; height:23px; text-align:center; vertical-align:middle; ">병실구분</caption>
- <select1 id="rdo_grdeflag" ref="/root/main/cond/grdeflag" appearance="full" cols="2" overflow="visible" style="left:77px; top:106px; width:223px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>일반병실료산정</label>
- <value>G</value>
- </item>
- <item>
- <label>중환자병실료산정</label>
- <value>S</value>
- </item>
- </choices>
- </select1>
- <caption id="caption15" class="cell_1" style="left:0px; top:30px; width:74px; height:23px; text-align:center; vertical-align:middle; ">등록번호</caption>
- <input id="ipt_wardnm" ref="/root/main/cond/wardnm" class="input_search" disabled="true" navindex="2" style="left:76px; top:79px; width:96px; height:19px; "/>
- <input id="ipt_roomcd" ref="/root/main/cond/roomcd" class="input_search" disabled="true" navindex="2" style="left:236px; top:79px; width:62px; height:19px; "/>
- <line id="line8" class="line_2" style="x1:0px; y1:100px; x2:300px; y2:100px; "/>
- <caption id="caption2" class="cell_1" style="left:0px; top:78px; width:74px; height:23px; text-align:center; vertical-align:middle; ">병동</caption>
- <caption id="caption6" class="cell_1" style="left:175px; top:78px; width:59px; height:23px; text-align:center; vertical-align:middle; ">병실</caption>
- <input id="ipt_wardcd" ref="/root/main/cond/wardcd" visibility="hidden" style="left:145px; top:125px; width:100px; height:19px; "/>
- <input id="ipt_cretno" ref="/root/main/cond/cretno" visibility="hidden" style="left:35px; top:125px; width:100px; height:19px; "/>
- <line id="line4" class="line_3" style="x1:0px; y1:124px; x2:300px; y2:124px; "/>
- <input id="ipt_grde" ref="/root/main/cond/grde" visibility="hidden" style="left:180px; top:55px; width:100px; height:20px; "/>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:165px; width:301px; height:30px; ">
- <button id="button9" class="btn4_letter2" navindex="7" style="left:241px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:300px; y2:0px; "/>
- <button id="btn_save" class="btn4_letter2" disabled="true" navindex="5" style="left:183px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave();
-
- ]]>
- </script>
- </button>
- </group>
- <group id="group1" visibility="hidden" style="left:95px; top:110px; width:200px; height:80px; background-color:#ff99cc; ">
- <caption id="caption4" class="tit_2" style="left:0px; top:5px; width:198px; height:14px; font-family:굴림; ">일반 병실 입원료 안내 확인서</caption>
- <button id="button1" class="btn4_letter3" navindex="5" style="left:15px; top:40px; width:68px; height:22px; ">
- <caption>출력물</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrint("N");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter5" navindex="5" style="left:95px; top:40px; width:92px; height:22px; ">
- <caption>전자동의서</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrint("Y");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|