12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073 |
- /*****************************************************************************************************************************************************************************
- 호스피스기록지(SMMNH01500.xfm - JScript )
- - Version :
- 1) : Ver.1.00.01
- ******************************************************************************************************************************************************************************/
- var xHospiceDetlPath = '/root/main/hospiceinfo/hospicedetl'; //호스피스 기본 인적사항 xPath
- var xPafaPath = '/root/main/hospicefamy/famylist'; //가족사항
- var xHiddenPath = '/root/hidden'; //hidden xPath
- var getParamCretdt = opener.javascript.getParameter("cretdd") + opener.javascript.getParameter("crettm");
-
- var saveChk = "";
- /**
- * @group :
- * @ver : 2007.05.21
- * @by : 하재륜
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 호스피스 기록지 조회
- * @param :
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSearch(){
- //조회하기 전 넘겨줄 기본 조건 값 세팅
- model.removenode("/root/send");
- model.makeValue("/root/send/pid",model.getValue("/root/hidden/pid"));
- model.makeValue("/root/send/cretdd",model.getValue("/root/hidden/cretdd"));
- model.makeValue("/root/send/crettm",model.getValue("/root/hidden/crettm"));
- model.makeValue("/root/send/reqdeptcd",model.getValue("/root/hidden/reqdeptcd"));
- model.makeValue("/root/send/reqdd",model.getValue("/root/hidden/reqdd"));
- model.makeValue("/root/send/refflag", "1");//상위 진단 조회
- submit("TRMNH02905", false);
- model.removenodeset(xHospiceDetlPath);
- grd_skinstatspec.rebuild();
- if(submit("TRMNH01501")){
- if( (model.getValue(xHospiceDetlPath + "/hngnm")) =="" ){
-
- if(checkOpener()){
- messageBox("등록된자료가 ","I004");
- window.close();
- }else{
- model.reset();
- model.refresh();
- messageBox("등록된자료가 ","I004");
- }
- }else{
- fSetData();
- }
- }else{
- messageBox('조희를', 'E009');
- }
- }
-
-
-
- function fSetData(){
- var cretdt = model.getValue("/root/main/hospiceinfo/hospicedetl/cretdd") + model.getValue("/root/main/hospiceinfo/hospicedetl/crettm");
-
- if (getNodesetCount("/root/main/hospiceinfo/recinfo") > 0 ){
- model.makeValue("/root/main/hospiceinfo/hospicedetl/bfrecddtm", model.getValue("/root/main/hospiceinfo/recinfo[cretdt = '" + cretdt + "']/recpkspec"));
- }
- cmb_bfrecddtm.refresh();
-
- var opt_rrgstno = model.getValue(xHospiceDetlPath + "/rrgstno");
- model.setValue(xHospiceDetlPath + "/rrgstno",opt_rrgstno.substring(0,8)+"******");//주민번호 세팅
- fSearchFamy();//가족사항 조회
- fSearchInpt();//입원내역조회
- fSearchMasv();//심리사회적평가 조회
- //진단명
- cmb_diagcd1.dispatch("xforms-value-changed");
- //입실일시 있을시 입실방법 , 입실시 동반자 활성화
- if ((ipt_inrmdd.value == '' )||(ipt_inrmdd.value == null )) {
- cmb_inrmmthdcd.disabled = true;
- cmb_inrmacompstcd.disabled = true;
- }else{
- cmb_inrmmthdcd.disabled = false;
- cmb_inrmacompstcd.disabled = false;
- }
- //의뢰사유 기타선택시 기타사유명입력칸활성화
- if (cmb_reqresnflag.value == "99"){
- ipt_reqresnetc.disabled = false;
- }else{
- ipt_reqresnetc.disabled = true;
- }
-
- //추천경유 기타 사유
- cmb_marystatcd.dispatch("xforms-value-changed");
- var reqdd = model.getValue(xHospiceDetlPath + "/reqdd");
- var waitdd = model.getValue(xHospiceDetlPath + "/waitdd");
-
- //관리현황 의뢰와 대기시만 활성화
- if (( reqdd >= "19000101")||( waitdd >="19000101")){
- cmb_mngtprescd.disabled = false;
- }else{
- cmb_mngtprescd.disabled = true;
- }
- //본원타원
- if (cmb_reqtypeflag.value=='01' ){//본원
- cmb_reqhospnm.visible = false;//타 병원 리스트
- cmb_reqdeptnm.visible = true;//본원 진료과 리스트
- model.removenode("/root/send");
- model.makeValue("/root/send/orddeptcd", model.getValue("/root/main/hospiceinfo/hospicedetl/reqtypespec"));
- submit("TRMNH02903");
- cmb_drlist.visible = true;//의사리스트
- opt_reqtypespec.visible = false;
- }else if (cmb_reqtypeflag.value=='02'){
- cmb_reqhospnm.visible = true;
- cmb_reqdeptnm.visible = false;//본원 진료과 리스트
- cmb_drlist.visible = false;//의사리스트
- opt_reqtypespec.visible = false;
- }else if (cmb_reqtypeflag.value=='03'){
- cmb_reqhospnm.visible = false;//타 병원 리스트
- cmb_reqdeptnm.visible = true;//본원 진료과 리스트
- model.removenode("/root/send");
- model.makeValue("/root/send/orddeptcd", model.getValue("/root/main/hospiceinfo/hospicedetl/reqhospnm"));
- submit("TRMNH02903");
- cmb_drlist.visible = true;//의사리스트
- opt_reqtypespec.visible = false;
- }
- //직업 기타선택시 기타사유명입력칸활성화
- cmb_jobcd.dispatch("xforms-value-changed");
-
- //결혼상태 기타 사유
- cmb_marystatcd.dispatch("xforms-value-changed");
-
- //추천경유 기타 사유
- cmb_recmpsgecd.dispatch("xforms-value-changed");
-
- //정서적상태
- chk_emotstatspec.dispatch("onclick");
-
- //임종돌봄
- chk_agonalcare.dispatch("onclick");
-
- //정신적돌봄
- chk_sptsympcare.dispatch("onclick");
- //가계도
- var genogrmnm = model.getValue(xHospiceDetlPath + "/genogrmnm");
- if( genogrmnm == ""){
- caption133.visible = false;
- }else{
- caption133.visible = true;
- }
- //사별가족 부분
- if((ipt_agonaldd.value == '' )||(ipt_agonaldd.value == null )) {
- cmb_agonalplcecd.disabled = true;
- }else {
- var agonalcd = model.getValue("/root/main/hospiceinfo/hospicedetl/agonaldd");
- var agonal49 = getAddDay(agonalcd,"49");
- var agonal365 = getAddDay(agonalcd,"365");
- model.setValue("/root/temp/hospicedetl/agonal49",agonal49);
- model.setValue("/root/temp/hospicedetl/agonal365",agonal365);
- cmb_agonalplcecd.disabled = false;
- }
- var cureprescondspec = model.getValue(xHospiceDetlPath + "/cureprescondspec");
- if ((isSearchString(cureprescondspec, "6")) ==true)
- ipt_cureprescondetcnm.disabled = false;
- else
- ipt_cureprescondetcnm.disabled = true;
- var ccspec = model.getValue(xHospiceDetlPath + "/ccspec");
-
-
- if(Number(model.getValue(xHospiceDetlPath + "/chstval") ) > 0 ){
- model.setValue("/root/temp/hospicedetl/chstval","C");
- ipt_chstval.disabled = false;
- }
- if(Number(model.getValue(xHospiceDetlPath + "/pelvval") ) > 0 ){
- model.setValue("/root/temp/hospicedetl/pelvval","P");
- ipt_pelvval.disabled = false;
- }
- if(Number(model.getValue(xHospiceDetlPath + "/regionvas") ) > 0 ){
- model.setValue("/root/temp/hospicedetl/regionvas","R");
- ipt_regionvas.disabled = false;
- }
- if(Number(model.getValue(xHospiceDetlPath + "/neckvas") ) > 0 ){
- model.setValue("/root/temp/hospicedetl/neckvas","N");
- ipt_neckvas.disabled = false;
- }
- if(Number(model.getValue(xHospiceDetlPath + "/waistvas") ) > 0 ){
- model.setValue("/root/temp/hospicedetl/waistvas","W");
- ipt_waistvas.disabled =false;
- }
- if(Number(model.getValue(xHospiceDetlPath + "/headval") ) > 0 ){
- model.setValue("/root/temp/hospicedetl/headval","H");
- ipt_headval.disabled = false;
- }
- if(Number(model.getValue(xHospiceDetlPath + "/etcval") ) > 0 ){
- model.setValue("/root/temp/hospicedetl/etcval","E");
- ipt_etcval.disabled = false;
- ipt_etcnm.disabled = false;
- }
- model.makeNode(xHospiceDetlPath + "/deptcd");
- model.makeNode(xHospiceDetlPath + "/docucode");
- model.makeNode(xHiddenPath + "/mapindd");
- model.setValue(xHiddenPath + '/mapindd', model.getValue(xHospiceDetlPath + '/mapindd'));
- model.refresh();
- }
- /**
- * @group :
- * @ver : 2007.05.24
- * @by : 하재륜
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 호스피스 환자가족 조회 (
- * @param :
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSearchFamy(){
- model.removenode("/root/send");
- model.makeValue("/root/send/pid",model.getValue(xHospiceDetlPath + "/pid"));
- model.removenodeset(xPafaPath);
- submit("TRMNH01503");
- }
- /**
- * @group :
- * @ver : 2007.05.28
- * @by : 하재륜
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 호스피스 입원내역 조회 (
- * @param : pid
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSearchInpt(){
- model.removenode("/root/send");
- model.makeValue("/root/send/pid",model.getValue(xHospiceDetlPath + "/pid"));
- model.makeValue("/root/send/cretdd",model.getValue(xHospiceDetlPath + "/cretdd"));
- model.removenodeset("/root/main/hospiceinpt/inptlist");
- submit("TRMNH01504");
- }
- /**
- * @group :
- * @ver : 2007.05.28
- * @by : 하재륜
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 심리사회적평가 조회 (
- * @param : pid
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSearchMasv(){
- model.removenode("/root/send");
- model.makeValue("/root/send/pid", model.getValue(xHospiceDetlPath + "/pid"));
- model.makeValue("/root/send/instcd",model.getValue(xHospiceDetlPath + "/instcd"));
- model.makeValue("/root/send/cretdd",model.getValue(xHospiceDetlPath + "/cretdd"));
- model.makeValue("/root/send/crettm",model.getValue(xHospiceDetlPath + "/crettm"));
- model.resetInstanceNode("/root/main/hospicemasv/masvdetl");
- submit("TRMNH01505");
- }
- /**
- * @group :
- * @ver : 2007.05.18
- * @by : 하재륜
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 호스피스 기록지 저장
- * @desc : 가계도 저장 로직 추가 2007.11.10 - dhkim
- * @param :
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSave(){
- //임종일이 입력되어 있으면 환자구분을 제외(O), 퇴원사유를 병원임종(01), 종결일자를 임종일로 저장한다.
- // var cretdd = model.getValue(xHospiceDetlPath + "/cretdd"); //69생성일자
- // var crettm = model.getValue(xHospiceDetlPath + "/crettm"); //70생성시간
- // var caretdt = cretdd + crettm;
- //
- // if( getParamCretdt != "" && getParamCretdt != caretdt ){
- // messageBox("입실시간이 같지않습니다.","E");
- // return;
- // }
-
- var agonaldd = model.getValue(xHospiceDetlPath + "/agonaldd");
- var wardcd = model.getValue(xHospiceDetlPath + '/wardcd');
- var status = model.getValue(xHospiceDetlPath + '/status');
- var intvdd = model.getValue(xHospiceDetlPath + '/intvdd');
- var waitdd = model.getValue(xHospiceDetlPath + '/waitdd');
- var inrmdd = model.getValue(xHospiceDetlPath + '/inrmdd');
- var enddd = model.getValue(xHospiceDetlPath + '/enddd');
- var exptresn = model.getValue(xHospiceDetlPath + '/exptresn');
- var waitenddd = model.getValue(xHospiceDetlPath + '/waitenddd');
- var waitendresn = model.getValue(xHospiceDetlPath + '/waitendresn');
- var dschdd = model.getValue(xHospiceDetlPath + '/dschdd');
- var dschresn = model.getValue(xHospiceDetlPath + '/dschresn');
- var agonalplcecd = model.getValue(xHospiceDetlPath + '/agonalplcecd');
- var hospicewardcd = model.getValue("/root/init/viewctrl/viewctrllist/viewctrlinfo/cdnm");
- if(agonaldd.length == 8){
- /*퇴실한 임종환자 저장 시 수정
- if(agonalplcecd == ''){
- messageBox("임종장소를 ","C001");
- return;
- }
- */
- if(status == "I"){
- model.setValue(xHospiceDetlPath + "/waitstat","P");
- model.setValue(xHospiceDetlPath + "/waitendresn","04");
- model.setValue(xHospiceDetlPath + "/waitenddd",agonaldd);
- }else { // status in "O","S"
- if(wardcd == hospicewardcd){ // 호스피스 병동
- model.setValue(xHospiceDetlPath + "/waitstat","L");
- model.setValue(xHospiceDetlPath + "/dschresn","02");
- model.setValue(xHospiceDetlPath + "/dschtype","02");
- model.setValue(xHospiceDetlPath + "/dschdd",agonaldd);
- }else { // 호스피스 병동이 아닌경우
- model.setValue(xHospiceDetlPath + "/waitstat","O");
- model.setValue(xHospiceDetlPath + "/exptresn","03");
- model.setValue(xHospiceDetlPath + "/enddd",agonaldd);
- }
- }
- }else{
- //입실일자 있으면 waitstat는 I(입실)
- if( inrmdd == "19000101" ){
- model.setValue(xHospiceDetlPath + "/inrmdd", "19000101");
- model.setValue(xHospiceDetlPath + "/inrmtm", "");
- }else if( inrmdd >= "19000101"){
- //실제입원되어 있는 환자중 호스피스 병동(병동코드 : '3050136000')이 아닐때 입실일자가 입력되면 경고메세지를 출력한다.
- if(wardcd == hospicewardcd){
- //model.setValue(xHospiceDetlPath + "/waitstat","I") ;
- }else{
- messageBox('호스피스병동에 입원한 환자가 아니므로 입실일을 입력', 'E001');
- model.setValue(xHospiceDetlPath + "/inrmdd", "19000101");
- model.setValue(xHospiceDetlPath + "/inrmtm", "");
- return ;
- }
- }
- //서비스종료일자 있으면 waitstat는 O(서비스종료)
- if( enddd == "19000101"){
- model.setValue(xHospiceDetlPath + "/exptresn","19000101");
- model.setValue(xHospiceDetlPath + "/exptresnetc","");
- }else if( enddd >= "19000101"){
- if( exptresn != "" ){
- if(exptresn == '03'){
- model.setValue(xHospiceDetlPath + "/agonaldd", enddd);
- }else{
- model.setValue(xHospiceDetlPath + "/agonaldd","");
- model.setValue(xHospiceDetlPath + "/agonalplcecd","");
- }
- // model.setValue(xHospiceDetlPath + "/waitstat","O");
- }
- if( exptresn == '' ){
- messageBox("서비스종료사유를 ","C001");
- return false;
- }
- }
- //대기종료일자 있으면 waitstat는 P(대기종료)
- if( waitenddd == "19000101" ){
- model.setValue(xHospiceDetlPath + "/waitendresn","19000101");
- model.setValue(xHospiceDetlPath + "/waitendresnetc","");
- }else if(waitenddd!=""){
- if(waitendresn!=""){
- if(waitendresn == '04'){
- model.setValue(xHospiceDetlPath + "/agonaldd", waitenddd);
- }else{
- model.setValue(xHospiceDetlPath + "/agonaldd","");
- model.setValue(xHospiceDetlPath + "/agonalplcecd","");
- }
- // model.setValue(xDetlPath + "/waitstat","P");
- }
- if(waitendresn == ''){
- messageBox("대기종료사유를 ","C001");
- return false;
- }
- }
- //퇴실일자 있으면 waitstat는 L(퇴실)
- if( dschdd == "19000101" ){
- model.setValue(xHospiceDetlPath + "/dschtype","");
- model.setValue(xHospiceDetlPath + "/dschresn","");
- model.setValue(xHospiceDetlPath + "/dschresnetc","");
- model.setValue(xHospiceDetlPath + "/dschlnk","");
- model.setValue(xHospiceDetlPath + "/dschlnketc","");
- }else if( dschdd >= "19000101" ){
- if(dschresn!=""){
- if(dschresn == '02'){
- model.setValue(xHospiceDetlPath + "/agonaldd", dschdd);
- }else{
- model.setValue(xHospiceDetlPath + "/agonaldd","");
- model.setValue(xHospiceDetlPath + "/agonalplcecd","");
- }
- // model.setValue(xHospiceDetlPath + "/waitstat","L");
- }
- if(dschresn == ''){
- messageBox("퇴실사유를 ","C001");
- return false;
- }
- }
- } //else 종료
- //피부상태
- model.removenode("/root/send/skinstatspec/skinstatlists");
- if(grd_skinstatspec.rows<2) grd_skinstatspec.addRow();
- var chstval = model.getValue(xHospiceDetlPath + "/chstval") ; //가슴값
- var pelvval = model.getValue(xHospiceDetlPath + "/pelvval") ; //골반값
- var regionvas = model.getValue(xHospiceDetlPath + "/regionvas"); //복부값
- var neckvas = model.getValue(xHospiceDetlPath + "/neckvas") ; //목값
- var waistvas = model.getValue(xHospiceDetlPath + "/waistvas") ; //허리값
- var headval = model.getValue(xHospiceDetlPath + "/headval") ; //머리값
- var etcval = model.getValue(xHospiceDetlPath + "/etcval") ; //기타값
- //널처리
- if(chstval == "")
- chstval = "0";
- if(pelvval == "")
- pelvval = "0";
- if(regionvas == "")
- regionvas = "0";
- if(neckvas == "")
- neckvas = "0";
- if(waistvas == "")
- waistvas = "0";
- if(headval == "")
- headval = "0";
- if(etcval == "")
- etcval = "0";
- //파리채 column 명 정의
- var sData = "pid" //01등록번호
- +"▦hngnm" //02이름
- +"▦sexage" //03S/A
- +"▦rrgstno" //04주민등록번호
- +"▦hosecnt" //05입원횟수
- +"▦inrmdd" //06입실일자
- +"▦inrmtm" //07입실시간
- +"▦inrmmthdcd" //08입실방법
- +"▦inrmacompstcd" //09입실시동반자
- +"▦reqdd" //10의뢰일
- +"▦reqindd" //11의뢰희망일
- +"▦intvdd" //12면담일
- +"▦waitdd" //13대기일자
- +"▦reqtypeflag" //14의뢰형태
- +"▦reqtypespec" //15의뢰과(주치의)
- +"▦atdoctid" //15주치의
- +"▦reqhospnm" //16의뢰병원
- +"▦reqresnflag" //17의뢰사유
- +"▦reqresnetc" //18의뢰사유기타
- +"▦recmpsgecd" //19추천경유
- +"▦itrdmoodcd" //20소개받았을때기분
- +"▦mngtprescd" //21관리현황
- +"▦endawaryn" //22말기인식환자
- +"▦proendawaryn" //23말기인식보호자
- +"▦cncrawaryn" //24암인식환자
- +"▦procncrawaryn" //25암인식보호자
- +"▦agonalhopeplcecd" //26임종희망장소
- +"▦icdrindd" //27입원일
- +"▦icdrroomcd" //28입실전병실
- +"▦religncd" //29종교
- +"▦baptnm" //30세레명
- +"▦parishchrchnm" //31본당
- +"▦baptismdd" //32영세일자
- +"▦emerbaptdd" //33대세일자
- +"▦sickdivser" //34병자성사
- +"▦jobcd" //35직업코드
- +"▦jobnm" //36직업
- +"▦edcugrdecd" //37교육정도
- +"▦marystatcd" //38결혼형태
- +"▦chldrncnt" //39자녀수
- +"▦termengnm" //40진단명
- +"▦diagcd1" //41diagcd1
- +"▦diagcd2" //42diagcd2
- +"▦attackdd" //43발병일
- +"▦agonaldd" //44임종일자
- +"▦agonalplcecd" //45임종장소
- +"▦separationfamyyn" //46사별가족방문여부
- +"▦memodoryn" //47추모식행사여부
- +"▦mmmassyn" //48월미사참석여부
- +"▦donatyn" //49시신기증여부
- +"▦cureprescondspec" //50치료현황
- +"▦cureprescondetcnm" //51치료현황(기타명)
- +"▦ccspec" //52C/C
- +"▦ccetcnm" //53C/C(기타명)
- +"▦chstval" //54가슴값
- +"▦pelvval" //55골반값
- +"▦regionvas" //56복부값
- +"▦neckvas" //57목값
- +"▦waistvas" //58허리값
- +"▦headval" //59머리값
- +"▦etcval" //60기타값
- +"▦etcnm" //61기타명
- +"▦skinstatyn" //62피부상태증상여부
- +"▦skinstatspec" //63피부상태
- +"▦emotstatspec" //64정서상태
- +"▦intesympspec" //65영적고통
- +"▦intereqspec" //66영적요구
- +"▦indd" //67입원일자
- +"▦cretno" //68생성번호
- +"▦cretdd" //69생성일자
- +"▦crettm" //70생성시간
- +"▦status" //72의뢰경로
- +"▦enddd" //73서비스종료일
- +"▦exptresn" //74서비스종료사유
- +"▦exptresnetc" //74_1서비스종료사유기타
- +"▦waitenddd" //75대기종료일
- +"▦waitendresn" //76대기종료사유
- +"▦waitendresnetc" //76_1대기종료사유기타
- +"▦dschdd" //77퇴실일
- +"▦dschtype" //78퇴실형태
- +"▦dschresn" //79퇴실사유
- +"▦dschresnetc" //79_1퇴실사유기타
- +"▦dschlnk" //79_2퇴실후연계
- +"▦dschlnketc" //79_3퇴실후연계기타
- +"▦recdd" //80등록일자
- +"▦rectm" //81등록시간
- +"▦mapindd" //82가계도등록일자
- +"▦deptcd" //83가계도등록부서
- +"▦docucode" //84가계도서식코드
- +"▦genogrmnm" //85가계도
- +"▦reqdeptcd" //86의뢰과
- +"▦famycnst" //87가족상담
- +"▦ecog" //88ECOG
- +"▦progrec" //89경과기록
- +"▦sptstatspec" //정신적상태
- +"▦soclecomysituat"//사회, 경제적상태
- +"▦emotstatdesc" //정서적상태 기타사유
- +"▦agonalcaredesc"//영적돌봄 상세사항
- +"▦agonalcare" //임종돌봄
- +"▦ccsympcare" //신체적증상 돌봄
- +"▦sptsympcare" //정신적 돌봄
- +"▦intesympcare" //영적돌봄
- +"▦soclecomycare" //사회 경제적돌봄
- +"▦sptsymp1" //정신적 돌봄(개별상담횟수)
- +"▦sptsymp2" //정신적 돌봄(가족상담횟수)
- +"▦recmpsgeetc" //추천경유기타
- +"▦cncrdiaghosp" //말기암 진단병원
- +"▦cncrdiagdd" //말기암진단일
- +"▦marystatdesc" //결혼상태(기타)상세사항
- +"▦pipeinsert" //관삽입
- +"▦soclecomysituatdesc" //사회, 경제적상태 기타사유
- +"▦famyheal" //환자와가족이원하는치료
- +"▦longplan" //장기목표
- +"▦shortplan" //단기목표
- +"▦signno" //인증번호
- +"▩";
- //피부상태 xml데이터
- var xSkinstatspec = instance1.selectSingleNode(xHospiceDetlPath + "/skinstatspec/skinstatlists").xml;
- var xMap = instance1.selectSingleNode(xHospiceDetlPath + '/genogrmnm') ;
- sData += model.getValue(xHospiceDetlPath + "/pid") //01등록번호
- +"▦" + model.getValue(xHospiceDetlPath + "/hngnm") //02이름
- +"▦" + model.getValue(xHospiceDetlPath + "/sexage") //03S/A
- +"▦" + model.getValue(xHospiceDetlPath + "/rrgstno") //04주민등록번호
- +"▦" + model.getValue(xHospiceDetlPath + "/hosecnt") //05입원횟수
- +"▦" + model.getValue(xHospiceDetlPath + "/inrmdd") //06입실일자
- +"▦" + model.getValue(xHospiceDetlPath + "/inrmtm") //07입실시간
- +"▦" + model.getValue(xHospiceDetlPath + "/inrmmthdcd") //08입실방법
- +"▦" + model.getValue(xHospiceDetlPath + "/inrmacompstcd") //09입실시동반자
- +"▦" + model.getValue(xHospiceDetlPath + "/reqdd") //10의뢰일
- +"▦" + model.getValue(xHospiceDetlPath + "/reqindd") //11의뢰희망일
- +"▦" + model.getValue(xHospiceDetlPath + "/intvdd") //12면담일
- +"▦" + model.getValue(xHospiceDetlPath + "/waitdd") //13대기일자
- +"▦" + model.getValue(xHospiceDetlPath + "/reqtypeflag") //14의뢰형태
- +"▦" + model.getValue(xHospiceDetlPath + "/reqtypespec") //15의뢰과(주치의)
- +"▦" + model.getValue(xHospiceDetlPath + "/atdoctid") //15주치의
- +"▦" + model.getValue(xHospiceDetlPath + "/reqhospnm") //16의뢰병원
- +"▦" + model.getValue(xHospiceDetlPath + "/reqresnflag") //17의뢰사유
- +"▦" + model.getValue(xHospiceDetlPath + "/reqresnetc") //18의뢰사유기타
- +"▦" + model.getValue(xHospiceDetlPath + "/recmpsgecd") //19추천경유
- +"▦" + model.getValue(xHospiceDetlPath + "/itrdmoodcd") //20소개받았을때기분
- +"▦" + model.getValue(xHospiceDetlPath + "/mngtprescd") //21관리현황
- +"▦" + model.getValue(xHospiceDetlPath + "/endawaryn") //22말기인식환자
- +"▦" + model.getValue(xHospiceDetlPath + "/proendawaryn") //23말기인식보호자
- +"▦" + model.getValue(xHospiceDetlPath + "/cncrawaryn") //24암인식환자
- +"▦" + model.getValue(xHospiceDetlPath + "/procncrawaryn") //25암인식보호자
- +"▦" + model.getValue(xHospiceDetlPath + "/agonalhopeplcecd") //26임종희망장소
- +"▦" + model.getValue(xHospiceDetlPath + "/icdrindd") //27입원일
- +"▦" + model.getValue(xHospiceDetlPath + "/icdrroomcd") //28입실전병실
- +"▦" + model.getValue(xHospiceDetlPath + "/religncd") //29종교
- +"▦" + model.getValue(xHospiceDetlPath + "/baptnm") //30세레명
- +"▦" + model.getValue(xHospiceDetlPath + "/parishchrchnm") //31본당
- +"▦" + model.getValue(xHospiceDetlPath + "/baptismdd") //32영세일자
- +"▦" + model.getValue(xHospiceDetlPath + "/emerbaptdd") //33대세일자
- +"▦" + model.getValue(xHospiceDetlPath + "/sickdivser") //34병자성사
- +"▦" + model.getValue(xHospiceDetlPath + "/jobcd") //35직업코드
- +"▦" + model.getValue(xHospiceDetlPath + "/jobnm") //36직업
- +"▦" + model.getValue(xHospiceDetlPath + "/edcugrdecd") //37교육정도
- +"▦" + model.getValue(xHospiceDetlPath + "/marystatcd") //38결혼형태
- +"▦" + model.getValue(xHospiceDetlPath + "/chldrncnt") //39자녀수
- +"▦" + model.getValue(xHospiceDetlPath + "/termengnm") //40진단명
- +"▦" + model.getValue(xHospiceDetlPath + "/diagcd1") //41diagcd1
- +"▦" + model.getValue(xHospiceDetlPath + "/diagcd2") //42diagcd2
- +"▦" + model.getValue(xHospiceDetlPath + "/attackdd") //43발병일
- +"▦" + model.getValue(xHospiceDetlPath + "/agonaldd") //44임종일자
- +"▦" + model.getValue(xHospiceDetlPath + "/agonalplcecd") //45임종장소
- +"▦" + model.getValue(xHospiceDetlPath + "/separationfamyyn") //46사별가족방문여부
- +"▦" + model.getValue(xHospiceDetlPath + "/memodoryn") //47추모식행사여부
- +"▦" + model.getValue(xHospiceDetlPath + "/mmmassyn") //48월미사참석여부
- +"▦" + model.getValue(xHospiceDetlPath + "/donatyn") //49시신기증여부
- +"▦" + model.getValue(xHospiceDetlPath + "/cureprescondspec") //50치료현황
- +"▦" + model.getValue(xHospiceDetlPath + "/cureprescondetcnm") //51치료현황(기타명)
- +"▦" + model.getValue(xHospiceDetlPath + "/ccspec") //52C/C
- +"▦" + model.getValue(xHospiceDetlPath + "/ccetcnm") //53C/C(기타명)
- +"▦" + chstval //54가슴값
- +"▦" + pelvval //55골반값
- +"▦" + regionvas //56복부값
- +"▦" + neckvas //57목값
- +"▦" + waistvas //58허리값
- +"▦" + headval //59머리값
- +"▦" + etcval //60기타값
- +"▦" + model.getValue(xHospiceDetlPath + "/etcnm") //61기타명
- +"▦" + model.getValue(xHospiceDetlPath + "/skinstatyn") //62피부상태증상여부
- +"▦" + xSkinstatspec //63피부상태
- +"▦" + model.getValue(xHospiceDetlPath + "/emotstatspec") //64정서상태
- +"▦" + model.getValue(xHospiceDetlPath + "/intesympspec") //65영적고통
- +"▦" + model.getValue(xHospiceDetlPath + "/intereqspec") //66영적요구
- +"▦" + model.getValue(xHospiceDetlPath + "/indd") //67입원일자
- +"▦" + model.getValue(xHospiceDetlPath + "/cretno") //68생성번호
- +"▦" + model.getValue(xHospiceDetlPath + "/cretdd") //69생성일자
- +"▦" + model.getValue(xHospiceDetlPath + "/crettm") //70생성시간
- +"▦" + model.getValue(xHospiceDetlPath + "/status") //72의뢰경로
- +"▦" + model.getValue(xHospiceDetlPath + "/enddd") //73서비스종료일
- +"▦" + model.getValue(xHospiceDetlPath + "/exptresn") //74서비스종료사유
- +"▦" + model.getValue(xHospiceDetlPath + "/exptresnetc") //74_1서비스종료사유
- +"▦" + model.getValue(xHospiceDetlPath + "/waitenddd") //75대기종료일
- +"▦" + model.getValue(xHospiceDetlPath + "/waitendresn") //76대기종료사유
- +"▦" + model.getValue(xHospiceDetlPath + "/waitendresnetc") //76_1대기종료사유기타
- +"▦" + model.getValue(xHospiceDetlPath + "/dschdd") //77퇴실일
- +"▦" + model.getValue(xHospiceDetlPath + "/dschtype") //78퇴실형태
- +"▦" + model.getValue(xHospiceDetlPath + "/dschresn") //79퇴실사유
- +"▦" + model.getValue(xHospiceDetlPath + "/dschresnetc") //79_1퇴실사유기타
- +"▦" + model.getValue(xHospiceDetlPath + "/dschlnk") //79_2퇴실후연계
- +"▦" + model.getValue(xHospiceDetlPath + "/dschlnketc") //79_3퇴실후연계기타
- +"▦" + model.getValue(xHospiceDetlPath + "/recdd") //80등록일자
- +"▦" + model.getValue(xHospiceDetlPath + "/rectm") //81등록시간
- +"▦" + model.getValue(xHospiceDetlPath + "/mapindd") //82가계도등록일자
- +"▦" + model.getValue(xHospiceDetlPath + "/deptcd") //83가계도등록부서
- +"▦" + model.getValue(xHospiceDetlPath + "/docucode") //84가계도서식코드
- +"▦" + model.getValue(xHospiceDetlPath + "/genogrmnm") //85가계도
- +"▦" + model.getValue(xHospiceDetlPath + "/reqdeptcd") //86의뢰과
- +"▦" + instance1.selectNodesXml(xHospiceDetlPath + "/famycnst/famylist") //87가족상담
- +"▦" + model.getValue(xHospiceDetlPath + "/ecog") //86의뢰과
- +"▦" + instance1.selectNodesXml(xHospiceDetlPath + "/progrec/progreclist") //87가족상담
- +"▦" + model.getValue(xHospiceDetlPath + "/sptstatspec") //정신적상태
- +"▦" + model.getValue(xHospiceDetlPath + "/soclecomysituat")//사회, 경제적상태
- +"▦" + model.getValue(xHospiceDetlPath + "/emotstatdesc") //정서적상태 기타사유
- +"▦" + model.getValue(xHospiceDetlPath + "/agonalcaredesc")//영적돌봄 상세사항
- +"▦" + model.getValue(xHospiceDetlPath + "/agonalcare") //임종돌봄
- +"▦" + model.getValue(xHospiceDetlPath + "/ccsympcare") //신체적증상 돌봄
- +"▦" + model.getValue(xHospiceDetlPath + "/sptsympcare") //정신적 돌봄
- +"▦" + model.getValue(xHospiceDetlPath + "/intesympcare") //영적돌봄
- +"▦" + model.getValue(xHospiceDetlPath + "/soclecomycare") //사회 경제적돌봄
- +"▦" + model.getValue(xHospiceDetlPath + "/sptsymp1") //정신적 돌봄(개별상담횟수)
- +"▦" + model.getValue(xHospiceDetlPath + "/sptsymp2") //정신적 돌봄(가족상담횟수)
- +"▦" + model.getValue(xHospiceDetlPath + "/recmpsgeetc") //추천경유기타
- +"▦" + model.getValue(xHospiceDetlPath + "/cncrdiaghosp") //말기암 진단병원
- +"▦" + model.getValue(xHospiceDetlPath + "/cncrdiagdd") //말기암진단일
- +"▦" + model.getValue(xHospiceDetlPath + "/marystatdesc") //결혼상태(기타)상세사항
- +"▦" + model.getValue(xHospiceDetlPath + "/pipeinsert") //관삽입
- +"▦" + model.getValue(xHospiceDetlPath + "/soclecomysituatdesc") //사회, 경제적상태 기타사유
- +"▦" + model.getValue(xHospiceDetlPath + "/famyheal") //환자와가족이원하는치료
- +"▦" + model.getValue(xHospiceDetlPath + "/longplan") //장기목표
- +"▦" + model.getValue(xHospiceDetlPath + "/shortplan") //단기목표
- +"▦" + model.getValue(xHospiceDetlPath + "/signno") //인증번호
- +"▩" ;
- //가족사항
- var sPafaData =
- "pid" //01 등록번호
- + "▦cretseqno" //02 생성일련번호
- + "▦instcd" //03 병원기관코드
- + "▦famyrel" //04 가족관계
- + "▦famyrelnm" //04 가족관계명
- + "▦zipcd1" //05 우편번호1
- + "▦zipcd2" //06 우편번호2
- + "▦zipcdseq" //07 우편번호 순서(일련번호)
- + "▦detladdr" //08 상세주소(하위주소)
- + "▦famynm" //09 가족이름
- + "▦marytypeflag" //10 결혼형태구분
- + "▦marytypeflagnm" //10 결혼형태구분
- + "▦cntctel" //11 전화번호
- + "▦maincarednor" //12 주간호제공자
- + "▦cmt" //13 비고
- + "▦separationfamyyn" //14 사별가족여부
- + "▦address" //15 주소
- + "▩" ;
- for (i=1;i < grd_famylist.rows; i++ ) {
- sPafaData +=
- model.getValue(xPafaPath + '[' + i + ']/pid') //01 등록번호
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/cretseqno') //02 생성일련번호
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/instcd') //03 병원기관코드
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/famyrel') //04 가족관계
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/famyrelnm') //04 가족관계명
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/zipcd1') //05 우편번호1
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/zipcd2') //06 우편번호2
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/zipcdseq') //07 우편번호 순서(일련번호)
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/detladdr') //08 상세주소(하위주소)
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/famynm') //09 가족이름
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/marytypeflag') //10 결혼형태구분
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/marytypeflagnm') //10 결혼형태구분명
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/cntctel') //11 전화번호
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/maincarednor') //12 주간호제공자
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/cmt') //13 비고
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/separationfamyyn') //14 사별가족여부
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/address') //15 주소
- + '▩';
- }
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.makeValue("/root/send/sData" ,sData );
- model.makeValue("/root/send/sPafaData" ,sPafaData );
-
- model.removeNode("/root/main/signSaveData");
- model.makeNode("/root/main/signSaveData");
- model.copyNode("/root/main/signSaveData", "/root/main/hospiceinfo/hospicedetl");
- //model.setValue("/root/main/signSaveData",);
-
- model.makeNode("/root/main/signSaveData/hospicefamylist");
- model.makeNode("/root/main/signSaveData/hospiceinpt");
-
- //model.copyNodesetType("/root/main/signSaveData/hospicefamylist", "/root/main/hospicefamy", "replace", model, model);
- copyNodeset("/root/main/signSaveData/hospicefamylist", "/root/main/hospicefamy/famylist");
- model.copyNode("/root/main/signSaveData/hospiceinpt", "/root/main/hospiceinpt");
- //model.makeValue("/root/main/signSaveData/famylist",sPafaData);
-
- if(saveChk != ""){
- if (!fSign()) return; //인증저장 로직 추가
- }
- submit("TXMNH01502");
- if(checkOpener()){
- messageBox("자료 저장이 ","I002");
- //window.close();
- if(saveChk != ""){
- fSearch(); //인증저장 후 signno 조회
- }
- }else{
- // model.reset();
- model.resetInstancenode("/root/main");
- model.resetInstancenode("/root/temp");
- model.refresh();
- }
- }
- /**
- * @group :
- * @ver : 2007.04.23
- * @by : 하재륜
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 로드시
- * @param :
- * @return : 입력한날짜 + 날자
- * @---------------------------------------------------
- */
- function getAddDay(inputday,addend){
- var backDate ="";
- var rt = 0;
- var yyyy = inputday.substring(0,4) +"";
- var mm = inputday.substring(4,6) +"";
- var dd = inputday.substring(6,8) +"";
- var startDate = new Date(yyyy,(eval(mm)-1),dd);
- startDate.setTime(startDate.getTime()+(86400000*addend));
- NowYear = startDate.getYear();// 년
- NowMonth = startDate.getMonth()+1;// 월
- NowDay = startDate.getDate(); // 일
- backDate += NowYear ; //년도
- if (NowMonth < 10 )
- backDate += "0" + NowMonth ;
- else
- backDate += (startDate.getMonth() + 1);
- if (NowDay < 10 )
- backDate += "0" + NowDay ;
- else
- backDate += (startDate.getDate());
- return backDate ;
- }
- /**
- * @group :
- * @ver : 2007.11.01
- * @by : dhkim
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 호스피스 환자 가계도 팝업 호출해 가계도를 그려서 그 값을 리턴한다.
- * @param :
- * @param :
- * @return : xml instance
- * @---------------------------------------------------
- */
- function fGetFamyMap(){//GENOGRMNM
- var stMap = model.getValue(xHospiceDetlPath + '/genogrmnm'); //DB에 저장된 가계도 instance를 stMap변수에 담는다.
- setParameter("SPMMR04711_shape", stMap); //가계도 팝업을 호출하기 전 parameter를 정의한다.
- modal("SPMMR04700", 1,10, 10, "SPMMR04700" ,"/root/temp/strmeta", "/root/send"); //가계도 팝업 호출
- return getParameter("SPMMR04711_shape"); //팝업화면에서 가계도를 그린 후의 결과를 리턴
- }
- /**
- * @group :
- * @ver : 2007.11.01
- * @by : dhkim
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 입력 및 수정할 데이터를 저장할 instance에 set한다.
- * mapindd(recd에
- * @param :
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSetFamyMapValue(popMapRslt){
- var pid = model.getValue(xHospiceDetlPath + '/pid'); //db에서 조회해 온 환자등록번호
- var sysDate = getCurrentDate(); //현재 날짜
- var stDate = model.getValue(xHiddenPath + '/mapindd'); //DB에 저장된 날짜(hidden에서 가져옴)
- //팝업에서 확인버튼 누르면 instance에 담아 DB에 저장, 닫기버튼 누르면 적용 안됨.
- if(sysDate == stDate){//update
- model.setValue(xHospiceDetlPath + '/mapindd', stDate); //indd 등록일자
- }else{//insert
- model.setValue(xHospiceDetlPath + '/mapindd', sysDate); //indd 등록일자
- }
- model.setValue(xHospiceDetlPath + '/genogrmnm', popMapRslt); // genogrmnm : 가계도 실지 내용
- }
- /**
- * 호스피스 초기상담지를 출력한다.
- */
- function fPrint() {
- if(chk_baseyn.value == "Y") {
- model.makeValue("/root/main/hospiceinfo/hospicedetl/religncdnm", cmb_religncd.label);
- if(cmb_jobcd.value == "10") {
- model.makeValue("/root/main/hospiceinfo/hospicedetl/jobcdnm", ipt_jobnm.label);
- } else {
- model.makeValue("/root/main/hospiceinfo/hospicedetl/jobcdnm", cmb_jobcd.label);
- }
- model.makeValue("/root/main/hospiceinfo/hospicedetl/edcugrdecdnm", cmb_edcugrdecd.label);
- model.makeValue("/root/main/hospiceinfo/hospicedetl/marystatcdnm", cmb_marystatcd.label);
-
- model.makeValue("/root/main/hospiceinfo/hospicedetl/diagcd1nm", cmb_diagcd1.label);
- model.makeValue("/root/main/hospiceinfo/hospicedetl/diagcd2nm", cmb_diagcd2.label);
-
- }
-
- if(chk_famyyn.value == "Y") {
- for(var i = grd_famylist.fixedRows; i < grd_famylist.rows; i++) {
- model.makeValue(grd_famylist.nodeset + "[" + i + "]/famyrelnm", grd_famylist.labelMatrix(i, grd_famylist.colRef("famyrel")));
- model.makeValue(grd_famylist.nodeset + "[" + i + "]/marytypeflagnm", grd_famylist.labelMatrix(i, grd_famylist.colRef("marytypeflag")));
- }
- }
- if(chk_hospiceyn.value == "Y") {
- model.makeValue("/root/main/hospiceinfo/hospicedetl/reqtypeflagnm", combo12.label);
- model.makeValue("/root/main/hospiceinfo/hospicedetl/reqtypespecnm", cmb_reqdeptnm.label);
- model.makeValue("/root/main/hospiceinfo/hospicedetl/atdoctidnm", cmb_drlist.label);
- model.makeValue("/root/main/hospiceinfo/hospicedetl/reqresnflagnm", cmb_reqresnflag.label);
- model.makeValue("/root/main/hospiceinfo/hospicedetl/recmpsgecdnm", cmb_recmpsgecd.label);
- model.makeValue("/root/main/hospiceinfo/hospicedetl/itrdmoodcdnm", cmb_itrdmoodcd.label);
- model.makeValue("/root/main/hospiceinfo/hospicedetl/mngtprescdnm", cmb_mngtprescd.label);
- model.makeValue("/root/main/hospiceinfo/hospicedetl/agonalhopeplcecdnm", cmb_agonalhopeplcecd.label);
- }
-
- exeReportPreview("RPMNH01500", "XMLSTR");
- }
- /**
- * 이전기록일시를 조회한다.
- */
- function fChgRecHistInfo(cretdd, crettm){
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.makeValue("/root/send/pid", model.getValue("/root/main/hospiceinfo/hospicedetl/pid"));
- model.makeValue("/root/send/cretdd", cretdd);
- model.makeValue("/root/send/crettm", crettm);
- model.makeValue("/root/send/refflag", "1");
-
- if(submit("TRMNH01501")){
- if( (model.getValue(xHospiceDetlPath + "/hngnm")) =="" ){
- if(checkOpener()){
- messageBox("등록된자료가 ","I004");
- }else{
- model.reset();
- model.refresh();
- messageBox("등록된자료가 ","I004");
- }
- }else{
- fSetData();
- }
- }else{
- messageBox('조희를', 'E009');
- }
- }
- /**
- * 인증저장
- */
- function fCertiSave(){
- alert("인증저장");
- }
- function fMake_SignData(){
- fSetSignData();
- Sign.addnode("/root/main/signSaveData");
- //var xRecinfoPath = Sign.XPATH_SIGNINFO+"/hospiceinfo/hospicedetl";
-
-
- return;
- }
- /**
- * 인증저장.
- */
- function fSign(){
- Sign.certreload = false ; // 전자서명 호출시 인증저장 버튼을 누늘때마다 인증서가 뜨도록 처리
- //Sign.certchkflag = "Y";
-
- if(Sign.signprocess() == true){
-
- var sPid = model.getValue("/root/main/hospiceinfo/hospicedetl/pid");
- var sIndd = model.getValue("/root/main/hospiceinfo/hospicedetl/indd");
- var sCretNo = model.getValue("/root/main/hospiceinfo/hospicedetl/cretno");
- var sOrdDeptCd = model.getValue("/root/main/hospiceinfo/hospicedetl/reqtypespec");
- var sOrdDrId = model.getValue("/root/main/hospiceinfo/hospicedetl/atdoctid");
-
- //var sOrdDeptCd = "1111";
- //var sOrdDrId = "2222";
-
- // 전자인증 관련 환자 인적 정보를 보내줌.
- model.makeValue("/root/send/signdata/pid", sPid ); //등록번호
- model.makeValue("/root/send/signdata/orddd", sIndd); //입원일자
- model.makeValue("/root/send/signdata/signno", ""); //서명번호
- model.makeValue("/root/send/signdata/cretno", sCretNo); //생성번호
-
- model.makeValue("/root/send/signdata/recdd", getCurrentDate()); // 실제 기록이 이루어진 기록일자
- model.makeValue("/root/send/signdata/rectm", getCurrentTime()); //실제 기록이 이루어진 기록시간
-
- model.makeValue("/root/send/signdata/recsaveflag", "Y"); //전자서명 인적정보 변경여부(기록일시 변경되는 경우 : Y, 그외 : N)
- model.makeValue("/root/send/signdata/signflag", "02" ); //서명자료구분 (01 : 진료, 02 : 간호, 03 : LIS, 04 : 진료지원)
- model.makeValue("/root/send/signdata/signgenrflag", "I" ); //외래/입원구분(코드정의서 M0010 참조)
- model.makeValue("/root/send/signdata/formcd", "1600017856" ); //각 기록지별 서식코드
- model.makeValue("/root/send/signdata/orddeptcd", sOrdDeptCd); //진료부서코드
- model.makeValue("/root/send/signdata/orddrid", sOrdDrId ); //진료의사ID
- model.makeValue("/root/send/signdata/dispyn", "Y"); //기록뷰어에는 조회안되도록
-
- // 인증할 데이터 정보(미기록 노드 제거된 정보)
- // 미기록 노드 제거전 원본 노드 정보 : Sign.signedInfos[3]
-
- model.makeValue("/root/send/signdata/signbfcnts", Sign.signedInfos[1]);
- // 공인인증 처리후 데이터
- model.makeValue("/root/send/signdata/signaftcnts", Sign.signedInfos[2]);
-
- } else{
- return false;
-
- }
-
- model.makeValue("/root/send/signdata/screenid", getScreenID());
-
- return true;
-
- }
- /**
- * 인증저장 데이터 생성.
- */
- function fSetSignData(){
- //model.setValue("/root/temp/SignData/SignInfo/signSaveData/inrmmthdcd", cmb_inrmmthdcd.label);
- model.setValue("/root/main/signSaveData/inrmmthdcd", cmb_inrmmthdcd.label);
- model.setValue("/root/main/signSaveData/inrmacompstcd", cmb_inrmacompstcd.label);
- model.setValue("/root/main/signSaveData/religncd", cmb_religncd.label);
- model.setValue("/root/main/signSaveData/edcugrdecd", combo14.label);
- model.setValue("/root/main/signSaveData/jobcd", cmb_jobcd.label);
- model.setValue("/root/main/signSaveData/marystatcd", cmb_marystatcd.label);
- model.setValue("/root/main/signSaveData/diagcd1", cmb_diagcd1.label);
- model.setValue("/root/main/signSaveData/diagcd2", cmb_diagcd2.label);
- model.setValue("/root/main/signSaveData/attackdd", ipt_attackdd.label);
- model.setValue("/root/main/signSaveData/cncrdiagdd", ipt_cncrdiagdd.label);
- model.setValue("/root/main/signSaveData/reqtypeflag", combo12.label);
- model.setValue("/root/main/signSaveData/reqtypespec", cmb_reqdeptnm.label);
- model.setValue("/root/main/signSaveData/atdoctid", cmb_drlist.label);
- model.setValue("/root/main/signSaveData/reqresnflag", cmb_reqresnflag.label);
- model.setValue("/root/main/signSaveData/recmpsgecd", cmb_recmpsgecd.label);
- model.setValue("/root/main/signSaveData/itrdmoodcd", cmb_itrdmoodcd.label);
- model.setValue("/root/main/signSaveData/mngtprescd", cmb_mngtprescd.label);
- model.setValue("/root/main/signSaveData/endawaryn", cmb_endawaryn.label);
- model.setValue("/root/main/signSaveData/proendawaryn", cmb_proendawaryn.label);
- model.setValue("/root/main/signSaveData/cncrawaryn", cmb_cncrawaryn.label);
- model.setValue("/root/main/signSaveData/procncrawaryn", cmb_procncrawaryn.label);
- model.setValue("/root/main/signSaveData/agonalhopeplcecd", cmb_agonalhopeplcecd.label);
-
- }
-
|