12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <cond>
- <pid/>
- <hngnm/>
- <recdt/>
- <recid/>
- <recnm/>
- </cond>
- <dschwundstatinfo>
- <dschwundstatlist/>
- </dschwundstatinfo>
- <dschtoolstatinfo>
- <dschtoolstatlist/>
- </dschtoolstatinfo>
- <dschpatinfo>
- <dschpatinfo>
- <cscsstat>01</cscsstat>
- <emotstat>01</emotstat>
- <dschmthd>01</dschmthd>
- <dschgoplac>01</dschgoplac>
- <minbp/>
- <pr/>
- <rr/>
- <bt/>
- <diet>01</diet>
- <actscop>01</actscop>
- <bath>01</bath>
- <carednor>02</carednor>
- <dschmthdetc/>
- <dschgoplacetc/>
- <curediet/>
- <dietetc/>
- <bathetc/>
- <carednoryes/>
- <dschcaulist/>
- <patinfo>
- <patYN/>
- </patinfo>
- <signno/>
- <maxbp/>
- <newElement/>
- <recdt/>
- <recid/>
- <recnm/>
- </dschpatinfo>
- <wundynlist>
- <part/>
- <sizenval/>
- <pid/>
- <indd/>
- <orddeptcd/>
- <recseq/>
- <instcd/>
- <dschdt/>
- </wundynlist>
- </dschpatinfo>
- </main>
- <send>
- <signinfo>
- <req/>
- </signinfo>
- <savedata/>
- <deredata/>
- <itemdata/>
- </send>
- <init>
- <cond/>
- <patnm>
- <patnm>
- <hngnm/>
- </patnm>
- </patnm>
- <cnstinfo>
- <cnstinfo>
- <pid/>
- </cnstinfo>
- <cnfmcnstinfo>
- <pid/>
- </cnfmcnstinfo>
- </cnstinfo>
- </init>
- <hidden>
- <existinfo/>
- <vitalsigninfo>
- <vitalsigninfo>
- <MINBP/>
- <PR/>
- <RR/>
- <BT/>
- <MAXBP/>
- </vitalsigninfo>
- </vitalsigninfo>
- <dschcareinfo/>
- <cond/>
- <codelist>
- <!-- 그리드 팝업 원인 인스턴스 -->
- <getVOCause>
- <cd/>
- <cdnm/>
- </getVOCause>
- <!-- 그리드 팝업 단계 인스턴스 -->
- <getVOStage>
- <cd/>
- <cdnm/>
- </getVOStage>
- <!-- 그리드 팝업 기저부색 인스턴스 -->
- <getVOColor>
- <cd/>
- <cdnm/>
- </getVOColor>
- <!-- 그리드 콤보 단계, 삼출물 상태 인스턴스 -->
- <getVOState>
- <cd/>
- <cdnm/>
- </getVOState>
- <!-- 그리드 콤보 삼출물 양 인스턴스 -->
- <getVOAmount>
- <cd/>
- <cdnm/>
- </getVOAmount>
- <!-- 그리드 팝업 상처감염증상 인스턴스 -->
- <getVOSympTom>
- <cd/>
- <cdnm/>
- </getVOSympTom>
- <!-- 그리드 팝업 Undermining 인스턴스 -->
- <getVOAngle>
- <cd/>
- <cdnm/>
- </getVOAngle>
- <!-- 그리드 팝업 Dressing 인스턴스 -->
- <getVODressing>
- <cd/>
- <cdnm/>
- </getVODressing>
- </codelist>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //메뉴에서 화면 호출시
- if(isNull(model.getValue("/root/hidden/cond/pid")) || (model.getValue("/root/hidden/cond/main") != "HomeCareMain")){
-
- // menuparameter = getScreenMenuParameter(); // 메뉴Parameter정보를 반환한다. commom.js
- // 그리드에서 마우스오른쪽 메뉴> 퇴원정리> 가정간호 버튼 눌렀을때 인증저장 버튼 안 보이고 조회가 안되서 수정 2009.06.24 황혜민
- // if(isNll(menuparameter)){ // 위에 메뉴를 통해들어왓을때
- // model.makeValue("/root/temp/menuparameter",'1');
- // }else{ // 그리드에서 마우스오른쪽 메뉴> 퇴원정리> 가정간호 버튼 눌렀을때
- // btn_tmp.visible = false;
- // btn_sign.visible = false;
- // }
- model.makeValue("/root/temp/menuparameter",'1');
- // 3090100000 가정간호팀-->2361000000 가정간호센터로 변경 (2009.02.17)
- //if (( getUserInfo("dutplcecd") == "2361000000" ) ||( getUserInfo("dutplcecd") == "1000000000" )) {
- // 가정간호센터(2361000000)에서 가정간호팀(3090100000)로 변경 2009.03.27
- // if (( getUserInfo("dutplcecd") == "3090100000" ) ||( getUserInfo("dutplcecd") == "1000000000" )) {
- if (( getUserInfo("dutplcecd") == "3090000000" ) ) { // 가정간호팀(3090100000)에서 가정간호사실(3090000000)로 변경 2012.01.31_손성훈
- btn_tmp.visible = false;
- btn_sign.visible = false;
- }
- var ret = fInitialize();
- if (ret == -1) {
- window.close();
- }
- }else{
-
- model.makeValue("/root/temp/menuparameter",'');
- btn_tmp.visible = false;
- btn_sign.visible = false;
-
- ipt_pid.disabled = true;
- input7.disabled = true;
- input1.disabled = true;
-
- var ret = fInitialize();
- if (ret == -1) {
- window.close();
- }
-
- }
- ]]>
- </script>
- <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
- <submission id="TRMNF04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/vitalsigninfo"/>
- <submission id="TXMNF04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- <submission id="TRMNF04302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/dschpatinfo"/>
- <submission id="TRMNF04303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/dschcareinfo"/>
- <submission id="TRMNF04304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/init/cnstinfo"/>
- <submission id="TRMNF04305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/dschwundstatinfo"/>
- <submission id="TRMNF04306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/dschtoolstatinfo"/>
- <!-- 피부욕창관찰기록 콤보 공통코드 조회 submission -->
- <submission id="TRMNW04701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/codelist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/signweb/js/ZES001.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/ENRSignEngine.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize(){
- model.removeNodeset("/root/main/dschpatinfo");
- model.removeNodeset("/root/main/dscheducinfo");
- model.removeNodeset("/root/main/dschpatinpt");
- model.removeNodeset("/root/main/dscheducinpt");
- model.removeNodeset("/root/main/dschpatinfo/wundynlist");
-
- //욕창기록 공통코드 조회
- submit("TRMNW04701");
-
- if(model.getValue("/root/temp/menuparameter") == '1'){
- model.makeNode("/root/init/cond");
- var paminfo = getGlobalVariable("paminfo");
-
- setCSVToNode("/root/init/cond", paminfo);
-
- var rtn = "";
-
- var pid = model.getValue("/root/init/cond/list/pid");
- if(pid == "") {
-
- var vbOK = messageBox("환자를 선택하지 ", "E007");
- if(vbOK == "1"){
- // 화면 닫기
- return -1;
- }
- }
-
- model.makeValue("/root/send/req/pid" , model.getValue("/root/init/cond/list/pid"));
- model.makeValue("/root/send/req/indd", model.getValue("/root/init/cond/list/indd"));
- model.makeValue("/root/send/req/orddd", model.getValue("/root/init/cond/list/indd"));
- model.makeValue("/root/send/req/orddeptcd", model.getValue("/root/init/cond/list/orddeptcd"));
- model.makeValue("/root/send/req/orddrid", model.getValue("/root/init/cond/list/medispclid"));
- model.makeValue("/root/send/req/instcd", model.getValue("/root/init/cond/list/instcd"));
- model.makeValue("/root/send/req/cretno" , model.getValue("/root/init/cond/list/cretno"));
-
- //컨설트 정보를 조회
- submit("TRMNF04304");
-
- var cnstYN = model.getValue("/root/init/cnstinfo/cnstinfo/pid");
- var cnfmYN = model.getValue("/root/init/cnstinfo/cnfmcnstinfo/pid");
-
- // 가정간호센터(2361000000)에서 가정간호팀(3090100000)로 변경 2009.03.27
- //if( (getUserInfo("dutplcecd") == "2361000000") ||( getUserInfo("dutplcecd") == "1000000000" )){
- // 가정간호팀(3090100000)에서 가정간호사실(3090000000)로 변경 2012.01.31_손성훈
- if( (getUserInfo("dutplcecd") == "3090000000") ||( getUserInfo("dutplcecd") == "1000000000" )){ // 가정간호팀이나 근무지가 병원인 사용자 경우
- if(isNull(cnstYN)){
- var vbOK = messageBox("컨설트 의뢰가 이루어지지", "E007");
- if(vbOK == "1") return -1; // 화면 닫기
- }
- }else{ // 병동에서 작성할 경우
- if(!isNull(cnfmYN)){
- var vbOK = messageBox("가정간호 의뢰가 확정되었습니다. 퇴원시 가정간호 의뢰 간호기록을 작성", "E001"); //할수없습니다
- if(vbOK == "1") btn_sign.visible = false; // 화면 닫기
- }else if(isNull(cnstYN)){
- var vbOK = messageBox("컨설트 의뢰가 이루어지지", "E007");
- if(vbOK == "1") return -1; // 화면 닫기
- }
- }
- var dschdclrtyn = model.getValue("/root/init/cond/list/dschdclrtyn"); //의사퇴원예고여부(Y/N)
- var indschacptstat = model.getValue("/root/init/cond/list/indschacptstat "); // 'A'재원, 'T'가퇴원, 'D' 퇴원 삭제
-
- if((dschdclrtyn == 'N') && (indschacptstat != 'A')) {
- messageBox("퇴원예고가 이루어지지", "E007");
- return -1;
- }
-
- indd = model.getValue("/root/init/cond/list/indd");
- instcd = model.getValue("/root/init/cond/list/instcd");
- orddeptcd = model.getValue("/root/init/cond/list/orddeptcd");
- cretno = model.getValue("/root/init/cond/list/cretno");
-
- model.makeValue("/root/send/req/pid", pid);
- model.makeValue("/root/send/req/indd", indd);
- model.makeValue("/root/send/req/orddd", indd);
- model.makeValue("/root/send/req/orddeptcd", orddeptcd);
- model.makeValue("/root/send/req/instcd", instcd);
- model.makeValue("/root/send/req/recflag", "01");
- model.makeValue("/root/send/req/cretno", cretno);
- }else{
- var pid = model.getValue("/root/hidden/cond/pid");
- var indd = model.getValue("/root/hidden/cond/indd");
- var instcd = model.getValue("/root/hidden/cond/instcd");
- var orddeptcd = model.getValue("/root/hidden/cond/orddeptcd");
- var cretno = model.getValue("/root/hidden/cond/cretno");
- var dschdt = model.getValue("/root/hidden/cond/dschdt");
-
- model.makeValue("/root/send/req/pid", pid);
- model.makeValue("/root/send/req/indd", indd);
- model.makeValue("/root/send/req/orddd", indd);
- model.makeValue("/root/send/req/orddeptcd", orddeptcd);
- model.makeValue("/root/send/req/instcd", instcd);
- model.makeValue("/root/send/req/recflag", "01");
- model.makeValue("/root/send/req/cretno", cretno);
- model.makeValue("/root/send/req/dschdt", dschdt);
-
- }
-
- //로컬 개발.
- // model.makeValue("/root/send/req/pid", "13716169");
- // model.makeValue("/root/send/req/indd", "20080211");
- // model.makeValue("/root/send/req/orddeptcd", "2060000000");
- // model.makeValue("/root/send/req/cretno", "");
- // model.makeValue("/root/send/req/instcd", "012");
- // model.makeValue("/root/send/req/recflag", "01");
-
- if(submit("TRMNF04302")){ // 퇴원시 가정간호의뢰 기록에 있는 데이터 조회
-
- model.setValue("/root/main/cond/recdt",model.getValue("/root/main/dschpatinfo/dschpatinfo/recdt"));
- model.setValue("/root/main/cond/recid",model.getValue("/root/main/dschpatinfo/dschpatinfo/recid"));
- model.setValue("/root/main/cond/recnm",model.getValue("/root/main/dschpatinfo/dschpatinfo/recnm"));
- model.setValue("/root/main/cond/pid", model.getValue("/root/send/req/pid"));
-
- if(model.getValue("/root/main/dschpatinfo/dschpatinfo/diet") == '99'){
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/dietetc", model.getValue("/root/main/dschpatinfo/dschpatinfo/dietetc"));
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/curediet", "");
- }else if(model.getValue("/root/main/dschpatinfo/dschpatinfo/diet") == '02'){
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/curediet", model.getValue("/root/main/dschpatinfo/dschpatinfo/dietetc"));
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/dietetc", "");
- }
-
- rdo_diet.dispatch("xforms-value-changed"); // 퇴원교육에 식이값 변경
- }
-
- // 퇴원시 가정간호의뢰 기록 작성 유무 YN
- var patYN = model.getValue("/root/main/dschpatinfo/patinfo/patYN");
-
- //욕창기록 조회
- submit("TRMNF04305");
-
- //기구 및 삽관 기록 조회
- submit("TRMNF04306");
-
- //조회시 테이블에 존재하는지 확인을 위해
- //if ( getUserInfo("dutplcecd") == "3090100000" || getUserId() == "ENR" ){
- // 가정간호센터(2361000000)에서 가정간호팀(3090100000)로 변경 2009.03.27
- //if( (getUserInfo("dutplcecd") == "2361000000") ||( getUserInfo("dutplcecd") == "1000000000" )){
- // 사용자가 실제 근무하고 있는 기관의 근무하고 있는 근무지가 '병원' 인 사람
- //if( (getUserInfo("dutplcecd") == "3090100000") ||( getUserInfo("dutplcecd") == "1000000000" )){
- // 가정간호팀(3090100000)에서 가정간호사실(3090000000)로 변경 2012.01.31_손성훈
- if( (getUserInfo("dutplcecd") == "3090000000") ){
- if(patYN == 'N'){ // 퇴원시 가정간호의뢰 기록이 없으면
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/cscsstat", '01'); // 의식상태
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/emotstat", '01'); // 정서상태
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/dschmthd", '01'); // 퇴원방법
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/dschgoplac", '01'); // 퇴원 후 갈 곳
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/diet", '01'); // 식이
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/actscop", '01'); // 활동범위
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/bath", '01'); // 목욕
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/carednor", '02'); // 간호제공자
-
- model.makeValue("/root/send/signinfo/status", 'i');
- }else{ // 퇴원시 가정간호의뢰 기록이 있으면
- model.makeValue("/root/send/signinfo/status", 'u');
- }
-
- btn_tmp.visible = false;
- btn_sign.visible = false;
- }else { // 병동에서 기록을 작성하는 경우
- if(patYN == 'N'){ // 퇴원시 가정간호의뢰 기록이 없으면
- model.makeValue("/root/send/signinfo/status", 'i');
- if(submit("TRMNF04303")){
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/cscsstat", model.getValue("/root/hidden/dschcareinfo/dschcareinfo/cscsstatcd"));
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/dschmthd", model.getValue("/root/hidden/dschcareinfo/dschcareinfo/dschmthdcd"));
- if(model.getValue("/root/hidden/dschcareinfo/dschcareinfo/dschmthdcd") == '06'){ // 퇴원방법
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/dschmthd", '99');
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/dschmthdetc", model.getValue("/root/hidden/dschcareinfo/dschcareinfo/dschmthdnm"));
- }
-
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/dschgoplac", model.getValue("/root/hidden/dschcareinfo/dschcareinfo/dschgoplaccd"));
- if(model.getValue("/root/hidden/dschcareinfo/dschcareinfo/dschgoplaccd") == '04'){
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/dschgoplac", '99');
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/dschgoplacetc", model.getValue("/root/hidden/dschcareinfo/dschcareinfo/dschgoplacnm"));
- }
-
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/diet", model.getValue("/root/hidden/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dietcd"));
- if(model.getValue("/root/hidden/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dietcd") == '04'){
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/diet", '99');
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/dietetc", model.getValue("/root/hidden/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dietnm"));
- }else if(model.getValue("/root/hidden/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dietcd") == '02'){
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/curediet", model.getValue("/root/hidden/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/treatdiet"));
- }
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/curediet", model.getValue("/root/hidden/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/treatdiet"));
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/dietetc", model.getValue("/root/hidden/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/dietnm"));
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/actscop", model.getValue("/root/hidden/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/actscop"));
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/bath", model.getValue("/root/hidden/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/bathcd"));
- if(model.getValue("/root/hidden/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/bathcd") == '07'){
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/bath", '99');
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/bathetc", model.getValue("/root/hidden/dschcareinfo/dschcareinfo/dschcareeducinfo/dschcareeduc/bathnm"));
- }
-
- // model.makeValue("/root/main/dschpatinfo/dschpatinfo/carednor", '02');
- // model.makeValue("/root/main/dschpatinfo/dschpatinfo/cscsstat", '01');
- // model.makeValue("/root/main/dschpatinfo/dschpatinfo/emotstat", '01');
- // model.makeValue("/root/main/dschpatinfo/dschpatinfo/dschmthd", '01');
- // model.makeValue("/root/main/dschpatinfo/dschpatinfo/dschgoplac", '01');
- // model.makeValue("/root/main/dschpatinfo/dschpatinfo/diet", '01');
- // model.makeValue("/root/main/dschpatinfo/dschpatinfo/actscop", '01');
- // model.makeValue("/root/main/dschpatinfo/dschpatinfo/bath", '01');
- // model.makeValue("/root/main/dschpatinfo/dschpatinfo/carednor", '02');
- model.setValue("/root/main/cond/recdt", getCurrentDate());
- model.setValue("/root/main/cond/pid", model.getValue("/root/send/req/pid"));
- model.setValue("/root/main/cond/recid", getUserId());
- model.setValue("/root/main/cond/recnm", getUserName());
- }
- }else{ // 퇴원시 가정간호의뢰 기록이 있으면
- model.makeValue("/root/send/signinfo/status", 'u');
- }
-
- }
- rdo_dschmthd.dispatch("xforms-value-changed");
- rdo_dschgoplac.dispatch("xforms-value-changed");
- rdo_diet.dispatch("xforms-value-changed");
- rdo_bath.dispatch("xforms-value-changed");
- rdo_carednor.dispatch("xforms-value-changed");
- ipt_pid.dispatch("xforms-value-changed");
-
- //환자 정보 조회
- btn_reqpatnm.dispatch("DOMActivate");
-
- }
-
- // 인증저장할 데이터 생성
- function fSetDschInfo(certflag) {
-
- //상처유뮤 저장
- var wundynlist = getGridUpdateData(grd_wundynlist);
- model.setValue("/root/send/savedata", wundynlist);
-
- //욕창상태 저장
- var derenodeList = instance1.selectNodes("/root/main/dschwundstatinfo/dschwundstatlist[homecareyn='Y']");
- model.setValue("/root/send/deredata", getNodeListCSV(derenodeList) );
-
- //욕창상태 저장
- var itemnodeList = instance1.selectNodes("/root/main/dschtoolstatinfo/dschtoolstatlist[homecareyn='Y']");
- model.setValue("/root/send/itemdata", getNodeListCSV(itemnodeList) );
-
-
- model.makeValue("/root/send/signinfo/pid", model.getValue("/root/main/cond/pid"));
- model.makeValue("/root/send/signinfo/hngnm", model.getValue("/root/main/cond/hngnm"));
- model.makeValue("/root/send/signinfo/recdt", model.getValue("/root/main/cond/recdt"));
- model.makeValue("/root/send/signinfo/recid", model.getValue("/root/main/cond/recid"));
- model.makeValue("/root/send/signinfo/recnm", model.getValue("/root/main/cond/recnm"));
- //model.makeValue("/root/send/indd", model.getValue("/root/init/cond/list/indd"));
- model.makeValue("/root/send/signinfo/indd", model.getValue("/root/init/cond/list/indd"));
- model.makeValue("/root/send/signinfo/orddeptcd", model.getValue("/root/init/cond/list/orddeptcd"));
- model.makeValue("/root/send/signinfo/instcd", model.getValue("/root/init/cond/list/instcd"));
- model.makeValue("/root/send/signinfo/dschdt", model.getValue("/root/init/cond/list/dschdclrdt"));
-
- model.makeValue("/root/send/signinfo/cscsstat", model.getValue("/root/main/dschpatinfo/dschpatinfo/cscsstat")); // 의식상태
- model.makeValue("/root/send/signinfo/emotstat", model.getValue("/root/main/dschpatinfo/dschpatinfo/emotstat")); // 정서상태
- model.makeValue("/root/send/signinfo/dschmthd", model.getValue("/root/main/dschpatinfo/dschpatinfo/dschmthd")); // 퇴원방법
- model.makeValue("/root/send/signinfo/dschgoplac", model.getValue("/root/main/dschpatinfo/dschpatinfo/dschgoplac")); // 퇴원 후 갈 곳
- model.makeValue("/root/send/signinfo/minbp", model.getValue("/root/main/dschpatinfo/dschpatinfo/minbp"));
- model.makeValue("/root/send/signinfo/maxbp", model.getValue("/root/main/dschpatinfo/dschpatinfo/maxbp"));
- model.makeValue("/root/send/signinfo/pr", model.getValue("/root/main/dschpatinfo/dschpatinfo/pr"));
- model.makeValue("/root/send/signinfo/rr", model.getValue("/root/main/dschpatinfo/dschpatinfo/rr"));
- model.makeValue("/root/send/signinfo/bt", model.getValue("/root/main/dschpatinfo/dschpatinfo/bt"));
- model.makeValue("/root/send/signinfo/diet", model.getValue("/root/main/dschpatinfo/dschpatinfo/diet")); // 식이
- model.makeValue("/root/send/signinfo/actscop", model.getValue("/root/main/dschpatinfo/dschpatinfo/actscop")); // 활동범위
- model.makeValue("/root/send/signinfo/bath", model.getValue("/root/main/dschpatinfo/dschpatinfo/bath")); // 목욕
- model.makeValue("/root/send/signinfo/carednor", model.getValue("/root/main/dschpatinfo/dschpatinfo/carednor")) // 간호제공자;
- model.makeValue("/root/send/signinfo/dschmthdetc", model.getValue("/root/main/dschpatinfo/dschpatinfo/dschmthdetc"));
- model.makeValue("/root/send/signinfo/dschgoplacetc", model.getValue("/root/main/dschpatinfo/dschpatinfo/dschgoplacetc"));
-
- // 통합기록조회에서 인증저장된 데이터 불러올때 코드값을 불어와서 value값 추가 (2010.02.19 hhm)
- model.makeValue("/root/send/signinfo/cscsstatnm", rdo_cscsstat.label); // 의식상태
- model.makeValue("/root/send/signinfo/emotstatnm", rdo_emotstat.label); // 정서상태
-
- if(model.getValue("/root/main/dschpatinfo/dschpatinfo/dschmthd") == '99'){ // 기타를 선택한 경우
- model.makeValue("/root/send/signinfo/dschmthdnm", rdo_dschmthd.label + " : " + model.getValue("/root/main/dschpatinfo/dschpatinfo/dschmthdetc")); // 퇴원방법
- }else{
- model.makeValue("/root/send/signinfo/dschmthdnm", rdo_dschmthd.label); // 퇴원방법
- }
-
- if(model.getValue("/root/main/dschpatinfo/dschpatinfo/dschgoplac") == '99'){ // 퇴원 후 갈 곳: 기타를 선택한 경우
- model.makeValue("/root/send/signinfo/dschgoplacnm", rdo_dschgoplac.label + " : " + model.getValue("/root/main/dschpatinfo/dschpatinfo/dschgoplacetc")); // 퇴원 후 갈 곳
- }else{
- model.makeValue("/root/send/signinfo/dschgoplacnm", rdo_dschgoplac.label); // 퇴원 후 갈 곳
- }
-
- model.makeValue("/root/send/signinfo/actscopnm", rdo_actscop.label); // 활동범위
-
- if(model.getValue("/root/main/dschpatinfo/dschpatinfo/diet") == '99'){
- model.makeValue("/root/send/signinfo/dietetc", model.getValue("/root/main/dschpatinfo/dschpatinfo/dietetc"));
- model.makeValue("/root/send/signinfo/dietnm", rdo_diet.label + " : " + model.getValue("/root/main/dschpatinfo/dschpatinfo/dietetc")); // 식이- 기타일 경우
- }else if(model.getValue("/root/main/dschpatinfo/dschpatinfo/diet") == '02'){
- model.makeValue("/root/send/signinfo/dietetc", model.getValue("/root/main/dschpatinfo/dschpatinfo/curediet"));
- model.makeValue("/root/send/signinfo/dietnm", rdo_diet.label + " : " + model.getValue("/root/main/dschpatinfo/dschpatinfo/curediet")); // 식이- 치료식일 경우
- }else{
- model.makeValue("/root/send/signinfo/dietnm", rdo_diet.label); // 식이
- }
-
- if(model.getValue("/root/main/dschpatinfo/dschpatinfo/bath") == '99'){
- model.makeValue("/root/send/signinfo/bathnm", rdo_bath.label + " : " + model.getValue("/root/main/dschpatinfo/dschpatinfo/bathetc") ); // 목욕
- }else{
- model.makeValue("/root/send/signinfo/bathnm", rdo_bath.label);
- }
-
- if(model.getValue("/root/main/dschpatinfo/dschpatinfo/carednor") == '01'){ // 간호제공자 - 유
- model.makeValue("/root/send/signinfo/carednornm", rdo_carednor.label + " : " + model.getValue("/root/main/dschpatinfo/dschpatinfo/carednoryes")) // 간호제공자;
- }else{
- model.makeValue("/root/send/signinfo/carednornm", rdo_carednor.label);
- }
-
- model.makeValue("/root/send/signinfo/bathetc", model.getValue("/root/main/dschpatinfo/dschpatinfo/bathetc"));
- model.makeValue("/root/send/signinfo/carednoryes", model.getValue("/root/main/dschpatinfo/dschpatinfo/carednoryes"));
- model.makeValue("/root/send/signinfo/dschcaulist", model.getValue("/root/main/dschpatinfo/dschpatinfo/dschcaulist")); // 퇴원시 유의사항
-
- model.makeValue("/root/send/signinfo/pid", model.getValue("/root/main/cond/pid")); // 등록번호
- model.makeValue("/root/send/signinfo/orddd", model.getValue("/root/init/cond/list/indd")); // 진료일자
- model.makeValue("/root/send/signinfo/signno", model.getValue("/root/hidden/dschcareinfo/dschcareinfo/signno")); // 서명번호
- model.makeValue("/root/send/signinfo/cretno" , model.getValue("/root/init/cond/list/cretno")); // 생성번호
- model.makeValue("/root/send/signinfo/recdd", getCurrentDate());
- model.makeValue("/root/send/signinfo/rectm", getCurrentTime());
- model.makeValue("/root/send/signinfo/recsaveflag" , "Y"); // 전자서명 인적정보 변경여부(기록일시 변경되는 경우 : Y, 그외 : N)
- model.makeValue("/root/send/signinfo/signflag" , "20"); // 서명자료구분(01 : 진료, 02 : 간호, 20 : 가정간호)
- model.makeValue("/root/send/signinfo/signgenrflag", "I"); // 서명발생구분 (코드정의서 M0010 참조)
- model.makeValue("/root/send/signinfo/formcd", "0000002466"); // 각 기록지별 서식코드(0000002466 - 퇴원시 가정간호 의뢰 간호 기록)
- model.makeValue("/root/send/signinfo/orddeptcd" , model.getValue("/root/init/cond/list/orddeptcd")); // 진료부서코드
- model.makeValue("/root/send/signinfo/orddrid" , model.getValue("/root/init/cond/list/medispclid")); // 진료의사ID
- model.makeValue("/root/send/signinfo/signbfcnts" , Sign.signedInfos[1]); // 인증할 데이터 정보(미기록 노드 제거된 정보)
- model.makeValue("/root/send/signinfo/signaftcnts" , Sign.signedInfos[2]); // 공인인증 처리후 데이터
-
- model.makeValue("/root/send/signinfo/screenid", getScreenID());
- model.makeValue("/root/send/signinfo/certflag", certflag);
-
- }
-
- // 인증데이터 만들기.
- function fMake_SignData()
- {
- Sign.addnode("/root/send/signinfo");
-
- // var xRecinfoPath = Sign.XPATH_SIGNINFO+"/recinfo/recinfolists";
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1177;1,544;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:257px; height:14px; ">퇴원시 가정간호 의뢰 간호기록</caption>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:650px; width:1195px; height:27px; "/>
- <group id="group5" class="datagrid2" scroll="auto" style="left:0px; top:13px; width:1195px; height:627px; ">
- <select1 id="rdo_dschgoplac" ref="/root/main/dschpatinfo/dschpatinfo/dschgoplac" appearance="full" cellspacing="30" cols="3" overflow="visible" style="left:93px; top:361px; width:222px; height:40px; border-style:none; ">
- <choices>
- <item>
- <label>자가</label>
- <value>01</value>
- </item>
- <item>
- <label>친척</label>
- <value>02</value>
- </item>
- <item>
- <label>타병원</label>
- <value>03</value>
- </item>
- <item>
- <label>기타</label>
- <value>99</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(rdo_dschgoplac.value == '99') { // 기타
- ipt_dschgoplacetc.value = "";
- ipt_dschgoplacetc.disabled = false;
- } else {
- ipt_dschgoplacetc.disabled = true;
- ipt_dschgoplacetc.value = "";
- ipt_dschgoplacetc.refresh();
-
- }
- ]]>
- </script>
- </select1>
- <line id="line1" class="line_1" style="x1:0px; y1:10px; x2:544px; y2:10px; "/>
- <caption id="caption7" class="cell_1" style="left:0px; top:15px; width:65px; height:23px; text-align:center; ">등록번호</caption>
- <input id="ipt_pid" ref="/root/main/cond/pid" class="input_default" style="left:68px; top:16px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- //등록번호 입력후 바로 엔터가능 하게 수정
- if(event.keyCode == 13) {
-
- inputEnterKey("btn_reqpatnm", "DOMActivate");
- //model.resetInstanceNode("/root/main/cond/patinfo/pid");
- ipt_pid.refresh();
- }
-
- ]]>
- </script>
- </input>
- <output id="output3" ref="/root/main/cond/hngnm" class="output_fix" style="left:151px; top:16px; width:80px; height:19px; "/>
- <caption id="caption1" class="cell_1" style="left:234px; top:15px; width:65px; height:23px; text-align:center; ">기록일시</caption>
- <input id="input7" ref="/root/main/cond/recdt" class="input_default" inputtype="date" style="left:302px; top:16px; width:90px; height:19px; "/>
- <caption id="caption2" class="cell_1" style="left:395px; top:15px; width:65px; height:23px; text-align:center; ">기록자</caption>
- <input id="input1" ref="/root/main/cond/recnm" class="input_default" style="left:463px; top:16px; width:80px; height:19px; "/>
- <caption id="caption22" class="tit_2" style="left:5px; top:48px; width:118px; height:14px; ">퇴원시 환자 정보</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:62px; x2:544px; y2:62px; "/>
- <caption id="caption3" class="cell_1" style="left:0px; top:67px; width:88px; height:38px; ">
- <![CDATA[ 활력증상
- ]]>
- </caption>
- <input id="input2" ref="/root/main/dschpatinfo/dschpatinfo/maxbp" class="input_default" style="left:130px; top:73px; width:60px; height:19px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:104px; x2:544px; y2:104px; "/>
- <caption id="caption5" style="left:265px; top:74px; width:26px; height:20px; ">PR</caption>
- <input id="input4" ref="/root/main/dschpatinfo/dschpatinfo/pr" class="input_default" style="left:285px; top:73px; width:60px; height:19px; "/>
- <caption id="caption8" style="left:355px; top:74px; width:26px; height:20px; ">RR</caption>
- <input id="input5" ref="/root/main/dschpatinfo/dschpatinfo/rr" class="input_default" style="left:375px; top:73px; width:60px; height:19px; "/>
- <caption id="caption9" style="left:450px; top:74px; width:26px; height:20px; ">BT</caption>
- <input id="input6" ref="/root/main/dschpatinfo/dschpatinfo/bt" class="input_default" style="left:470px; top:73px; width:60px; height:19px; "/>
- <caption id="caption10" class="cell_1" style="left:0px; top:106px; width:88px; height:23px; text-align:center; ">의식상태</caption>
- <line id="line5" class="line_2" style="x1:0px; y1:128px; x2:544px; y2:128px; "/>
- <caption id="caption11" class="cell_1" style="left:0px; top:130px; width:88px; height:137px; text-align:center; ">
- <![CDATA[상처유무
- ]]>
- </caption>
- <datagrid id="grd_wundynlist" nodeset="/root/main/dschpatinfo/wundynlist" caption="부위^크기 (cm X cm)" colsep="^" colwidth="236, 200" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:90px; top:130px; width:455px; height:137px; ">
- <col ref="part" type="input"/>
- <col ref="sizenval" type="input"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="indd" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="recseq" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="indd" visibility="hidden"/>
- <col ref="dschdt" visibility="hidden"/>
- </datagrid>
- <button id="button11" class="btn2_letter3" style="left:18px; top:190px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_wundynlist.additem();
-
- var row = grd_wundynlist.row;
-
- model.makeValue("/root/main/dschpatinfo/wundynlist[" + row + "]/pid", model.getValue("/root/main/cond/pid"));
- model.makeValue("/root/main/dschpatinfo/wundynlist[" + row + "]/hngnm", model.getValue("/root/main/cond/hngnm"));
- model.makeValue("/root/main/dschpatinfo/wundynlist[" + row + "]/recdt", model.getValue("/root/main/cond/recdt"));
- model.makeValue("/root/main/dschpatinfo/wundynlist[" + row + "]/recid", model.getValue("/root/main/cond/recid"));
- model.makeValue("/root/main/dschpatinfo/wundynlist[" + row + "]/recnm", model.getValue("/root/main/cond/recnm"));
- model.makeValue("/root/main/dschpatinfo/wundynlist[" + row + "]/indd", model.getValue("/root/init/cond/list/indd"));
- model.makeValue("/root/main/dschpatinfo/wundynlist[" + row + "]/orddeptcd", model.getValue("/root/init/cond/list/orddeptcd"));
- model.makeValue("/root/main/dschpatinfo/wundynlist[" + row + "]/instcd", model.getValue("/root/init/cond/list/instcd"));
- model.makeValue("/root/main/dschpatinfo/wundynlist[" + row + "]/dschdt", model.getValue("/root/init/cond/list/dschnotidt"));
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter3" style="left:19px; top:210px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_wundynlist.removeitem();
- ]]>
- </script>
- </button>
- <caption id="caption12" class="cell_1" style="left:0px; top:270px; width:88px; height:43px; text-align:center; ">정서상태</caption>
- <line id="line6" class="line_2" style="x1:0px; y1:268px; x2:544px; y2:268px; "/>
- <select1 id="rdo_emotstat" ref="/root/main/dschpatinfo/dschpatinfo/emotstat" appearance="full" cellspacing="30" cols="3" overflow="visible" style="left:93px; top:274px; width:207px; height:35px; border-style:none; ">
- <choices>
- <item>
- <label>안정</label>
- <value>01</value>
- </item>
- <item>
- <label>불안</label>
- <value>02</value>
- </item>
- <item>
- <label>분노</label>
- <value>03</value>
- </item>
- <item>
- <label>슬픔</label>
- <value>04</value>
- </item>
- <item>
- <label>우울</label>
- <value>05</value>
- </item>
- </choices>
- </select1>
- <line id="line7" class="line_2" style="x1:0px; y1:312px; x2:544px; y2:312px; "/>
- <caption id="caption13" class="cell_1" style="left:0px; top:314px; width:88px; height:43px; text-align:center; ">퇴원방법</caption>
- <line id="line8" class="line_2" style="x1:0px; y1:356px; x2:544px; y2:356px; "/>
- <caption id="caption14" class="cell_1" style="left:0px; top:358px; width:88px; height:43px; text-align:center; ">퇴원 후 갈 곳</caption>
- <caption id="caption17" class="tit_2" style="left:5px; top:411px; width:118px; height:13px; ">퇴원교육</caption>
- <line id="line10" class="line_3" style="x1:0px; y1:475px; x2:546px; y2:475px; "/>
- <line id="line11" class="line_1" style="x1:0px; y1:425px; x2:544px; y2:425px; "/>
- <caption id="caption15" class="cell_1" style="left:0px; top:431px; width:88px; height:45px; text-align:center; ">식이</caption>
- <line id="line12" class="line_2" style="x1:0px; y1:477px; x2:544px; y2:477px; "/>
- <caption id="caption16" class="cell_1" style="left:0px; top:480px; width:88px; height:40px; text-align:center; ">활동범위</caption>
- <line id="line13" class="line_2" style="x1:0px; y1:521px; x2:544px; y2:521px; "/>
- <caption id="caption18" class="cell_1" style="left:0px; top:523px; width:88px; height:37px; text-align:center; ">목욕</caption>
- <line id="line14" class="line_2" style="x1:0px; y1:562px; x2:544px; y2:562px; "/>
- <caption id="caption20" class="cell_1" style="left:0px; top:565px; width:88px; height:38px; text-align:center; ">간호제공자</caption>
- <select1 id="rdo_carednor" ref="/root/main/dschpatinfo/dschpatinfo/carednor" appearance="full" overflow="visible" style="left:93px; top:567px; width:152px; height:37px; border-style:none; ">
- <choices>
- <item>
- <label>유</label>
- <value>01</value>
- </item>
- <item>
- <label>무</label>
- <value>02</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(rdo_carednor.value == '01') {
- ipt_carednoryes.value = "";
- ipt_carednoryes.disabled = false;
- } else {
- ipt_carednoryes.value = "";
- ipt_carednoryes.disabled = true;
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_carednoryes" ref="/root/main/dschpatinfo/dschpatinfo/carednoryes" class="input_default" disabled="true" style="left:140px; top:567px; width:185px; height:19px; "/>
- <line id="line15" class="line_3" style="x1:0px; y1:603px; x2:544px; y2:603px; "/>
- <caption id="caption21" class="tit_2" style="left:553px; top:47px; width:138px; height:13px; color:#0000ff; ">퇴원 시 욕창상태 *</caption>
- <line id="line16" class="line_1" style="x1:549px; y1:62px; x2:1195px; y2:62px; "/>
- <datagrid id="grd_dschwundstatlist" nodeset="/root/main/dschwundstatinfo/dschwundstatlist" class="datagrid2" caption="가정간호
유지^욕창발생부위^발생일자^발생시간^원인^구분^크기^크기^크기^단계^기저부색^삼출물
상태^삼출물 
양^상처감염
증상" colsep="^" colwidth="70,150,80,80,70,70,30,30, 30,80,80,80,80" mergecellsfixedrows="bycolrec" rowsep="|" style="left:549px; top:67px; width:646px; height:200px; ">
- <col checkvalue="Y,N" disabled="true" ref="homecareyn" type="checkbox"/>
- <col ref="obspartnm"/>
- <col ref="genrdd" format="yyyy-mm-dd"/>
- <col ref="genrtm" format="hh:nn"/>
- <col ref="cause"/>
- <col ref="flag" type="combo">
- <choices>
- <item>
- <label>등록</label>
- <value>00</value>
- </item>
- <item>
- <label>사정</label>
- <value>01</value>
- </item>
- <item>
- <label>종료</label>
- <value>99</value>
- </item>
- </choices>
- </col>
- <col ref="sizewidth"/>
- <col ref="sizeheight"/>
- <col ref="sizedepth"/>
- <col ref="stage" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/codelist/getVOStage">
- <label ref="cdnm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="color"/>
- <col ref="state" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/codelist/getVOState">
- <label ref="cdnm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="amount" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/codelist/getVOAmount">
- <label ref="cdnm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="pid" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="grupcd" visibility="hidden"/>
- <col ref="obsrecseq" visibility="hidden"/>
- <col ref="signno" visibility="hidden"/>
- <col ref="indd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="orddrid" visibility="hidden"/>
- </datagrid>
- <datagrid id="grd_dschtoolstatlist" nodeset="/root/main/dschtoolstatinfo/dschtoolstatlist" class="datagrid2" caption="가정간호
유지^Item^부위^구분^시행일시^종류^크기^크기^고정^고정^압력^압력^비고" colsep="^" colwidth="70,120,50,50,100,150,50,50,50,50,50,50,100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:549px; top:295px; width:646px; height:175px; ">
- <col checkvalue="Y,N" disabled="true" ref="homecareyn" type="checkbox"/>
- <col ref="itemnm"/>
- <col ref="loc"/>
- <col disabled="true" ref="opflag" type="combo">
- <choices>
- <item>
- <label>삽입</label>
- <value>01</value>
- </item>
- <item>
- <label>교환</label>
- <value>02</value>
- </item>
- <item>
- <label>세척</label>
- <value>03</value>
- </item>
- <item>
- <label>흡입</label>
- <value>04</value>
- </item>
- <item>
- <label>제거</label>
- <value>05</value>
- </item>
- </choices>
- </col>
- <col ref="opdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="supnm"/>
- <col ref="vol"/>
- <col ref="volunit"/>
- <col ref="fix"/>
- <col ref="fixunit"/>
- <col ref="pres"/>
- <col ref="presunit"/>
- <col ref="cathremark"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="patseqno" visibility="hidden"/>
- <col ref="cathseqno" visibility="hidden"/>
- <col ref="status" visibility="hidden"/>
- <col ref="setno" visibility="hidden"/>
- <col ref="settypecd" visibility="hidden"/>
- <col ref="setcdno" visibility="hidden"/>
- <col ref="opid" visibility="hidden"/>
- <col ref="carerecseqno" visibility="hidden"/>
- <col ref="mappseqno" visibility="hidden"/>
- <col ref="tempprcpseqno" visibility="hidden"/>
- <col ref="recdd" visibility="hidden"/>
- </datagrid>
- <caption id="caption23" class="tit_2" style="left:553px; top:275px; width:188px; height:13px; color:#0000ff; ">퇴원 시 기구 및 삽관 상태 *</caption>
- <line id="line17" class="line_1" style="x1:549px; y1:290px; x2:1195px; y2:290px; "/>
- <caption id="caption24" class="tit_2" style="left:553px; top:480px; width:172px; height:14px; color:#0000ff; ">퇴원 시 유의사항 *</caption>
- <line id="line18" class="line_1" style="x1:549px; y1:495px; x2:1195px; y2:495px; "/>
- <textarea id="textarea1" ref="/root/main/dschpatinfo/dschpatinfo/dschcaulist" style="left:549px; top:500px; width:646px; height:102px; "/>
- <line id="line19" class="line_3" style="x1:549px; y1:603px; x2:1195px; y2:603px; "/>
- <select1 id="rdo_dschmthd" ref="/root/main/dschpatinfo/dschpatinfo/dschmthd" appearance="full" cellspacing="30" cols="5" overflow="visible" style="left:93px; top:317px; width:392px; height:33px; border-style:none; ">
- <choices>
- <item>
- <label>도보</label>
- <value>01</value>
- </item>
- <item>
- <label>목발</label>
- <value>02</value>
- </item>
- <item>
- <label>휠체어</label>
- <value>03</value>
- </item>
- <item>
- <label>이동침대</label>
- <value>04</value>
- </item>
- <item>
- <label>응급차</label>
- <value>05</value>
- </item>
- <item>
- <label>기타</label>
- <value>99</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/dschpatinfo/dschpatinfo/dschmthd") == "99") {
- ipt_dschmthdetc.value = "";
- ipt_dschmthdetc.disabled = false;
- ipt_dschmthdetc.refresh();
- } else {
- ipt_dschmthdetc.disabled = true;
- ipt_dschmthdetc.value = "";
- ipt_dschmthdetc.refresh();
- }
- ]]>
- </script>
- </select1>
- <select1 id="rdo_cscsstat" ref="/root/main/dschpatinfo/dschpatinfo/cscsstat" appearance="full" cellspacing="30" cols="5" overflow="visible" style="left:93px; top:109px; width:434px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>Alert</label>
- <value>01</value>
- </item>
- <item>
- <label>Drowsy</label>
- <value>02</value>
- </item>
- <item>
- <label>Stupor</label>
- <value>03</value>
- </item>
- <item>
- <label>Semicoma</label>
- <value>04</value>
- </item>
- <item>
- <label>Coma</label>
- <value>05</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_dschgoplacetc" ref="/root/main/dschpatinfo/dschpatinfo/dschgoplacetc" class="input_default" disabled="true" style="left:166px; top:378px; width:154px; height:19px; "/>
- <select1 id="rdo_diet" ref="/root/main/dschpatinfo/dschpatinfo/diet" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:93px; top:438px; width:332px; height:35px; border-style:none; ">
- <choices>
- <item>
- <label>일반식</label>
- <value>01</value>
- </item>
- <item>
- <label>치료식</label>
- <value>02</value>
- </item>
- <item>
- <label>경관영양</label>
- <value>03</value>
- </item>
- <item>
- <label>기타</label>
- <value>99</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/dschpatinfo/dschpatinfo/diet") == "99") { // 기타
- ipt_curediet.value = "";
- //ipt_dietetc.value = "";
- ipt_dietetc.disabled = false;
- ipt_curediet.disabled = true;
- }else if(model.getValue("/root/main/dschpatinfo/dschpatinfo/diet") == "02") { // 치료식
- //ipt_curediet.value = "";
- ipt_dietetc.value = "";
- ipt_dietetc.disabled = true;
- ipt_curediet.disabled = false;
- }else{
- ipt_curediet.value = "";
- ipt_dietetc.value = "";
- ipt_dietetc.disabled = true;
- ipt_curediet.disabled = true;
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_curediet" ref="/root/main/dschpatinfo/dschpatinfo/curediet" class="input_default" disabled="true" style="left:291px; top:433px; width:154px; height:19px; "/>
- <input id="ipt_dietetc" ref="/root/main/dschpatinfo/dschpatinfo/dietetc" class="input_default" disabled="true" style="left:291px; top:453px; width:154px; height:19px; "/>
- <select1 id="rdo_bath" ref="/root/main/dschpatinfo/dschpatinfo/bath" appearance="full" cellspacing="30" cols="5" overflow="visible" style="left:93px; top:525px; width:434px; height:33px; border-style:none; ">
- <choices>
- <item>
- <label>제한없음</label>
- <value>01</value>
- </item>
- <item>
- <label>샤워</label>
- <value>02</value>
- </item>
- <item>
- <label>통목욕</label>
- <value>03</value>
- </item>
- <item>
- <label>부분목욕</label>
- <value>04</value>
- </item>
- <item>
- <label>침상목욕</label>
- <value>05</value>
- </item>
- <item>
- <label>목욕금지</label>
- <value>06</value>
- </item>
- <item>
- <label>기타</label>
- <value>99</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/dschpatinfo/dschpatinfo/bath") == "99") {
- ipt_bathetc.value = "";
- ipt_bathetc.disabled = false;
-
- } else {
- ipt_bathetc.disabled = true;
- ipt_bathetc.value = "";
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_bathetc" ref="/root/main/dschpatinfo/dschpatinfo/bathetc" class="input_default" disabled="true" style="left:246px; top:541px; width:154px; height:19px; "/>
- <select1 id="rdo_actscop" ref="/root/main/dschpatinfo/dschpatinfo/actscop" appearance="full" cellspacing="30" cols="3" overflow="visible" style="left:93px; top:482px; width:342px; height:34px; border-style:none; ">
- <choices>
- <item>
- <label>제한없음</label>
- <value>01</value>
- </item>
- <item>
- <label>일상생활</label>
- <value>02</value>
- </item>
- <item>
- <label>안정</label>
- <value>03</value>
- </item>
- <item>
- <label>절대안정</label>
- <value>04</value>
- </item>
- <item>
- <label>정기적 운동</label>
- <value>05</value>
- </item>
- <item>
- <label>재활지도</label>
- <value>06</value>
- </item>
- </choices>
- </select1>
- <line id="line2" class="line_3" style="x1:0px; y1:37px; x2:544px; y2:37px; "/>
- <button id="btn_reqpatnm" disabled="true" style="left:550px; top:10px; width:45px; height:20px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/main/cond/pid");
- if(pid == ""){
- return;
- }
- if(reqPatInfo("pid", "ptbs", pid)==true){
- var hngnm = model.getValue("/root/init/patnm/patnm/hngnm");
- model.setValue("/root/main/cond/hngnm", hngnm);
- model.refresh();
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_VS" class="btn2_letter2" style="left:22px; top:82px; width:42px; height:19px; ">
- <caption>V/S</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRMNF04301");
-
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/minbp", model.getValue("/root/hidden/vitalsigninfo/vitalsigninfo/minbp"));
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/maxbp", model.getValue("/root/hidden/vitalsigninfo/vitalsigninfo/maxbp"));
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/pr", model.getValue("/root/hidden/vitalsigninfo/vitalsigninfo/pr"));
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/rr", model.getValue("/root/hidden/vitalsigninfo/vitalsigninfo/rr"));
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/bt", model.getValue("/root/hidden/vitalsigninfo/vitalsigninfo/bt"));
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_tmp" class="btn4_letter4" visibility="hidden" style="left:1027px; top:21px; width:80px; height:22px; ">
- <caption>임시저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var retMsg = messageBox("임시저장을", "Q004"); // 실행 하시겠습니까? yes=6, no=7
- if(retMsg != "6") {
- return ;
- }
-
- //컨설트 정보를 조회
- submit("TRMNF04304");
-
- var cnstflag = model.getValue("/root/init/cnstinfo/cnstflag");
-
- if((cnstflag == '20') || (cnstflag == '30')){
- messageBox("임시저장을", "E001");
- }else{
-
- fSetDschInfo("T"); // 인증여부( T : 임시저장, C : 인증저장)
-
- if(submit("TXMNF04301") == true) {
- model.makeValue("/root/send/signinfo/status", 'u');
- messageBox("저장이 ", "I001");
-
- } else {
- messageBox("저장이 실패하였습니다.", "E");
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_sign" class="btn4_letter4" style="left:1109px; top:21px; width:80px; height:22px; ">
- <caption>인증저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // -- 인증저장 시 필수 항목 여부 체크 (11.08.05)
- var dschwundrow = grd_dschwundstatlist.rows;
- var dschtoolrow = grd_dschtoolstatlist.rows;
-
- if( dschwundrow > 1 || dschtoolrow > 1 ) {
-
- if ( dschwundrow > 1) {
- var chkcnt = 0;
-
- for( var i = 1 ; i < dschwundrow ; i++){
- var chkvalue = model.getValue("/root/main/dschwundstatinfo/dschwundstatlist[" + i + "]/homecareyn");
-
- if (chkvalue == "Y"){
- chkcnt++;
- }
- }
- if ( chkcnt == 0 ) {
- messageBox(" *필수 항목이 누락 되었습니다.\n\r 최소한 하나의 [퇴원 시 욕창상태 *] 정보를 체크하세요." , "I000");
- return;
- }
- }
-
- if ( dschtoolrow > 1) {
- var chkcnt = 0;
-
- for( var i = 1 ; i < dschtoolrow ; i++){
- var chkvalue = model.getValue("/root/main/dschtoolstatinfo/dschtoolstatlist[" + i + "]/homecareyn");
- if (chkvalue == "Y"){
- chkcnt++;
- }
- }
- if ( chkcnt == 0 ) {
- messageBox(" *필수 항목이 누락 되었습니다.\n\r 최소한 하나의 [퇴원시 기구 및 삽관 상태 *] 정보를 체크하세요." , "I000");
- return;
- }
- }
- }
-
- var comments = model.getValue("/root/main/dschpatinfo/dschpatinfo/dschcaulist");
-
- if (comments == "") {
- messageBox(" *필수 항목이 누락 되었습니다.\n\r [퇴원 시 유의사항 *] 정보를 기록하세요." , "I000");
- return;
- }
-
- // //------- 손성훈
-
- model.setValue("/root/main/cond/recdt", getCurrentDate());
- model.setValue("/root/main/cond/pid", model.getValue("/root/send/req/pid"));
- model.setValue("/root/main/cond/recid", getUserId());
- model.setValue("/root/main/cond/recnm", getUserName());
- var retMsg = messageBox("인증저장을", "Q004"); // 실행 하시겠습니까? yes=6, no=7
- if(retMsg != "6") {
- return ;
- }
-
- submit("TRMNF04304"); // 퇴원시 가정간호의뢰 기록 - 컨설트 유무 확인
- var cnstflag = model.getValue("/root/init/cnstinfo/cnstflag");
-
- if((cnstflag == '20') || (cnstflag == '30')){
- messageBox("인증저장을", "E001");
- }else{
- fSetDschInfo("C"); // 퇴원시 가정간호의뢰기록 인증데이터 인스턴스셋팅 // 인증여부( T : 임시저장, C : 인증저장)
-
- if (Sign.signprocess() == true){
- //src="C:\CMCProject\application\webapps\emr\formmngtweb\xrw\SSMRF03800_OCR뷰어.xrw"
- // alert("인증성공" );
- // alert("1. 인증성공여부 false / true \n\n" + Sign.signedInfos[0]); // 인증성공여부 false / true
- // alert("2. 인증할 데이터 정보 (미기록 노드 제거전 원본 노드) \n\n" + Sign.signedInfos[3]); // 인증할 데이터 정보 (미기록 노드 제거전 원본 노드)
- // alert("2.--> text 데이터(없는 노드 포함된) text 형태 변형 결과 \n\n" + Sign.signedInfos[4]); // [3] 데이터(없는 노드 포함된) text 형태 변형 결과
- // alert("3. 인증할 데이터 정보(미기록 노드 제거된 정보) \n\n" + Sign.signedInfos[1]); // 인증할 데이터 정보(미기록 노드 제거된 정보)
- // alert("3. -->text 데이터(없는 노드 제거된) text 형태 변형 결과 \n\n" + Sign.signedInfos[5]); // ★[1] 데이터(없는 노드 제거된) text 형태 변형 결과 >>> [5]
- // alert("3. -->text --> sign 공인인증 처리후 데이터 \n\n" + Sign.signedInfos[2]); // ★공인인증 처리후 데이터 >>> [2]
-
- model.makeValue("/root/send/signinfo/pid", model.getValue("/root/main/cond/pid")); // 등록번호
- model.makeValue("/root/send/signinfo/orddd", model.getValue("/root/init/cond/list/indd")); // 진료일자
- model.makeValue("/root/send/signinfo/signno", model.getValue("/root/main/dschpatinfo/dschpatinfo/signno")); // 서명번호
- model.makeValue("/root/send/signinfo/cretno" , model.getValue("/root/init/cond/list/cretno")); // 생성번호
- model.makeValue("/root/send/signinfo/recdd", getCurrentDate());
- model.makeValue("/root/send/signinfo/rectm", getCurrentTime());
- model.makeValue("/root/send/signinfo/recsaveflag" , "Y"); // 전자서명 인적정보 변경여부(기록일시 변경되는 경우 : Y, 그외 : N)
- model.makeValue("/root/send/signinfo/signflag" , "20"); // 서명자료구분(01 : 진료, 02 : 간호, 20 : 가정간호)
- model.makeValue("/root/send/signinfo/signgenrflag", "I"); // 서명발생구분 (코드정의서 M0010 참조)
- model.makeValue("/root/send/signinfo/formcd", "0000002466"); // 각 기록지별 서식코드(0000002466 - 퇴원시 가정간호 의뢰 간호 기록)
- model.makeValue("/root/send/signinfo/orddeptcd" , model.getValue("/root/init/cond/list/orddeptcd")); // 진료부서코드
- model.makeValue("/root/send/signinfo/orddrid" , model.getValue("/root/init/cond/list/medispclid")); // 진료의사ID
- model.makeValue("/root/send/signinfo/signbfcnts" , Sign.signedInfos[1]); // 인증할 데이터 정보(미기록 노드 제거된 정보)
- model.makeValue("/root/send/signinfo/signaftcnts" , Sign.signedInfos[2]); // 공인인증 처리후 데이터
-
- model.makeValue("/root/send/signinfo/screenid", getScreenID());
-
- if(submit("TXMNF04301") == true) {
- model.makeValue("/root/send/signinfo/status", 'u');
- messageBox("저장이 ", "I001");
-
- submit("TRMNF04302");
-
- if(model.getValue("/root/main/dschpatinfo/dschpatinfo/diet") == '99'){
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/dietetc", model.getValue("/root/main/dschpatinfo/dschpatinfo/dietetc"));
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/curediet", "");
- }else if(model.getValue("/root/main/dschpatinfo/dschpatinfo/diet") == '02'){
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/curediet", model.getValue("/root/main/dschpatinfo/dschpatinfo/dietetc"));
- model.makeValue("/root/main/dschpatinfo/dschpatinfo/dietetc", "");
- }
-
-
- //욕창기록 조회
- submit("TRMNF04305");
-
- //기구 및 삽관 기로 조회
- submit("TRMNF04306");
-
- } else {
- messageBox("저장이 실패하였습니다.", "E");
- }
-
- //
- } else {
- alert("인증실패 Error Code :" + Sign.errcode);
- }
-
- }
- ]]>
- </script>
- </button>
- <caption id="caption19" style="left:100px; top:74px; width:45px; height:20px; ">BP</caption>
- <input id="input3" ref="/root/main/dschpatinfo/dschpatinfo/minbp" class="input_default" style="left:195px; top:73px; width:60px; height:19px; "/>
- <input id="ipt_dschmthdetc" ref="/root/main/dschpatinfo/dschpatinfo/dschmthdetc" class="input_default" disabled="true" style="left:166px; top:333px; width:154px; height:19px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|